[pkg-wpa-devel] Bug#538001: wpa_supplicant not stopped with with allow-hotplug and roaming mode

Kel Modderman kel at otaku42.de
Wed Jul 22 15:44:25 UTC 2009


On Wednesday 22 July 2009 21:28:04 Joachim Breitner wrote:
> Package: wpasupplicant
> Version: 0.6.9-3
> Severity: normal
> 
> Hi,
> 
> I’m running wpa_supplicant on my FreeRunner in roaming mode, and with
> allow-hotplug to start it. It starts fine, but when then the WLAN
> interface is powered off and disappears (and udev/hotplug/something
> calls ifdown eth0), wpa_supplicant is still running.
> 
> This is not surprising, given that wpa_action take over ifup/ifdown, and
> ifdown does not work any more, but it would be nice if this could be
> improved. Perferably by making ifdown eth0 work as expected. Have you
> considered setting an environment variable when calling ifdown from
> wpa_action, to be able to distinguish later?
> 
> Greetings from Caceres,
> Joachim


ifdown works when the interface is connected, some logical interface is
configured and ifupdown knows to tear it down when ifdown is called
interactively and not by the user.

If the interface is just roaming, and then gets removed from the system,
that would require a hotplug script to do something like:
`wpa_action $IFACE check && wpa_action $IFACE down' or so I guess.

Thanks, Kel.





More information about the Pkg-wpa-devel mailing list