From 5a511924b1c0436eb210d3162e2fe8dc00c2ee5c Mon Sep 17 00:00:00 2001 From: Disha Das Date: Thu, 20 Jun 2019 11:02:23 +0530 Subject: [PATCH] wpa_cli: Add support to process DPP action events in action script Signed-off-by: Disha Das --- wpa_supplicant/wpa_cli.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index 5b2154edd..43ac42720 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -4021,6 +4021,22 @@ static void wpa_cli_action_process(const char *msg) wpa_cli_exec(action_file, ifname, pos); } else if (str_starts(pos, HS20_T_C_ACCEPTANCE)) { wpa_cli_exec(action_file, ifname, pos); + } else if (str_starts(pos, DPP_EVENT_CONF_RECEIVED)) { + wpa_cli_exec(action_file, ifname, pos); + } else if (str_starts(pos, DPP_EVENT_CONFOBJ_AKM)) { + wpa_cli_exec(action_file, ifname, pos); + } else if (str_starts(pos, DPP_EVENT_CONFOBJ_SSID)) { + wpa_cli_exec(action_file, ifname, pos); + } else if (str_starts(pos, DPP_EVENT_CONNECTOR)) { + wpa_cli_exec(action_file, ifname, pos); + } else if (str_starts(pos, DPP_EVENT_CONFOBJ_PASS)) { + wpa_cli_exec(action_file, ifname, pos); + } else if (str_starts(pos, DPP_EVENT_CONFOBJ_PSK)) { + wpa_cli_exec(action_file, ifname, pos); + } else if (str_starts(pos, DPP_EVENT_C_SIGN_KEY)) { + wpa_cli_exec(action_file, ifname, pos); + } else if (str_starts(pos, DPP_EVENT_NET_ACCESS_KEY)) { + wpa_cli_exec(action_file, ifname, pos); } else if (str_starts(pos, WPA_EVENT_TERMINATING)) { printf("wpa_supplicant is terminating - stop monitoring\n"); wpa_cli_quit = 1;