Fix the PLCP lookup code in iwn(4) to base the 11n decision on whether

the rate is 11n, rather than whether the channel is 11n.

This correctly allows the PLCP lookup code to return the legacy rates
even on an 11n channel.

PR:		kern/183430
This commit is contained in:
Adrian Chadd 2013-10-29 04:03:00 +00:00
parent 4ec6017e0b
commit e15cc8dca6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257301

View File

@ -2210,7 +2210,7 @@ iwn_rate_to_plcp(struct iwn_softc *sc, struct ieee80211_node *ni,
* If it's an MCS rate, let's set the plcp correctly
* and set the relevant flags based on the node config.
*/
if (IEEE80211_IS_CHAN_HT(ni->ni_chan)) {
if (rate & IEEE80211_RATE_MCS) {
/*
* Set the initial PLCP value to be between 0->31 for
* MCS 0 -> MCS 31, then set the "I'm an MCS rate!"