blob: f991a92fcadddfa55fb8fe9e1464c151ee62bbf5 [file] [log] [blame]
developerd0c89452024-10-11 16:53:27 +08001From da809c32e3531e217dbf22a9c5c372999c4642cb Mon Sep 17 00:00:00 2001
developer05f3b2b2024-08-19 19:17:34 +08002From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Thu, 2 May 2024 15:40:21 +0800
developerd0c89452024-10-11 16:53:27 +08004Subject: [PATCH 113/223] mtk: mt76: remove the limitation for legacy AP sacn
developer05f3b2b2024-08-19 19:17:34 +08005
6The limitation was used to prevent resource conflict in multiple wiphys
7architecture. It becomes single wiphy and the limitation seems to be
8useless.
9
10Furthermore, legacy APs need to scan due to features like ACS, so remove
11the limitations
12
developerd0c89452024-10-11 16:53:27 +080013Change-Id: I319823e5cf06c9bcce3bb55c6e7b51a5f18b85da
developer05f3b2b2024-08-19 19:17:34 +080014Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
15---
16 mt7996/mac.c | 7 -------
17 1 file changed, 7 deletions(-)
18
19diff --git a/mt7996/mac.c b/mt7996/mac.c
developerd0c89452024-10-11 16:53:27 +080020index ac61869d..901c70e5 100644
developer05f3b2b2024-08-19 19:17:34 +080021--- a/mt7996/mac.c
22+++ b/mt7996/mac.c
developerd0c89452024-10-11 16:53:27 +080023@@ -2980,13 +2980,6 @@ void mt7996_scan_work(struct work_struct *work)
developer05f3b2b2024-08-19 19:17:34 +080024 bool has_sta = false, active_scan = false;
25
26 mutex_lock(&phy->dev->mt76.mutex);
27- /* don't let non-MLD AP scan other bands */
28- if (vif->type != NL80211_IFTYPE_STATION && !ieee80211_vif_is_mld(vif) &&
29- phy != mt7996_hw_phy(hw)) {
30- mt7996_scan_complete(phy, false);
31- mutex_unlock(&phy->dev->mt76.mutex);
32- return;
33- }
34
35 if (phy->scan_chan_idx >= req->n_channels) {
36 mt7996_scan_complete(phy, false);
37--
developerd0c89452024-10-11 16:53:27 +0800382.45.2
developer05f3b2b2024-08-19 19:17:34 +080039