Re: problem with wpa_supplicant



On Tue, 2006-03-07 at 17:49 +0100, Carsten Luedtke wrote:
> Am Dienstag, den 07.03.2006, 09:37 -0500 schrieb Dan Williams:
> 
> > The sockets should be getting created here:
> > 
> > #define WPA_SUPPLICANT_GLOBAL_SOCKET	LOCALSTATEDIR"/run/wpa_supplicant-global"
> > #define WPA_SUPPLICANT_CONTROL_SOCKET	LOCALSTATEDIR"/run/wpa_supplicant"
> Yes it is.
> > Do you have a /var/run/wpa_supplicant-global and some files
> > in /var/run/wpa_supplicant/ ?  
> No i haven't.
> > Also, you shouldn't be running
> > wpa_supplicant normally either, since NM spawns its own copy.
> 
> Ohh I didn't know that it spawns it's own copy. But even if no extra
> wpa_supplicant is started i get this error. And it looks like there
> wasn't a copy of wpa_supplicant spawned. The sockets aren't created 
> too. Can I create them by hand for testing (if yes, how?)? 

NM doesn't attach to an existing supplicant, because it doesn't know
what arguments that existing supplicant was launched with, and right now
we don't really want to have to deal with tearing down wpa_supplicant
state and building it all back up again.  We'll likely want to do that
for 0.7 though.

> If I start wpa_supplicant manually, a socket "ath0" will be created
> in /var/run/wpa_supplicant/ but there isn't a global one by default.

You should be getting these sockets created by NetworkManager.

Also, do you have a /var/run/NetworkManager/ directory?  That needs to
be there too, since that's the location of the local socket that NM uses
to connect to wpa_supplicant's interface control sockets.

Dan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]