Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't use WEP'd APs with net.wlan0 script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
soundman
n00b
n00b


Joined: 19 Feb 2004
Posts: 3
Location: Tennessee, USA

PostPosted: Thu Dec 16, 2004 3:35 am    Post subject: can't use WEP'd APs with net.wlan0 script Reply with quote

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
Back to top
View user's profile Send private message
Antti_1
n00b
n00b


Joined: 15 Mar 2005
Posts: 2

PostPosted: Tue Mar 15, 2005 6:10 pm    Post subject: Reply with quote

My situation: net.wlan0 script enabled WEP in Baselayout 1.11.9-r1 but now with Baselayout 1.11.10-r1 I get
Code:

tux # /etc/init.d/net.wlan0 start
 * Starting wlan0
 *    Configuring wireless network for wlan0
 *    wlan0 does not support setting keys
 *    or the parameter "mac_key_antti" or "key_antti" is incorrect
 *       wlan0 connected to "antti" at 00:00:00:00:00:00
 *       in ad-hoc mode (WEP disabled)
 *    Bringing up wlan0
 *       192.168.0.1

related wireless config file line:
Code:

key_antti="s:xxxxxxxxxxxxxx enc open"

But then I can do it manually:
Code:

# iwconfig wlan0 key s:xxxxxxxxxxx enc open
# iwconfig wlan0
wlan0     IEEE 802.11g  ESSID:"antti"  Nickname:"antti"
          Mode:Ad-Hoc  Frequency:2.462 GHz  Cell: A6:67:BE:59:91:6F   
          Bit Rate=54 Mb/s   Tx-Power:24 dBm   
          RTS thr=2347 B   Fragment thr=2346 B   
          Encryption key:xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xx   Security mode:open
          Power Management:off
          Link Quality:100/100  Signal level:-57 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:69941   Missed beacon:0


I'm running stable versions of packages except
Code:

tux portage # cat package.keywords
net-wireless/ndiswrapper ~x86
sys-apps/baselayout ~x86
app-shells/bash ~x86
sys-libs/readline ~x86
sys-apps/sysvinit ~x86

Weird :?
Back to top
View user's profile Send private message
Antti_1
n00b
n00b


Joined: 15 Mar 2005
Posts: 2

PostPosted: Tue Mar 15, 2005 8:44 pm    Post subject: Reply with quote

Baselayout 1.11.10-r2 solved the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum