aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmer Dagan <omer.dagan@tandemg.com>2019-04-08 06:45:04 (GMT)
committerJouni Malinen <j@w1.fi>2019-04-22 19:08:07 (GMT)
commitfa335929b7c9469160661f92e55d860e7175e5f7 (patch)
treef0bc9fc4ebb4f4b63207b047dd61bd45578bdd7d
parent95f556f3c77d32c46fb98437bf929ffe39a41ce8 (diff)
downloadhostap-fa335929b7c9469160661f92e55d860e7175e5f7.zip
hostap-fa335929b7c9469160661f92e55d860e7175e5f7.tar.gz
hostap-fa335929b7c9469160661f92e55d860e7175e5f7.tar.bz2
wpa_cli: Make CTRL-EVENT-CHANNEL-SWITCH available to action scripts
Signed-off-by: Omer Dagan <omer.dagan@tandemg.com>
-rw-r--r--wpa_supplicant/wpa_cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 695fcbe..a1ecf87 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -3967,6 +3967,8 @@ static void wpa_cli_action_process(const char *msg)
wpa_cli_connected = 0;
wpa_cli_exec(action_file, ifname, "DISCONNECTED");
}
+ } else if (str_starts(pos, WPA_EVENT_CHANNEL_SWITCH_STARTED)) {
+ wpa_cli_exec(action_file, ctrl_ifname, pos);
} else if (str_starts(pos, AP_EVENT_ENABLED)) {
wpa_cli_exec(action_file, ctrl_ifname, pos);
} else if (str_starts(pos, AP_EVENT_DISABLED)) {