Signed-off-by: Ernst Sjöstrand <ernst.sjostrand@xxxxxxxxxxxx> --- 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 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap