diff options
-rw-r--r-- | include/net/mac80211.h | 2 | ||||
-rw-r--r-- | net/mac80211/rx.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 25cc192cbe4c..dcc05a197dc1 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -363,6 +363,7 @@ static inline struct ieee80211_tx_info *IEEE80211_SKB_CB(struct sk_buff *skb) | |||
363 | * @RX_FLAG_TSFT: The timestamp passed in the RX status (@mactime field) | 363 | * @RX_FLAG_TSFT: The timestamp passed in the RX status (@mactime field) |
364 | * is valid. This is useful in monitor mode and necessary for beacon frames | 364 | * is valid. This is useful in monitor mode and necessary for beacon frames |
365 | * to enable IBSS merging. | 365 | * to enable IBSS merging. |
366 | * @RX_FLAG_SHORTPRE: Short preamble was used for this frame | ||
366 | */ | 367 | */ |
367 | enum mac80211_rx_flags { | 368 | enum mac80211_rx_flags { |
368 | RX_FLAG_MMIC_ERROR = 1<<0, | 369 | RX_FLAG_MMIC_ERROR = 1<<0, |
@@ -373,6 +374,7 @@ enum mac80211_rx_flags { | |||
373 | RX_FLAG_FAILED_FCS_CRC = 1<<5, | 374 | RX_FLAG_FAILED_FCS_CRC = 1<<5, |
374 | RX_FLAG_FAILED_PLCP_CRC = 1<<6, | 375 | RX_FLAG_FAILED_PLCP_CRC = 1<<6, |
375 | RX_FLAG_TSFT = 1<<7, | 376 | RX_FLAG_TSFT = 1<<7, |
377 | RX_FLAG_SHORTPRE = 1<<8 | ||
376 | }; | 378 | }; |
377 | 379 | ||
378 | /** | 380 | /** |
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 6db854505193..ad47a614a202 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -143,6 +143,8 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local, | |||
143 | /* IEEE80211_RADIOTAP_FLAGS */ | 143 | /* IEEE80211_RADIOTAP_FLAGS */ |
144 | if (local->hw.flags & IEEE80211_HW_RX_INCLUDES_FCS) | 144 | if (local->hw.flags & IEEE80211_HW_RX_INCLUDES_FCS) |
145 | *pos |= IEEE80211_RADIOTAP_F_FCS; | 145 | *pos |= IEEE80211_RADIOTAP_F_FCS; |
146 | if (status->flag & RX_FLAG_SHORTPRE) | ||
147 | *pos |= IEEE80211_RADIOTAP_F_SHORTPRE; | ||
146 | pos++; | 148 | pos++; |
147 | 149 | ||
148 | /* IEEE80211_RADIOTAP_RATE */ | 150 | /* IEEE80211_RADIOTAP_RATE */ |