diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ieee80211_radiotap.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/include/net/ieee80211_radiotap.h b/include/net/ieee80211_radiotap.h index 429b73892a5f..c6e0d81ea785 100644 --- a/include/net/ieee80211_radiotap.h +++ b/include/net/ieee80211_radiotap.h | |||
@@ -168,6 +168,23 @@ struct ieee80211_radiotap_header { | |||
168 | * Unitless indication of the Rx/Tx antenna for this packet. | 168 | * Unitless indication of the Rx/Tx antenna for this packet. |
169 | * The first antenna is antenna 0. | 169 | * The first antenna is antenna 0. |
170 | * | 170 | * |
171 | * IEEE80211_RADIOTAP_RX_FLAGS u_int16_t bitmap | ||
172 | * | ||
173 | * Properties of received frames. See flags defined below. | ||
174 | * | ||
175 | * IEEE80211_RADIOTAP_TX_FLAGS u_int16_t bitmap | ||
176 | * | ||
177 | * Properties of transmitted frames. See flags defined below. | ||
178 | * | ||
179 | * IEEE80211_RADIOTAP_RTS_RETRIES u_int8_t data | ||
180 | * | ||
181 | * Number of rts retries a transmitted frame used. | ||
182 | * | ||
183 | * IEEE80211_RADIOTAP_DATA_RETRIES u_int8_t data | ||
184 | * | ||
185 | * Number of unicast retries a transmitted frame used. | ||
186 | * | ||
187 | * | ||
171 | * IEEE80211_RADIOTAP_FCS u32 data | 188 | * IEEE80211_RADIOTAP_FCS u32 data |
172 | * | 189 | * |
173 | * FCS from frame in network byte order. | 190 | * FCS from frame in network byte order. |
@@ -187,7 +204,11 @@ enum ieee80211_radiotap_type { | |||
187 | IEEE80211_RADIOTAP_ANTENNA = 11, | 204 | IEEE80211_RADIOTAP_ANTENNA = 11, |
188 | IEEE80211_RADIOTAP_DB_ANTSIGNAL = 12, | 205 | IEEE80211_RADIOTAP_DB_ANTSIGNAL = 12, |
189 | IEEE80211_RADIOTAP_DB_ANTNOISE = 13, | 206 | IEEE80211_RADIOTAP_DB_ANTNOISE = 13, |
190 | IEEE80211_RADIOTAP_EXT = 31, | 207 | IEEE80211_RADIOTAP_RX_FLAGS = 14, |
208 | IEEE80211_RADIOTAP_TX_FLAGS = 15, | ||
209 | IEEE80211_RADIOTAP_RTS_RETRIES = 16, | ||
210 | IEEE80211_RADIOTAP_DATA_RETRIES = 17, | ||
211 | IEEE80211_RADIOTAP_EXT = 31 | ||
191 | }; | 212 | }; |
192 | 213 | ||
193 | /* Channel flags. */ | 214 | /* Channel flags. */ |
@@ -219,6 +240,14 @@ enum ieee80211_radiotap_type { | |||
219 | * 802.11 header and payload | 240 | * 802.11 header and payload |
220 | * (to 32-bit boundary) | 241 | * (to 32-bit boundary) |
221 | */ | 242 | */ |
243 | /* For IEEE80211_RADIOTAP_RX_FLAGS */ | ||
244 | #define IEEE80211_RADIOTAP_F_RX_BADFCS 0x0001 /* frame failed crc check */ | ||
245 | |||
246 | /* For IEEE80211_RADIOTAP_TX_FLAGS */ | ||
247 | #define IEEE80211_RADIOTAP_F_TX_FAIL 0x0001 /* failed due to excessive | ||
248 | * retries */ | ||
249 | #define IEEE80211_RADIOTAP_F_TX_CTS 0x0002 /* used cts 'protection' */ | ||
250 | #define IEEE80211_RADIOTAP_F_TX_RTS 0x0004 /* used rts/cts handshake */ | ||
222 | 251 | ||
223 | /* Ugly macro to convert literal channel numbers into their mhz equivalents | 252 | /* Ugly macro to convert literal channel numbers into their mhz equivalents |
224 | * There are certianly some conditions that will break this (like feeding it '30') | 253 | * There are certianly some conditions that will break this (like feeding it '30') |