Skip to contentSkip to conversation

wifi: mt76: mt7915: fix WED WCID for MT7986/MT7981 wmac

PATCH New Joshua Klinesmith 1 participant 1 message Apr 7

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: mt76: mt7915: fix WED WCID for MT7986/MT7981 wmac

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")
Assisted-by Claude:claude-opus-4-6 ghidra
---
 drivers/net/wireless/mediatek/mt76/mt7915/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt7915/main.c +2 -1
index a47b9cca3b46..116dff49c104 100644
@@ -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;
Signature · 1 line
2.43.0