Hostapd + ath5k driver

Jørn Christensen hostap
Sun Dec 20 13:02:14 PST 2009


Hi,

I am trying to setup my wireless network interface as an access point 
with hostapd. The interface is from Atheros Communications (using the 
ath5k kernel driver), and as far as I can see, it should work - only it 
don't.

I hope you can help me with my troubles.

So - the main problem manifests itself with the error message "Could not 
set channel for kernel driver" when launching hostapd. Hostapd exits, 
but an inspection with iwconfig reveals that (at lest iwconfig thinks) 
the interface is in Master mode and has changed the frequency.

I run a freshly installed Ubuntu 9.10 with kernel 2.6.31-16-generic-pae. 
  I use hostapd v0.6.9, but have also tried with the 0.7.0 - with same 
result.

The settings I use for hostapd is (extract):
interface=wlan0
driver=nl80211
ssid=Oesterbaek
country_code=EU
ieee80211d=1
hw_mode=g
channel=11

Do you have any pointers to what is wrong?

Below is more info about the card and output from hostapd.

Thank you very much in advance.

~J?rn




  * lspci -v for the netcard is:
05:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless 
Network Adapter (rev 01)
         Subsystem: Foxconn International, Inc. Device e008
         Flags: bus master, fast devsel, latency 0, IRQ 19
         Memory at febf0000 (64-bit, non-prefetchable) [size=64K]
         Capabilities: [40] Power Management version 2
         Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- 
Queue=0/0 Enable-
         Capabilities: [60] Express Legacy Endpoint, MSI 00
         Capabilities: [90] MSI-X: Enable- Mask- TabSize=1
         Capabilities: [100] Advanced Error Reporting <?>
         Capabilities: [140] Virtual Channel <?>
         Kernel driver in use: ath5k
         Kernel modules: ath5k


  * Full output (stdout + stderr) from hostapd -dd is:
rmdir[ctrl_interface]: No such file or directory
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
Opening raw packet socket for ifindex -1217265676
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=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
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
Flushing old station entries
Deauthenticate all stations
Mode: IEEE 802.11g  Channel: 11  Frequency: 2462 MHz
Could not set channel for kernel driver
wlan0: Unable to setup interface.



More information about the Hostap mailing list