You are not logged in.
For some reason, netcfg's "wpa-config" option doesn't seem to work.
Using this profile:
CONNECTION="wireless"
DESCRIPTION="Wireless at WSU"
INTERFACE="wlan0"
SECURITY="wpa-config"
WPA_CONF="/etc/network.d/wpa-files/wsu-wpa.conf"
WPA_OPTS="-Dwext"
ESSID="WSU Wireless"
QUIRKS=(prescan wpaessid)
IP="dhcp"
and this config file for wpa_supplicant:
#Manage Access Points instead of the driver
ap_scan=1
#Our Netowrk, Defined.
#We are only using wpasupplicant to manage roaming.
network={
ssid="WSU Wireless"
key_mgmt=NONE
scan_ssid=1
}
I get this error output from running netcfg:
root ~ # netcfg wsu
:: wsu up Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
- Authentication/association failed
Looking at the shell script that runs wpa_supplicant, I see it runs a command of the following format to start wpa_supplicant:
wpa_supplicant -B -P/var/run/wpa_supplicant_${INTERFACE}.pid -i"${INTERFACE}" -c"$WPA_CONF" $WPA_OPTS
The strange thing is that if I run wpa_supplicant manually with the same arguments, it works. In fact, doing that, I am connected and writing this post at this very moment
root ~ #wpa_supplicant -B -P/var/run/wpa_supplicant_wlan0.pid -iwlan0 -c/etc/network.d/wpa-files/wsu-wpa.conf -Dwext
I'm using an Intel 3945ABG with the iwlwifi driver.
lsmod | grep iwl:
iwl3945 89020 0
iwlcore 107100 1 iwl3945
mac80211 155532 2 iwl3945,iwlcore
led_class 4000 2 iwl3945,iwlcore
lspci | net -c
Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
What am I doing wrong here?
Last edited by alexandrite (2009-10-21 14:39:14)
Offline
Also since I'll probably need to forestall anyone telling me to just use wireless extensions if the network is unprotected, let me say that the same problem so many others are having on this forum with these wifi cards necessitates a means of automatically reconnecting when I invevitably lose my association.
Offline
Chuck the following two lines in your wpa_supplicant configuration at the top, not inside the network block. This allows netcfg to communicate with wpa_supplicant.
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
In the upcoming netcfg 2.5, wpa_supplicant is used for SECURITY="none" and "wep" so you can revert to the normal configuration and retain roaming. So the following configuration would have the same effect as what you are doing now:
CONNECTION="wireless"
DESCRIPTION="Wireless at WSU"
INTERFACE="wlan0"
SECURITY="none"
ESSID="WSU Wireless"
IP="dhcp"
As a side note, in 2.5 you can also embed wpa_supplicant configurations in the netcfg profile.
James
Last edited by iphitus (2009-10-20 23:49:33)
Offline
Aha. Now I see it in the script too >.< Thanks for the help; everything's working now.
Those all seem like good improvements to netcfg; I'll be waiting for it to hit testing
Offline