[PATCH] SME: No need for OBSS scan if ht40 is disabled
Ernst Sjöstrand
ernst.sjostrand at lists.verisure.com
Thu Dec 9 05:08:56 PST 2021
Signed-off-by: Ernst Sjöstrand <ernst.sjostrand at verisure.com>
---
wpa_supplicant/sme.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index f2c42ff35..5d4d4073f 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -2583,6 +2583,10 @@ void sme_sched_obss_scan(struct wpa_supplicant
*wpa_s, int enable)
ssid == NULL || ssid->mode != WPAS_MODE_INFRA)
return;
+ /* No need for obss scan if we won't use ht40 */
+ if (ssid->disable_ht40)
+ return;
+
if (!wpa_s->hw.modes)
return;
--
2.33.1
More information about the Hostap
mailing list