diff options
author | sam <sam@FreeBSD.org> | 2003-09-14 22:53:41 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-09-14 22:53:41 +0000 |
commit | b6222d2bea94a27d3b5f292bab4b9b719d3f3b5b (patch) | |
tree | 523bed79dd04d8498c766c0eeb84b029538f743e | |
parent | 42c958f29f9d0dec248b88f6129ebbcdbcf23b38 (diff) | |
download | FreeBSD-src-b6222d2bea94a27d3b5f292bab4b9b719d3f3b5b.zip FreeBSD-src-b6222d2bea94a27d3b5f292bab4b9b719d3f3b5b.tar.gz |
must also check for 5Ghz channels when marking short preamble capability in
the beacon frames
Reminded by: Stephane Laroche <stephane.laroche@colubris.com>
-rw-r--r-- | sys/dev/ath/if_ath.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 11876f7..17760e1 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -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; |