diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-04-29 03:14:42 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-30 22:28:09 +0400 |
commit | d989ff7cf8d14f1b523f63ba0bf2ec1a9b7c25bc (patch) | |
tree | c7d4ee7465450bc14f01c69d7b86ad5a7f5475be /drivers/net/wireless/rtl818x | |
parent | 8fc214ba958648ab111a173f2db7b0e1dfed5b11 (diff) | |
download | linux-d989ff7cf8d14f1b523f63ba0bf2ec1a9b7c25bc.tar.xz |
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
Diffstat (limited to 'drivers/net/wireless/rtl818x')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8180_dev.c | 1 |
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) |