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

Jouni Malinen jkmaline
Sun May 21 21:11:18 PDT 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