add the event in the enum and the interperted string added the event to the event_to_string converter Signed-off-by: Omer Dagan <omer.dagan@xxxxxxxxxxx> --- src/common/wpa_ctrl.h | 2 ++ src/drivers/driver.h | 6 ++++++ src/drivers/driver_common.c | 1 + 3 files changed, 9 insertions(+) diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h index f65077e04..4f36d9217 100644 --- a/src/common/wpa_ctrl.h +++ b/src/common/wpa_ctrl.h @@ -87,6 +87,8 @@ extern "C" { #define WPA_EVENT_BEACON_LOSS "CTRL-EVENT-BEACON-LOSS " /** Regulatory domain channel */ #define WPA_EVENT_REGDOM_CHANGE "CTRL-EVENT-REGDOM-CHANGE " +/** Channel switch started (followed by freq=<MHz> and other channel parameters) */ +#define WPA_EVENT_CHANNEL_SWITCH_STARTED "CTRL-EVENT-CHANNEL-SWITCH-STARTED " /** Channel switch (followed by freq=<MHz> and other channel parameters) */ #define WPA_EVENT_CHANNEL_SWITCH "CTRL-EVENT-CHANNEL-SWITCH " /** SAE authentication failed due to unknown password identifier */ diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 23423d92e..5d3c15b4f 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -4538,6 +4538,12 @@ enum wpa_event_type { * */ EVENT_CH_SWITCH, + /** + * EVENT_CH_SWITCH_STARTED - AP or GO started to switch channels - pre-switch + * + * Described in wpa_event_data.ch_switch + * */ + EVENT_CH_SWITCH_STARTED, /** * EVENT_WNM - Request WNM operation * diff --git a/src/drivers/driver_common.c b/src/drivers/driver_common.c index e55e6cd2b..b52e8baba 100644 --- a/src/drivers/driver_common.c +++ b/src/drivers/driver_common.c @@ -67,6 +67,7 @@ const char * event_to_string(enum wpa_event_type event) E2S(DRIVER_CLIENT_POLL_OK); E2S(EAPOL_TX_STATUS); E2S(CH_SWITCH); + E2S(CH_SWITCH_STARTED); E2S(WNM); E2S(CONNECT_FAILED_REASON); E2S(DFS_RADAR_DETECTED); -- 2.17.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap