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>
This commit is contained in:
Jörg Krause 2016-05-23 17:11:47 +02:00 committed by Jouni Malinen
parent 1cece2fafb
commit 8960afa4bf

View file

@ -3777,6 +3777,10 @@ static void wpa_cli_action_process(const char *msg)
wpa_cli_connected = 0; wpa_cli_connected = 0;
wpa_cli_exec(action_file, ifname, "DISCONNECTED"); 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)) { } else if (str_match(pos, MESH_GROUP_STARTED)) {
wpa_cli_exec(action_file, ctrl_ifname, pos); wpa_cli_exec(action_file, ctrl_ifname, pos);
} else if (str_match(pos, MESH_GROUP_REMOVED)) { } else if (str_match(pos, MESH_GROUP_REMOVED)) {