View previous topic :: View next topic |
Author |
Message |
Peace Frog Apprentice
Joined: 12 Dec 2006 Posts: 185
|
Posted: Tue Dec 11, 2007 5:12 pm Post subject: wpa_gui:Failed to open control connection to wpa_supplicant. |
|
|
Alright, this had been plaguing me since I got it working originally, but wpa_cli/wpa_gui will more often than not refuse to connect to wpa_supplicant. wpa_cli tends to work 50/50, unless I force a config-reload, then it craps out on me. I can fix it with
Code: |
/etc/init.d/net.wlan0 stop
/etc/init.d/net.wlan0 start
|
wpa_gui isn't nearly that predictable. It works whenever it pleases, and it rarely pleases.
Both times in terminal I get this error message:
Code: | Failed to open control connection to wpa_supplicant. |
Unfortunately I'm stuck with NDISwrapper for now.
/etc/conf.d/net
Code: |
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
#modules:
modules=( "ifconfig" )
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0=( "-Dwext" )
wpa_timeout_wlan0=60
#eth0 configuration:
config_eth0=( "dhcpcd" )
config_eth0=( "192.168.1.10/24" )
routes_eth0=( "default via 192.168.1.1" )
#wlan0
config_wlan0=( "dhcpcd" )
#config_wlan0=( "192.168.1.10/24" )
#routes_wlan0=( "default via 192.168.1.1" )
wpa_supplicant_wlan0="-Dwext -c /etc/wpa_supplicant/wpa_supplicant.conf"
|
/etc/wpa_supplicant/wpa_supplicant.conf
Code: |
# The below line not be changed otherwise we refuse to work
#ctrl_interface=/var/run/wpa_supplicant
# Let wpa_supplicant take care of scanning and AP selection
ap_scan=1
#WPA-NETWORK
#network={
# ssid="WPA_SSID"
# proto=WPA
# key_mgmt=WPA-EAP
# psk=""
# pairwise=CCMP TKIP
# priority=1
#}
#WEP-NETWORK
network={
ssid="WEP_SSID"
scan_ssid=1
key_mgmt=NONE
wep_key0=WEP-KEY
wep_tx_keyidx=0
priority=3
}
#NEWMANL
network={
ssid="NEWMANL"
key_mgmt=NONE
priority=5
}
# This is a network block that connects to any unsecured access point.
# We give it a low priority so any defined blocks are preferred.
#BOO CONNECTING TO UNSECURED AP's
#network={
# key_mgmt=NONE
# priority=-9999999
#}
|
Any ideas?
-Thanks |
|
Back to top |
|
|
Dagger Retired Dev
Joined: 11 Jun 2003 Posts: 765 Location: UK
|
Posted: Tue Dec 11, 2007 7:29 pm Post subject: |
|
|
my old config (before I switched to NetworkManager) which worked 100/100
Code: |
# Wireless network
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-g -Dwext" # For generic wireless
associate_timeout_eth0=30
config_ESSID=( "MYsecredESSID" )
dhcpcd_ESSID="-t 5"
config_wlan0=( "dhcp" )
|
Code: |
network={
ssid="MysecretSSID"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk=3924a30eb311c54650cf9e31ac2caead3f8297c90424a0a486a60d8b9498a889b
priority=2
}
|
_________________ 95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license. |
|
Back to top |
|
|
Poe Bodhisattva
Joined: 03 Apr 2004 Posts: 2155 Location: Mysłowice/Lublin, Poland
|
|
Back to top |
|
|
|