summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-04-28 19:14:42 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-30 14:28:09 -0400
commitd989ff7cf8d14f1b523f63ba0bf2ec1a9b7c25bc (patch)
treec7d4ee7465450bc14f01c69d7b86ad5a7f5475be
parent8fc214ba958648ab111a173f2db7b0e1dfed5b11 (diff)
downloadblackbird-op-linux-d989ff7cf8d14f1b523f63ba0bf2ec1a9b7c25bc.tar.gz
blackbird-op-linux-d989ff7cf8d14f1b523f63ba0bf2ec1a9b7c25bc.zip
rtl8180: fix tx status reporting
When reporting Tx status, indicate that only one rate was used. Otherwise, the rate is frozen at rate index 0 (i.e. 1Mb/s). Signed-off-by: John W. Linville <linville@tuxdriver.com> Cc: stable@kernel.org
-rw-r--r--drivers/net/wireless/rtl818x/rtl8180_dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180_dev.c b/drivers/net/wireless/rtl818x/rtl8180_dev.c
index c406cc85878b..4907fef011ad 100644
--- a/drivers/net/wireless/rtl818x/rtl8180_dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8180_dev.c
@@ -187,6 +187,7 @@ static void rtl8180_handle_tx(struct ieee80211_hw *dev, unsigned int prio)
info->flags |= IEEE80211_TX_STAT_ACK;
info->status.rates[0].count = (flags & 0xFF) + 1;
+ info->status.rates[1].idx = -1;
ieee80211_tx_status_irqsafe(dev, skb);
if (ring->entries - skb_queue_len(&ring->queue) == 2)
OpenPOWER on IntegriCloud