aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorGrzegorz Bajorski <grzegorz.bajorski@tieto.com>2015-12-11 08:39:46 -0500
committerJohannes Berg <johannes.berg@intel.com>2016-02-24 03:04:19 -0500
commit178830481eee5eea147a1c8fab67a96e09d80345 (patch)
treee0f517fae9298780398500ce2fe6a9892334e752 /include/net/mac80211.h
parent412a6d800c7380c1b87c11080c7da905c27cfea8 (diff)
mac80211: allow drivers to report (non-)monitor frames
Some drivers offload some frames internally (e.g. AddBa). Reporting such frames to mac80211 would only confuse MLME. However it would be useful to be able to pass such frames to monitor interfaces for sniffing purposes, e.g. when running AP + monitor. To do that allow drivers to tell mac80211 whether a given frame should be: - processed but not delivered to any monitor vif - not processed but delievered to monitor vifs only Signed-off-by: Grzegorz Bajorski <grzegorz.bajorski@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index ee6305a52251..5910085af9e6 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1031,6 +1031,14 @@ ieee80211_tx_info_clear_status(struct ieee80211_tx_info *info)
1031 * @RX_FLAG_AMPDU_DELIM_CRC_KNOWN: The delimiter CRC field is known (the CRC 1031 * @RX_FLAG_AMPDU_DELIM_CRC_KNOWN: The delimiter CRC field is known (the CRC
1032 * is stored in the @ampdu_delimiter_crc field) 1032 * is stored in the @ampdu_delimiter_crc field)
1033 * @RX_FLAG_LDPC: LDPC was used 1033 * @RX_FLAG_LDPC: LDPC was used
1034 * @RX_FLAG_ONLY_MONITOR: Report frame only to monitor interfaces without
1035 * processing it in any regular way.
1036 * This is useful if drivers offload some frames but still want to report
1037 * them for sniffing purposes.
1038 * @RX_FLAG_SKIP_MONITOR: Process and report frame to all interfaces except
1039 * monitor interfaces.
1040 * This is useful if drivers offload some frames but still want to report
1041 * them for sniffing purposes.
1034 * @RX_FLAG_STBC_MASK: STBC 2 bit bitmask. 1 - Nss=1, 2 - Nss=2, 3 - Nss=3 1042 * @RX_FLAG_STBC_MASK: STBC 2 bit bitmask. 1 - Nss=1, 2 - Nss=2, 3 - Nss=3
1035 * @RX_FLAG_10MHZ: 10 MHz (half channel) was used 1043 * @RX_FLAG_10MHZ: 10 MHz (half channel) was used
1036 * @RX_FLAG_5MHZ: 5 MHz (quarter channel) was used 1044 * @RX_FLAG_5MHZ: 5 MHz (quarter channel) was used
@@ -1071,6 +1079,8 @@ enum mac80211_rx_flags {
1071 RX_FLAG_MACTIME_END = BIT(21), 1079 RX_FLAG_MACTIME_END = BIT(21),
1072 RX_FLAG_VHT = BIT(22), 1080 RX_FLAG_VHT = BIT(22),
1073 RX_FLAG_LDPC = BIT(23), 1081 RX_FLAG_LDPC = BIT(23),
1082 RX_FLAG_ONLY_MONITOR = BIT(24),
1083 RX_FLAG_SKIP_MONITOR = BIT(25),
1074 RX_FLAG_STBC_MASK = BIT(26) | BIT(27), 1084 RX_FLAG_STBC_MASK = BIT(26) | BIT(27),
1075 RX_FLAG_10MHZ = BIT(28), 1085 RX_FLAG_10MHZ = BIT(28),
1076 RX_FLAG_5MHZ = BIT(29), 1086 RX_FLAG_5MHZ = BIT(29),
@@ -1089,6 +1099,7 @@ enum mac80211_rx_flags {
1089 * @RX_VHT_FLAG_160MHZ: 160 MHz was used 1099 * @RX_VHT_FLAG_160MHZ: 160 MHz was used
1090 * @RX_VHT_FLAG_BF: packet was beamformed 1100 * @RX_VHT_FLAG_BF: packet was beamformed
1091 */ 1101 */
1102
1092enum mac80211_rx_vht_flags { 1103enum mac80211_rx_vht_flags {
1093 RX_VHT_FLAG_80MHZ = BIT(0), 1104 RX_VHT_FLAG_80MHZ = BIT(0),
1094 RX_VHT_FLAG_160MHZ = BIT(1), 1105 RX_VHT_FLAG_160MHZ = BIT(1),