Skip to contentSkip to conversation

which hostapd version for which wireless driver

DISCUSSION Jochen Voss 3 participants 5 messages Aug 27, 2007 – Aug 29, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I am trying to get hostapd up and running on my Soekris net4521 board, until now without much success. One of the problems might be that I am completely at a loss which version of hostapd is supposed to work together with which driver.

Any help about which combinations of hostapd and device driver have at least a chance of working together would be more than welcome.

I tried the following PCMCIA cards, device drivers and hostapd versions:

*** LinkSys WRT54GL (broadcom 4318) ***

I tried the following drivers:

1) CONFIG_B43 in current wireless-dev
2) CONFIG_BCM43XX in current wireless-dev
3) CONFIG_BCM43XX in 2.6.23-rc3
4) CONFIG_BCM43XX in 2.6.22.5

I can succesfully use wpa_supplicant with this card, e.g. with driver
1) above, but there are some error messages. On the console:

ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported WEXT auth param 5 value 0x1 - Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

dmesg output (note the bbatt error):

pccard: CardBus card inserted into slot 1
PCI: Enabling device 0000:05:00.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:05:00.0 to 64
b43-phy7: Broadcom 4318 WLAN found
wmaster0: Selected rate control algorithm 'simple'
ssb: Sonics Silicon Backplane found on PCI device 0000:05:00.0 b43-phy7 ERROR: bbatt(11) >= size of LO array
...

lspci output for the card:

05:00.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
Subsystem: Linksys WPC54G-EU version 3 [Wireless-G Notebook Adapter]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin A routed to IRQ 10
Region 0: Memory at 1c000000 (32-bit, non-prefetchable) [size=8K]

*** Netgear WG511 (prism54) ***

I tried the following drivers:

5) CONFIG_P54_PCI in the latest wireless-dev
6) PRISM54 in the lates wireless-dev
7) PRISM54 in 2.6.23-rc3
8) PRISM54 in 2.6.22.5

I also found hints to some driver called "islsm" on the internet, but I did not find a place to download this. Also I only found contradicting information about whether this is USB only or not.

Again, I can successfully use wpa_supplicant with this card (at least with driver 5 above).

dmesg output:

    pccard: CardBus card inserted into slot 0
    PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
    PCI: Setting latency timer of device 0000:01:00.0 to 64
    p54: LM86 firmware
    wmaster0: Selected rate control algorithm 'simple'
    phy3: hwaddr 00:09:5b:c8:cf:14, isl3890

lspci output:

01:00.0 Network controller: Intersil Corporation ISL3890 [Prism GT/Prism Duette]/ISL3886 [Prism Javelin/Prism Xbow] (rev 01)
Subsystem: Netgear WG511 Wireless Adapter
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (2500ns min, 7000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 10
Region 0: Memory at 14000000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

*** hostapd ***

I tried the following versions

a) 1:0.5.5-3.1 from the current Debian/stable distribution
b) 0.6.0 from the hostapd web page
c) current git from http://w1.fi/hostap.git

*** the problem ***

I did not find any combination of a hostapd version (a, b, or c) and a device driver (1, 2, ..., 8) which would work together for me.

Example: combination 1c (CONFIG_B43 in wireless-dev, current
http://w1.fi/hostap.git) gives

    root@funk [~] iwconfig wlan1 mode master
    root@funk [~] iwconfig wlan1 essid "SR20"
    root@funk [~] iwconfig wlan1 channel 6
    root@funk [~] iwconfig wlan1 rate 11M
    root@funk [~] ifconfig wlan1 up
    b43-phy2 ERROR: bbatt(11) >= size of LO array
    root@funk [~] ifconfig wlan1 192.168.2.1
    root@funk [~] iwconfig wlan1
    wlan1     IEEE 802.11g  ESSID:"SR20"  
	      Mode:Master  Frequency:2.437 GHz  Tx-Power=27 dBm   
	      Retry min limit:7   RTS thr:off   Fragment thr=2346 B   
	      Encryption key:off
	      Link Quality:0  Signal level:0  Noise level:0
	      Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
	      Tx excessive retries:0  Invalid misc:0   Missed beacon:0

    root@funk [~] ifconfig wlan1
    wlan1     Link encap:Ethernet  HWaddr 00:18:39:EE:B3:25  
	      inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
	      inet6 addr: fe80::218:39ff:feee:b325/64 Scope:Link
	      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
	      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
	      TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
	      collisions:0 txqueuelen:1000 
	      RX bytes:0 (0.0 b)  TX bytes:440 (440.0 b)

    root@funk [~] grep "^[^#]" /etc/hostapd.conf
    interface=wlan1
    driver=devicescape
    logger_syslog=-1
    logger_syslog_level=2
    logger_stdout=-1
    logger_stdout_level=2
    debug=4
    dump_file=/tmp/hostapd.dump
    ctrl_interface=/var/run/hostapd
    ctrl_interface_group=0
    ssid=SR20
    hw_mode=b
    channel=6
    beacon_int=100
    dtim_period=2
    max_num_sta=255
    rts_threshold=2347
    fragm_threshold=2346
    macaddr_acl=0
    auth_algs=3
    ignore_broadcast_ssid=0
    wme_enabled=1
    wme_ac_bk_cwmin=4
    wme_ac_bk_cwmax=10
    wme_ac_bk_aifs=7
    wme_ac_bk_txop_limit=0
    wme_ac_bk_acm=0
    wme_ac_be_aifs=3
    wme_ac_be_cwmin=4
    wme_ac_be_cwmax=10
    wme_ac_be_txop_limit=0
    wme_ac_be_acm=0
    wme_ac_vi_aifs=2
    wme_ac_vi_cwmin=3
    wme_ac_vi_cwmax=4
    wme_ac_vi_txop_limit=94
    wme_ac_vi_acm=0
    wme_ac_vo_aifs=2
    wme_ac_vo_cwmin=2
    wme_ac_vo_cwmax=3
    wme_ac_vo_txop_limit=47
    wme_ac_vo_acm=0
    eapol_key_index_workaround=0
    eap_server=0
    own_ip_addr=127.0.0.1

    root@funk [~] hostapd /etc/hostapd.conf
    Configuration file: /etc/hostapd.conf
    Opening raw packet socket for ifindex 15
    BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
    Hardware does not support configured mode
    wlan1: IEEE 802.11 Hardware does not support configured mode (2)
    Could not select hw_mode and channel. (-1)
    rmdir[ctrl_interface]: No such file or directory

dmesg output for this run:

PCI: Enabling device 0000:05:00.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:05:00.0 to 64
b43-phy2: Broadcom 4318 WLAN found
wmaster0: Selected rate control algorithm 'simple'
ssb: Sonics Silicon Backplane found on PCI device 0000:05:00.0 b43-phy2 ERROR: bbatt(11) >= size of LO array

I tried many other combinations of drivers and hostapd version but nothing worked wor me. Does anybody have any hints about this combination of driver and hostapd currently have the biggest chance of working together?

Many thanks,
Jochen

Signature · 1 line
http://seehuhn.de/
#1 lore raw
Quoted 4 lines · ext Jochen Voss

I am trying to get hostapd up and running on my Soekris net4521 board, until now without much success. One of the problems might be that I am completely at a loss which version of hostapd is supposed to work together with which driver.

I tried hostapd for the first time last night and it worked with my old PII laptop and b43. So it should work :)

Quoted 2 lines

Any help about which combinations of hostapd and device driver have at least a chance of working together would be more than welcome.

I used latest git for both the kernel and hostapd. My notes here:

http://marc.info/?l=linux-wireless&m=118823232032439&w=2

Quoted 4 lines

root@funk [~] iwconfig wlan1 mode master
root@funk [~] iwconfig wlan1 essid "SR20"
root@funk [~] iwconfig wlan1 channel 6
root@funk [~] iwconfig wlan1 rate 11M

I did not issue these commands, but I don't know if it makes any difference in practice.

Quoted 1 line

root@funk [~] ifconfig wlan1 up

I think I didn't do this, but can't be sure anymore.

My advice is to double check that you are really using the correct hostapd compiled for the kernel you are running. And did you remember to do make clean for hostapd between compilations?

Signature · 1 line
Kalle Valo
#3 lore raw
In reply to Jochen Voss
Quoted 9 lines · Jochen Voss

Hello,

I am trying to get hostapd up and running on my Soekris net4521 board, until now without much success. One of the problems might be that I am completely at a loss which version of hostapd is supposed to work together with which driver.

Any help about which combinations of hostapd and device driver have at least a chance of working together would be more than welcome.

Both git trees (wireless-dev and hostapd) work fine together :)

Quoted 5 lines

*** LinkSys WRT54GL (broadcom 4318) ***

I tried the following drivers:

1) CONFIG_B43 in current wireless-dev

That's the one you want.

Quoted 3 lines

2) CONFIG_BCM43XX in current wireless-dev
3) CONFIG_BCM43XX in 2.6.23-rc3
4) CONFIG_BCM43XX in 2.6.22.5

No chance of getting these working.

Quoted 9 lines

I can succesfully use wpa_supplicant with this card, e.g. with driver
1) above, but there are some error messages. On the console:

ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported WEXT auth param 5 value 0x1 - Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

That's expected, ignore it.

Quoted 7 lines

pccard: CardBus card inserted into slot 1
PCI: Enabling device 0000:05:00.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:05:00.0 to 64
b43-phy7: Broadcom 4318 WLAN found
wmaster0: Selected rate control algorithm 'simple'
ssb: Sonics Silicon Backplane found on PCI device 0000:05:00.0 b43-phy7 ERROR: bbatt(11) >= size of LO array

Also known and can be ignored.

Quoted 5 lines

*** Netgear WG511 (prism54) ***

I tried the following drivers:

5) CONFIG_P54_PCI in the latest wireless-dev

I don't think that supports AP mode.

Quoted 3 lines

6) PRISM54 in the lates wireless-dev
7) PRISM54 in 2.6.23-rc3
8) PRISM54 in 2.6.22.5

Nor do those, HOSTAP driver is the one you'd want here, along with the hostap hostapd driver.

Quoted 8 lines

Example: combination 1c (CONFIG_B43 in wireless-dev, current
http://w1.fi/hostap.git) gives

root@funk [~] iwconfig wlan1 mode master
root@funk [~] iwconfig wlan1 essid "SR20"
root@funk [~] iwconfig wlan1 channel 6
root@funk [~] iwconfig wlan1 rate 11M
root@funk [~] ifconfig wlan1 up

Don't do any of that, hostapd configures everything.

Quoted 1 line
    root@funk [~] ifconfig wlan1 192.168.2.1

Do that after starting hostapd while the interface was down.

Quoted 8 lines

root@funk [~] hostapd /etc/hostapd.conf
Configuration file: /etc/hostapd.conf
Opening raw packet socket for ifindex 15
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Hardware does not support configured mode
wlan1: IEEE 802.11 Hardware does not support configured mode (2) Could not select hw_mode and channel. (-1) rmdir[ctrl_interface]: No such file or directory

You need to start hostapd while the interface is down ("ip link set wlan1 down").

johannes

#4 lore raw
In reply to Johannes Berg

[ sorry if you get this twice, my first attempt did not seem to have made
it to the list ]

Hi Johannes,

Quoted 4 lines · Johannes Berg
Quoted 2 lines

Any help about which combinations of hostapd and device driver have at least a chance of working together would be more than welcome.

Both git trees (wireless-dev and hostapd) work fine together :)

Ok, it works now for me. Knowing which of the many combination to play with
helped to focus my efforts. Thanks a lot for your help.

Quoted 6 lines
Quoted 5 lines

*** Netgear WG511 (prism54) ***

I tried the following drivers:

5) CONFIG_P54_PCI in the latest wireless-dev

Quoted 8 lines

I don't think that supports AP mode.

Quoted 3 lines

6) PRISM54 in the lates wireless-dev
7) PRISM54 in 2.6.23-rc3
8) PRISM54 in 2.6.22.5

Nor do those, HOSTAP driver is the one you'd want here, along with the hostap hostapd driver.

I tried this only shortly, but I am not so sure about this one. The hostap driver states that it is for "Prism 2/2.5/3 wlan cards". Isn't there a difference between this and prism54?

Quoted 7 lines
Quoted 5 lines

root@funk [~] iwconfig wlan1 mode master
root@funk [~] iwconfig wlan1 essid "SR20"
root@funk [~] iwconfig wlan1 channel 6
root@funk [~] iwconfig wlan1 rate 11M
root@funk [~] ifconfig wlan1 up

Don't do any of that, hostapd configures everything.

Ok, it does now. My problem turned out to be the "hw_mode=b" in the config file. When I use "hw_mode=g" instead, everything suddenly starts to work :-)

Many thanks,
Jochen
--
http://seehuhn.de/