Dlink DWA-556 接入点无法在 2.6.35-25 上启动,而 2.6.35-24 可以运行。我该如何在 >2.6.35-24 上解决这个问题?

Dlink DWA-556 接入点无法在 2.6.35-25 上启动,而 2.6.35-24 可以运行。我该如何在 >2.6.35-24 上解决这个问题?

我正在使用 hostapd 运行带有 Dlink DWA-556 无线 N 卡的接入点。但是,当我使用高于 2.6.35-24 的内核时,我无法再启动它。这是我uname -a&&hostapd -c <configfile>在不同内核版本上运行的日志。

Linux erikbandersen 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 02:41:37 UTC 2010 x86_64 GNU/Linux
Configuration file: hostapd.conf
ctrl_interface_group=0  
Opening raw packet socket for ifindex 248
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
nl80211: Added 802.11b mode based on 802.11g information
HT40: control channel: 2  secondary channel: 6
RATE[0] rate=10 flags=0x2
RATE[1] rate=20 flags=0x6
RATE[2] rate=55 flags=0x6
RATE[3] rate=110 flags=0x6
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Passive scanning not supported
Mode: IEEE 802.11g  Channel: 2  Frequency: 2417 MHz
Flushing old station entries
Deauthenticate all stations
Using interface wlan1 with hwaddr 1c:bd:b9:d5:e8:3c and ssid 'erikbandersen.com/freewifi'
wlan1: Setup of interface done.
MGMT (TX callback) ACK
Malformed netlink message: len=436 left=256 plen=420
256 extra bytes in the end of netlink message
MGMT (TX callback) ACK
mgmt::proberesp cb
MGMT (TX callback) ACK
mgmt::proberesp cb
MGMT (TX callback) ACK
mgmt::proberesp cb
mgmt::auth
authentication: STA=3c:4a:92:0e:41:2f auth_alg=0 auth_transaction=1 status_code=0 wep=0
  New STA
wlan1: STA 3c:4a:92:0e:41:2f IEEE 802.11: authentication OK (open system)
wlan1: STA 3c:4a:92:0e:41:2f MLME: MLME-AUTHENTICATE.indication(3c:4a:92:0e:41:2f, OPEN_SYSTEM)
wlan1: STA 3c:4a:92:0e:41:2f MLME: MLME-DELETEKEYS.request(3c:4a:92:0e:41:2f)
authentication reply: STA=3c:4a:92:0e:41:2f auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
MGMT (TX callback) ACK
mgmt::auth cb
wlan1: STA 3c:4a:92:0e:41:2f IEEE 802.11: authenticated
mgmt::assoc_req
association request: STA=3c:4a:92:0e:41:2f capab_info=0x421 listen_interval=10
Validating WMM IE: OUI 00:50:f2  OUI type 2  OUI sub-type 0  version 1  QoS info 0x0
HT: STA 3c:4a:92:0e:41:2f HT Capabilities Info: 0x102c
handle_assoc STA 3c:4a:92:0e:41:2f - no greenfield, num of non-gf stations 1
handle_assoc STA 3c:4a:92:0e:41:2f - 20 MHz HT, num of 20MHz HT STAs 1
hostapd_ht_operation_update current operation mode=0x0
hostapd_ht_operation_update new operation mode=0x7 changes=2
  new AID 1
wlan1: STA 3c:4a:92:0e:41:2f IEEE 802.11: association OK (aid 1)
MGMT (TX callback) ACK
mgmt::assoc_resp cb
wlan1: STA 3c:4a:92:0e:41:2f IEEE 802.11: associated (aid 1)
wlan1: STA 3c:4a:92:0e:41:2f MLME: MLME-ASSOCIATE.indication(3c:4a:92:0e:41:2f)
wlan1: STA 3c:4a:92:0e:41:2f MLME: MLME-DELETEKEYS.request(3c:4a:92:0e:41:2f)
wlan1: STA 3c:4a:92:0e:41:2f RADIUS: starting accounting session 4DAC8224-00000000
MGMT (TX callback) ACK
mgmt::action cb
MGMT (TX callback) ACK
mgmt::proberesp cb
MGMT (TX callback) ACK
mgmt::proberesp cb
MGMT (TX callback) ACK
mgmt::proberesp cb
MGMT (TX callback) ACK
mgmt::proberesp cb
MGMT (TX callback) ACK
mgmt::proberesp cb
Signal 2 received - terminating
wlan1: STA 3c:4a:92:0e:41:2f MLME: MLME-DEAUTHENTICATE.indication(3c:4a:92:0e:41:2f, 1)
wlan1: STA 3c:4a:92:0e:41:2f MLME: MLME-DELETEKEYS.request(3c:4a:92:0e:41:2f)
Removing station 3c:4a:92:0e:41:2f
hostapd_ht_operation_update current operation mode=0x7
hostapd_ht_operation_update new operation mode=0x0 changes=2
Flushing old station entries
Deauthenticate all stations

Linux erikbandersen 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011 x86_64 GNU/Linux
Configuration file: hostapd.conf
ctrl_interface_group=0  
Opening raw packet socket for ifindex 248
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=27 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=27 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=27 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=27 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=27 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=27 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=27 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=27 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=27 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=27 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=27 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=27 dBm
HT40: control channel: 2  secondary channel: 6
RATE[0] rate=10 flags=0x2
RATE[1] rate=20 flags=0x6
RATE[2] rate=55 flags=0x6
RATE[3] rate=110 flags=0x6
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Passive scanning not supported
Mode: IEEE 802.11g  Channel: 2  Frequency: 2417 MHz
Could not set channel for kernel driver
wlan1: Unable to setup interface.

我的无线网卡被 lspci 列为02:00.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01)。我是不是做错了,还有新方法吗?因为这个,我推迟升级到 Natty。版本之间有什么变化会导致这种情况?我应该将其报告为错误吗?

顺便说一下,这是 hostapd 和我的 hostapd.conf 的版本

apt-cache policy hostapd
hostapd:
  Installed: 1:0.6.10-2
  Candidate: 1:0.6.10-2
  Version table:
 *** 1:0.6.10-2 0
        500 http://mirrors.xmission.com/ubuntu/ maverick/universe amd64 Packages
        100 /var/lib/dpkg/status

hostapd.conf 的 Pastebin

答案1

在仔细查看了有关此问题的一些信息后,我发现这个问题似乎是 Ubuntu 中 hostapd 版本的问题,目前版本为 0.6.1

我参考了这个邮件列表,它确认了这个错误并提供了解决方案

ath9k+hostapd = “无法为内核驱动程序设置 DTIM 周期

提出的解决方案并不令人惊讶,目前升级到 0.7.3,无论如何内核更新(查看网络部分)2.6.25 中的漏洞在新版本中得到了修补。遗憾的是,目前似乎还没有一种简单的方法可以在 Ubuntu 中获取此漏洞,但是 Oneric 11.10 中计划包含的版本将是新版本,同时您必须从源代码进行编译,或者您也可以使用 alien 转换 rpm,因为已经为 Fedora 15 构建了一个 rpm。pkgs.org 上的 Hostapd

希望这有助于解决你的问题

相关内容