Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

packet-ieee80211-radiotap-defs.h
1 /*-
2 * Copyright (c) 2003, 2004 David Young. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 /*
8 * Modifications to fit into the linux IEEE 802.11 stack,
9 * Mike Kershaw (dragorn@kismetwireless.net)
10 */
11
12 #ifndef IEEE80211RADIOTAP_H
13 #define IEEE80211RADIOTAP_H
14
15 #include <glib.h>
16
17 /* Base version of the radiotap packet header data */
18 #define PKTHDR_RADIOTAP_VERSION 0
19
20 /* A generic radio capture format is desirable. There is one for
21 * Linux, but it is neither rigidly defined (there were not even
22 * units given for some fields) nor easily extensible.
23 *
24 * I suggest the following extensible radio capture format. It is
25 * based on a bitmap indicating which fields are present.
26 *
27 * I am trying to describe precisely what the application programmer
28 * should expect in the following, and for that reason I tell the
29 * units and origin of each measurement (where it applies), or else I
30 * use sufficiently weaselly language ("is a monotonically nondecreasing
31 * function of...") that I cannot set false expectations for lawyerly
32 * readers.
33 */
34
35 /* The radio capture header precedes the 802.11 header.
36 * All data in the header is little endian on all platforms.
37 */
38 struct ieee80211_radiotap_header {
39 guint8 it_version; /* Version 0. Only increases
40 * for drastic changes,
41 * introduction of compatible
42 * new fields does not count.
43 */
44 guint8 it_pad;
45 guint16 it_len; /* length of the whole
46 * header in bytes, including
47 * it_version, it_pad,
48 * it_len, and data fields.
49 */
50 guint32 it_present; /* A bitmap telling which
51 * fields are present. Set bit 31
52 * (0x80000000) to extend the
53 * bitmap by another 32 bits.
54 * Additional extensions are made
55 * by setting bit 31.
56 */
57 };
58
59 /* Name Data type Units
60 * ---- --------- -----
61 *
62 * IEEE80211_RADIOTAP_TSFT __le64 microseconds
63 *
64 * Value in microseconds of the MAC's 64-bit 802.11 Time
65 * Synchronization Function timer when the first bit of the
66 * MPDU arrived at the MAC. For received frames, only.
67 *
68 * IEEE80211_RADIOTAP_CHANNEL 2 x guint16 MHz, bitmap
69 *
70 * Tx/Rx frequency in MHz, followed by flags (see below).
71 *
72 * IEEE80211_RADIOTAP_FHSS guint16 see below
73 *
74 * For frequency-hopping radios, the hop set (first byte)
75 * and pattern (second byte).
76 *
77 * IEEE80211_RADIOTAP_RATE u8 500kb/s
78 *
79 * Tx/Rx data rate
80 *
81 * IEEE80211_RADIOTAP_DBM_ANTSIGNAL s8 decibels from
82 * one milliwatt (dBm)
83 *
84 * RF signal power at the antenna, decibel difference from
85 * one milliwatt.
86 *
87 * IEEE80211_RADIOTAP_DBM_ANTNOISE s8 decibels from
88 * one milliwatt (dBm)
89 *
90 * RF noise power at the antenna, decibel difference from one
91 * milliwatt.
92 *
93 * IEEE80211_RADIOTAP_DB_ANTSIGNAL u8 decibel (dB)
94 *
95 * RF signal power at the antenna, decibel difference from an
96 * arbitrary, fixed reference.
97 *
98 * IEEE80211_RADIOTAP_DB_ANTNOISE u8 decibel (dB)
99 *
100 * RF noise power at the antenna, decibel difference from an
101 * arbitrary, fixed reference point.
102 *
103 * IEEE80211_RADIOTAP_LOCK_QUALITY guint16 unitless
104 *
105 * Quality of Barker code lock. Unitless. Monotonically
106 * nondecreasing with "better" lock strength. Called "Signal
107 * Quality" in datasheets. (Is there a standard way to measure
108 * this?)
109 *
110 * IEEE80211_RADIOTAP_TX_ATTENUATION guint16 unitless
111 *
112 * Transmit power expressed as unitless distance from max
113 * power set at factory calibration. 0 is max power.
114 * Monotonically nondecreasing with lower power levels.
115 *
116 * IEEE80211_RADIOTAP_DB_TX_ATTENUATION guint16 decibels (dB)
117 *
118 * Transmit power expressed as decibel distance from max power
119 * set at factory calibration. 0 is max power. Monotonically
120 * nondecreasing with lower power levels.
121 *
122 * IEEE80211_RADIOTAP_DBM_TX_POWER s8 decibels from
123 * one milliwatt (dBm)
124 *
125 * Transmit power expressed as dBm (decibels from a 1 milliwatt
126 * reference). This is the absolute power level measured at
127 * the antenna port.
128 *
129 * IEEE80211_RADIOTAP_FLAGS u8 bitmap
130 *
131 * Properties of transmitted and received frames. See flags
132 * defined below.
133 *
134 * IEEE80211_RADIOTAP_ANTENNA u8 antenna index
135 *
136 * Unitless indication of the Rx/Tx antenna for this packet.
137 * The first antenna is antenna 0.
138 *
139 * IEEE80211_RADIOTAP_RX_FLAGS guint16 bitmap
140 *
141 * Properties of received frames. See flags defined below.
142 *
143 * IEEE80211_RADIOTAP_TX_FLAGS guint16 bitmap
144 *
145 * Properties of transmitted frames. See flags defined below.
146 *
147 * IEEE80211_RADIOTAP_RTS_RETRIES u8 data
148 *
149 * Number of rts retries a transmitted frame used.
150 *
151 * IEEE80211_RADIOTAP_DATA_RETRIES u8 data
152 *
153 * Number of unicast retries a transmitted frame used.
154 *
155 * IEEE80211_RADIOTAP_MCS u8, u8, u8 unitless
156 *
157 * Contains a bitmap of known fields/flags, the flags, and
158 * the MCS index.
159 *
160 * IEEE80211_RADIOTAP_AMPDU_STATUS u32, u16, u8, u8 unitlesss
161 *
162 * Contains the AMPDU information for the subframe.
163 *
164 * IEEE80211_RADIOTAP_HE u16, u16, u16, u16, u16, u16 unitless
165 *
166 * IEEE80211_RADIOTAP_HE_MU U16, U16, u8[4] unitless
167 *
168 * Contains some information for HE frames.
169 * NOTE: this is a suggested field, not an assigned field, so
170 * the type value and format of this field is subject to change,
171 * although an experimental Linux patch uses bit 23 and the
172 * current format on radiotap.org.
173 */
174 enum ieee80211_radiotap_type {
175 IEEE80211_RADIOTAP_TSFT = 0,
176 IEEE80211_RADIOTAP_FLAGS = 1,
177 IEEE80211_RADIOTAP_RATE = 2,
178 IEEE80211_RADIOTAP_CHANNEL = 3,
179 IEEE80211_RADIOTAP_FHSS = 4,
180 IEEE80211_RADIOTAP_DBM_ANTSIGNAL = 5,
181 IEEE80211_RADIOTAP_DBM_ANTNOISE = 6,
182 IEEE80211_RADIOTAP_LOCK_QUALITY = 7,
183 IEEE80211_RADIOTAP_TX_ATTENUATION = 8,
184 IEEE80211_RADIOTAP_DB_TX_ATTENUATION = 9,
185 IEEE80211_RADIOTAP_DBM_TX_POWER = 10,
186 IEEE80211_RADIOTAP_ANTENNA = 11,
187 IEEE80211_RADIOTAP_DB_ANTSIGNAL = 12,
188 IEEE80211_RADIOTAP_DB_ANTNOISE = 13,
189 IEEE80211_RADIOTAP_RX_FLAGS = 14,
190 IEEE80211_RADIOTAP_TX_FLAGS = 15,
191 IEEE80211_RADIOTAP_RTS_RETRIES = 16,
192 IEEE80211_RADIOTAP_DATA_RETRIES = 17,
193 IEEE80211_RADIOTAP_XCHANNEL = 18, /* Unofficial, used by FreeBSD */
194 IEEE80211_RADIOTAP_MCS = 19,
195 IEEE80211_RADIOTAP_AMPDU_STATUS = 20,
196 IEEE80211_RADIOTAP_VHT = 21,
197 IEEE80211_RADIOTAP_TIMESTAMP = 22,
198 IEEE80211_RADIOTAP_HE = 23,
199 IEEE80211_RADIOTAP_HE_MU = 24,
200
201 /* valid in every it_present bitmap, even vendor namespaces */
202 IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE = 29,
203 IEEE80211_RADIOTAP_VENDOR_NAMESPACE = 30,
204 IEEE80211_RADIOTAP_EXT = 31
205 };
206
207 /* not (yet) defined Radiotap present flag */
208 /* Bit 24 to 28 are not defined (in binary : 0001 1111 0000 0000 0000 0000 0000 0000 */
209 #define IEEE80211_RADIOTAP_NOTDEFINED 0x1E000000
210
211 /* Channel flags. */
212 /* 0x00000001 through 0x00000008 undefined (reserved?) */
213 #define IEEE80211_CHAN_TURBO 0x00000010 /* Turbo channel */
214 #define IEEE80211_CHAN_CCK 0x00000020 /* CCK channel */
215 #define IEEE80211_CHAN_OFDM 0x00000040 /* OFDM channel */
216 #define IEEE80211_CHAN_2GHZ 0x00000080 /* 2 GHz spectrum channel. */
217 #define IEEE80211_CHAN_5GHZ 0x00000100 /* 5 GHz spectrum channel */
218 #define IEEE80211_CHAN_PASSIVE 0x00000200 /* Only passive scan allowed */
219 #define IEEE80211_CHAN_DYN 0x00000400 /* Dynamic CCK-OFDM channel */
220 #define IEEE80211_CHAN_GFSK 0x00000800 /* GFSK channel (FHSS PHY) */
221
222 /* Additional XChannel flags. */
223 #define IEEE80211_CHAN_GSM 0x00001000 /* 900 MHz spectrum channel */
224 #define IEEE80211_CHAN_STURBO 0x00002000 /* 11a static turbo channel only */
225 #define IEEE80211_CHAN_HALF 0x00004000 /* Half rate channel */
226 #define IEEE80211_CHAN_QUARTER 0x00008000 /* Quarter rate channel */
227 #define IEEE80211_CHAN_HT20 0x00010000 /* HT 20 channel */
228 #define IEEE80211_CHAN_HT40U 0x00020000 /* HT 40 channel w/ ext above */
229 #define IEEE80211_CHAN_HT40D 0x00040000 /* HT 40 channel w/ ext below */
230
231 #define IEEE80211_CHAN_HT40 (IEEE80211_CHAN_HT40U | IEEE80211_CHAN_HT40D)
232 #define IEEE80211_CHAN_HT (IEEE80211_CHAN_HT20 | IEEE80211_CHAN_HT40)
233
234 #define IEEE80211_CHAN_ALL \
235 (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_5GHZ | IEEE80211_CHAN_GFSK | \
236 IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN | \
237 IEEE80211_CHAN_HALF | IEEE80211_CHAN_QUARTER | \
238 IEEE80211_CHAN_HT)
239 #define IEEE80211_CHAN_ALLTURBO \
240 (IEEE80211_CHAN_ALL | IEEE80211_CHAN_TURBO | IEEE80211_CHAN_STURBO)
241
242 /* For IEEE80211_RADIOTAP_FLAGS */
243 #define IEEE80211_RADIOTAP_F_CFP 0x01 /* sent/received
244 * during CFP
245 */
246 #define IEEE80211_RADIOTAP_F_SHORTPRE 0x02 /* sent/received
247 * with short
248 * preamble
249 */
250 #define IEEE80211_RADIOTAP_F_WEP 0x04 /* sent/received
251 * with WEP encryption
252 */
253 #define IEEE80211_RADIOTAP_F_FRAG 0x08 /* sent/received
254 * with fragmentation
255 */
256 #define IEEE80211_RADIOTAP_F_FCS 0x10 /* frame includes FCS */
257 #define IEEE80211_RADIOTAP_F_DATAPAD 0x20 /* frame has padding between
258 * 802.11 header and payload
259 * (to 32-bit boundary)
260 */
261 #define IEEE80211_RADIOTAP_F_BADFCS 0x40 /* frame failed FCS check */
262
263 /* For IEEE80211_RADIOTAP_RX_FLAGS */
264 #define IEEE80211_RADIOTAP_F_RX_BADPLCP 0x0002 /* bad PLCP */
265
266 /* For IEEE80211_RADIOTAP_TX_FLAGS */
267 #define IEEE80211_RADIOTAP_F_TX_FAIL 0x0001 /* failed due to excessive
268 * retries */
269 #define IEEE80211_RADIOTAP_F_TX_CTS 0x0002 /* used cts 'protection' */
270 #define IEEE80211_RADIOTAP_F_TX_RTS 0x0004 /* used rts/cts handshake */
271
272
273 /* For IEEE80211_RADIOTAP_MCS */
274 #define IEEE80211_RADIOTAP_MCS_HAVE_BW 0x01
275 #define IEEE80211_RADIOTAP_MCS_HAVE_MCS 0x02
276 #define IEEE80211_RADIOTAP_MCS_HAVE_GI 0x04
277 #define IEEE80211_RADIOTAP_MCS_HAVE_FMT 0x08
278 #define IEEE80211_RADIOTAP_MCS_HAVE_FEC 0x10
279 #define IEEE80211_RADIOTAP_MCS_HAVE_STBC 0x20
280 #define IEEE80211_RADIOTAP_MCS_HAVE_NESS 0x40
281 #define IEEE80211_RADIOTAP_MCS_NESS_BIT1 0x80
282
283 #define IEEE80211_RADIOTAP_MCS_BW_MASK 0x03
284 #define IEEE80211_RADIOTAP_MCS_BW_20 0
285 #define IEEE80211_RADIOTAP_MCS_BW_40 1
286 #define IEEE80211_RADIOTAP_MCS_BW_20L 2
287 #define IEEE80211_RADIOTAP_MCS_BW_20U 3
288 #define IEEE80211_RADIOTAP_MCS_SGI 0x04
289 #define IEEE80211_RADIOTAP_MCS_FMT_GF 0x08
290 #define IEEE80211_RADIOTAP_MCS_FEC_LDPC 0x10
291 #define IEEE80211_RADIOTAP_MCS_STBC_MASK 0x60
292 #define IEEE80211_RADIOTAP_MCS_STBC_SHIFT 5
293 #define IEEE80211_RADIOTAP_MCS_STBC_1 1
294 #define IEEE80211_RADIOTAP_MCS_STBC_2 2
295 #define IEEE80211_RADIOTAP_MCS_STBC_3 3
296 #define IEEE80211_RADIOTAP_MCS_NESS_BIT0 0x80
297
298 /* For IEEE80211_RADIOTAP_AMPDU_STATUS */
299 #define IEEE80211_RADIOTAP_AMPDU_REPORT_ZEROLEN 0x0001
300 #define IEEE80211_RADIOTAP_AMPDU_IS_ZEROLEN 0x0002
301 #define IEEE80211_RADIOTAP_AMPDU_LAST_KNOWN 0x0004
302 #define IEEE80211_RADIOTAP_AMPDU_IS_LAST 0x0008
303 #define IEEE80211_RADIOTAP_AMPDU_DELIM_CRC_ERR 0x0010
304 #define IEEE80211_RADIOTAP_AMPDU_DELIM_CRC_KNOWN 0x0020
305 #define IEEE80211_RADIOTAP_AMPDU_EOF 0x0040
306 #define IEEE80211_RADIOTAP_AMPDU_EOF_KNOWN 0x0080
307
308 /* For IEEE80211_RADIOTAP_VHT */
309 #define IEEE80211_RADIOTAP_VHT_HAVE_STBC 0x0001
310 #define IEEE80211_RADIOTAP_VHT_HAVE_TXOP_PS 0x0002
311 #define IEEE80211_RADIOTAP_VHT_HAVE_GI 0x0004
312 #define IEEE80211_RADIOTAP_VHT_HAVE_SGI_NSYM_DA 0x0008
313 #define IEEE80211_RADIOTAP_VHT_HAVE_LDPC_EXTRA 0x0010
314 #define IEEE80211_RADIOTAP_VHT_HAVE_BF 0x0020
315 #define IEEE80211_RADIOTAP_VHT_HAVE_BW 0x0040
316 #define IEEE80211_RADIOTAP_VHT_HAVE_GID 0x0080
317 #define IEEE80211_RADIOTAP_VHT_HAVE_PAID 0x0100
318 #define IEEE80211_RADIOTAP_VHT_STBC 0x01
319 #define IEEE80211_RADIOTAP_VHT_TXOP_PS 0x02
320 #define IEEE80211_RADIOTAP_VHT_SGI 0x04
321 #define IEEE80211_RADIOTAP_VHT_SGI_NSYM_DA 0x08
322 #define IEEE80211_RADIOTAP_VHT_LDPC_EXTRA 0x10
323 #define IEEE80211_RADIOTAP_VHT_BF 0x20
324 #define IEEE80211_RADIOTAP_VHT_NSS 0x0f
325 #define IEEE80211_RADIOTAP_VHT_MCS 0xf0
326 #define IEEE80211_RADIOTAP_VHT_CODING_LDPC 0x01
327
328 #define IEEE80211_RADIOTAP_VHT_BW_MASK 0x1f
329 #define IEEE80211_RADIOTAP_VHT_BW_20 IEEE80211_RADIOTAP_MCS_BW_20
330 #define IEEE80211_RADIOTAP_VHT_BW_40 IEEE80211_RADIOTAP_MCS_BW_40
331 #define IEEE80211_RADIOTAP_VHT_BW_20L IEEE80211_RADIOTAP_MCS_BW_20L
332 #define IEEE80211_RADIOTAP_VHT_BW_20U IEEE80211_RADIOTAP_MCS_BW_20U
333 #define IEEE80211_RADIOTAP_VHT_BW_80 4
334 #define IEEE80211_RADIOTAP_VHT_BW_40L 5
335 #define IEEE80211_RADIOTAP_VHT_BW_40U 6
336 #define IEEE80211_RADIOTAP_VHT_BW_20LL 7
337 #define IEEE80211_RADIOTAP_VHT_BW_20LU 8
338 #define IEEE80211_RADIOTAP_VHT_BW_20UL 9
339 #define IEEE80211_RADIOTAP_VHT_BW_20UU 10
340 #define IEEE80211_RADIOTAP_VHT_BW_160 11
341 #define IEEE80211_RADIOTAP_VHT_BW_80L 12
342 #define IEEE80211_RADIOTAP_VHT_BW_80U 13
343 #define IEEE80211_RADIOTAP_VHT_BW_40LL 14
344 #define IEEE80211_RADIOTAP_VHT_BW_40LU 15
345 #define IEEE80211_RADIOTAP_VHT_BW_40UL 16
346 #define IEEE80211_RADIOTAP_VHT_BW_40UU 17
347 #define IEEE80211_RADIOTAP_VHT_BW_20LLL 18
348 #define IEEE80211_RADIOTAP_VHT_BW_20LLU 19
349 #define IEEE80211_RADIOTAP_VHT_BW_20LUL 20
350 #define IEEE80211_RADIOTAP_VHT_BW_20LUU 21
351 #define IEEE80211_RADIOTAP_VHT_BW_20ULL 22
352 #define IEEE80211_RADIOTAP_VHT_BW_20ULU 23
353 #define IEEE80211_RADIOTAP_VHT_BW_20UUL 24
354 #define IEEE80211_RADIOTAP_VHT_BW_20UUU 25
355
356 /* for IEEE80211_RADIOTAP_TIMESTAMP */
357 #define IEEE80211_RADIOTAP_TS_UNIT_MASK 0x0F
358 #define IEEE80211_RADIOTAP_TS_UNIT_MSEC 0x00
359 #define IEEE80211_RADIOTAP_TS_UNIT_USEC 0x01
360 #define IEEE80211_RADIOTAP_TS_UNIT_NSEC 0x02
361 #define IEEE80211_RADIOTAP_TS_SPOS_MASK 0xF0
362 #define IEEE80211_RADIOTAP_TS_SPOS_SHIFT 4
363 #define IEEE80211_RADIOTAP_TS_SPOS_MPDU 0x0
364 #define IEEE80211_RADIOTAP_TS_SPOS_ACQ 0x1
365 #define IEEE80211_RADIOTAP_TS_SPOS_EOF 0x2
366 #define IEEE80211_RADIOTAP_TS_SPOS_UNDEF 0xF
367
368 /* for IEEE80211_RADIOTAP_HE */
369 #define IEEE80211_RADIOTAP_HE_PPDU_FORMAT_MASK 0x0003
370 #define IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_SU 0
371 #define IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_EXT_SU 1
372 #define IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_MU 2
373 #define IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_TRIG 3
374 #define IEEE80211_RADIOTAP_HE_BSS_COLOR_KNOWN 0x0004
375 #define IEEE80211_RADIOTAP_HE_BEAM_CHANGE_KNOWN 0x0008
376 #define IEEE80211_RADIOTAP_HE_UL_DL_KNOWN 0x0010
377 #define IEEE80211_RADIOTAP_HE_DATA_MCS_KNOWN 0x0020
378 #define IEEE80211_RADIOTAP_HE_DATA_DCM_KNOWN 0x0040
379 #define IEEE80211_RADIOTAP_HE_CODING_KNOWN 0x0080
380 #define IEEE80211_RADIOTAP_HE_LDPC_EXTRA_SYMBOL_SEGMENT_KNOWN 0x0100
381 #define IEEE80211_RADIOTAP_HE_STBC_KNOWN 0x0200
382 #define IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_KNOWN 0x0400
383 #define IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_2_KNOWN 0x0800
384 #define IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_3_KNOWN 0x1000
385 #define IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_4_KNOWN 0x2000
386 #define IEEE80211_RADIOTAP_HE_DATA_BW_RU_ALLOCATION_KNOWN 0x4000
387 #define IEEE80211_RADIOTAP_HE_DOPPLER_KNOWN 0x8000
388 #define IEEE80211_RADIOTAP_HE_PRI_SEC_80_MHZ_KNOWN 0x0001
389 #define IEEE80211_RADIOTAP_HE_GI_KNOWN 0x0002
390 #define IEEE80211_RADIOTAP_HE_LTF_SYMBOLS_KNOWN 0x0004
391 #define IEEE80211_RADIOTAP_HE_PRE_FEC_PADDING_FACTOR_KNOWN 0x0008
392 #define IEEE80211_RADIOTAP_HE_TXBF_KNOWN 0x0010
393 #define IEEE80211_RADIOTAP_HE_PE_DISAMBIGUITY_KNOWN 0x0020
394 #define IEEE80211_RADIOTAP_HE_TXOP_KNOWN 0x0040
395 #define IEEE80211_RADIOTAP_HE_MIDAMBLE_PERIODICITY_KNOWN 0x0080
396 #define IEEE80211_RADIOTAP_HE_RU_ALLOCATION_OFFSET 0x3F00
397 #define IEEE80211_RADIOTAP_HE_RU_ALLOCATION_OFFSET_KNOWN 0x4000
398 #define IEEE80211_RADIOTAP_HE_PRI_SEC_80_MHZ 0x8000
399 #define IEEE80211_RADIOTAP_HE_BSS_COLOR_MASK 0x003F
400 #define IEEE80211_RADIOTAP_HE_BEAM_CHANGE 0x0040
401 #define IEEE80211_RADIOTAP_HE_UL_DL 0x0080
402 #define IEEE80211_RADIOTAP_HE_DATA_MCS_MASK 0x0F00
403 #define IEEE80211_RADIOTAP_HE_DATA_DCM 0x1000
404 #define IEEE80211_RADIOTAP_HE_CODING 0x2000
405 #define IEEE80211_RADIOTAP_HE_LDPC_EXTRA_SYMBOL_SEGMENT 0x4000
406 #define IEEE80211_RADIOTAP_HE_STBC 0x8000
407 /* HE_SU and HE_EXT_SU formap PPDU */
408 #define IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_MASK 0x000F
409 #define IEEE80211_RADIOTAP_HE_D4_FFF0 0xFFF0
410 /* HE_TRIG format PPDU */
411 #define IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_1_MASK 0X000F
412 #define IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_2_MASK 0X00F0
413 #define IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_3_MASK 0X0F00
414 #define IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_4_MASK 0XF000
415 /* HE_MU format PPDU-also uses SPATIAL_REUSE_MASK from above */
416 #define IEEE80211_RADIOTAP_HE_STA_ID_MASK 0x7FF0
417 #define IEEE80211_RADIOTAP_HE_RESERVED_D4_B15 0x8000
418
419 #define IEEE80211_RADIOTAP_HE_DATA_BANDWIDTH_RU_ALLOC_MASK 0x000F
420 #define IEEE80211_RADIOTAP_HE_GI_MASK 0x0030
421 #define IEEE80211_RADIOTAP_HE_GI_0_POINT_8_MICRO 0
422 #define IEEE80211_RADIOTAP_HE_GI_1_POINT_6_MICRO 1
423 #define IEEE80211_RADIOTAP_HE_GI_3_POINT_2_MICRO 2
424 #define IEEE80211_RADIOTAP_HE_GI_RESERVED 3
425 #define IEEE80211_RADIOTAP_HE_RESERVED_D5_00C0 0x00C0
426 #define IEEE80211_RADIOTAP_HE_LTF_SYMBOLS_MASK 0x0700
427 #define IEEE80211_RADIOTAP_HE_RESERVED_D5_B11 0x0800
428 #define IEEE80211_RADIOTAP_HE_PRE_FEC_PADDING_FACTOR_MASK 0x3000
429 #define IEEE80211_RADIOTAP_HE_TXBF 0x4000
430 #define IEEE80211_RADIOTAP_HE_PE_DISAMBIGUITY 0x8000
431 #define IEEE80211_RADIOTAP_HE_NSTS_MASK 0x000F
432 #define IEEE80211_RADIOTAP_HE_DOPLER_VALUE 0x0010
433 #define IEEE80211_RADIOTAP_HE_RESERVED_D6_00E0 0x00E0
434 #define IEEE80211_RADIOTAP_HE_TXOP_VALUE_MASK 0x7F00
435 #define IEEE80211_RADIOTAP_HE_MIDAMBLE_PERIODICITY 0x8000
436
437 /* For IEEE80211_RADIOTAP_HE_MU */
438 #define IEEE80211_RADIOTAP_HE_MU_SIG_B_MCS_MASK 0x000F
439 #define IEEE80211_RADIOTAP_HE_MU_SIG_B_MCS_KNOWN 0x0010
440 #define IEEE80211_RADIOTAP_HE_MU_SIG_B_DCM 0x0020
441 #define IEEE80211_RADIOTAP_HE_MU_SIG_B_DCM_KNOWN 0x0040
442 #define IEEE80211_RADIOTAP_HE_MU_RESERVED_F1_B7 0x0080
443 #define IEEE80211_RADIOTAP_HE_MU_RU_0_KNOWN 0x0100
444 #define IEEE80211_RADIOTAP_HE_MU_RU_1_KNOWN 0x0200
445 #define IEEE80211_RADIOTAP_HE_MU_RU_2_KNOWN 0x0400
446 #define IEEE80211_RADIOTAP_HE_MU_RU_3_KNOWN 0x0800
447 #define IEEE80211_RADIOTAP_HE_MU_CENTER_26_TONE_RU_BIT_KNOWN 0x1000
448 #define IEEE80211_RADIOTAP_HE_MU_CENTER_26_TONE_RU_VALUE 0x2000
449 #define IEEE80211_RADIOTAP_HE_MU_SIG_B_COMPRESSION_KNOWN 0x4000
450 #define IEEE80211_RADIOTAP_HE_MU_SYMBOL_CNT_OR_USER_CNT_KNOWN 0x8000
451 #define IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_MASK 0x0003
452 #define IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_KNOWN 0x0004
453 #define IEEE80211_RADIOTAP_HE_MU_SIG_B_COMPRESSION_FROM_SIG_A 0x0008
454 #define IEEE80211_RADIOTAP_HE_MU_SYMBOL_CNT_OR_USER_CNT 0x00F0
455 #define IEEE80211_RADIOTAP_HE_MU_PREAMBLE_PUNCTURING_MASK 0x0300
456 #define IEEE80211_RADIOTAP_HE_MU_PREAMBLE_PUNCTURING_KNOWN 0x0400
457 #define IEEE80211_RADIOTAP_HE_MU_RESERVED_F2_B11_B15 0xF800
458
459 #define IEEE80211_RADIOTAP_TS_FLG_32BIT 0x01
460 #define IEEE80211_RADIOTAP_TS_FLG_ACCURACY 0x02
461
462 #endif /* IEEE80211_RADIOTAP_H */
ieee80211_radiotap_header
Definition: packet-ieee80211-radiotap-defs.h:38