Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74802 - wireless doesn't set encryption key
Summary: wireless doesn't set encryption key
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2004-12-17 18:25 UTC by Steven Walter
Modified: 2005-01-31 00:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fixes key for ad-hoc/master modes (iwconfig.patch,783 bytes, patch)
2004-12-18 05:29 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Walter 2004-12-17 18:25:19 UTC
When running net.wlan0 start, the wireless key never gets set.  The problem appears to be in /lib/rcscripts/net.modules.d/iwconfig on line 162.  This line is:

    [[ -z ${key} ]] && eval key=\"\${key_${ESSIDVAR}\}\"

Changing the last part to ${ESSID} fixes the problem.  I'm unsure if this is the correct fix, but after making only this change net.wlan0 start sets the encryption key to the value specified in /etc/conf.d/wireless

Reproducible: Always
Steps to Reproduce:
1.Configure a key in /etc/conf.d/wireless
2.Run /etc/init.d/net.wlan0 start


Actual Results:  
WEP is not enabled

Expected Results:  
WEP should be enabled with the key in the config file.

The problem appears to be in /lib/rcscripts/net.modules.d/iwconfig on line 162.
 This line is:

    [[ -z ${key} ]] && eval key=\"\${key_${ESSIDVAR}\}\"

Changing the last part to ${ESSID} fixes the problem.  I'm unsure if this is the
correct fix, but after making only this change net.wlan0 start sets the
encryption key to the value specified in /etc/conf.d/wireless
Comment 1 Roy Marples (RETIRED) gentoo-dev 2004-12-18 05:29:36 UTC
Created attachment 46264 [details, diff]
fixes key for ad-hoc/master modes

If you're connecting in ad-hoc or master mode, here is a patch to fix it.

Could you test and report back please?
Comment 2 Steven Walter 2004-12-18 16:23:51 UTC
The patch fixes the problem for me
Comment 3 Roy Marples (RETIRED) gentoo-dev 2004-12-19 07:27:54 UTC
Fixed in CVS - will be in baselayout-1.11.9
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-01-31 00:00:34 UTC
Fixed by baselayout-1.11.9