I happen to have a pretty similar problem with ifupdown and hostapd on Ubuntu 11.04. I've tracked down the source of the problem as being the following:
When you call ifdown on some interface that's of type "static" (this may also apply to other types, depending on the configuration mechanisms), you have declared at least an "address" and a "netmask". This means that as an "up" action, ifup will call ifconfig on this interface to set its address/netmask and put it up, and as a "down" action, ifdown will call ifconfig on this interface to set it down. When you hot-unplug an interface, the ifconfig down will fail since there's no such interface anymore. It just happens that ifupdown will then *not* run any other down or at least post-down commands in that case. Consequently neither a running wpa_supplicant, nor a hostapd will be properly terminated. This should clearly be fixed somehow. I suppose either failing commands on down should not make the remaining commands to be skipped, or at least some kind of configurability should be present in this regard. There is a workaround though, by setting the type to manual and running ifconfig explicitly using "up" and "down" options. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/135909 Title: wpa_supplicant isn't killed on unplug -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
