wpa_cli: Make CTRL-EVENT-CHANNEL-SWITCH available to action scripts

Signed-off-by: Omer Dagan <omer.dagan@tandemg.com>
This commit is contained in:
Omer Dagan 2019-04-08 06:45:04 +00:00 committed by Jouni Malinen
parent 95f556f3c7
commit fa335929b7
1 changed files with 2 additions and 0 deletions

View File

@ -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)) {