diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-01-15 03:00:48 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-15 17:02:07 -0500 |
commit | 43d3534344bbdcfa9c61a6b38490cd4cbb2f6bb6 (patch) | |
tree | 66b87eb3d8c1751af37cf66afde977bb100db4a8 /net/mac80211/mlme.c | |
parent | 84920e3e47f654a22b540606fb8c1ab90b870942 (diff) | |
download | linux-3.10-43d3534344bbdcfa9c61a6b38490cd4cbb2f6bb6.tar.gz linux-3.10-43d3534344bbdcfa9c61a6b38490cd4cbb2f6bb6.tar.bz2 linux-3.10-43d3534344bbdcfa9c61a6b38490cd4cbb2f6bb6.zip |
mac80211: force use_short_slot=true for 5GHz
Normally 5GHz does not have a concept of long vs short slot time,
however the slot time that it ends up using is the same as for 2.4 GHZ
and use_short_slot == true
Because of that, it makes more sense to force use_short_slot = true
whenever 5 GHz is being used, so that this particular check does not
have to be in every single driver that uses this flag.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 2746391248d..a82564e73d9 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -670,6 +670,8 @@ static u32 ieee80211_handle_bss_capability(struct ieee80211_sub_if_data *sdata, } use_short_slot = !!(capab & WLAN_CAPABILITY_SHORT_SLOT_TIME); + if (sdata->local->hw.conf.channel->band == IEEE80211_BAND_5GHZ) + use_short_slot = true; if (use_protection != bss_conf->use_cts_prot) { bss_conf->use_cts_prot = use_protection; |