diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-06-29 23:39:55 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 03:02:41 +0400 |
commit | a5615b9775164ae6f63b8636f46fdedf33f13d67 (patch) | |
tree | 54d0cb863154d071cfbf4711bb64764cda1510ed | |
parent | 1786384e13e9e380ee3a0507d041663ff0ca124c (diff) | |
download | linux-a5615b9775164ae6f63b8636f46fdedf33f13d67.tar.xz |
staging: vt6656: s_nsBulkOutIoCompleteWrite fix bug of 5GHZ a rates idx
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>
-rw-r--r-- | drivers/staging/vt6656/usbpipe.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index 428193e1497f..c5d4047befe0 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -419,9 +419,14 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb) } 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; |