All of lore.kernel.org
 help / color / mirror / Atom feed
* which hostapd version for which wireless driver
@ 2007-08-27 22:38 Jochen Voss
  2007-08-28  5:54 ` Kalle Valo
  2007-08-28  8:54 ` Johannes Berg
  0 siblings, 2 replies; 5+ messages in thread
From: Jochen Voss @ 2007-08-27 22:38 UTC (permalink / raw)
  To: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 7618 bytes --]

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
-- 
http://seehuhn.de/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: which hostapd version for which wireless driver
  2007-08-27 22:38 which hostapd version for which wireless driver Jochen Voss
@ 2007-08-28  5:54 ` Kalle Valo
  2007-08-28 22:28   ` Jochen Voss
  2007-08-28  8:54 ` Johannes Berg
  1 sibling, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2007-08-28  5:54 UTC (permalink / raw)
  To: linux-wireless

"ext Jochen Voss" <voss@seehuhn.de> writes:

> 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 :)

> 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

>     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.

>     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?

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: which hostapd version for which wireless driver
  2007-08-27 22:38 which hostapd version for which wireless driver Jochen Voss
  2007-08-28  5:54 ` Kalle Valo
@ 2007-08-28  8:54 ` Johannes Berg
  2007-08-28 22:27   ` Jochen Voss
  1 sibling, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2007-08-28  8:54 UTC (permalink / raw)
  To: Jochen Voss; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 3186 bytes --]

On Mon, 2007-08-27 at 23:38 +0100, Jochen Voss wrote:
> 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 :)

> *** LinkSys WRT54GL (broadcom 4318) ***
> 
> I tried the following drivers:
> 
> 1) CONFIG_B43 in current wireless-dev

That's the one you want.

> 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.

> 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.

>     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.

> *** 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.

> 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.

> 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.

>     root@funk [~] ifconfig wlan1 192.168.2.1

Do that after starting hostapd while the interface was down.

>     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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: which hostapd version for which wireless driver
  2007-08-28  8:54 ` Johannes Berg
@ 2007-08-28 22:27   ` Jochen Voss
  0 siblings, 0 replies; 5+ messages in thread
From: Jochen Voss @ 2007-08-28 22:27 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

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


Hi Johannes,

On 28 Aug 2007, at 09:54, Johannes Berg wrote:
>> 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.

>> *** 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.
>
>> 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?

>>     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/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: which hostapd version for which wireless driver
  2007-08-28  5:54 ` Kalle Valo
@ 2007-08-28 22:28   ` Jochen Voss
  0 siblings, 0 replies; 5+ messages in thread
From: Jochen Voss @ 2007-08-28 22:28 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

Hi Kalle,

On Tue, Aug 28, 2007 at 08:54:28AM +0300, Kalle Valo wrote:
> I used latest git for both the kernel and hostapd. My notes here:
> 
> http://marc.info/?l=linux-wireless&m=118823232032439&w=2

Many thanks, I also got this combination working now.

All the best,
Jochen
-- 
http://seehuhn.de/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-29  8:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27 22:38 which hostapd version for which wireless driver Jochen Voss
2007-08-28  5:54 ` Kalle Valo
2007-08-28 22:28   ` Jochen Voss
2007-08-28  8:54 ` Johannes Berg
2007-08-28 22:27   ` Jochen Voss

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.