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

Kel Modderman kelrin
Thu May 4 06:31:23 PDT 2006


Roy Marples wrote:
> Hi List!
>
> 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.
>
> scan -> disconnected - > call action file
> scan -> disconnected - > call action file
> scan -> disconnected - > call action file
> scan -> disconnected - > call action file
>
> 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
>   

This is great, the patch makes the action events much more consistent, 
something I struggled with when first playing around with them.

Thanks, Kel.




More information about the Hostap mailing list