summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Merello2014-06-30 18:18:55 +0200
committerJohn W. Linville2014-07-01 20:26:27 +0200
commit81129fce7e4fc60fce616c53510699b093d87e26 (patch)
tree2a321be8a7ffe2035a9d2281ac56bc5f948a6f76
parentrtl818x_pci: add comment pointing to the rtl8187se reference code (diff)
downloadkernel-qcow2-linux-81129fce7e4fc60fce616c53510699b093d87e26.tar.gz
kernel-qcow2-linux-81129fce7e4fc60fce616c53510699b093d87e26.tar.xz
kernel-qcow2-linux-81129fce7e4fc60fce616c53510699b093d87e26.zip
rtl8180: fix incorrect TX retry.
HW is programmed with wrong retry count value for TX: Mac80211 passes to driver the number of times the TX should be attempted. The HW, instead, wants the number of time the TX should be retried if it fails the first time (assuming we have to TX it at least one time). This patch correct this. Signed-off-by: Andrea Merello <andrea.merello@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/rtl818x/rtl8180/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180/dev.c b/drivers/net/wireless/rtl818x/rtl8180/dev.c
index 8a64bc116bfd..4f4fcf8b2013 100644
--- a/drivers/net/wireless/rtl818x/rtl8180/dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8180/dev.c
@@ -542,7 +542,7 @@ static void rtl8180_tx(struct ieee80211_hw *dev,
entry->flags2 = info->control.rates[1].idx >= 0 ?
ieee80211_get_alt_retry_rate(dev, info, 0)->bitrate << 4 : 0;
- entry->retry_limit = info->control.rates[0].count;
+ entry->retry_limit = info->control.rates[0].count - 1;
/* We must be sure that tx_flags is written last because the HW
* looks at it to check if the rest of data is valid or not