]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: WPS-PIN-ACTIVE and WPS-CANCEL events for action scripts
authorBilal Hatipoglu <bilal.hatipoglu@airties.com>
Mon, 30 Dec 2019 10:22:01 +0000 (13:22 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 30 Dec 2019 16:36:57 +0000 (18:36 +0200)
These events were added in commit b1b62a13648e ("WPS: Add WPS-PIN-ACTIVE
and WPS-CANCEL events").

Signed-off-by: Bekir Celik <bekir.celik@airties.com>
Signed-off-by: Bilal Hatipoglu <bilal.hatipoglu@airties.com>
wpa_supplicant/wpa_cli.c

index 5b849fd7c60f14ec832b9f709b12f7ec38139357..6d3f56a8728e763869f394247693940844746570 100644 (file)
@@ -4004,6 +4004,10 @@ 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_PIN_ACTIVE)) {
+               wpa_cli_exec(action_file, ifname, pos);
+       } else if (str_starts(pos, WPS_EVENT_CANCEL)) {
+               wpa_cli_exec(action_file, ifname, pos);
        } else if (str_starts(pos, WPS_EVENT_TIMEOUT)) {
                wpa_cli_exec(action_file, ifname, pos);
        } else if (str_starts(pos, WPS_EVENT_FAIL)) {