Browse Source

Add AP-STA-CONNECTED and DISCONNECTED events to wpa_cli -a

Signed-hostap: Neeraj Kumar Garg <neerajkg@broadcom.com>
Neeraj Kumar Garg 13 years ago
parent
commit
653c4893be
1 changed files with 4 additions and 0 deletions
  1. 4 0
      wpa_supplicant/wpa_cli.c

+ 4 - 0
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);
 		wpa_cli_exec(action_file, ctrl_ifname, pos);
 	} else if (str_match(pos, WPS_EVENT_FAIL)) {
 	} else if (str_match(pos, WPS_EVENT_FAIL)) {
 		wpa_cli_exec(action_file, ctrl_ifname, pos);
 		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)) {
 	} else if (str_match(pos, WPA_EVENT_TERMINATING)) {
 		printf("wpa_supplicant is terminating - stop monitoring\n");
 		printf("wpa_supplicant is terminating - stop monitoring\n");
 		wpa_cli_quit = 1;
 		wpa_cli_quit = 1;