]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SME: Process channel switch event in SME only when supplicant's SME is used
authorVeerendranath Jakkam <vjakkam@codeaurora.org>
Sun, 2 Aug 2020 11:25:05 +0000 (16:55 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 13 Aug 2020 18:39:49 +0000 (21:39 +0300)
Do not process channel switch event in wpa_supplicant's SME when SME is
offloaded to the driver/firmware to avoid SA Query initiation from both
wpa_supplicant and the driver/firmware for the OCV case.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/events.c

index f19165373bf797fddacf676ce14708c7012a3b6e..bd1af8915f4cb55ff275989d41f544d37af50bff 100644 (file)
@@ -4945,7 +4945,9 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
                }
 #endif /* CONFIG_AP */
 
-               sme_event_ch_switch(wpa_s);
+               if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME)
+                       sme_event_ch_switch(wpa_s);
+
                wpas_p2p_update_channel_list(wpa_s, WPAS_P2P_CHANNEL_UPDATE_CS);
                wnm_clear_coloc_intf_reporting(wpa_s);
                break;