ath9k: Allow configuration of LED polarity in platform data.
[oweals/openwrt.git] / package / kernel / mac80211 / patches / 302-ath5k-fix-RTS-CTS-by-using-proper-rate-flags.patch
1 From: Bob Copeland <me@bobcopeland.com>
2 Date: Thu, 19 Nov 2015 10:04:48 -0500
3 Subject: [PATCH] ath5k: fix RTS/CTS by using proper rate flags
4
5 The rates in the tx control rateset do not have the protection
6 flags applied, so RTS/CTS would never get enabled if requested.
7
8 Fix by using the rate flags in the rates returned by
9 ieee80211_get_tx_rates().
10
11 Signed-off-by: Bob Copeland <me@bobcopeland.com>
12 ---
13
14 --- a/drivers/net/wireless/ath/ath5k/base.c
15 +++ b/drivers/net/wireless/ath/ath5k/base.c
16 @@ -767,7 +767,7 @@ ath5k_txbuf_setup(struct ath5k_hw *ah, s
17         if (info->flags & IEEE80211_TX_CTL_NO_ACK)
18                 flags |= AR5K_TXDESC_NOACK;
19  
20 -       rc_flags = info->control.rates[0].flags;
21 +       rc_flags = bf->rates[0].flags;
22  
23         hw_rate = ath5k_get_rate_hw_value(ah->hw, info, bf, 0);
24