wpa_cli: Make WPA_EVENT_CHANNEL_SWITCH events accessible to action scripts

Make the channel switch complete event, WPA_EVENT_CHANNEL_SWITCH,
accessible to the action script.

Signed-off-by: arun.jose <arun.jose.wg@bp.renesas.com>
This commit is contained in:
arun.jose 2024-04-15 14:18:22 +05:30 committed by Jouni Malinen
parent 2e1f7d091c
commit f44a07d5c4

View file

@ -4380,6 +4380,8 @@ static void wpa_cli_action_process(const char *msg)
} }
} else if (str_starts(pos, WPA_EVENT_CHANNEL_SWITCH_STARTED)) { } else if (str_starts(pos, WPA_EVENT_CHANNEL_SWITCH_STARTED)) {
wpa_cli_exec(action_file, ctrl_ifname, pos); wpa_cli_exec(action_file, ctrl_ifname, pos);
} else if (str_starts(pos, WPA_EVENT_CHANNEL_SWITCH)) {
wpa_cli_exec(action_file, ctrl_ifname, pos);
} else if (str_starts(pos, AP_EVENT_ENABLED)) { } else if (str_starts(pos, AP_EVENT_ENABLED)) {
wpa_cli_exec(action_file, ctrl_ifname, pos); wpa_cli_exec(action_file, ctrl_ifname, pos);
} else if (str_starts(pos, AP_EVENT_DISABLED)) { } else if (str_starts(pos, AP_EVENT_DISABLED)) {