SME: No need for OBSS scan if HT40 is disabled

Signed-off-by: Ernst Sjöstrand <ernst.sjostrand@verisure.com>
This commit is contained in:
Ernst Sjöstrand 2021-12-09 13:08:56 +00:00 committed by Jouni Malinen
parent 7db757aac4
commit 36973aac2c

View file

@ -2567,6 +2567,12 @@ void sme_sched_obss_scan(struct wpa_supplicant *wpa_s, int enable)
ssid == NULL || ssid->mode != WPAS_MODE_INFRA)
return;
#ifdef CONFIG_HT_OVERRIDES
/* No need for OBSS scan if HT40 is explicitly disabled */
if (ssid->disable_ht40)
return;
#endif /* CONFIG_HT_OVERRIDES */
if (!wpa_s->hw.modes)
return;