blob: c756ccde0d02713c7bb343c5da5ce1e4f0daa1bf [file] [log] [blame]
From aa539aaae8a95f3e970ad8e1f5a7381bb249ad7e Mon Sep 17 00:00:00 2001
From: Peter Chiu <chui-hao.chiu@mediatek.com>
Date: Fri, 17 Mar 2023 11:16:44 +0800
Subject: [PATCH 16/22] wifi: mt76: mt7996: fill txwi by SW temporarily
If use WA to fill TXD, it cannot ping pass.
Remove this patch after bug fix.
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
---
mt7996/mac.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/mt7996/mac.c b/mt7996/mac.c
index ca163969..7059a4e1 100644
--- a/mt7996/mac.c
+++ b/mt7996/mac.c
@@ -1138,9 +1138,8 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb);
memset(txwi_ptr, 0, MT_TXD_SIZE);
/* Transmit non qos data by 802.11 header and need to fill txd by host*/
- if (!is_8023 || pid >= MT_PACKET_ID_FIRST)
- mt7996_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, key,
- pid, qid, 0);
+ mt7996_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, key,
+ pid, qid, 0);
txd[0] |= le32_encode_bits(1, MT_TXD0_VER);
@@ -1153,8 +1152,7 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
txp->fw.flags = cpu_to_le16(MT_CT_INFO_FROM_HOST);
- if (!is_8023 || pid >= MT_PACKET_ID_FIRST)
- txp->fw.flags |= cpu_to_le16(MT_CT_INFO_APPLY_TXD);
+ txp->fw.flags |= cpu_to_le16(MT_CT_INFO_APPLY_TXD);
if (!key)
txp->fw.flags |= cpu_to_le16(MT_CT_INFO_NONE_CIPHER_FRAME);
--
2.39.2