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
This commit is contained in:
Adrian Chadd 2012-12-10 07:00:46 +00:00
parent 737d12b397
commit 1a006f7d56

View File

@ -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;
}
/*