blob: cc53fd1e65dbb32b33d568fa13b860c3ac2df5dc [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From 6ae8ff7998348080caa661a1e31c36febd3443ee Mon Sep 17 00:00:00 2001
2From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Thu, 2 May 2024 15:40:21 +0800
4Subject: [PATCH 125/199] mtk: mt76: remove the limitation for legacy AP sacn
5
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
13Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
14---
15 mt7996/mac.c | 7 -------
16 1 file changed, 7 deletions(-)
17
18diff --git a/mt7996/mac.c b/mt7996/mac.c
19index fc83cea1..bba16975 100644
20--- a/mt7996/mac.c
21+++ b/mt7996/mac.c
22@@ -2968,13 +2968,6 @@ void mt7996_scan_work(struct work_struct *work)
23 bool has_sta = false, active_scan = false;
24
25 mutex_lock(&phy->dev->mt76.mutex);
26- /* don't let non-MLD AP scan other bands */
27- if (vif->type != NL80211_IFTYPE_STATION && !ieee80211_vif_is_mld(vif) &&
28- phy != mt7996_hw_phy(hw)) {
29- mt7996_scan_complete(phy, false);
30- mutex_unlock(&phy->dev->mt76.mutex);
31- return;
32- }
33
34 if (phy->scan_chan_idx >= req->n_channels) {
35 mt7996_scan_complete(phy, false);
36--
372.18.0
38