Skip to content

Commit

Permalink
wifi: mt76: mt7996: fix traffic delay when switching back to working …
Browse files Browse the repository at this point in the history
…channel

During scanning, UNI_CHANNEL_RX_PATH tag is necessary for the firmware to
properly stop and resume MAC TX queue. Without this tag, HW needs more time
to resume traffic when switching back to working channel.

Fixes: 98686cd ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices")
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Link: https://patch.msgid.link/20240816094635.2391-2-shayne.chen@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Peter Chiu authored and Felix Fietkau committed Sep 5, 2024
1 parent f98c3de commit 376200f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/wireless/mediatek/mt76/mt7996/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ int mt7996_set_channel(struct mt7996_phy *phy)
if (ret)
goto out;

ret = mt7996_mcu_set_chan_info(phy, UNI_CHANNEL_RX_PATH);
if (ret)
goto out;

ret = mt7996_dfs_init_radar_detector(phy);
mt7996_mac_cca_stats_reset(phy);

Expand Down

0 comments on commit 376200f

Please sign in to comment.