From 56b842b72a72e1ac12d306ef4a85f264a471065b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 8 Sep 2021 17:46:44 +0200 Subject: [PATCH] mt76: mt7915: fix wmm index on DBDC cards WMM index range needs to be split between both PHYs if a second PHY exists. The condition for that was accidentally written as checking if the vif PHY is the secondary one Signed-off-by: Felix Fietkau --- mt7915/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt7915/main.c b/mt7915/main.c index 48b5e205..107baff0 100644 --- a/mt7915/main.c +++ b/mt7915/main.c @@ -215,7 +215,7 @@ static int mt7915_add_interface(struct ieee80211_hw *hw, mvif->phy = phy; mvif->band_idx = ext_phy; - if (ext_phy) + if (dev->mt76.phy2) mvif->wmm_idx = ext_phy * (MT7915_MAX_WMM_SETS / 2) + mvif->idx % (MT7915_MAX_WMM_SETS / 2); else