blob: 98378692025da77d9284845117e8f33eb08028b2 [file] [log] [blame]
developera20cdc22024-05-31 18:57:31 +08001From 99458375f8a646403eed7c259d05ff3e47e892b6 Mon Sep 17 00:00:00 2001
developer753619c2024-02-22 13:42:45 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Mon, 29 Jan 2024 11:02:06 +0800
developera20cdc22024-05-31 18:57:31 +08004Subject: [PATCH 11/21] wifi: mt76: fix tx statistics about tx retry and tx
developer753619c2024-02-22 13:42:45 +08005 fail
6
7The tx retry and tx failed are reported by PPDU TxS.
8
9Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
10---
11 mt76_connac_mac.c | 3 ---
12 mt7915/mac.c | 2 +-
13 2 files changed, 1 insertion(+), 4 deletions(-)
14
15diff --git a/mt76_connac_mac.c b/mt76_connac_mac.c
developerdc9eeae2024-04-08 14:36:46 +080016index b841bf6..630c640 100644
developer753619c2024-02-22 13:42:45 +080017--- a/mt76_connac_mac.c
18+++ b/mt76_connac_mac.c
19@@ -716,9 +716,6 @@ bool mt76_connac2_mac_add_txs_skb(struct mt76_dev *dev, struct mt76_wcid *wcid,
20 struct sk_buff_head list;
21 struct sk_buff *skb;
22
23- if (le32_get_bits(txs_data[0], MT_TXS0_TXS_FORMAT) == MT_TXS_PPDU_FMT)
24- return false;
25-
26 mt76_tx_status_lock(dev, &list);
27 skb = mt76_tx_status_skb_get(dev, wcid, pid, &list);
28 if (skb) {
29diff --git a/mt7915/mac.c b/mt7915/mac.c
developerdc9eeae2024-04-08 14:36:46 +080030index e167e7b..a5d0b09 100644
developer753619c2024-02-22 13:42:45 +080031--- a/mt7915/mac.c
32+++ b/mt7915/mac.c
developera46f6132024-03-26 14:09:54 +080033@@ -1021,7 +1021,7 @@ static void mt7915_mac_add_txs(struct mt7915_dev *dev, void *data)
developer753619c2024-02-22 13:42:45 +080034
35 msta = container_of(wcid, struct mt7915_sta, wcid);
36
37- if (pid == MT_PACKET_ID_WED)
38+ if (le32_get_bits(txs_data[0], MT_TXS0_TXS_FORMAT) == MT_TXS_PPDU_FMT)
39 mt76_connac2_mac_fill_txs(&dev->mt76, wcid, txs_data);
40 else
41 mt76_connac2_mac_add_txs_skb(&dev->mt76, wcid, pid, txs_data);
42--
432.18.0
44