mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: fix vif sta index for DBDC
Since vif indexes are per-phy, we need to factor in the phy index to avoid collisions on the WTBL index Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+2
-1
@@ -189,7 +189,8 @@ static int mt7915_add_interface(struct ieee80211_hw *hw,
|
||||
phy->mt76->vif_mask |= BIT(mvif->idx);
|
||||
phy->omac_mask |= BIT_ULL(mvif->omac_idx);
|
||||
|
||||
idx = MT7915_WTBL_RESERVED - mvif->idx;
|
||||
idx = MT7915_WTBL_RESERVED - mvif->idx -
|
||||
ext_phy * MT7915_MAX_INTERFACES / 2;
|
||||
|
||||
INIT_LIST_HEAD(&mvif->sta.rc_list);
|
||||
INIT_LIST_HEAD(&mvif->sta.stats_list);
|
||||
|
||||
Reference in New Issue
Block a user