From: Shayne Chen <shayne.chen@mediatek.com>
To: Felix Fietkau <nbd@nbd.name>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
Lorenzo Bianconi <lorenzo@kernel.org>,
Ryder Lee <ryder.lee@mediatek.com>,
Evelyn Tsai <evelyn.tsai@mediatek.com>,
linux-mediatek <linux-mediatek@lists.infradead.org>,
Peter Chiu <chui-hao.chiu@mediatek.com>,
Shayne Chen <shayne.chen@mediatek.com>
Subject: [PATCH 02/12] wifi: mt76: mt7996: fix traffic delay when switching back to working channel
Date: Fri, 16 Aug 2024 17:46:26 +0800 [thread overview]
Message-ID: <20240816094635.2391-2-shayne.chen@mediatek.com> (raw)
In-Reply-To: <20240816094635.2391-1-shayne.chen@mediatek.com>
From: Peter Chiu <chui-hao.chiu@mediatek.com>
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: 98686cd21624 ("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>
---
drivers/net/wireless/mediatek/mt76/mt7996/main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/main.c b/drivers/net/wireless/mediatek/mt76/mt7996/main.c
index bce082038219..f3f78e11a65f 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7996/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7996/main.c
@@ -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);
--
2.39.2
next prev parent reply other threads:[~2024-08-16 9:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-16 9:46 [PATCH 01/12] wifi: mt76: mt7996: use hweight16 to get correct tx antenna Shayne Chen
2024-08-16 9:46 ` Shayne Chen [this message]
2024-08-16 9:46 ` [PATCH 03/12] wifi: mt76: mt7996: fix wmm set of station interface to 3 Shayne Chen
2024-08-16 9:46 ` [PATCH 05/12] wifi: mt76: mt7996: advertize beacon_int_min_gcd Shayne Chen
2024-08-16 9:46 ` [PATCH 06/12] wifi: mt76: mt7996: fix HE and EHT beamforming capabilities Shayne Chen
2024-08-16 9:46 ` [PATCH 07/12] wifi: mt76: mt7996: set correct beamformee SS capability Shayne Chen
2024-08-19 14:22 ` Ben Greear
2024-08-20 10:23 ` shayne.chen
2024-08-16 9:46 ` [PATCH 08/12] wifi: mt76: mt7996: fix EHT beamforming capability check Shayne Chen
2024-08-16 9:46 ` [PATCH 09/12] wifi: mt76: mt7996: set correct value in beamforming mcu command for mt7992 Shayne Chen
2024-08-16 9:46 ` [PATCH 10/12] wifi: mt76: mt7996: fix handling mbss enable/disable Shayne Chen
2024-08-16 9:46 ` [PATCH 11/12] wifi: mt76: connac: add IEEE 802.11 fragmentation support for mt7996 Shayne Chen
2024-08-16 9:46 ` [PATCH 12/12] wifi: mt76: mt7996: set IEEE80211_KEY_FLAG_GENERATE_MMIE for other ciphers Shayne Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240816094635.2391-2-shayne.chen@mediatek.com \
--to=shayne.chen@mediatek.com \
--cc=chui-hao.chiu@mediatek.com \
--cc=evelyn.tsai@mediatek.com \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=nbd@nbd.name \
--cc=ryder.lee@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).