]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Make WPA_EVENT_CHANNEL_SWITCH events accessible to action scripts
authorarun.jose <arun.jose.wg@bp.renesas.com>
Mon, 15 Apr 2024 08:48:22 +0000 (14:18 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 21 Apr 2024 08:55:53 +0000 (11:55 +0300)
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>
wpa_supplicant/wpa_cli.c

index 60f85624f6841434f7fe1df9ed344c9b3a937704..7d4cb4564778d92e1b8383e30498fa275f75b4f0 100644 (file)
@@ -4380,6 +4380,8 @@ static void wpa_cli_action_process(const char *msg)
                }
        } else if (str_starts(pos, WPA_EVENT_CHANNEL_SWITCH_STARTED)) {
                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)) {
                wpa_cli_exec(action_file, ctrl_ifname, pos);
        } else if (str_starts(pos, AP_EVENT_DISABLED)) {