mac80211: fix rate control tx handler for VHT rates
authorKarl Beldan <karl.beldan@rivierawaves.com>
Mon, 15 Apr 2013 16:28:21 +0000 (18:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Apr 2013 13:59:08 +0000 (15:59 +0200)
commitfbd647b17689d584748bad62395cd1161d42d37c
treebd513410018d31ec19d764aa8a22ca147512edcb
parent7a7da6ee0ea3443cd5111adffa80a3daba4bb8df
mac80211: fix rate control tx handler for VHT rates

Handle VHT rates like HT ones, otherwise we easily trigger the pre-HT
rates WARN_ON(rc_rate->idx >= sband->n_bitrates) which will set
rc_rate->idx to -1.

Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c