blob: 77c82fbd87fcbbb2f08653f92125b57b0051f404 [file] [log] [blame]
developera46f6132024-03-26 14:09:54 +08001From 9c9741829ac9bbf43e11b3c033ce9bf82b7ed1ad 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
developera46f6132024-03-26 14:09:54 +08004Subject: [PATCH 11/14] 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
developera46f6132024-03-26 14:09:54 +080016index b841bf62..630c6402 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
developera46f6132024-03-26 14:09:54 +080030index e167e7b6..a5d0b096 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