diff options
author | sam <sam@FreeBSD.org> | 2009-03-26 19:07:56 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-03-26 19:07:56 +0000 |
commit | 9ca2b364dab13d9032e52880cacd89bdeeb3ff32 (patch) | |
tree | 1978b112d6560e2b253d48e01a6d6b3df325e730 /sys/net80211/ieee80211_superg.c | |
parent | bea67b16d29931b771c54dd412979a4e2cc07399 (diff) | |
download | FreeBSD-src-9ca2b364dab13d9032e52880cacd89bdeeb3ff32.zip FreeBSD-src-9ca2b364dab13d9032e52880cacd89bdeeb3ff32.tar.gz |
dynamic turbo mode is only implemented in sta mode; don't enable it
for other operating modes based on the capability
Diffstat (limited to 'sys/net80211/ieee80211_superg.c')
-rw-r--r-- | sys/net80211/ieee80211_superg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_superg.c b/sys/net80211/ieee80211_superg.c index df85493..d93bf3e 100644 --- a/sys/net80211/ieee80211_superg.c +++ b/sys/net80211/ieee80211_superg.c @@ -65,7 +65,9 @@ ieee80211_superg_vattach(struct ieee80211vap *vap) { if (vap->iv_caps & IEEE80211_C_FF) vap->iv_flags |= IEEE80211_F_FF; - if (vap->iv_caps & IEEE80211_C_TURBOP) + /* NB: we only implement sta mode */ + if (vap->iv_opmode == IEEE80211_M_STA && + (vap->iv_caps & IEEE80211_C_TURBOP)) vap->iv_flags |= IEEE80211_F_TURBOP; } |