mac80211: minstrel_ht: fix rates selection
authorKarl Beldan <karl.beldan@rivierawaves.com>
Wed, 13 Nov 2013 22:07:07 +0000 (23:07 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 15:50:10 +0000 (16:50 +0100)
commit351df099721e02e1a25a498268e52c0378c0e272
tree9ae6fb4e7ae55b58ac3476c32b3fea9734aebfe1
parent6c751ef8a1a15d633cd755eafa86ede9c32b2617
mac80211: minstrel_ht: fix rates selection

When initializing rates selections starting indexes upon stats update,
the minstrel_sta->max_* rates should be 'group * MCS_GROUP_RATES + i'
not 'i'. This affects settings where one of the peers does not support
any of the rates of the group 0 (i.e. when ht_cap.mcs.rx_mask[0] == 0).

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