From 36973aac2c6bb1f6fea5e10ef465904e822e6a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernst=20Sj=C3=B6strand?= Date: Thu, 9 Dec 2021 13:08:56 +0000 Subject: [PATCH] SME: No need for OBSS scan if HT40 is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ernst Sjöstrand --- wpa_supplicant/sme.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;