developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From 6ae8ff7998348080caa661a1e31c36febd3443ee Mon Sep 17 00:00:00 2001 |
| 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Thu, 2 May 2024 15:40:21 +0800 |
| 4 | Subject: [PATCH 125/199] mtk: mt76: remove the limitation for legacy AP sacn |
| 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 | |
| 13 | Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 14 | --- |
| 15 | mt7996/mac.c | 7 ------- |
| 16 | 1 file changed, 7 deletions(-) |
| 17 | |
| 18 | diff --git a/mt7996/mac.c b/mt7996/mac.c |
| 19 | index 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 | -- |
| 37 | 2.18.0 |
| 38 | |