blob: 3e1400f38d78d14fc11521db498a851c100f51fa [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From a76084f12577a97b1b06db539a2e928845e5a9ff Mon Sep 17 00:00:00 2001
2From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Fri, 26 Jul 2024 15:55:01 +0800
4Subject: [PATCH 007/199] mtk: mt76: mt7996: set rx path when channel switch
5
6When scanning, driver need to send this tag to fw to notify scanning is
7start or stop. FW would stop mac tx when scanning is started and resume
8mac tx when scanning is done. Without this tag, hw needs more time to
9resume traffic when scanning is done.
10
11Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
12---
13 mt7996/main.c | 4 ++++
14 1 file changed, 4 insertions(+)
15
16diff --git a/mt7996/main.c b/mt7996/main.c
17index 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--
322.18.0
33