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

Jouni Malinen jkmaline at cc.hut.fi
Mon May 22 00:11:18 EDT 2006


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.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the HostAP mailing list