blob: a8e769b6f488bf0f82c0c4f0162f161e1614f9a4 [file] [log] [blame]
From 3f276937d2633ccbe750fa73684bdc38f7a0ef60 Mon Sep 17 00:00:00 2001
From: Michael-CY Lee <michael-cy.lee@mediatek.com>
Date: Thu, 2 May 2024 15:40:21 +0800
Subject: [PATCH 113/193] mtk: mt76: remove the limitation for legacy AP sacn
The limitation was used to prevent resource conflict in multiple wiphys
architecture. It becomes single wiphy and the limitation seems to be
useless.
Furthermore, legacy APs need to scan due to features like ACS, so remove
the limitations
Change-Id: I319823e5cf06c9bcce3bb55c6e7b51a5f18b85da
Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
---
mt7996/mac.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/mt7996/mac.c b/mt7996/mac.c
index ac61869..901c70e 100644
--- a/mt7996/mac.c
+++ b/mt7996/mac.c
@@ -2980,13 +2980,6 @@ void mt7996_scan_work(struct work_struct *work)
bool has_sta = false, active_scan = false;
mutex_lock(&phy->dev->mt76.mutex);
- /* don't let non-MLD AP scan other bands */
- if (vif->type != NL80211_IFTYPE_STATION && !ieee80211_vif_is_mld(vif) &&
- phy != mt7996_hw_phy(hw)) {
- mt7996_scan_complete(phy, false);
- mutex_unlock(&phy->dev->mt76.mutex);
- return;
- }
if (phy->scan_chan_idx >= req->n_channels) {
mt7996_scan_complete(phy, false);
--
2.45.2