key_ESSID=s:asdfasdfasdfasdf If ESSID contains a hyphen (e.g. network-1), the startup errors out.
key_ESSID='s:asdfasdfasdfasdf' Notice the single quotes Re-open if you disagree
The hyphen is is the ESSID portion, not the data portion. I've tried single quotes, double quotes, and even escaped the hyphen using the \ character. 'key_ornl-1' = s:asdfasdf "key_ornl-1" = s:asdfasdf key_ornl\-1 = s:asdfasdf
Sorry, I mis-understood key_ornl_1='s:asdfasdf' This is documented here http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap3
The ESSID where I work has a hyphen in the middle, like network-1. It's not an underscore, like network_1. The documentation states that some characters must be escaped with the \ character, and I had tried that, as documented in Comment #2. I have also tried combinations like "key_network\-1"="s:asdfasdfasdf". I can't find anything that works.
Re read the docs - but no, allow me to summarize REPLACE ANY CHARACTER NOT IN A-Z a-z 0-9 WITH A _ FOR VARIABLE NAMES The hyphen is used there to save me from typing ABCDEF.... etc hyphens should be changed to underscores too. key_network_1="s:asdfasdfasdf"
We have two wireless nets that coexist. One is internal, named network-1, and uses WEP. The other is open to visitors, named network-visitor, and doesn't use WEP. I have tried the following: First, manual commands: iwconfig eth1 essid "network-1" nickname "network-1" key "s:asdfasdfasdf" ifconfig eth1 up /sbin/dhcpcd -h karabou -t 10 -N eth1 This works fine. Now try automatic startup. I have network-1 in preferred_aps, like: preferred_aps=("networkwpa" "network-1" "network-2") and the key for network-1 is defined like: key_network_1="s:asdfasdfasdf" * Starting eth1 * Configuring wireless network for eth1 * eth1 connected to "network-visitor" at 23:1B:34:9A:53:11 * in managed mode (WEP disabled) * Bringing up eth1 * dhcp * Running dhcpcd ... [ ok ] * eth1 received address 10.1.94.63 Now try automatic startup with blacklist of network-visitor, like: blacklist_aps=("network-visitor") * Configuring wireless network for eth1 * Couldn't associate with any access points on eth1 * Failed to configure wireless for eth1 [ !! ] So it appears that the use of key_network_1="s:asdfasdfasdf" doesn't work. Is there something else I may have done wrong? There are no lines uncommented in /etc/conf.d/wireless except for the three mentioned above. There are these lines in /etc/conf.d/net: iface_eth1="dhcp" dhcpcd_eth1="-t 10 -N" modules=("iwconfig") Are there things I can do to attempt to debug the problem? I enabled NET_DEBUG, but that didn't do anything interesting: NET_DEBUG=1;/etc/init.d/net.eth1 start
(In reply to comment #6) > So it appears that the use of key_network_1="s:asdfasdfasdf" doesn't work. No, what's really happening is that your card cannot find network-1 for whatever reason. Is it broadcasting it's ESSID? Are you out of range? Your card appears to support scanning, so post the output of the following iwconfig eth1 essid any iwlist eth1 scan Other things to try are adding RC_VERBOSE="yes" to /etc/conf.d/net for a more detailed output of whats going on and if all else fails add associate_order="forcepreferred" to /etc/conf.d/net or /etc/conf.d/wireless to try and force a connect to those AP's listed in order BTW, if the wpanetwork really is wpa only, remove it from your preferred list as iwconfig cannot do wpa.
Need more information