mac80211: minstrel_ht: include type (cck/ht) in rates flag
authorKarl Beldan <karl.beldan@rivierawaves.com>
Mon, 20 Oct 2014 13:46:01 +0000 (15:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Oct 2014 19:39:35 +0000 (21:39 +0200)
commit3ec373c421b6efc41b84b20265b4381beb1d7908
treed53801c4b16d0ea75d2ce79ab44c6f56457b1b8c
parent8a0ee4fe1951af252b1ac7b5c6af4083bafc4c7e
mac80211: minstrel_ht: include type (cck/ht) in rates flag

ATM, we grep cck rates idx with idx / MCS_GROUP_RATES ==
MINSTREL_CCK_GROUP.
Matching neither-cck-non-ht rates could be done by replacing '==' with
'>', however it would be less versatile or explicit.
This will allow to match VHT rates with IEEE80211_TX_RC_VHT_MCS.

Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c