developer | 7af0f76 | 2023-05-22 15:16:16 +0800 | [diff] [blame^] | 1 | From aa539aaae8a95f3e970ad8e1f5a7381bb249ad7e Mon Sep 17 00:00:00 2001 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Fri, 17 Mar 2023 11:16:44 +0800 |
developer | 7af0f76 | 2023-05-22 15:16:16 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 16/22] wifi: mt76: mt7996: fill txwi by SW temporarily |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 5 | |
| 6 | If use WA to fill TXD, it cannot ping pass. |
| 7 | Remove this patch after bug fix. |
| 8 | |
| 9 | Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 10 | --- |
| 11 | mt7996/mac.c | 8 +++----- |
| 12 | 1 file changed, 3 insertions(+), 5 deletions(-) |
| 13 | |
| 14 | diff --git a/mt7996/mac.c b/mt7996/mac.c |
developer | 7af0f76 | 2023-05-22 15:16:16 +0800 | [diff] [blame^] | 15 | index ca163969..7059a4e1 100644 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 16 | --- a/mt7996/mac.c |
| 17 | +++ b/mt7996/mac.c |
developer | 7af0f76 | 2023-05-22 15:16:16 +0800 | [diff] [blame^] | 18 | @@ -1138,9 +1138,8 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 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) |
developer | 7af0f76 | 2023-05-22 15:16:16 +0800 | [diff] [blame^] | 23 | - mt7996_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, key, |
| 24 | - pid, qid, 0); |
| 25 | + mt7996_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, key, |
| 26 | + pid, qid, 0); |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 27 | |
| 28 | txd[0] |= le32_encode_bits(1, MT_TXD0_VER); |
| 29 | |
developer | 7af0f76 | 2023-05-22 15:16:16 +0800 | [diff] [blame^] | 30 | @@ -1153,8 +1152,7 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 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 | -- |
developer | 7af0f76 | 2023-05-22 15:16:16 +0800 | [diff] [blame^] | 41 | 2.39.2 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 42 | |