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

Roy Marples uberlord at gentoo.org
Wed May 3 15:56:57 EDT 2006


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

-- 
Roy Marples <uberlord at gentoo.org>
Gentoo/Linux Developer (baselayout, networking)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wpa_supplicant-0.5.3-wpa_cli.patch
Type: text/x-diff
Size: 1054 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20060503/d2b1300c/attachment.patch 


More information about the HostAP mailing list