diff options
author | adrian <adrian@FreeBSD.org> | 2012-12-10 07:00:46 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-12-10 07:00:46 +0000 |
commit | f0196dc70a347e934293b9a8c49d66dda7d48672 (patch) | |
tree | db07b3343c690bfbc47117a301b7f7076a2bdce9 /sys/net80211 | |
parent | 03cb0ec54ea26b76c32b2a20e3c9a6545a31a74f (diff) | |
download | FreeBSD-src-f0196dc70a347e934293b9a8c49d66dda7d48672.zip FreeBSD-src-f0196dc70a347e934293b9a8c49d66dda7d48672.tar.gz |
Adjust the channel to correctly setup the HT flags when transitioning
an IBSS VAP to RUN.
An 11n IBSS was beaconing HTINFO/HTCAP IE's that didn't have any HT
information setup (like the HT TX/RX MCS bitmask.)
Tested:
* AR9280, IBSS - both a statically setup channel and a scanned channel
PR: kern/172955
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_adhoc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_adhoc.c b/sys/net80211/ieee80211_adhoc.c index 060dc6e..0220474 100644 --- a/sys/net80211/ieee80211_adhoc.c +++ b/sys/net80211/ieee80211_adhoc.c @@ -171,7 +171,9 @@ adhoc_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) * Already have a channel; bypass the * scan and startup immediately. */ - ieee80211_create_ibss(vap, vap->iv_des_chan); + ieee80211_create_ibss(vap, + ieee80211_ht_adjust_channel(ic, + vap->iv_des_chan, vap->iv_flags_ht)); break; } /* |