* [PATCH wireless] wifi: mt76: mt7915: fix WED WCID for MT7986/MT7981 wmac
@ 2026-04-07 4:02 Joshua Klinesmith
0 siblings, 0 replies; only message in thread
From: Joshua Klinesmith @ 2026-04-07 4:02 UTC (permalink / raw)
To: linux-wireless
Cc: nbd, lorenzo, ryder.lee, shayne.chen, sean.wang,
Joshua Klinesmith
The WED forward path sets the WCID to 0x3ff for all non-MT7915 chips,
relying on firmware DA lookup. This works for MT7916 PCIe cards where
the WED firmware can resolve the station by destination address, but
fails on MT7986/MT7981 wmac where WED requires the real station WCID.
As a result, WED hardware offload is completely non-functional on
MT7986-based devices (GL-MT6000, BPI-R3, etc.) and MT7981-based
devices (AX3000T, etc.) even when WED is enabled. The CPU handles
all TX traffic without any hardware acceleration.
Add is_mt798x() to the WCID check so MT7986/MT7981 wmac passes the
real station WCID, matching the behavior of the mt7996 driver which
unconditionally uses the real WCID.
Fixes: f68d67623dec ("mt76: mt7915: add Wireless Ethernet Dispatch support")
Link: https://github.com/openwrt/mt76/issues/815
Assisted-by: Claude:claude-opus-4-6 ghidra
Signed-off-by: Joshua Klinesmith <joshuaklinesmith@gmail.com>
---
drivers/net/wireless/mediatek/mt76/mt7915/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/main.c b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
index a47b9cca3b46..116dff49c104 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
@@ -1729,7 +1729,8 @@ mt7915_net_fill_forward_path(struct ieee80211_hw *hw,
path->dev = ctx->dev;
path->mtk_wdma.wdma_idx = wed->wdma_idx;
path->mtk_wdma.bss = mvif->mt76.idx;
- path->mtk_wdma.wcid = is_mt7915(&dev->mt76) ? msta->wcid.idx : 0x3ff;
+ path->mtk_wdma.wcid = (is_mt7915(&dev->mt76) || is_mt798x(&dev->mt76)) ?
+ msta->wcid.idx : 0x3ff;
path->mtk_wdma.queue = phy != &dev->phy;
ctx->dev = NULL;
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-07 4:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 4:02 [PATCH wireless] wifi: mt76: mt7915: fix WED WCID for MT7986/MT7981 wmac Joshua Klinesmith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox