mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7915: fix slot time for 5/6GHz
It should only be set to 20 for long slot time on 2.4 GHz Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+5
-1
@@ -631,7 +631,11 @@ static void mt7915_bss_info_changed(struct ieee80211_hw *hw,
|
||||
mt7915_mac_enable_rtscts(dev, vif, info->use_cts_prot);
|
||||
|
||||
if (changed & BSS_CHANGED_ERP_SLOT) {
|
||||
int slottime = info->use_short_slot ? 9 : 20;
|
||||
int slottime = 9;
|
||||
|
||||
if (phy->mt76->chandef.chan->band == NL80211_BAND_2GHZ &&
|
||||
!info->use_short_slot)
|
||||
slottime = 20;
|
||||
|
||||
if (slottime != phy->slottime) {
|
||||
phy->slottime = slottime;
|
||||
|
||||
Reference in New Issue
Block a user