blob: c5e29343988cbc6862d983458c8ad37db05946ed [file] [log] [blame]
developer22ed7c72023-09-06 16:51:41 +08001From 96656c8856b6e386608b67b15ef4ab10f60af666 Mon Sep 17 00:00:00 2001
2From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Wed, 6 Sep 2023 16:27:25 +0800
4Subject: [PATCH] wifi: mt76: disable HW AMSDU when using fixed rate
5
6When using fixed rate, HW uses txd DW9 to store tx arrivial time if VTA
7is ture. It would overwrite the msdu_id in txd and lead to token pending
8if amsdu is enable.
9
10Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
11---
12 mt76_connac_mac.c | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15diff --git a/mt76_connac_mac.c b/mt76_connac_mac.c
16index ee5177fd..1ece8754 100644
17--- a/mt76_connac_mac.c
18+++ b/mt76_connac_mac.c
19@@ -557,7 +557,7 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
20 val = FIELD_PREP(MT_TXD5_PID, pid);
21 if (pid >= MT_PACKET_ID_FIRST) {
22 val |= MT_TXD5_TX_STATUS_HOST;
23- amsdu_en = amsdu_en && !is_mt7921(dev);
24+ amsdu_en = 0;
25 }
26
27 txwi[5] = cpu_to_le32(val);
28@@ -592,6 +592,8 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
29 spe_idx = 24 + phy_idx;
30 txwi[7] |= cpu_to_le32(FIELD_PREP(MT_TXD7_SPE_IDX, spe_idx));
31 }
32+
33+ txwi[7] &= ~cpu_to_le32(MT_TXD7_HW_AMSDU);
34 }
35 }
36 EXPORT_SYMBOL_GPL(mt76_connac2_mac_write_txwi);
37--
382.18.0
39