From: Ernst Sjöstrand Date: Thu, 9 Dec 2021 13:08:56 +0000 (+0000) Subject: SME: No need for OBSS scan if HT40 is disabled X-Git-Tag: hostap_2_10~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36973aac2c6bb1f6fea5e10ef465904e822e6a47;p=thirdparty%2Fhostap.git SME: No need for OBSS scan if HT40 is disabled Signed-off-by: Ernst Sjöstrand --- diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index 0dd3772f3..7f28708de 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -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;