Since a few days, it's almost impossible to use ipw2200 with WPA encryption in gentoo. I use AES (CCMP) encryption and each time I get the following message when net.eth1 is started: starting wpa_supplicant on eth1 starting wpa_cli on eth1 Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory However, If I run the command wpa_cli -i eth1 reassociate, the association to the network occurs almost instantly. I just then have to run dhclient manually to get an IP adress. The problem with such a method is that the net.eth1 is not considered as started, so dependent services like samba can't be started. For your information, I use wpa_supplicant 0.5.7, ieee80211 version 1.2.16 and ipw2200 version 1.2.1. Does anybody knows any solution to this very annoying problem ? Thanks in advance for your help, Reproducible: Always Steps to Reproduce: 1. Start the computer 2. Wait until net.eth1 get started 3. Actual Results: The wireless connection doesn't work although the access point is available.
Created attachment 119638 [details] Output of emerge --info
Created attachment 119639 [details] network configuration file
Created attachment 119641 [details] wpasupplicant configuration file
Have you tried using in kernel ieee80211 and ipw2200?
I use indeed the ieee80211 and ipw2200 provided in the standard kernel. I don't know why but since today, the problem occurs less frequently (and I didn't change anything in my configuration). I would however like to know what is the missing file or directory the error message is talking about.
Oh that's easy. wpa_supplicant creates a socket file which tells wpa_cli how to connect to it. It's this file that is missing. As to why it's vanishing I have no idea. Try appending -dd to wpa_supplicant_eth1= in /etc/conf.d/net and when it fails attach the relevant parts of your log.
Thanks for your help. I guess the file which you refer to is either /var/run/wpa_supplicant/eth1= or /var/run/wpa_supplicant-eth1.pid. I have added -dd as parameter in the /etc/conf.d/net file but I can't find any trace of wpa_supplicant output in the system logs. Where are these supposed to be saved ?
It's /var/run/wpa_supplicant/eth1 It maybe easier to stop net.eth1 and then start wpa_supplicant manually like so wpa_supplicant -dd -W -B -i eth1 -P "/var/run/wpa_supplicant-eth1.pid" And then connecting with wpa_cli like so. /bin/wpa_cli -a /etc/wpa_supplicant/wpa_cli.sh -i eth1 -P var/run/wpa_cli-eth1.pid" -B
You mean that I should disable net.eth1 at startup and connect manually like you have explained ? I am afraid I won't learn anything from that. I have already tried to run wpa_supplicant and wpa_cli manually when it fails during startup and as I have already said, it always succeed. It's during startup that there is a problem.
I have again encountered the problem and I have found something which looks very strange. When wpa_cli complains about the missing file or directory, the file "/var/run/wpa_supplicant/eth1" exists. So it's not missing but it seems wpa_cli can't use it.
Does it work if you remove the line "ctrl_interface=/var/run/wpa_supplicant" from your config?
It has worked once but I wouldn't say yet that it will work for sure. I don't know why but without any change, this problem occurs almost no more. Let's hope it will continue to work correctly.
I think this is fixed in wpa_supplicant-0.5.8 or 0.6.0