[PATCH v1 1/1] wpa_cli: Modified to make the event WPA_EVENT_CHANNEL_SWITCH accessible to action scripts
arun.jose.wg at bp.renesas.com
arun.jose.wg at bp.renesas.com
Mon Apr 15 01:48:22 PDT 2024
From: "arun.jose" <arun.jose.wg at bp.renesas.com>
Modified the code in wpa_cli.c to make the channel switch complete
event, WPA_EVENT_CHANNEL_SWITCH accessible to the action script.
Signed-off-by: arun.jose <arun.jose.wg at bp.renesas.com>
---
wpa_supplicant/wpa_cli.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 60f85624f..7d4cb4564 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -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)) {
--
2.25.1
More information about the Hostap
mailing list