developer | a20cdc2 | 2024-05-31 18:57:31 +0800 | [diff] [blame] | 1 | From 99458375f8a646403eed7c259d05ff3e47e892b6 Mon Sep 17 00:00:00 2001 |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Mon, 29 Jan 2024 11:02:06 +0800 |
developer | a20cdc2 | 2024-05-31 18:57:31 +0800 | [diff] [blame] | 4 | Subject: [PATCH 11/21] wifi: mt76: fix tx statistics about tx retry and tx |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 5 | fail |
| 6 | |
| 7 | The tx retry and tx failed are reported by PPDU TxS. |
| 8 | |
| 9 | Signed-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 | |
| 15 | diff --git a/mt76_connac_mac.c b/mt76_connac_mac.c |
developer | dc9eeae | 2024-04-08 14:36:46 +0800 | [diff] [blame] | 16 | index b841bf6..630c640 100644 |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 17 | --- 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) { |
| 29 | diff --git a/mt7915/mac.c b/mt7915/mac.c |
developer | dc9eeae | 2024-04-08 14:36:46 +0800 | [diff] [blame] | 30 | index e167e7b..a5d0b09 100644 |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 31 | --- a/mt7915/mac.c |
| 32 | +++ b/mt7915/mac.c |
developer | a46f613 | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 33 | @@ -1021,7 +1021,7 @@ static void mt7915_mac_add_txs(struct mt7915_dev *dev, void *data) |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 34 | |
| 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 | -- |
| 43 | 2.18.0 |
| 44 | |