From: Ardong Chen Date: Mon, 6 Sep 2010 14:16:25 +0000 (+0300) Subject: wpa_cli action: Add WPS_EVENT_SUCCESS and WPS_EVENT_FAIL handlers X-Git-Tag: hostap-1-bp~1063 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=876103dc6c1ed4e80e2da1656ec655875a6c353d;p=thirdparty%2Fhostap.git wpa_cli action: Add WPS_EVENT_SUCCESS and WPS_EVENT_FAIL handlers --- diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index af6377783..624c38f98 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -2552,6 +2552,10 @@ static void wpa_cli_action_process(const char *msg) wpa_cli_exec(action_file, ctrl_ifname, pos); } else if (str_match(pos, P2P_EVENT_CROSS_CONNECT_DISABLE)) { 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)) { printf("wpa_supplicant is terminating - stop monitoring\n"); wpa_cli_quit = 1;