Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 47567 Details for
Bug 76601
Wireless setup fails when key contains spaces
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
allows whitespace in essid keys and fixes iwconfig_get_essid_var error
iwconfig.patch (text/plain), 1.21 KB, created by
Roy Marples (RETIRED)
on 2005-01-04 03:43:28 UTC
(
hide
)
Description:
allows whitespace in essid keys and fixes iwconfig_get_essid_var error
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2005-01-04 03:43:28 UTC
Size:
1.21 KB
patch
obsolete
>--- /lib/rcscripts/net.modules.d/iwconfig >+++ /lib/rcscripts/net.modules.d/iwconfig >@@ -200,6 +200,7 @@ > return 1 > fi > dessid=${ESSID//\\\\/\\\\} >+ ESSIDVAR=${ESSID//[![:word:]]/_} > > # We only change the mode if it's not the same > local cur_mode=$( iwconfig_get_mode ${iface} ) >@@ -212,9 +213,8 @@ > fi > > key=$( iwconfig_get_wep_key ) >- e=$( iwconfig ${iface} key ${key} 2>&1 ) >+ e=$( eval "iwconfig ${iface} key ${key} 2>&1" ) > if [[ -n ${e} && ${key} != off ]]; then >- e=$( get_essid_var ${essid} ) > ewarn "${iface} does not support setting keys" > ewarn "or the parameter \"mac_key_${ESSIDVAR}\" or \"key_${ESSIDVAR}\" is incorrect" > fi >@@ -335,11 +335,10 @@ > key="off" > vewarn "\"${dessid}\" is not WEP enabled - ignoring setting" > fi >- e=$( iwconfig ${iface} key ${key} 2>&1 ) >+ e=$( eval "iwconfig ${iface} key ${key} 2>&1" ) > if [[ -n ${e} && ${key} != off ]]; then >- e=$( iwconfig_get_essid_var ${essid} ) > ewarn "${iface} does not support setting keys" >- ewarn "or the parameter \"mac_key_${e}\" or \"key_${e}\" is incorrect" >+ ewarn "or the parameter \"mac_key_${ESSIDVAR}\" or \"key_${ESSIDVAR}\" is incorrect" > return 1 > fi > [[ ${key} != off ]] && w=$( iwconfig_get_wep_status ${iface} )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 76601
: 47567