Opened 13 years ago
Closed 12 years ago
#7840 closed bug (fixed)
Unable to connect to WEP-protected WLAN
Reported by: | fishpond | Owned by: | mmlr |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Servers/net_server | Version: | R1/Development |
Keywords: | WEP, net_server, ifconfig, iprowifi2200 | Cc: | |
Blocked By: | Blocking: | ||
Platform: | x86 |
Description
Neither command line (ifconfig [device] join [SSID] [PW]) nor entries in /boot/common/settings/network/wireless_networks establish a usable wireless connection on my old Acer Travelmate 8000 with Intel Pro 2200 Wifi adapter.
Adding "authentication wep" into the wireless_networks file, syslog finally tells me a connection is made. Still it's not usable. DHCP will not get through and on static setup, ping'ing the gateway just serves to put its address into state "reject" in the arp tables.
There's a couple of things that struck me in NetServer::_JoinNetwork:
- cipher is set to B_NETWORK_CIPHER_WEP_40 even for 13-character passwords. That value seems to never get used, however.
- WEP-keys 0 through 3 and an additional empty one are all written to key 0. There's no way to currently specify more than one, so empty strings are overwriting the first and valid one.
- No AuthMode is set. Should be IEEE80211_AUTH_SHARED, as long as not part of the settings
Changing the above, I now have a very stable connection, but I guess this may affect other users with other hardware too.
Attachments (1)
Change History (8)
by , 13 years ago
Attachment: | NetServer.patch added |
---|
comment:1 by , 13 years ago
patch: | 0 → 1 |
---|
follow-up: 3 comment:2 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → in-progress |
I'm reworking this part as part of adding the wpa_supplicant. I've noticed the (probably accidental) reset of the keys as well, but I'm not sure yet whether it is more sensible to let the wpa_supplicant handle WEP as well or keep it the way it is right now. In either case I'll fix it in the next couple of days.
comment:3 by , 13 years ago
Replying to mmlr: IMHO it definitely makes sense to branch encryption related logic into their own modules or at least separate methods. The amount of conditions are getting complex and will be more so once hex and multiple keys are supported. Pluggable / supplicant is even better.
Great to see WPA coming along, all the best on that one.
comment:4 by , 13 years ago
Component: | Network & Internet/Wireless → Servers/net_server |
---|
comment:5 by , 12 years ago
Both WEP and WPA do work with the supplicant, thank's for the effort. Sorry for leaving this one open for so long.
comment:6 by , 12 years ago
patch: | 1 → 0 |
---|
comment:7 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
Thanks for the feedback! Closing.
Changes applied - may not be ideal but work