summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath5k
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2015-11-19 18:04:48 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2015-12-08 17:50:24 +0300
commit410d13a6b057f69c58b8bf8ccca8e9cbf57ea710 (patch)
tree82456902a1aaf9686a51158c71da97bf4ce245d1 /drivers/net/wireless/ath/ath5k
parent79fd1709b64991c86e5ffef0689b4635874e6504 (diff)
downloadlinux-410d13a6b057f69c58b8bf8ccca8e9cbf57ea710.tar.xz
ath5k: fix RTS/CTS by using proper rate flags
The rates in the tx control rateset do not have the protection flags applied, so RTS/CTS would never get enabled if requested. Fix by using the rate flags in the rates returned by ieee80211_get_tx_rates(). Signed-off-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 342563a3706f..3d946d8b2db2 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -767,7 +767,7 @@ ath5k_txbuf_setup(struct ath5k_hw *ah, struct ath5k_buf *bf,
if (info->flags & IEEE80211_TX_CTL_NO_ACK)
flags |= AR5K_TXDESC_NOACK;
- rc_flags = info->control.rates[0].flags;
+ rc_flags = bf->rates[0].flags;
hw_rate = ath5k_get_rate_hw_value(ah->hw, info, bf, 0);