From 653c4893be17d12ef7bc6e941b765c92c1e4a161 Mon Sep 17 00:00:00 2001 From: Neeraj Kumar Garg Date: Tue, 20 Dec 2011 01:07:42 +0200 Subject: [PATCH] Add AP-STA-CONNECTED and DISCONNECTED events to wpa_cli -a Signed-hostap: Neeraj Kumar Garg --- wpa_supplicant/wpa_cli.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index 42c81cd7e..6ca79392e 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -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;