On 2GHz band the values of wCurrentRate match the idx rates.
However, on 5GHz they do not because in channel.c vnt_rates_a do not
match idx.
Instead use the info->control.rates[0].idx the value that was tried.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
}
if (context->skb) {
+ s8 idx;
+
info = IEEE80211_SKB_CB(context->skb);
+
+ idx = info->control.rates[0].idx;
+
ieee80211_tx_info_clear_status(info);
- info->status.rates[0].idx = priv->wCurrentRate;
+ info->status.rates[0].idx = idx;
info->status.rates[0].count = 0;
if (!urb->status)
info->flags |= IEEE80211_TX_STAT_ACK;