Skip to content

Commit 07c12d6

Browse files
tmussaijmberg-intel
authored andcommitted
mac80211: set short_slot for 6 GHz band
Set short slot also for 6 GHz band, just like 5 GHz. Signed-off-by: Tova Mussai <[email protected]> Link: https://lore.kernel.org/r/20200528213443.75f38e6f5efd.I272fbae402b03123f04e9ae69204eeab960c70cd@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 6fcb56c commit 07c12d6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

net/mac80211/cfg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,7 +2198,8 @@ static int ieee80211_change_bss(struct wiphy *wiphy,
21982198
}
21992199

22002200
if (!sdata->vif.bss_conf.use_short_slot &&
2201-
sband->band == NL80211_BAND_5GHZ) {
2201+
(sband->band == NL80211_BAND_5GHZ ||
2202+
sband->band == NL80211_BAND_6GHZ)) {
22022203
sdata->vif.bss_conf.use_short_slot = true;
22032204
changed |= BSS_CHANGED_ERP_SLOT;
22042205
}

net/mac80211/mlme.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2171,7 +2171,8 @@ static u32 ieee80211_handle_bss_capability(struct ieee80211_sub_if_data *sdata,
21712171
}
21722172

21732173
use_short_slot = !!(capab & WLAN_CAPABILITY_SHORT_SLOT_TIME);
2174-
if (sband->band == NL80211_BAND_5GHZ)
2174+
if (sband->band == NL80211_BAND_5GHZ ||
2175+
sband->band == NL80211_BAND_6GHZ)
21752176
use_short_slot = true;
21762177

21772178
if (use_protection != bss_conf->use_cts_prot) {

0 commit comments

Comments
 (0)