diff options
| author | 2021-11-25 10:47:14 +0100 | |
|---|---|---|
| committer | 2021-12-19 15:24:01 +0100 | |
| commit | 92610d6df8a69cbd7df7d07c72567eaf33f57e5e (patch) | |
| tree | b90fe5915d3e75f7be43aec6d9fc94fb19deae00 | |
| parent | mt76: mt7615: improve wmm index allocation (diff) | |
mt76: mt7915: improve wmm index allocation
Typically all AP interfaces on a PHY will share the same WMM settings, while
sta/mesh interfaces will usually inherit the settings from a remote device.
In order minimize the likelihood of conflicting WMM settings, make all AP
interfaces share one slot, and all non-AP interfaces another one.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7915/main.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/main.c b/drivers/net/wireless/mediatek/mt76/mt7915/main.c index 057ab27b7083..8c1fa08b6286 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/main.c @@ -218,11 +218,9 @@ static int mt7915_add_interface(struct ieee80211_hw *hw, mvif->phy = phy; mvif->band_idx = ext_phy; - if (dev->mt76.phy2) - mvif->wmm_idx = ext_phy * (MT7915_MAX_WMM_SETS / 2) + - mvif->idx % (MT7915_MAX_WMM_SETS / 2); - else - mvif->wmm_idx = mvif->idx % MT7915_MAX_WMM_SETS; + mvif->wmm_idx = vif->type != NL80211_IFTYPE_AP; + if (ext_phy) + mvif->wmm_idx += 2; ret = mt7915_mcu_add_dev_info(phy, vif, true); if (ret) |
