Summary: | erroneous parsing of /etc/conf.d/wireless breaks processing of ESSIDs with "." (possibly other chars?) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paulo Lício de Geus <paulo> |
Component: | [OLD] baselayout | Assignee: | Roy Marples (RETIRED) <uberlord> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | vapier |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Paulo Lício de Geus
2005-08-03 19:59:07 UTC
you didnt convert the '.' to '_' Sorry, I don't follow you. I can't see why I should change an essid name to use "_" instead of ".". Your comment suggests that this limitation (using "." not allowed) is somehow documented in iwconfig's man page or in the /etc/conf.d/wireless file, but it isn't. I've been using essid names with dots for quite sometime, and I also collected a few examples on the net. No luck finding the right standard document to see if there is such a limitation, however. So if you don't want to fix it, I suggest you to warn potential users what sort of restrictions you impose on the essid names. (In reply to comment #2) > Sorry, I don't follow you. I can't see why I should change an essid name to use > "_" instead of ".". Your comment suggests that this limitation (using "." not > allowed) I do agree with you Paulo. My /etc/conf.d/wireless contains lines such as key_Rm3Wi-Fi="s:secret" in fact bash shell does not accept neither hyphens (-) in variables. You can test just writing it down in a shell. Unfortunately this wasn't documented and I had to look at /lib/rcscripts/net.modules.d/iwconfig in order to find the source of the problem... 889 iwconfig_get_wep_key() { 890 local mac=${1} key 891 eval key=\"\${mac_key_${mac//:/}\}\" 892 [[ -z ${key} ]] && eval key=\"\${key_${ESSIDVAR}\}\" <- TA-DA!!! :D 893 key=${key:-"off"} 894 echo ${key} 895 } isn't it possbile to use some kind of essid="Rm3Wi-Fi" variable instead? PS: it is also clear that I cannot change essid of my university, neither work location in order not to use hyphens or dots in a essids' :) it should be pretty obvious why you need to use _ and not . or - ... it clearly doesnt work otherwise :P read the documentation at /etc/conf.d/wireless.example for more info |