]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SME: No need for OBSS scan if HT40 is disabled
authorErnst Sjöstrand <ernst.sjostrand@lists.verisure.com>
Thu, 9 Dec 2021 13:08:56 +0000 (13:08 +0000)
committerJouni Malinen <j@w1.fi>
Sat, 11 Dec 2021 11:10:58 +0000 (13:10 +0200)
Signed-off-by: Ernst Sjöstrand <ernst.sjostrand@verisure.com>
wpa_supplicant/sme.c

index 0dd3772f3745088e8fa581f99eb0ac45ec89dd32..7f28708de66bf7fd10fe44746e9fd3fa90218d6b 100644 (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;