aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorJörg Krause <joerg.krause@embedded.rocks>2016-05-23 15:11:47 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-23 18:22:36 (GMT)
commit8960afa4bfa423774a8ca58cc21a4a7c1ab6089e (patch)
treeefda416b37c1137994f3b60488dc5e707f13322d /wpa_supplicant/wpa_cli.c
parent1cece2fafb8bf34850c81d7de2b7936d7035684f (diff)
downloadhostap-8960afa4bfa423774a8ca58cc21a4a7c1ab6089e.zip
hostap-8960afa4bfa423774a8ca58cc21a4a7c1ab6089e.tar.gz
hostap-8960afa4bfa423774a8ca58cc21a4a7c1ab6089e.tar.bz2
wpa_cli: Run action file in case of an AP event
Run the action script in case of AP events "AP-ENABLED" and "AP-DISABLED". Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Diffstat (limited to 'wpa_supplicant/wpa_cli.c')
-rw-r--r--wpa_supplicant/wpa_cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 9b1c802..53036ae 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -3777,6 +3777,10 @@ static void wpa_cli_action_process(const char *msg)
wpa_cli_connected = 0;
wpa_cli_exec(action_file, ifname, "DISCONNECTED");
}
+ } else if (str_match(pos, AP_EVENT_ENABLED)) {
+ wpa_cli_exec(action_file, ctrl_ifname, pos);
+ } else if (str_match(pos, AP_EVENT_DISABLED)) {
+ wpa_cli_exec(action_file, ctrl_ifname, pos);
} else if (str_match(pos, MESH_GROUP_STARTED)) {
wpa_cli_exec(action_file, ctrl_ifname, pos);
} else if (str_match(pos, MESH_GROUP_REMOVED)) {