mac80211: fix CTS protection handling
authorFelix Fietkau <nbd@openwrt.org>
Tue, 16 Apr 2013 11:38:43 +0000 (13:38 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Apr 2013 21:42:30 +0000 (23:42 +0200)
commit991fec091061b901e4fdcc8af4fd25d24a5a7bab
treee85082dc9b42276fb9695ff02ca1461f406e4042
parent2ffbe6d333664a089f17b13aa79eefe38f794bb7
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>
include/net/mac80211.h
net/mac80211/rc80211_minstrel.c
net/mac80211/tx.c