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

Felix Homann fexpop at onlinehome.de
Sat Apr 8 14:12:57 UTC 2006


On Friday 07 April 2006 19:38, Reinhard Tartler wrote:
> 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.

I actually don't know what I want any action script to do in order to get the 
old behaviour back. The documentation doesn't tell me.

>
> 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?

It just doesn't work as expected!

(First, let me correct myself, unfortunately I've mixed up some things: I used 
to use wpa_supplicant in daemon mode and *ifplugd* for watching the 
interface.)

In the meantime I've tried the suggested action 
script "wpacli-action-dhclient" from wpasupplicant 0.5.2-2. 

At first sight it didn't seem to work at all: The documentation doesn't tell 
that you have to make the script executable.

At second sight it seemed to essentially reproduce the old behaviour, but it 
doesn't:

In order to switch the network on and off by pressing the wlan button the 
interface has to get up at least once. So adding "auto wlan" 
to /etc/network/interfaces should work. But if the radio is switched off 
while booting the whole boot process hangs for over a minute before wpa_cli 
(or so) times out!

I've returned to the "deprecated" daemon/ifplugd solution. It has a big 
advantage over the new "solution": It works!

Regards,

Felix






More information about the Pkg-wpa-devel mailing list