Opened 3 years ago

Closed 15 months 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:
Has a Patch: no 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)

NetServer.patch (3.0 KB) - added by fishpond 3 years ago.
Changes applied - may not be ideal but work

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by fishpond

Changes applied - may not be ideal but work

comment:1 Changed 3 years ago by fishpond

  • Has a Patch set

comment:2 follow-up: Changed 3 years ago by mmlr

  • Owner changed from axeld to mmlr
  • Status changed from new to 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 in reply to: ↑ 2 Changed 3 years ago by fishpond

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 Changed 2 years ago by diver

  • Component changed from Network & Internet/Wireless to Servers/net_server

comment:5 Changed 15 months ago by fishpond

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 Changed 15 months ago by diver

  • Has a Patch unset

comment:7 Changed 15 months ago by diver

  • Resolution set to fixed
  • Status changed from in-progress to closed

Thanks for the feedback! Closing.

Note: See TracTickets for help on using tickets.