ndis0 does not associate since update to RELENG_6

Fabian Keil freebsd-listen at fabiankeil.de
Tue Jan 17 10:26:48 PST 2006


wpaul at FreeBSD.ORG (Bill Paul) wrote:

> > I fail to get the following device working since my update
> > from RELENG_5 to RELENG_6 a few days ago:
> > 
> > ndis0 at pci2:2:0: class=0x028000 card=0x27128086 chip=0x42208086
> > rev=0x05 hdr=0x00 vendor   = 'Intel Corporation'
> >     device   = 'PRO/Wireless 2200BG Network Connection'
> >     class    = network
> > 
> > It worked fine with 5.4 and was recognised as
> > 
> > ndis0: <Intel(R) PRO/Wireless 2200BG Network Connection> mem
> > 0xc0214000-0xc0214fff irq 11 at device 2.0 on pci
> > ndis0: NDIS API version: 5.0
> > ndis0: Ethernet address: 00: ... :00
> > ndis0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 5.5Mbps 11Mbps
> > ndis0: 11g rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps
> > 54Mbps
> > 
> > On 6.0 it is still recognised, but the last two lines are missing.
> 
> That's normal.
>  
> > I'm using GENERIC, the driver module was generated with ndisgen
> > out of w22n51.inf and w22n50.sys. This is the combination I alway
> > used. 
> > 
> > ndis0 can scan for access points, but can't associate with or
> > without WEP encryption.
> 
> What command do you type to try to get it to associate?

kldload wlan_wep.ko
kldload w22n50_sys.ko

ifconfig ndis0 ssid ec60bfg3b4 wepkey 1:0xhexkey \
deftxkey 1 wepmode on
ifconfig ndis0 inet 192.168.0.32 up
 
> > fk at TP51 ~ $ifconfig ndis0 list scan
> > SSID            BSSID              CHAN RATE  S:N   INT CAPS
> > ec60bfg3b4      00: ... :a8   11   54M 149:0   100
> > EP   ??? ??? ??? ??? ??? ??? WME
> > 
> > fk at TP51 ~ $ifconfig ndis0
> > ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> >         inet 192.168.0.32 netmask 0xffffff00 broadcast 192.168.0.255
> >         inet6 fe80: ... :7500%ndis0 prefixlen 64 scopeid 0x5 
> >         ether 00: ... :00
> >         media: IEEE 802.11 Wireless Ethernet autoselect
> >         status: no carrier
> >         ssid "" channel 1
> >         authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit
> > txpowmax 100 protmode CTS
> > 
> > I found a similar problem which should be fixed in current,
> > but I don't know if the changes already hit stable.  
> > http://freebsd.rambler.ru/bsdmail/freebsd-current_2005/msg11802.html
> > 
> > My problem is not exactly the same though, I have no trouble setting
> > the bssid. 
> 
> You should be able to do:
> 
> # ifconfig ndis0 ssid ec60bfg3b4 wepmode on wepkey "0123456789123" up

It was my experience that ifconfig on 6.0 will not chose the first
key by default. I always have to add deftxkey 1.

I can't use your exact command because I know my wepkey only in
hexadecimal.

But if I disable WEP in the access point and use
ifconfig ndis0 ssid ec60bfg3b4 up
it fails to associate (or even to set the ssid) as well:

root at TP51 ~ #ifconfig ndis0                   
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe ... 7500%ndis0 prefixlen 64 scopeid 0x3 
        ether 00: ... :00
        media: IEEE 802.11 Wireless Ethernet autoselect
        status: no carrier
        ssid "" channel 1
        authmode OPEN privacy OFF txpowmax 100 protmode CTS
 
> You don't state what command you actually use. You should have
> specified it in your e-mail. Note that usually the WEP key has to be
> either 5 or 13 characters.

You're right, sorry.

I use the hexadecimal notation and my key is correctly recognised as
104-bit.
 
ifconfig ndis0 ssid ec60bfg3b4 wepkey 1:0xhexkey \
deftxkey 1 wepmode on
ifconfig ndis0 inet 192.168.0.32 up 

The two commands above work for iwi0, wi0 and ath0. 

I use the same shell script I used on 5.4. The only
change I made was adding "deftxkey 1" which wasn't
needed before. 

> > Is anybody else using this device with FreeBSD 6.0?
> 
> I've tested the 2200BG myself with the NDISulator 6.0 and I've been
> able to get it to associate with 11g networks. I don't know what's
> wrong in your case.

Is there a way I can provide more information?

Fabian
-- 
http://www.fabiankeil.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060117/3cd90ea6/signature.bin


More information about the freebsd-stable mailing list