]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add AP-STA-CONNECTED and DISCONNECTED events to wpa_cli -a
authorNeeraj Kumar Garg <neerajkg@broadcom.com>
Mon, 19 Dec 2011 23:07:42 +0000 (01:07 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 19 Dec 2011 23:07:42 +0000 (01:07 +0200)
Signed-hostap: Neeraj Kumar Garg <neerajkg@broadcom.com>

wpa_supplicant/wpa_cli.c

index 42c81cd7eab198b4ee298d160d57e0e731186956..6ca79392e937378e8c0438b0b89f7b92a5e39739 100644 (file)
@@ -3292,6 +3292,10 @@ static void wpa_cli_action_process(const char *msg)
                wpa_cli_exec(action_file, ctrl_ifname, pos);
        } else if (str_match(pos, WPS_EVENT_FAIL)) {
                wpa_cli_exec(action_file, ctrl_ifname, pos);
+       } else if (str_match(pos, AP_STA_CONNECTED)) {
+               wpa_cli_exec(action_file, ctrl_ifname, pos);
+       } else if (str_match(pos, AP_STA_DISCONNECTED)) {
+               wpa_cli_exec(action_file, ctrl_ifname, pos);
        } else if (str_match(pos, WPA_EVENT_TERMINATING)) {
                printf("wpa_supplicant is terminating - stop monitoring\n");
                wpa_cli_quit = 1;