From 59536a33d80368a8048d64276b05c622c2a7d04a Mon Sep 17 00:00:00 2001 From: Bilal Hatipoglu Date: Mon, 30 Dec 2019 13:22:01 +0300 Subject: [PATCH] wpa_cli: WPS-PIN-ACTIVE and WPS-CANCEL events for action scripts These events were added in commit b1b62a13648e ("WPS: Add WPS-PIN-ACTIVE and WPS-CANCEL events"). Signed-off-by: Bekir Celik Signed-off-by: Bilal Hatipoglu --- 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 5b849fd7c..6d3f56a87 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -4004,6 +4004,10 @@ static void wpa_cli_action_process(const char *msg) wpa_cli_exec(action_file, ifname, pos); } else if (str_starts(pos, WPS_EVENT_ACTIVE)) { wpa_cli_exec(action_file, ifname, pos); + } else if (str_starts(pos, WPS_EVENT_PIN_ACTIVE)) { + wpa_cli_exec(action_file, ifname, pos); + } else if (str_starts(pos, WPS_EVENT_CANCEL)) { + wpa_cli_exec(action_file, ifname, pos); } else if (str_starts(pos, WPS_EVENT_TIMEOUT)) { wpa_cli_exec(action_file, ifname, pos); } else if (str_starts(pos, WPS_EVENT_FAIL)) {