From 9f127b65d258e30f20e186956ad9500bc0010b12 Mon Sep 17 00:00:00 2001
From: Shayne Chen <shayne.chen@mediatek.com>
Date: Mon, 17 Apr 2023 14:48:24 +0800
Subject: [PATCH 48/54] hostapd: mtk: disable check of bw40

This check will trigger hw_scan, but it hasn't been handled for MLO in
mt76 yet.

Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
---
 src/ap/hw_features.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index 93b99c07d..2da742a77 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -517,9 +517,9 @@ static int ieee80211n_check_40mhz(struct hostapd_iface *iface)
 	int ret;
 
 	/* Check that HT40 is used and PRI / SEC switch is allowed */
-	if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch ||
-		iface->conf->noscan)
-		return 0;
+	/* if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch || */
+	/* 	iface->conf->noscan) */
+	return 0;
 
 	hostapd_set_state(iface, HAPD_IFACE_HT_SCAN);
 	wpa_printf(MSG_DEBUG, "Scan for neighboring BSSes prior to enabling "
-- 
2.39.2

