rtl8180: fix tx status reporting
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 28 Apr 2010 23:14:42 +0000 (19:14 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Apr 2010 18:28:09 +0000 (14:28 -0400)
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
drivers/net/wireless/rtl818x/rtl8180_dev.c

index c406cc85878b3d4891369492f4a861784ea34921..4907fef011ada248acf9b4ffd9d2fb6f8374052b 100644 (file)
@@ -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)