aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtl818x/rtl8187_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rtl818x/rtl8187_dev.c')
-rw-r--r--drivers/net/wireless/rtl818x/rtl8187_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c b/drivers/net/wireless/rtl818x/rtl8187_dev.c
index 69ea5222f163..dbf52e8bbd7a 100644
--- a/drivers/net/wireless/rtl818x/rtl8187_dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c
@@ -238,7 +238,7 @@ static int rtl8187_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
238 hdr->flags = cpu_to_le32(flags); 238 hdr->flags = cpu_to_le32(flags);
239 hdr->len = 0; 239 hdr->len = 0;
240 hdr->rts_duration = rts_dur; 240 hdr->rts_duration = rts_dur;
241 hdr->retry = cpu_to_le32(info->control.rates[0].count << 8); 241 hdr->retry = cpu_to_le32((info->control.rates[0].count - 1) << 8);
242 buf = hdr; 242 buf = hdr;
243 243
244 ep = 2; 244 ep = 2;
@@ -256,7 +256,7 @@ static int rtl8187_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
256 memset(hdr, 0, sizeof(*hdr)); 256 memset(hdr, 0, sizeof(*hdr));
257 hdr->flags = cpu_to_le32(flags); 257 hdr->flags = cpu_to_le32(flags);
258 hdr->rts_duration = rts_dur; 258 hdr->rts_duration = rts_dur;
259 hdr->retry = cpu_to_le32(info->control.rates[0].count << 8); 259 hdr->retry = cpu_to_le32((info->control.rates[0].count - 1) << 8);
260 hdr->tx_duration = 260 hdr->tx_duration =
261 ieee80211_generic_frame_duration(dev, priv->vif, 261 ieee80211_generic_frame_duration(dev, priv->vif,
262 skb->len, txrate); 262 skb->len, txrate);