WEP on Atmel USB adaptor?
Jim Snyder <jhs-/9LpXTI/t6JWk0Htik3J/[email protected]> Sun, 24 Aug 2003 17:14:07 -0400
| Newsgroups | gmane.linux.drivers.atmel-wlan |
|---|---|
| Organization | jhsnyder.com |
| Message-ID | <[email protected]> |
I'm trying to get WEP running on a Belkin F5D6050. I'm using the sourceforge atmel source snapshot 20030613, driver usbvnetr. The corresponding belkin pcmcia card works from the same snapshot. I sucked down version 26 of iwconfig source. I'm using kernel 2.4.22-rc2, trying both rh80 and rh90. uhci usb. CONFIG_NET_RADIO, CONFIG_NET_PCMCIA_RADIO, and CONFIG_NET_WIRELESS are all set to 'y'. Here's /etc/sysconfig/network-scripts/ifcfg-eth1: DEVICE=eth1 BOOTPROTO=static BROADCAST=192.168.2.255 IPADDR=192.168.2.2 NETMASK=255.255.255.0 NETWORK=192.168.2.0 ONBOOT=no MODE=Managed ESSID=TheConstruct RATE=Auto KEY=........ CHANNEL=0 The ap works with a linksys prismII card and with an adm8211 card and with the belkin pcmcia card. The Belkin pcmcia card uses the ifcfg-eth1 above successfully. When I plug in the USB adaptor, it comes up with a key 0000-0000-00. I've managed to get the driver to accept a 128b key by running iwconfig by hand if I invoke magic appropriately, which is to say "sometimes but not always", but the key that iwconfig reports afterwards isn't the key I've told it I want. That wouldn't be so bad if it worked, but it doesn't. The output of iwconfig looks OK except for the key (all zeros and wrong length, or right length but wrong non-zero value); and the output of ifconfig also seems correct. Pings to the ap fail in either case. The messages reported in /var/log/messages imply that the adaptor has associated itself with the ap correctly, but there's no indication that the key has been set correctly. I haven't tried turning off WEP on the ap, so I can't guarantee that only WEP is keeping the usb adaptor from completing the link, but it looks that way from /var/log/messages. Whether or not there are other problems, WEP isn't working. Can anyone provide hints on getting WEP running on this device? I gather that functionally it is the same as the Netgear MA102 and SMC2662W. I can provide /var/log/messages output and the output of iwconfig and ifconfig if that would help, but I suspect that this is a well- known problem, ie that I'm doing something stupid, or that the magic isn't documented, so that details aren't necessary. On a related issue, I see in the archives that various people successfully use lvnet to configure WEP by hand. When I run lvnet, it returns immediately without painting the window or issuing an error message. I have ncurses and the ncurses development packages installed on both rh80 and rh90 - in fact I installed "everything", although I deleted a number of Asian- language packages and (ahem) *emacs. Initially it posted errors to syslog saying that it couldn't find net-pf-4 and net-pf-5, but I aliased those to "off" in modules.conf following a suggestion I found on the net. Now it fails silently. Can anyone suggest a reason that might explain why lvnet is behaving this way? As a third point, I see that lvnet source uses SIOCDEVPRIVATE to get and set WEP, and that iwconfig source uses the public ioctls. That is, lvnet successfully sets WEP using private ioctls, and iwconfig appears to fail using wireless extensions ioctls. Or to put it yet another way, unless I'm badly confused - wouldn't be the first time - there's no commonality between the way that lvnet and iwconfig respectively succeed and fail at setting WEP. Which is to say that the fact that lvnet sets WEP successfully doesn't say that it's possible to set WEP successfully using iwconfig. Is this just an odd coincidence, and (OK, I admit it) my incompetence with iwconfig? Has anyone successfully gotten WEP to work with the USB adaptors using iwconfig? If so, could you publish your magic? I haven't done an exhaustive search of the archives, but I've spent several hours browsing, and if anyone's posted a recipe recently, I've missed it. Thanks, Jim Snyder jhs-/9LpXTI/t6JWk0Htik3J/[email protected]