]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Add WPS_EVENT_OVERLAP to action scripts
authorBerkay Ercan <berkay.ercan@airties.com>
Wed, 23 Dec 2020 14:58:44 +0000 (17:58 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 15 Jan 2021 10:18:37 +0000 (12:18 +0200)
WPS_EVENT_OVERLAP case was missing on wpa_cli_action_process function in
wpa_cli.c, so when the overlap event occurs, there was no event message
sent to the action script. Add this event case to the function.

Signed-off-by: Berkay Ercan <berkay.ercan@airties.com>
Signed-off-by: Veli Demirel <veli.demirel@airties.com>
wpa_supplicant/wpa_cli.c

index 9f2f903cc8b07a335a1da69d67fb732863a593e7..e0426244529617356c7a6caa5c803b33388f49bc 100644 (file)
@@ -4172,6 +4172,8 @@ static void wpa_cli_action_process(const char *msg)
                wpa_cli_exec(action_file, ifname, pos);
        } else if (str_starts(pos, WPS_EVENT_ACTIVE)) {
                wpa_cli_exec(action_file, ifname, pos);
+       } else if (str_starts(pos, WPS_EVENT_OVERLAP)) {
+               wpa_cli_exec(action_file, ifname, pos);
        } else if (str_starts(pos, WPS_EVENT_PIN_ACTIVE)) {
                wpa_cli_exec(action_file, ifname, pos);
        } else if (str_starts(pos, WPS_EVENT_CANCEL)) {