must also check for 5Ghz channels when marking short preamble capability in

the beacon frames

Reminded by:	Stephane Laroche <stephane.laroche@colubris.com>
This commit is contained in:
Sam Leffler 2003-09-14 22:53:41 +00:00
parent a3a398b57d
commit 3065b96e25

View File

@ -1035,7 +1035,8 @@ ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_node *ni)
capinfo = IEEE80211_CAPINFO_ESS;
if (ic->ic_flags & IEEE80211_F_WEPON)
capinfo |= IEEE80211_CAPINFO_PRIVACY;
if (ic->ic_flags & IEEE80211_F_SHPREAMBLE)
if ((ic->ic_flags & IEEE80211_F_SHPREAMBLE) &&
IEEE80211_IS_CHAN_2GHZ(ni->ni_chan))
capinfo |= IEEE80211_CAPINFO_SHORT_PREAMBLE;
if (ic->ic_flags & IEEE80211_F_SHSLOT)
capinfo |= IEEE80211_CAPINFO_SHORT_SLOTTIME;