Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 1/5] wifi: mt76: disable HW AMSDU when using fixed rate
@ 2024-01-18 19:52 Felix Fietkau
  2024-01-18 19:52 ` [PATCH 2/5] wifi: mt76: check txs format before getting skb by pid Felix Fietkau
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Felix Fietkau @ 2024-01-18 19:52 UTC (permalink / raw)
  To: linux-wireless; +Cc: Peter Chiu

From: Peter Chiu <chui-hao.chiu@mediatek.com>

When using fixed rate, HW uses txd DW9 to store tx arrivial time if VTA
is set. It would overwrite the msdu_id in txd and lead to token pending
if amsdu is enable.

Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
index c7914643e9c0..630c6402ec25 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
@@ -544,7 +544,7 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
 	val = FIELD_PREP(MT_TXD5_PID, pid);
 	if (pid >= MT_PACKET_ID_FIRST) {
 		val |= MT_TXD5_TX_STATUS_HOST;
-		amsdu_en = amsdu_en && !is_mt7921(dev);
+		amsdu_en = 0;
 	}
 
 	txwi[5] = cpu_to_le32(val);
@@ -579,6 +579,8 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
 				spe_idx = 24 + phy_idx;
 			txwi[7] |= cpu_to_le32(FIELD_PREP(MT_TXD7_SPE_IDX, spe_idx));
 		}
+
+		txwi[7] &= ~cpu_to_le32(MT_TXD7_HW_AMSDU);
 	}
 }
 EXPORT_SYMBOL_GPL(mt76_connac2_mac_write_txwi);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-18 20:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-18 19:52 [PATCH 1/5] wifi: mt76: disable HW AMSDU when using fixed rate Felix Fietkau
2024-01-18 19:52 ` [PATCH 2/5] wifi: mt76: check txs format before getting skb by pid Felix Fietkau
2024-01-18 19:52 ` [PATCH 3/5] wifi: mt76: mt7915: fix error recovery with WED enabled Felix Fietkau
2024-01-18 19:52 ` [PATCH 4/5] wifi: mt76: mt7915: add locking for accessing mapped registers Felix Fietkau
2024-01-18 19:52 ` [PATCH 5/5] wifi: mt76: mt7915: update mt798x_wmac_adie_patch_7976 Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox