projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c3b26f
)
mt76: mt7915: fix WMM index on DBDC cards
author
Felix Fietkau
<nbd@nbd.name>
Wed, 8 Sep 2021 15:46:44 +0000
(17:46 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 20 Oct 2021 08:36:37 +0000
(10:36 +0200)
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>
drivers/net/wireless/mediatek/mt76/mt7915/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7915/main.c
b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
index 440064e506c22c9a2e6b0c71e2fce52f60fac480..3caefafde62c725e9f9092360b45f03ec42af3de 100644
(file)
--- 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