mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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:
committed by
Felix Fietkau
parent
8e94d3266b
commit
bc5529c123
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user