diff mbox series

[v1,1/1] wpa_cli: Modified to make the event WPA_EVENT_CHANNEL_SWITCH accessible to action scripts

Message ID 20240415084822.611328-2-arun.jose.wg@bp.renesas.com
State Accepted
Headers show
Series Made WPA_EVENT_CHANNEL_SWITCH event accessible to action scripts | expand

Commit Message

arun.jose.wg@bp.renesas.com April 15, 2024, 8:48 a.m. UTC
From: "arun.jose" <arun.jose.wg@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@bp.renesas.com>
---
 wpa_supplicant/wpa_cli.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jouni Malinen April 21, 2024, 9:08 a.m. UTC | #1
On Mon, Apr 15, 2024 at 02:18:22PM +0530, arun.jose.wg@bp.renesas.com wrote:
> Modified the code in wpa_cli.c to make the channel switch complete 
> event, WPA_EVENT_CHANNEL_SWITCH accessible to the action script.

Thanks, applied.
diff mbox series

Patch

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