wpa_cli action: Add WPS_EVENT_SUCCESS and WPS_EVENT_FAIL handlers

This commit is contained in:
Ardong Chen 2010-09-06 17:16:25 +03:00 committed by Jouni Malinen
parent c481048f7c
commit 876103dc6c

View file

@ -2552,6 +2552,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, P2P_EVENT_CROSS_CONNECT_DISABLE)) { } else if (str_match(pos, P2P_EVENT_CROSS_CONNECT_DISABLE)) {
wpa_cli_exec(action_file, ctrl_ifname, pos); wpa_cli_exec(action_file, ctrl_ifname, pos);
} else if (str_match(pos, WPS_EVENT_SUCCESS)) {
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, 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;