mac80211: set short_slot for 6 GHz band
authorTova Mussai <tova.mussai@intel.com>
Thu, 28 May 2020 19:34:46 +0000 (21:34 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Sun, 31 May 2020 09:27:22 +0000 (11:27 +0200)
Set short slot also for 6 GHz band, just like 5 GHz.

Signed-off-by: Tova Mussai <tova.mussai@intel.com>
Link: https://lore.kernel.org/r/20200528213443.75f38e6f5efd.I272fbae402b03123f04e9ae69204eeab960c70cd@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/mlme.c

index 90a07d0..9b36054 100644 (file)
@@ -2198,7 +2198,8 @@ static int ieee80211_change_bss(struct wiphy *wiphy,
        }
 
        if (!sdata->vif.bss_conf.use_short_slot &&
-           sband->band == NL80211_BAND_5GHZ) {
+           (sband->band == NL80211_BAND_5GHZ ||
+            sband->band == NL80211_BAND_6GHZ)) {
                sdata->vif.bss_conf.use_short_slot = true;
                changed |= BSS_CHANGED_ERP_SLOT;
        }
index d7bffd6..5820ef0 100644 (file)
@@ -2171,7 +2171,8 @@ static u32 ieee80211_handle_bss_capability(struct ieee80211_sub_if_data *sdata,
        }
 
        use_short_slot = !!(capab & WLAN_CAPABILITY_SHORT_SLOT_TIME);
-       if (sband->band == NL80211_BAND_5GHZ)
+       if (sband->band == NL80211_BAND_5GHZ ||
+           sband->band == NL80211_BAND_6GHZ)
                use_short_slot = true;
 
        if (use_protection != bss_conf->use_cts_prot) {