diff options
author | sam <sam@FreeBSD.org> | 2003-09-14 22:32:18 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-09-14 22:32:18 +0000 |
commit | ecc9826d1b06bcd6eea61f261307f051a1fa80fa (patch) | |
tree | 38121365070490abb6b6236f831698afa06cd3f1 | |
parent | be9fb27b11e4b72ffd641da7e957b7d59963c347 (diff) | |
download | FreeBSD-src-ecc9826d1b06bcd6eea61f261307f051a1fa80fa.zip FreeBSD-src-ecc9826d1b06bcd6eea61f261307f051a1fa80fa.tar.gz |
short preamble capability is not just for 11g; mark IEEE80211_F_SHPREAMBLE
regardless of the operating mode
Obtained from: MADWIFI
-rw-r--r-- | sys/net80211/ieee80211.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 2c38913..71caeab 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -699,15 +699,15 @@ ieee80211_setmode(struct ieee80211com *ic, enum ieee80211_phymode mode) * XXX what if we have stations already associated??? * XXX probably not right for autoselect? */ + if (ic->ic_caps & IEEE80211_C_SHPREAMBLE) + ic->ic_flags |= IEEE80211_F_SHPREAMBLE; if (mode == IEEE80211_MODE_11G) { if (ic->ic_caps & IEEE80211_C_SHSLOT) ic->ic_flags |= IEEE80211_F_SHSLOT; - if (ic->ic_caps & IEEE80211_C_SHPREAMBLE) - ic->ic_flags |= IEEE80211_F_SHPREAMBLE; ieee80211_set11gbasicrates(&ic->ic_sup_rates[mode], IEEE80211_MODE_11G); } else { - ic->ic_flags &= ~(IEEE80211_F_SHSLOT | IEEE80211_F_SHPREAMBLE); + ic->ic_flags &= ~IEEE80211_F_SHSLOT; } ic->ic_curmode = mode; |