developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 1 | From a76084f12577a97b1b06db539a2e928845e5a9ff Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Fri, 26 Jul 2024 15:55:01 +0800 |
| 4 | Subject: [PATCH 007/199] mtk: mt76: mt7996: set rx path when channel switch |
| 5 | |
| 6 | When scanning, driver need to send this tag to fw to notify scanning is |
| 7 | start or stop. FW would stop mac tx when scanning is started and resume |
| 8 | mac tx when scanning is done. Without this tag, hw needs more time to |
| 9 | resume traffic when scanning is done. |
| 10 | |
| 11 | Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 12 | --- |
| 13 | mt7996/main.c | 4 ++++ |
| 14 | 1 file changed, 4 insertions(+) |
| 15 | |
| 16 | diff --git a/mt7996/main.c b/mt7996/main.c |
| 17 | index 7c97140d..15d880ef 100644 |
| 18 | --- a/mt7996/main.c |
| 19 | +++ b/mt7996/main.c |
| 20 | @@ -307,6 +307,10 @@ int mt7996_set_channel(struct mt7996_phy *phy) |
| 21 | if (ret) |
| 22 | goto out; |
| 23 | |
| 24 | + ret = mt7996_mcu_set_chan_info(phy, UNI_CHANNEL_RX_PATH); |
| 25 | + if (ret) |
| 26 | + goto out; |
| 27 | + |
| 28 | ret = mt7996_dfs_init_radar_detector(phy); |
| 29 | mt7996_mac_cca_stats_reset(phy); |
| 30 | |
| 31 | -- |
| 32 | 2.18.0 |
| 33 | |