Search Linux Wireless

[PATCH 2/2] staging: vt6656: s_nsBulkOutIoCompleteWrite fix bug of 5GHZ a rates idx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 drivers/staging/vt6656/usbpipe.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c
index 428193e..c5d4047 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;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux