Bug 135235 - ifup-wireless multiple WEP key support broke open vs restricted WEP
ifup-wireless multiple WEP key support broke open vs restricted WEP
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2004-10-11 02:21 EDT by Dax Kelson
Modified: 2014-03-16 22:49 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-11 10:36:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dax Kelson 2004-10-11 02:21:23 EDT
Description of problem:

When the patch for multiple WEP keys in ifup-wireless was added,
support for specifying "open" vs "restricted" WEP was broken (which
has worked for many years).

WEP can work in two modes, 'open' or 'restricted'. Despite the name,
'open' is more secure. Many APs only allow 'open'. Most Linux wireless
drivers default to 'restricted'. :(

For many years you could specify what type of WEP you wanted by having
your ifcfg-ethX or keys-ethX have the line:

KEY="open your-key-goes-here"
KEY="restricted your-key-goes-here"

When support for multiple WEP keys was added (bug: 127340, bug:
127957) the logic was changed in ifup-wireless and broke the
open/restricted handling for "KEY" (but ironically, not for KEY1,KEY2,

The fix is very simple, please add for FC3/RHEL4:

--- ifup-wireless.broken        2004-10-11 00:18:34.283463488 -0600
+++ ifup-wireless       2004-10-11 00:18:46.561596928 -0600
@@ -59,7 +59,7 @@
     [ -n "$KEY3" ] && iwconfig $DEVICE key [3] $KEY3
     [ -n "$KEY4" ] && iwconfig $DEVICE key [4] $KEY4
     [ -n "$DEFAULTKEY" ] && iwconfig $DEVICE key [${DEFAULTKEY}]
-    [ -n "$KEY" ] && iwconfig $DEVICE key "$KEY"
+    [ -n "$KEY" ] && iwconfig $DEVICE key $KEY
     iwconfig $DEVICE key off
Comment 1 Bill Nottingham 2004-10-11 10:36:47 EDT
Added in CVS, will be in future builds, thanks!

Note You need to log in before you can comment on or make changes to this bug.