soundman n00b


Joined: 19 Feb 2004 Posts: 3 Location: Tennessee, USA
|
Posted: Thu Dec 16, 2004 3:35 am Post subject: can't use WEP'd APs with net.wlan0 script |
|
|
Hey all, I have a problem that's got me a little bit confused here. I have a Dell Inspiron 5100 notebook with the internal Truemobile 1300/50 11b/g wireless card (Broadcom 4306 chipset). Just finished my first install of Gentoo on this system, and for reasons I have not been able to identify, I can't get the net.wlan0 script to connect to my home AP that I have WEP-enabled. It works fine for any AP that is not WEP-enabled, but if I try it on my home AP, I get this:
Code: |
shadowfax soundman # /etc/init.d/net.wlan0 start
* Starting wlan0
* Running preup function
* Configuring wireless network for wlan0
* Trying to force preferred in case they are hidden
/lib/rcscripts/net.modules.d/iwconfig: line 343: iwconfig_get_essid_var: command not found
* wlan0 does not support setting keys
* or the parameter "mac_key_" or "key_" is incorrect
* Failed to associate with any preferred access points on wlan0
* Couldn't find any access points on wlan0
* Failed to configure wireless for wlan0
|
I'm using baselayout-1.11.7-r2, wireless-tools-28_pre3, ndiswrapper-0.12 with the bcmwl5a driver from Dell (I have also tried the vanilla bcmwl5 driver, same problem); my AP is broadcasting SSID, and using 128-bit open WEP. I have also tried the latest version marked "stable" of baselayout, wireless-tools, and ndiswrapper instead of the ~ versions. Now, the above message says wlan0 does not support setting keys, but this seems a little weird as the dmesg output when I load the ndiswrapper driver is this:
Code: |
ndiswrapper version 0.12 loaded (preempt=yes,smp=no)
ACPI: PCI interrupt 0000:02:02.0[A] -> GSI 11 (level, low) -> IRQ 11
ndiswrapper: using irq 11
wlan0: ndiswrapper ethernet device XX:XX:XX:XX:XX:XX using driver bcmwl5a
wlan0: encryption modes supported: WEP, WPA with TKIP, WPA with AES/CCMP
ndiswrapper: driver bcmwl5a (Broadcom,04/09/2004, 3.40.69.0) added
wlan0: no IPv6 routers present
|
and also due to the fact that I can do
Code: |
iwconfig wlan0 key open 0011-2233-4455-6677-8899-0011-22 essid MyNet
|
and it sees and attaches to my AP just fine, and bringing the wlan0 device up manually gives me an IP and I'm off to the races. The card does support scanning, I can do iwlist scan wlan0 and see all the available broadcasting networks, including the WEP'd ones. Neither dmesg nor /var/log/messages shows anything obtuse or offensive when I run the init script other than what I posted above.
Here is my /etc/conf.d/wireless file (the important parts, anyway):
Code: |
mode_wlan0="managed"
key_MyNet="enc open 9988-1100-3322-5544-7766-9988-00"
mac_key_000111222333="enc open 9988-1100-3322-5544-7766-9988-00"
config_MyNet=( "dhcp" )
mac_config_000111222333=( "dhcp" )
dhcpcd_MyNet="-t 5"
mac_dhcpcd_000111222333="-t 5"
fallback_ESSID=( "MyNet" )
preferred_aps=( "MyNet" )
preferred_aps_wlan0=( "MyNet" )
associate_order="forcepreferredonly"
blacklist_aps=( "NeighborNonWEPNet" )
|
I have tried multiple variations of the key_ESSID and mac_key_xxx lines (putting enc open at the end, using the ASCII string code 's:foobar' instead of hex code, etc), and of the preferred_aps/blacklist_aps/associate_order lines. For associate_order I have tried any, , preferredonly, forcepreferred, forcepreferredonly, forceany - all with the same result.
I'm not entirely sure if this will be of any use, but here's what iwpriv spits out, too:
Code: |
wlan0 Available private ioctl :
setwpa (8BE1) : set 1 int & get 0
setkey (8BE2) : set 1 int & get 0
associate (8BE3) : set 1 int & get 0
disassociate (8BE4) : set 1 int & get 0
drop_unencrypted (8BE5) : set 1 int & get 0
countermeaures (8BE6) : set 1 int & get 0
deauthenticate (8BE7) : set 1 int & get 0
auth_alg (8BE8) : set 1 int & get 0
ndis_reset (8BF0) : set 0 & get 0
power_profile (8BF1) : set 1 int & get 0
|
This isn't a complete showstopper as I can do it manually, but it is a bit of a pain in the @$$ as this is the wireless network I use most. Any ideas/comments/suggestions would be most appreciated. This is my first attempt at wireless on Linux, so I could very well be leaving something out. Thanks in advance!
soundman _________________ Workstation: Dual Athlon MP 2000+ with 1GB RAM, 80GB 7.2k-rpm HDD, GF FX-5200, Audigy
Notebook: Dell Inspiron 5100 P4 2.8 w/ 512MB RAM, iBook G3/500 w/384MB
Gen. purpose servers: Athlon K6-2 450 w/ 192MB; P-II 400 w/ 128MB RAM, P-II 266 w/ 96MB |
|