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:
Felix Fietkau
2021-01-19 17:50:03 +01:00
parent fa3d334a0e
commit c4c9c402d1
+2 -1
View File
@@ -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);