blob: 0567253defe70a246df51ce066b83cd082b0c5c5 [file] [log] [blame]
developer8eb72a32023-03-30 08:32:07 +08001From 057869b174019d83f5ff3db97608e489f2808036 Mon Sep 17 00:00:00 2001
developer1bc2ce22023-03-25 00:47:41 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Fri, 17 Mar 2023 11:16:44 +0800
4Subject: [PATCH 23/29] wifi: mt76: mt7996: fill txwi by SW temporarily
5
6If use WA to fill TXD, it cannot ping pass.
7Remove this patch after bug fix.
8
9Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
10---
11 mt7996/mac.c | 8 +++-----
12 1 file changed, 3 insertions(+), 5 deletions(-)
13
14diff --git a/mt7996/mac.c b/mt7996/mac.c
developer8eb72a32023-03-30 08:32:07 +080015index bb23f53..cddb1df 100644
developer1bc2ce22023-03-25 00:47:41 +080016--- a/mt7996/mac.c
17+++ b/mt7996/mac.c
18@@ -1137,9 +1137,8 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
19 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb);
20 memset(txwi_ptr, 0, MT_TXD_SIZE);
21 /* Transmit non qos data by 802.11 header and need to fill txd by host*/
22- if (!is_8023 || pid >= MT_PACKET_ID_FIRST)
23- mt7996_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, qid,
24- pid, key, 0);
25+ mt7996_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, qid,
26+ pid, key, 0);
27
28 txd[0] |= le32_encode_bits(1, MT_TXD0_VER);
29
30@@ -1152,8 +1151,7 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
31
32 txp->fw.flags = cpu_to_le16(MT_CT_INFO_FROM_HOST);
33
34- if (!is_8023 || pid >= MT_PACKET_ID_FIRST)
35- txp->fw.flags |= cpu_to_le16(MT_CT_INFO_APPLY_TXD);
36+ txp->fw.flags |= cpu_to_le16(MT_CT_INFO_APPLY_TXD);
37
38 if (!key)
39 txp->fw.flags |= cpu_to_le16(MT_CT_INFO_NONE_CIPHER_FRAME);
40--
developer8eb72a32023-03-30 08:32:07 +0800412.18.0
developer1bc2ce22023-03-25 00:47:41 +080042