]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Execute action file in case of WPS_EVENT_ACTIVE
authorJörg Krause <joerg.krause@embedded.rocks>
Thu, 9 Mar 2017 09:59:49 +0000 (10:59 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 11 Mar 2017 08:58:10 +0000 (10:58 +0200)
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
wpa_supplicant/wpa_cli.c

index 791411b25167f25bf92ceff8d5edc5fc26768e21..69c841b9158133d8f38568fdabb5907415e8eeca 100644 (file)
@@ -3765,6 +3765,8 @@ static void wpa_cli_action_process(const char *msg)
                wpa_cli_exec(action_file, ifname, pos);
        } else if (str_starts(pos, WPS_EVENT_SUCCESS)) {
                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_FAIL)) {
                wpa_cli_exec(action_file, ifname, pos);
        } else if (str_starts(pos, AP_STA_CONNECTED)) {