Skip to content

Commit

Permalink
mt76: add patch for TXS source
Browse files Browse the repository at this point in the history
  • Loading branch information
blocktrron committed Jul 8, 2024
1 parent 1af5605 commit dd114b5
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions patches/openwrt/0011-mt76-add-patch-for-TXS-source.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
From: David Bauer <mail@david-bauer.net>
Date: Sat, 6 Jul 2024 14:40:10 +0200
Subject: mt76: add patch for TXS source

Taken from
https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/45c09b06008a021d5e748cdd250aba000fd4dbcb/autobuild_mac80211_release/package/kernel/mt76/patches/0011-wifi-mt76-fix-tx-statistics-about-tx-retry-and-tx-fa.patch

Signed-off-by: David Bauer <mail@david-bauer.net>

diff --git a/package/kernel/mt76/patches/0099-wifi-mt76-fix-tx-statistics-about-tx-retry-and-tx-fa.patch b/package/kernel/mt76/patches/0099-wifi-mt76-fix-tx-statistics-about-tx-retry-and-tx-fa.patch
new file mode 100644
index 0000000000000000000000000000000000000000..98378692025da77d9284845117e8f33eb08028b2
--- /dev/null
+++ b/package/kernel/mt76/patches/0099-wifi-mt76-fix-tx-statistics-about-tx-retry-and-tx-fa.patch
@@ -0,0 +1,44 @@
+From 99458375f8a646403eed7c259d05ff3e47e892b6 Mon Sep 17 00:00:00 2001
+From: Peter Chiu <chui-hao.chiu@mediatek.com>
+Date: Mon, 29 Jan 2024 11:02:06 +0800
+Subject: [PATCH 11/21] wifi: mt76: fix tx statistics about tx retry and tx
+ fail
+
+The tx retry and tx failed are reported by PPDU TxS.
+
+Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
+---
+ mt76_connac_mac.c | 3 ---
+ mt7915/mac.c | 2 +-
+ 2 files changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/mt76_connac_mac.c b/mt76_connac_mac.c
+index b841bf6..630c640 100644
+--- a/mt76_connac_mac.c
++++ b/mt76_connac_mac.c
+@@ -716,9 +716,6 @@ bool mt76_connac2_mac_add_txs_skb(struct mt76_dev *dev, struct mt76_wcid *wcid,
+ struct sk_buff_head list;
+ struct sk_buff *skb;
+
+- if (le32_get_bits(txs_data[0], MT_TXS0_TXS_FORMAT) == MT_TXS_PPDU_FMT)
+- return false;
+-
+ mt76_tx_status_lock(dev, &list);
+ skb = mt76_tx_status_skb_get(dev, wcid, pid, &list);
+ if (skb) {
+diff --git a/mt7915/mac.c b/mt7915/mac.c
+index e167e7b..a5d0b09 100644
+--- a/mt7915/mac.c
++++ b/mt7915/mac.c
+@@ -1021,7 +1021,7 @@ static void mt7915_mac_add_txs(struct mt7915_dev *dev, void *data)
+
+ msta = container_of(wcid, struct mt7915_sta, wcid);
+
+- if (pid == MT_PACKET_ID_WED)
++ if (le32_get_bits(txs_data[0], MT_TXS0_TXS_FORMAT) == MT_TXS_PPDU_FMT)
+ mt76_connac2_mac_fill_txs(&dev->mt76, wcid, txs_data);
+ else
+ mt76_connac2_mac_add_txs_skb(&dev->mt76, wcid, pid, txs_data);
+--
+2.18.0
+

0 comments on commit dd114b5

Please sign in to comment.