aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-09-17 01:29:22 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:28 -0400
commit72abd81b980ef7ffb83ecb4ac4a7627d9d575f50 (patch)
tree82bed7bb728c862bce54883102703d5aea1a8f8f /include/net/mac80211.h
parentac630c2b1933e79ff32e3653ae656620cf4b4c79 (diff)
[MAC80211]: allow drivers to indicate failed FCS/PLCP checksum
This patch allows drivers to indicate bad FCS/PLCP CRC to the stack and have the stack drop packets like that except for monitor interfaces. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 947f3c820e42..7d9dc20ee42f 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -235,6 +235,10 @@ struct ieee80211_tx_control {
235 * @RX_FLAG_IV_STRIPPED: The IV/ICV are stripped from this frame. 235 * @RX_FLAG_IV_STRIPPED: The IV/ICV are stripped from this frame.
236 * If this flag is set, the stack cannot do any replay detection 236 * If this flag is set, the stack cannot do any replay detection
237 * hence the driver or hardware will have to do that. 237 * hence the driver or hardware will have to do that.
238 * @RX_FLAG_FAILED_FCS_CRC: Set this flag if the FCS check failed on
239 * the frame.
240 * @RX_FLAG_FAILED_PLCP_CRC: Set this flag if the PCLP check failed on
241 * the frame.
238 */ 242 */
239enum mac80211_rx_flags { 243enum mac80211_rx_flags {
240 RX_FLAG_MMIC_ERROR = 1<<0, 244 RX_FLAG_MMIC_ERROR = 1<<0,
@@ -242,6 +246,8 @@ enum mac80211_rx_flags {
242 RX_FLAG_RADIOTAP = 1<<2, 246 RX_FLAG_RADIOTAP = 1<<2,
243 RX_FLAG_MMIC_STRIPPED = 1<<3, 247 RX_FLAG_MMIC_STRIPPED = 1<<3,
244 RX_FLAG_IV_STRIPPED = 1<<4, 248 RX_FLAG_IV_STRIPPED = 1<<4,
249 RX_FLAG_FAILED_FCS_CRC = 1<<5,
250 RX_FLAG_FAILED_PLCP_CRC = 1<<6,
245}; 251};
246 252
247/** 253/**