wifi: mt76: mt7996: Fix wdma_idx for MT7996 device if NPU is enabled

This is a preliminary patch to enable NPU offload for MT7996 (Eagle)
chipset.

Tested-by: Kang Yang <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2026-01-27 11:56:18 +00:00
committed by Felix Fietkau
parent 8e94d3266b
commit bc5529c123
+4
View File
@@ -2292,6 +2292,10 @@ mt7996_net_fill_forward_path(struct ieee80211_hw *hw,
path->mtk_wdma.wdma_idx = wed->wdma_idx;
else
#endif
if (is_mt7996(&dev->mt76) && mt76_npu_device_active(&dev->mt76) &&
msta_link->wcid.phy_idx == MT_BAND2)
path->mtk_wdma.wdma_idx = 1;
else
path->mtk_wdma.wdma_idx = link->mt76.band_idx;
path->mtk_wdma.bss = link->mt76.idx;
path->mtk_wdma.queue = 0;