aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-04-16 07:38:43 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-04-16 17:42:30 -0400
commit991fec091061b901e4fdcc8af4fd25d24a5a7bab (patch)
treee85082dc9b42276fb9695ff02ca1461f406e4042 /include/net/mac80211.h
parent2ffbe6d333664a089f17b13aa79eefe38f794bb7 (diff)
mac80211: fix CTS protection handling
The rates[0] CTS and RTS flags are only set after rate control has been called, so minstrel cannot use them to for setting the number of retries. This patch adds two new flags to explicitly indicate RTS/CTS use. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 05dbb9788504..4f693a5c54de 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -655,7 +655,9 @@ struct ieee80211_tx_info {
655 struct ieee80211_tx_rate rates[ 655 struct ieee80211_tx_rate rates[
656 IEEE80211_TX_MAX_RATES]; 656 IEEE80211_TX_MAX_RATES];
657 s8 rts_cts_rate_idx; 657 s8 rts_cts_rate_idx;
658 /* 3 bytes free */ 658 u8 use_rts:1;
659 u8 use_cts_prot:1;
660 /* 2 bytes free */
659 }; 661 };
660 /* only needed before rate control */ 662 /* only needed before rate control */
661 unsigned long jiffies; 663 unsigned long jiffies;