summaryrefslogtreecommitdiff
path: root/package/kernel/mac80211/patches/302-ath5k-fix-RTS-CTS-by-using-proper-rate-flags.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-12-04 22:39:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-12-04 22:39:37 +0000
commit70ac77f8696f0684d22199a278aa80585ddcd1bc (patch)
tree83ed7a65bbbe65d963cf33cda696d4785a22b7a3 /package/kernel/mac80211/patches/302-ath5k-fix-RTS-CTS-by-using-proper-rate-flags.patch
parent8b30afb00537eb479cae6cae758765c3c874bb8f (diff)
downloadmtk-20170518-70ac77f8696f0684d22199a278aa80585ddcd1bc.zip
mtk-20170518-70ac77f8696f0684d22199a278aa80585ddcd1bc.tar.gz
mtk-20170518-70ac77f8696f0684d22199a278aa80585ddcd1bc.tar.bz2
mac80211: update to 2015-12-03
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47771
Diffstat (limited to 'package/kernel/mac80211/patches/302-ath5k-fix-RTS-CTS-by-using-proper-rate-flags.patch')
-rw-r--r--package/kernel/mac80211/patches/302-ath5k-fix-RTS-CTS-by-using-proper-rate-flags.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/302-ath5k-fix-RTS-CTS-by-using-proper-rate-flags.patch b/package/kernel/mac80211/patches/302-ath5k-fix-RTS-CTS-by-using-proper-rate-flags.patch
new file mode 100644
index 0000000..9aea90e
--- /dev/null
+++ b/package/kernel/mac80211/patches/302-ath5k-fix-RTS-CTS-by-using-proper-rate-flags.patch
@@ -0,0 +1,24 @@
+From: Bob Copeland <me@bobcopeland.com>
+Date: Thu, 19 Nov 2015 10:04:48 -0500
+Subject: [PATCH] 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>
+---
+
+--- 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, s
+ 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);
+