[PATCH] wpa_cli should only call action file when state changes

Kel Modderman kelrin
Mon May 22 03:20:36 PDT 2006

Roy Marples wrote:
> 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 :)

I agree, that would be important.


More information about the Hostap mailing list