[pkg-wpa-devel] Non-roaming usage of the daemon: Radio kill switch

Reinhard Tartler siretart at tauware.de
Fri Apr 7 17:38:03 UTC 2006


On Fri, Apr 07, 2006 at 07:10:48PM +0200, Felix Homann wrote:
> > IOW: I don't understand your problem.
> 
> OK, let me clarify:
> 
> Using the daemon together with ifupdown I can press the WLAN-button on my 
> notebook to switch the wlan interface on and off. When I switch the radio on, 
> i.e. when I press the WLAN-button,  the notebook connects to the AP.
> 
> This simply doesn't work without the daemon (at least I don't know how), since 
> after switching the radio off wpa_supplicant stops. Switching the radio on 
> again wpa_supplicant won't start again, ifupdown can't see a connection to 
> the AP and hence the interface won't get up. Instead I have to manually ifup 
> the interface.

no, if you switch off the radio with the WLAN-button, wpasupplicant is
not stopped. Instead, your action script (if any) will be called with
parameter DISCONNECTED, where you can do any stuff your want. When you
switch your radio back on, wpasupplicant will connect to your location,
and call the action script again, this time with parameter CONNECTED,
where you can again do any stuff you want. 

You don't have to manually ifup or ifdown the interface, just turn of
the radio and don't touch ifupdown at all.

which point did I miss here?

Gruesse,
	Reinhard



More information about the Pkg-wpa-devel mailing list