Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 175887

Summary: wpa_supplicant - connection refused
Product: Gentoo Linux Reporter: Filbert <filbert>
Component: New packagesAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED INVALID    
Severity: normal CC: base-system
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Filbert 2007-04-24 17:11:22 UTC
In the script /lib/rcscripts/net/wpa_supplicant.sh i've found some mistakes which made the initscript net.ath0 (wifi) stop at boot time. curiously it didn't affect the functionality of net.ath0 when started manually.
the bugs are the following ones:

there are given corrupt options for wpa_cli (like two dashes which are not supportet by wpa_cli) at the place where the start-stop-daemon starts the wpa_cli.

the same is also true for the wpa_supplicant. the corrupt argument in this case is -W. however in my case this one wasn't fatal.

i'm using:
net-wireless/wpa_supplicant-0.5.7
sys-apps/baselayout-1.12.10-r3

Reproducible: Always
Comment 1 Filbert 2007-04-24 17:44:45 UTC
sorry, i was wrong about the mistakes for the wpa_cli. i thought that the start-stop-daemon syntax was mixed up.

what i've written about wpa_supplicant is still true.

however, i'm still analyzing the error 
"failed to connect to wpa_supplicant - wpa_ctrl_open: connection refused"
which is caused by wpa_cli. i'll report soon.
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2007-04-24 18:12:45 UTC
-W is a valid option for wpa_supplicant, I checked the sources.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-04-25 13:28:37 UTC
-W means "wait for wpa_cli to connect to us before we try and associate"

It's not documented though. The script itself is correct.
From the sounds of it. wpa_supplicant didn't launch correctly.
Comment 4 Filbert 2007-04-25 21:07:34 UTC
well, i think i got it.
i don't know what the problem exactly was/is but here's what i've done:
i edited the file /etc/conf.d/net. there i've added the argument -w (lower case) for wpa_supplicant when i installed gentoo a few years ago. i deleted it and now it works. let's see for how long...

i made also some interesting observations. when i began to to search for the problem the first thing i did was adding the -dd option to /etc/conf.d/net for wpa_supplicant. regardless no debug information appeared. i didn't wonder because i thought this was just a side effect of the daemonizing. since i got rid of the -w option i get a lot of debug output and wpa_supplicant daemonizes as well.

thanks for support
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-04-26 06:34:04 UTC
Closing as repoter solved issue.