[PATCH] wpa_cli should only call action file when state changes
uberlord at gentoo.org
Mon May 22 06:03:00 EDT 2006
On Monday 22 May 2006 05:11, Jouni Malinen wrote:
> On Wed, May 03, 2006 at 08:56:57PM +0100, Roy Marples wrote:
> > wpa_cli can monitor wpa_supplicant and call an action file based on
> > state. However, wpa_cli repeatedly calls it with the disconnected state
> > after a scan even if it was not previously connected, like so.
> > Attached is a patch so that we only call the action file on a disconnect
> > if we were previously connected and we only call the action file on a
> > connect if we were previously disconnected.
> Thanks! I merged this in with a small change. The action script is also
> called in case the network block was changed even if the connection
> never moved to disconnected state between the two connection events.
Cool! If the network block changes and the disconnected state wasn't reached
do we still do a "DISCONNECT" before a "CONNECT" ?
Hopefully you will say yes :)
Roy Marples <uberlord at gentoo.org>
Gentoo/Linux Developer (baselayout, networking)
More information about the HostAP