Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102712 - wpa_supplicant may not start correctly
Summary: wpa_supplicant may not start correctly
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Henrik Brix Andersen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-16 07:21 UTC by Stefano
Modified: 2005-10-17 02:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano 2005-08-16 07:21:32 UTC
I had problems starting wpa_supplicant through the /etc/init.d/net.* scripts,
while it started perfectly if ran with /etc/init.d/wpa_supplicant.

In particular, the /lib/rcscripts/net.modules.d/wpa_supplicant exited with 
 *   wpa_supplicant has exited unexpectedly                               [ !! ]

When commenting out the related check, i.e.

        if ! wpa_cli -i${iface} status &>/dev/null ; then
                eend 1 "wpa_supplicant has exited unexpectedly"
                return 1
        fi

the script more or less worked, printing out the error:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

After some debugging with lu_zero, I found out that a simple "sleep 1" before
the check above fixes the problem. However I'm reporting it for a more permanent
fix if any ;)

Reproducible: Always
Steps to Reproduce:
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-08-17 04:06:49 UTC
I think that wpa_supplicant should not return until the socket has been created
if there is no error starting up. I dislike sleeps - how long should we sleep
for? Ditto loops that check for socket.
Comment 2 t35t0r 2005-08-30 22:19:48 UTC
is this why it won't start for 2.6.13?
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-09-13 04:55:02 UTC
It starts just fine on my gentoo-sources-2.6.13 on amd64
Comment 4 Henrik Brix Andersen 2005-10-17 02:16:37 UTC
Closing as UPSTREAM.