If memory serves me right, Brooks Davis wrote:

> If anyone wants to try it one -stable, there's a patch against it at:
> http://www.one-eyed-alien.net/~brooks/FreeBSD/ifconfig.diff-stable

Cool, thanks for making this available.

> The fact that wi hasn't been repo-copied in to sys/dev in stable plus
> the spl->mutex changes mean the patches against -current don't apply
> cleanly.  The patches work great for me under -stable with a Lucent (wi)
> card, but I couldn't get my Cisco (an) card to work with or without
> them.  It's probably something to do with the ancient pile of junk I'm
> using for stable laptop testing.

I just re-built world with your patches on an IBM T20 with a Cisco
Aironet 342 PCMCIA card.  Basic send and receive seem OK, I used the new
ifconfig to turn on WEP and set the SSID and I am now typing over the
an0 interface to send this mail.

Few comments here:

1.  Seems like I needed to ifconfig the interface up before my other 
commands would take effect.  I don't recall needing to do any such 
thing with the old driver before I could do ancontrol.  Is this a 
change in behavior or did I miss something?

2.  I think there is an off-by-one error in the listing of wepkeys.  I
have exactly one 128-bit key set, which I'm using as the transmit key.
I'm pretty sure that this is key was configured as number 3 (if starting
from 1) or 2 (if starting from 0).  I'm not using any of the other four
keys supported, but I do not know their exact configurations.  "ifconfig
an0" returns (santized):

constellation:bmah% ifconfig an0
        inet6 fe80::XX:XX:XX:XX%an0 prefixlen 64 scopeid 0x5 
        inet XX.XX.XX.XX netmask 0xffffff00 broadcast XX.XX.XX.XX
        inet6 fec0::XX:XX:XX:XX: prefixlen 64 
        ether XX:XX:XX:XX:XX:XX
        media: autoselect (DS/11Mbps) status: associated
        supported media: autoselect autoselect <adhoc> DS/11Mbps DS/11Mbps <adhoc> 
DS/5.5Mbps DS/5.5Mbps <adhoc> DS/2Mbps DS/2Mbps <adhoc> DS/1Mbps DS/1Mbps <adhoc>
        ssid XXX
        stationname ""
        channel 6 authmode OPEN powersavemode OFF powersavesleep 200
        wepmode ON weptxkey 3
        wepkey 1:64-bit wepkey 2:128-bit wepkey 3:64-bit

Just for the record, I think there's a similar problem in ancontrol(8). 
The tail of "ancontrol -C" is:

WEP Key status:
        Key 0 is set  40 bits
        Key 1 is set 128 bits
        Key 2 is set  40 bits
        Key 3 is unset
        The active transmit key is 2

If I had to guess, I'd say that if there is an array of WEP keys, the 
programs are starting to read one key too late into the array when they 
display them.  There also seems to be a little disagreement as to 
whether keys are numbered starting from 0 or 1.

I did all the key management from within Windows 2000, using the
Cisco-supplied utilities.  If it's helpful, I can reboot and take some
notes from that side.

3.  In the "SEE ALSO" section of ieee80211, there is a hanging comma 
after the cross-reference to wicontrol(8).

Thanks for taking the time to do a -STABLE patch...much appreciated.


PGP signature

Reply via email to