diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-09-08 17:46:44 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-10-20 10:36:37 +0200 |
commit | ab06964eb96cedbfa7394abb0cdd8192c9317b66 (patch) | |
tree | a65ee8e298610a60ad7b366a7be78fde295b3f75 /drivers/net/wireless/mediatek/mt76/mt7915/main.c | |
parent | 2c3b26f2bc1fe4f01195fd7cbd93cf440ac6358f (diff) | |
download | linux-ab06964eb96cedbfa7394abb0cdd8192c9317b66.tar.gz |
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 <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7915/main.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7915/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/main.c b/drivers/net/wireless/mediatek/mt76/mt7915/main.c index 440064e506c2..3caefafde62c 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c +++ b/drivers/net/wireless/mediatek/mt76/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 |