From c4c9c402d14aab99a521ddff5c8b336a8e33efd4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 19 Jan 2021 17:38:24 +0100 Subject: [PATCH] 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 --- mt7915/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mt7915/main.c b/mt7915/main.c index df09b27f..e9de51e2 100644 --- a/mt7915/main.c +++ b/mt7915/main.c @@ -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);