* [PATCH wireless v3] wifi: mt76: mt7915: set AMSDU parameters for WED v3
@ 2026-04-07 2:58 Joshua Klinesmith
0 siblings, 0 replies; only message in thread
From: Joshua Klinesmith @ 2026-04-07 2:58 UTC (permalink / raw)
To: linux-wireless
Cc: nbd, lorenzo, ryder.lee, shayne.chen, sean.wang,
Joshua Klinesmith
On MT7988 (WED version 3), the WED hardware unconditionally enables the
AMSDU aggregation engine. The engine uses wlan.amsdu_max_subframes and
wlan.amsdu_max_len to configure aggregation limits. The mt7996 driver
sets these to 8 and 1536 respectively, but the mt7915 driver never sets
them, leaving both at zero.
With the AMSDU engine active and zero-valued limits, the TX path is
severely throttled, capping throughput at approximately 6 Mbps on MT7916
PCIe cards attached to MT7988 SoCs.
Set amsdu_max_subframes and amsdu_max_len to the same values used by the
mt7996 driver.
Fixes: b230812b9dda ("net: ethernet: mtk_wed: introduce partial AMSDU offload support for MT7988")
Signed-off-by: Joshua Klinesmith <joshuaklinesmith@gmail.com>
---
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c b/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
index 2708b1556f40..f5fa81d3b264 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
@@ -719,6 +719,9 @@ int mt7915_mmio_wed_init(struct mt7915_dev *dev, void *pdev_ptr,
wed->wlan.reset = mt7915_mmio_wed_reset;
wed->wlan.reset_complete = mt76_wed_reset_complete;
+ wed->wlan.amsdu_max_subframes = 8;
+ wed->wlan.amsdu_max_len = 1536;
+
dev->mt76.rx_token_size = wed->wlan.rx_npkt;
if (mtk_wed_device_attach(wed))
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-07 2:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 2:58 [PATCH wireless v3] wifi: mt76: mt7915: set AMSDU parameters for WED v3 Joshua Klinesmith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox