developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 1 | From da809c32e3531e217dbf22a9c5c372999c4642cb Mon Sep 17 00:00:00 2001 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Thu, 2 May 2024 15:40:21 +0800 |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 4 | Subject: [PATCH 113/223] mtk: mt76: remove the limitation for legacy AP sacn |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 5 | |
| 6 | The limitation was used to prevent resource conflict in multiple wiphys |
| 7 | architecture. It becomes single wiphy and the limitation seems to be |
| 8 | useless. |
| 9 | |
| 10 | Furthermore, legacy APs need to scan due to features like ACS, so remove |
| 11 | the limitations |
| 12 | |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 13 | Change-Id: I319823e5cf06c9bcce3bb55c6e7b51a5f18b85da |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 14 | Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 15 | --- |
| 16 | mt7996/mac.c | 7 ------- |
| 17 | 1 file changed, 7 deletions(-) |
| 18 | |
| 19 | diff --git a/mt7996/mac.c b/mt7996/mac.c |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 20 | index ac61869d..901c70e5 100644 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 21 | --- a/mt7996/mac.c |
| 22 | +++ b/mt7996/mac.c |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 23 | @@ -2980,13 +2980,6 @@ void mt7996_scan_work(struct work_struct *work) |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 24 | 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 | -- |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 38 | 2.45.2 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 39 | |