2 * packet-ieee80211-radiotap.c
3 * Decode packets with a Radiotap header
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * Copied from README.developer
11 * SPDX-License-Identifier: GPL-2.0-or-later
18 #include <epan/packet.h>
19 #include <epan/capture_dissectors.h>
20 #include <wsutil/pint.h>
21 #include <epan/crc32-tvb.h>
22 #include <wsutil/802_11-utils.h>
23 #include <epan/prefs.h>
24 #include <epan/addr_resolv.h>
25 #include <epan/expert.h>
26 #include <epan/arptypes.h>
28 #include <epan/unit_strings.h>
29 #include "packet-ieee80211.h"
30 #include "packet-ieee80211-radiotap-iter.h"
32 void proto_register_radiotap(void);
33 void proto_reg_handoff_radiotap(void);
36 static int proto_radiotap
;
38 static int hf_radiotap_version
;
39 static int hf_radiotap_pad
;
40 static int hf_radiotap_length
;
41 static int hf_radiotap_present
;
43 static int hf_radiotap_tlv_type
;
44 static int hf_radiotap_tlv_datalen
;
45 static int hf_radiotap_unknown_tlv_data
;
47 static int hf_radiotap_mactime
;
48 /* static int hf_radiotap_channel; */
49 static int hf_radiotap_channel_frequency
;
50 static int hf_radiotap_channel_flags
;
51 static int hf_radiotap_channel_flags_700mhz
;
52 static int hf_radiotap_channel_flags_800mhz
;
53 static int hf_radiotap_channel_flags_900mhz
;
54 static int hf_radiotap_channel_flags_turbo
;
55 static int hf_radiotap_channel_flags_cck
;
56 static int hf_radiotap_channel_flags_ofdm
;
57 static int hf_radiotap_channel_flags_2ghz
;
58 static int hf_radiotap_channel_flags_5ghz
;
59 static int hf_radiotap_channel_flags_passive
;
60 static int hf_radiotap_channel_flags_dynamic
;
61 static int hf_radiotap_channel_flags_gfsk
;
62 static int hf_radiotap_channel_flags_gsm
;
63 static int hf_radiotap_channel_flags_sturbo
;
64 static int hf_radiotap_channel_flags_half
;
65 static int hf_radiotap_channel_flags_quarter
;
66 static int hf_radiotap_rxflags
;
67 static int hf_radiotap_rxflags_badplcp
;
68 static int hf_radiotap_txflags
;
69 static int hf_radiotap_txflags_fail
;
70 static int hf_radiotap_txflags_cts
;
71 static int hf_radiotap_txflags_rts
;
72 static int hf_radiotap_txflags_noack
;
73 static int hf_radiotap_txflags_noseqno
;
74 static int hf_radiotap_txflags_order
;
75 static int hf_radiotap_xchannel_channel
;
76 static int hf_radiotap_xchannel_frequency
;
77 static int hf_radiotap_xchannel_flags
;
78 static int hf_radiotap_xchannel_flags_turbo
;
79 static int hf_radiotap_xchannel_flags_cck
;
80 static int hf_radiotap_xchannel_flags_ofdm
;
81 static int hf_radiotap_xchannel_flags_2ghz
;
82 static int hf_radiotap_xchannel_flags_5ghz
;
83 static int hf_radiotap_xchannel_flags_passive
;
84 static int hf_radiotap_xchannel_flags_dynamic
;
85 static int hf_radiotap_xchannel_flags_gfsk
;
86 static int hf_radiotap_xchannel_flags_gsm
;
87 static int hf_radiotap_xchannel_flags_sturbo
;
88 static int hf_radiotap_xchannel_flags_half
;
89 static int hf_radiotap_xchannel_flags_quarter
;
90 static int hf_radiotap_xchannel_flags_ht20
;
91 static int hf_radiotap_xchannel_flags_ht40u
;
92 static int hf_radiotap_xchannel_flags_ht40d
;
94 static int hf_radiotap_xchannel_maxpower
;
96 static int hf_radiotap_fhss_hopset
;
97 static int hf_radiotap_fhss_pattern
;
98 static int hf_radiotap_datarate
;
99 static int hf_radiotap_antenna
;
100 static int hf_radiotap_dbm_antsignal
;
101 static int hf_radiotap_db_antsignal
;
102 static int hf_radiotap_dbm_antnoise
;
103 static int hf_radiotap_db_antnoise
;
104 static int hf_radiotap_tx_attenuation
;
105 static int hf_radiotap_db_tx_attenuation
;
106 static int hf_radiotap_txpower
;
107 static int hf_radiotap_data_retries
;
108 static int hf_radiotap_vendor_ns
;
109 static int hf_radiotap_ven_oui
;
110 static int hf_radiotap_ven_subns
;
111 static int hf_radiotap_ven_skip
;
112 static int hf_radiotap_ven_item
;
113 static int hf_radiotap_ven_data
;
114 static int hf_radiotap_mcs
;
115 static int hf_radiotap_mcs_known
;
116 static int hf_radiotap_mcs_have_bw
;
117 static int hf_radiotap_mcs_have_index
;
118 static int hf_radiotap_mcs_have_gi
;
119 static int hf_radiotap_mcs_have_format
;
120 static int hf_radiotap_mcs_have_fec
;
121 static int hf_radiotap_mcs_have_stbc
;
122 static int hf_radiotap_mcs_have_ness
;
123 static int hf_radiotap_mcs_ness_bit1
;
124 static int hf_radiotap_mcs_bw
;
125 static int hf_radiotap_mcs_index
;
126 static int hf_radiotap_mcs_gi
;
127 static int hf_radiotap_mcs_format
;
128 static int hf_radiotap_mcs_fec
;
129 static int hf_radiotap_mcs_stbc
;
130 static int hf_radiotap_mcs_ness_bit0
;
131 static int hf_radiotap_ampdu
;
132 static int hf_radiotap_ampdu_ref
;
133 static int hf_radiotap_ampdu_flags
;
134 static int hf_radiotap_ampdu_flags_report_zerolen
;
135 static int hf_radiotap_ampdu_flags_is_zerolen
;
136 static int hf_radiotap_ampdu_flags_last_known
;
137 static int hf_radiotap_ampdu_flags_is_last
;
138 static int hf_radiotap_ampdu_flags_delim_crc_error
;
139 static int hf_radiotap_ampdu_delim_crc
;
140 static int hf_radiotap_ampdu_flags_eof_known
;
141 static int hf_radiotap_ampdu_flags_eof
;
142 static int hf_radiotap_vht
;
143 static int hf_radiotap_vht_known
;
144 static int hf_radiotap_vht_have_stbc
;
145 static int hf_radiotap_vht_have_txop_ps
;
146 static int hf_radiotap_vht_have_gi
;
147 static int hf_radiotap_vht_have_sgi_nsym_da
;
148 static int hf_radiotap_vht_have_ldpc_extra
;
149 static int hf_radiotap_vht_have_bf
;
150 static int hf_radiotap_vht_have_bw
;
151 static int hf_radiotap_vht_have_gid
;
152 static int hf_radiotap_vht_have_p_aid
;
153 static int hf_radiotap_vht_stbc
;
154 static int hf_radiotap_vht_txop_ps
;
155 static int hf_radiotap_vht_gi
;
156 static int hf_radiotap_vht_sgi_nsym_da
;
157 static int hf_radiotap_vht_ldpc_extra
;
158 static int hf_radiotap_vht_bf
;
159 static int hf_radiotap_vht_bw
;
160 static int hf_radiotap_vht_nsts
[4];
161 static int hf_radiotap_vht_mcs
[4];
162 static int hf_radiotap_vht_nss
[4];
163 static int hf_radiotap_vht_coding
[4];
164 static int hf_radiotap_vht_datarate
[4];
165 static int hf_radiotap_vht_gid
;
166 static int hf_radiotap_vht_p_aid
;
167 static int hf_radiotap_vht_user
;
168 static int hf_radiotap_timestamp
;
169 static int hf_radiotap_timestamp_ts
;
170 static int hf_radiotap_timestamp_accuracy
;
171 static int hf_radiotap_timestamp_unit
;
172 static int hf_radiotap_timestamp_spos
;
173 static int hf_radiotap_timestamp_flags_32bit
;
174 static int hf_radiotap_timestamp_flags_accuracy
;
176 /* "Present" flags */
177 static int hf_radiotap_present_word
;
178 static int hf_radiotap_present_tsft
;
179 static int hf_radiotap_present_flags
;
180 static int hf_radiotap_present_rate
;
181 static int hf_radiotap_present_channel
;
182 static int hf_radiotap_present_fhss
;
183 static int hf_radiotap_present_dbm_antsignal
;
184 static int hf_radiotap_present_dbm_antnoise
;
185 static int hf_radiotap_present_lock_quality
;
186 static int hf_radiotap_present_tx_attenuation
;
187 static int hf_radiotap_present_db_tx_attenuation
;
188 static int hf_radiotap_present_dbm_tx_power
;
189 static int hf_radiotap_present_antenna
;
190 static int hf_radiotap_present_db_antsignal
;
191 static int hf_radiotap_present_db_antnoise
;
192 static int hf_radiotap_present_hdrfcs
;
193 static int hf_radiotap_present_rxflags
;
194 static int hf_radiotap_present_txflags
;
195 static int hf_radiotap_present_data_retries
;
196 static int hf_radiotap_present_xchannel
;
197 static int hf_radiotap_present_mcs
;
198 static int hf_radiotap_present_ampdu
;
199 static int hf_radiotap_present_vht
;
200 static int hf_radiotap_present_timestamp
;
201 static int hf_radiotap_present_he
;
202 static int hf_radiotap_present_he_mu
;
203 static int hf_radiotap_present_0_length_psdu
;
204 static int hf_radiotap_present_l_sig
;
205 static int hf_radiotap_present_tlv
;
206 static int hf_radiotap_present_reserved
;
207 static int hf_radiotap_present_rtap_ns
;
208 static int hf_radiotap_present_vendor_ns
;
209 static int hf_radiotap_present_ext
;
211 /* "present.flags" flags */
212 static int hf_radiotap_flags
;
213 static int hf_radiotap_flags_cfp
;
214 static int hf_radiotap_flags_preamble
;
215 static int hf_radiotap_flags_wep
;
216 static int hf_radiotap_flags_frag
;
217 static int hf_radiotap_flags_fcs
;
218 static int hf_radiotap_flags_datapad
;
219 static int hf_radiotap_flags_badfcs
;
220 static int hf_radiotap_flags_shortgi
;
222 static int hf_radiotap_quality
;
223 static int hf_radiotap_fcs
;
224 static int hf_radiotap_fcs_bad
;
227 static int hf_radiotap_he_ppdu_format
;
228 static int hf_radiotap_he_bss_color_known
;
229 static int hf_radiotap_he_beam_change_known
;
230 static int hf_radiotap_he_ul_dl_known
;
231 static int hf_radiotap_he_data_mcs_known
;
232 static int hf_radiotap_he_data_dcm_known
;
233 static int hf_radiotap_he_coding_known
;
234 static int hf_radiotap_he_ldpc_extra_symbol_segment_known
;
235 static int hf_radiotap_he_stbc_known
;
236 static int hf_radiotap_he_spatial_reuse_1_known
;
237 static int hf_radiotap_he_spatial_reuse_2_known
;
238 static int hf_radiotap_he_spatial_reuse_3_known
;
239 static int hf_radiotap_he_spatial_reuse_4_known
;
240 static int hf_radiotap_he_data_bw_ru_allocation_known
;
241 static int hf_radiotap_he_doppler_known
;
242 static int hf_radiotap_he_pri_sec_80_mhz_known
;
243 static int hf_radiotap_he_gi_known
;
244 static int hf_radiotap_he_num_ltf_symbols_known
;
245 static int hf_radiotap_he_pre_fec_padding_factor_known
;
246 static int hf_radiotap_he_txbf_known
;
247 static int hf_radiotap_he_pe_disambiguity_known
;
248 static int hf_radiotap_he_txop_known
;
249 static int hf_radiotap_he_midamble_periodicity_known
;
250 static int hf_radiotap_he_ru_allocation_offset
;
251 static int hf_radiotap_he_ru_allocation_offset_known
;
252 static int hf_radiotap_he_pri_sec_80_mhz
;
253 static int hf_radiotap_he_bss_color
;
254 static int hf_radiotap_he_bss_color_unknown
;
255 static int hf_radiotap_he_beam_change
;
256 static int hf_radiotap_he_beam_change_unknown
;
257 static int hf_radiotap_he_ul_dl
;
258 static int hf_radiotap_he_ul_dl_unknown
;
259 static int hf_radiotap_he_data_mcs
;
260 static int hf_radiotap_he_data_mcs_unknown
;
261 static int hf_radiotap_he_data_dcm
;
262 static int hf_radiotap_he_data_dcm_unknown
;
263 static int hf_radiotap_he_coding
;
264 static int hf_radiotap_he_coding_unknown
;
265 static int hf_radiotap_he_ldpc_extra_symbol_segment
;
266 static int hf_radiotap_he_ldpc_extra_symbol_segment_unknown
;
267 static int hf_radiotap_he_stbc
;
268 static int hf_radiotap_he_stbc_unknown
;
269 static int hf_radiotap_spatial_reuse
;
270 static int hf_radiotap_spatial_reuse_unknown
;
271 static int hf_radiotap_he_su_reserved
;
272 static int hf_radiotap_spatial_reuse_1
;
273 static int hf_radiotap_spatial_reuse_1_unknown
;
274 static int hf_radiotap_spatial_reuse_2
;
275 static int hf_radiotap_spatial_reuse_2_unknown
;
276 static int hf_radiotap_spatial_reuse_3
;
277 static int hf_radiotap_spatial_reuse_3_unknown
;
278 static int hf_radiotap_spatial_reuse_4
;
279 static int hf_radiotap_spatial_reuse_4_unknown
;
280 static int hf_radiotap_sta_id_user_captured
;
281 static int hf_radiotap_he_mu_reserved
;
282 static int hf_radiotap_data_bandwidth_ru_allocation
;
283 static int hf_radiotap_data_bandwidth_ru_allocation_unknown
;
284 static int hf_radiotap_gi
;
285 static int hf_radiotap_gi_unknown
;
286 static int hf_radiotap_ltf_symbol_size
;
287 static int hf_radiotap_ltf_symbol_size_unknown
;
288 static int hf_radiotap_num_ltf_symbols
;
289 static int hf_radiotap_num_ltf_symbols_unknown
;
290 static int hf_radiotap_d5_reserved_b11
;
291 static int hf_radiotap_pre_fec_padding_factor
;
292 static int hf_radiotap_pre_fec_padding_factor_unknown
;
293 static int hf_radiotap_txbf
;
294 static int hf_radiotap_txbf_unknown
;
295 static int hf_radiotap_pe_disambiguity
;
296 static int hf_radiotap_pe_disambiguity_unknown
;
297 static int hf_radiotap_he_nsts
;
298 static int hf_radiotap_he_doppler_value
;
299 static int hf_radiotap_he_doppler_value_unknown
;
300 static int hf_radiotap_he_d6_reserved_00e0
;
301 static int hf_radiotap_he_txop_value
;
302 static int hf_radiotap_he_txop_value_unknown
;
303 static int hf_radiotap_midamble_periodicity
;
304 static int hf_radiotap_midamble_periodicity_unknown
;
305 static int hf_radiotap_he_info_data_1
;
306 static int hf_radiotap_he_info_data_2
;
307 static int hf_radiotap_he_info_data_3
;
308 static int hf_radiotap_he_info_data_4
;
309 static int hf_radiotap_he_info_data_5
;
310 static int hf_radiotap_he_info_data_6
;
311 static int hf_radiotap_he_mu_sig_b_mcs
;
312 static int hf_radiotap_he_mu_sig_b_mcs_unknown
;
313 static int hf_radiotap_he_mu_sig_b_mcs_known
;
314 static int hf_radiotap_he_mu_sig_b_dcm
;
315 static int hf_radiotap_he_mu_sig_b_dcm_unknown
;
316 static int hf_radiotap_he_mu_sig_b_dcm_known
;
317 static int hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_known
;
318 static int hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_unknown
;
319 static int hf_radiotap_he_mu_chan1_rus_known
;
320 static int hf_radiotap_he_mu_chan1_rus_unknown
;
321 static int hf_radiotap_he_mu_chan2_rus_known
;
322 static int hf_radiotap_he_mu_chan2_rus_unknown
;
323 static int hf_radiotap_he_mu_reserved_f1_b10_b11
;
324 static int hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_known
;
325 static int hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_unknown
;
326 static int hf_radiotap_he_mu_chan1_center_26_tone_ru_value
;
327 static int hf_radiotap_he_mu_sig_b_compression_known
;
328 static int hf_radiotap_he_mu_sig_b_compression_unknown
;
329 static int hf_radiotap_he_mu_sig_b_compression_from_sig_a
;
330 static int hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_known
;
331 static int hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_unknown
;
332 static int hf_radiotap_he_mu_info_flags_1
;
333 static int hf_radiotap_he_mu_bw_from_bw_in_sig_a
;
334 static int hf_radiotap_he_mu_bw_from_bw_in_sig_a_unknown
;
335 static int hf_radiotap_he_mu_bw_from_bw_in_sig_a_known
;
336 static int hf_radiotap_he_mu_sig_b_syms_mu_mimo_users
;
337 static int hf_radiotap_he_mu_preamble_puncturing
;
338 static int hf_radiotap_he_mu_preamble_puncturing_unknown
;
339 static int hf_radiotap_he_mu_preamble_puncturing_known
;
340 static int hf_radiotap_he_mu_chan2_center_26_tone_ru_value
;
341 static int hf_radiotap_he_mu_reserved_f2_b12_b15
;
342 static int hf_radiotap_he_mu_info_flags_2
;
343 static int hf_radiotap_he_mu_chan1_rus_0
;
344 static int hf_radiotap_he_mu_chan1_rus_0_unknown
;
345 static int hf_radiotap_he_mu_chan1_rus_1
;
346 static int hf_radiotap_he_mu_chan1_rus_1_unknown
;
347 static int hf_radiotap_he_mu_chan1_rus_2
;
348 static int hf_radiotap_he_mu_chan1_rus_2_unknown
;
349 static int hf_radiotap_he_mu_chan1_rus_3
;
350 static int hf_radiotap_he_mu_chan1_rus_3_unknown
;
351 static int hf_radiotap_he_mu_chan2_rus_0
;
352 static int hf_radiotap_he_mu_chan2_rus_0_unknown
;
353 static int hf_radiotap_he_mu_chan2_rus_1
;
354 static int hf_radiotap_he_mu_chan2_rus_1_unknown
;
355 static int hf_radiotap_he_mu_chan2_rus_2
;
356 static int hf_radiotap_he_mu_chan2_rus_2_unknown
;
357 static int hf_radiotap_he_mu_chan2_rus_3
;
358 static int hf_radiotap_he_mu_chan2_rus_3_unknown
;
361 static int hf_radiotap_0_length_psdu_type
;
364 static int hf_radiotap_l_sig_data_1
;
365 static int hf_radiotap_l_sig_rate_known
;
366 static int hf_radiotap_l_sig_length_known
;
367 static int hf_radiotap_l_sig_reserved
;
368 static int hf_radiotap_l_sig_data_2
;
369 static int hf_radiotap_l_sig_rate
;
370 static int hf_radiotap_l_sig_length
;
373 static int hf_radiotap_u_sig_common
;
374 static int hf_radiotap_usig_phy_version_identifier_known
;
375 static int hf_radiotap_usig_bw_known
;
376 static int hf_radiotap_usig_ul_dl_known
;
377 static int hf_radiotap_usig_bss_color_known
;
378 static int hf_radiotap_usig_txop_known
;
379 static int hf_radiotap_usig_bad_u_sig_crc
;
380 static int hf_radiotap_usig_validate_bits_checked
;
381 static int hf_radiotap_usig_validate_bits_ok
;
382 static int hf_radiotap_usig_reserved
;
383 static int hf_radiotap_usig_phy_version_id
;
384 static int hf_radiotap_usig_bw
;
385 static int hf_radiotap_usig_ul_dl
;
386 static int hf_radiotap_usig_bss_color
;
387 static int hf_radiotap_usig_txop
;
388 static int hf_radiotap_usig_value_mu_ppdu
;
389 static int hf_radiotap_usig_eht_mu_b20_b24
;
390 static int hf_radiotap_usig_eht_mu_b20_b24_not_known
;
391 static int hf_radiotap_usig_eht_mu_b25
;
392 static int hf_radiotap_usig_eht_mu_b25_not_known
;
393 static int hf_radiotap_usig_ppdu_type_and_comp_mode
;
394 static int hf_radiotap_usig_validate1
;
395 static int hf_radiotap_usig_validate1_not_known
;
396 static int hf_radiotap_usig_punctured_channel_info
;
397 static int hf_radiotap_usig_punctured_channel_info_not_known
;
398 static int hf_radiotap_usig_validate2
;
399 static int hf_radiotap_usig_validate2_not_known
;
400 static int hf_radiotap_usig_eht_sig_mcs
;
401 static int hf_radiotap_usig_eht_sig_mcs_not_known
;
402 static int hf_radiotap_usig_number_eht_sig_symbols
;
403 static int hf_radiotap_usig_number_eht_sig_symbols_not_known
;
404 static int hf_radiotap_usig_crc
;
405 static int hf_radiotap_usig_crc_not_known
;
406 static int hf_radiotap_usig_tail
;
407 static int hf_radiotap_usig_tail_not_known
;
408 static int hf_radiotap_u_sig_mask
;
409 static int hf_radiotap_usig_value_tb_ppdu
;
410 static int hf_radiotap_usig_eht_tb_b20_b25
;
411 static int hf_radiotap_usig_eht_tb_b20_b25_not_known
;
412 static int hf_radiotap_usig_eht_tb_validate1
;
413 static int hf_radiotap_usig_eht_tb_validate1_not_known
;
414 static int hf_radiotap_usig_eht_tb_spatial_reuse_1
;
415 static int hf_radiotap_usig_eht_tb_spatial_reuse_1_not_known
;
416 static int hf_radiotap_usig_eht_tb_spatial_reuse_2
;
417 static int hf_radiotap_usig_eht_tb_spatial_reuse_2_not_known
;
418 static int hf_radiotap_usig_eht_tb_disregard
;
419 static int hf_radiotap_usig_eht_tb_disregard_not_known
;
420 static int hf_radiotap_usig_eht_tb_crc
;
421 static int hf_radiotap_usig_eht_tb_crc_not_known
;
422 static int hf_radiotap_usig_eht_tb_tail
;
423 static int hf_radiotap_usig_eht_tb_tail_not_known
;
426 static int hf_radiotap_eht_known
;
427 static int hf_radiotap_eht_reserved_1
;
428 static int hf_radiotap_eht_spatial_reuse_known
;
429 static int hf_radiotap_eht_guard_interval_known
;
430 static int hf_radiotap_eht_reserved_8
;
431 static int hf_radiotap_eht_number_ltf_symbols_known
;
432 static int hf_radiotap_eht_ldpc_extra_symbol_segment_known
;
433 static int hf_radiotap_eht_pre_fec_padding_factor_known
;
434 static int hf_radiotap_eht_pe_disambiguity_known
;
435 static int hf_radiotap_eht_disregard_known
;
436 static int hf_radiotap_eht_reserved1
;
437 static int hf_radiotap_eht_reserved_2
;
438 static int hf_radiotap_eht_crc1_known
;
439 static int hf_radiotap_eht_tail1_known
;
440 static int hf_radiotap_eht_crc2_known
;
441 static int hf_radiotap_eht_tail2_known
;
442 static int hf_radiotap_eht_nss_known
;
443 static int hf_radiotap_eht_beamformed_known
;
444 static int hf_radiotap_eht_number_non_ofdma_users_known
;
445 static int hf_radiotap_eht_user_encoding_block_crc_known
;
446 static int hf_radiotap_eht_user_encoding_block_tail_known
;
447 static int hf_radiotap_eht_ru_mru_size_known
;
448 static int hf_radiotap_eht_ru_mru_index_known
;
449 static int hf_radiotap_eht_tb_ru_allocation_known
;
450 static int hf_radiotap_eht_primary_80mhz_channel_pos_known
;
451 static int hf_radiotap_eht_reserved_fc
;
452 static int hf_radiotap_eht_data0
;
453 static int hf_radiotap_eht_data0_reserved1
;
454 static int hf_radiotap_eht_data0_spatial_reuse
;
455 static int hf_radiotap_eht_data0_spatial_reuse_not_known
;
456 static int hf_radiotap_eht_data0_gi
;
457 static int hf_radiotap_eht_data0_gi_not_known
;
458 static int hf_radiotap_eht_data0_ltf_symbol_size
;
459 static int hf_radiotap_eht_data0_number_ltf_symbols
;
460 static int hf_radiotap_eht_data0_number_ltf_symbols_not_known
;
461 static int hf_radiotap_eht_data0_ldpc_extra_symbol_segment
;
462 static int hf_radiotap_eht_data0_ldpc_extra_symbol_segment_not_known
;
463 static int hf_radiotap_eht_data0_pre_fec_padding_factor
;
464 static int hf_radiotap_eht_data0_pre_fec_padding_factor_not_known
;
465 static int hf_radiotap_eht_data0_pe_disambiguity
;
466 static int hf_radiotap_eht_data0_pe_disambiguity_not_known
;
467 static int hf_radiotap_eht_data0_disregard
;
468 static int hf_radiotap_eht_data0_disregard_not_known
;
469 static int hf_radiotap_eht_data0_crc1
;
470 static int hf_radiotap_eht_data0_crc1_not_known
;
471 static int hf_radiotap_eht_data0_tail1
;
472 static int hf_radiotap_eht_data0_tail1_not_known
;
473 static int hf_radiotap_eht_data1
;
474 static int hf_radiotap_eht_data1_ru_mru_size
;
475 static int hf_radiotap_eht_data1_ru_mru_size_not_known
;
476 static int hf_radiotap_eht_data1_ru_mru_index
;
477 static int hf_radiotap_eht_data1_ru_mru_index_not_known
;
478 static int hf_radiotap_eht_data1_ru_alloc_c1_1_1
;
479 static int hf_radiotap_eht_data1_ru_alloc_c1_1_1_not_known
;
480 static int hf_radiotap_eht_data1_ru_alloc_c1_1_1_known
;
481 static int hf_radiotap_eht_data1_reserved
;
482 static int hf_radiotap_eht_data1_primary_80_mhz_chan_pos
;
483 static int hf_radiotap_eht_data1_primary_80_mhz_chan_pos_not_known
;
484 static int hf_radiotap_eht_data2
;
485 static int hf_radiotap_eht_data2_ru_alloc_c2_1_1
;
486 static int hf_radiotap_eht_data2_ru_alloc_c2_1_1_not_known
;
487 static int hf_radiotap_eht_data2_ru_alloc_c2_1_1_known
;
488 static int hf_radiotap_eht_data2_ru_alloc_c1_1_2
;
489 static int hf_radiotap_eht_data2_ru_alloc_c1_1_2_not_known
;
490 static int hf_radiotap_eht_data2_ru_alloc_c1_1_2_known
;
491 static int hf_radiotap_eht_data2_ru_alloc_c2_1_2
;
492 static int hf_radiotap_eht_data2_ru_alloc_c2_1_2_not_known
;
493 static int hf_radiotap_eht_data2_ru_alloc_c2_1_2_known
;
494 static int hf_radiotap_eht_data2_reserved
;
495 static int hf_radiotap_eht_data3
;
496 static int hf_radiotap_eht_data3_ru_alloc_c1_2_1
;
497 static int hf_radiotap_eht_data3_ru_alloc_c1_2_1_not_known
;
498 static int hf_radiotap_eht_data3_ru_alloc_c1_2_1_known
;
499 static int hf_radiotap_eht_data3_ru_alloc_c2_2_1
;
500 static int hf_radiotap_eht_data3_ru_alloc_c2_2_1_not_known
;
501 static int hf_radiotap_eht_data3_ru_alloc_c2_2_1_known
;
502 static int hf_radiotap_eht_data3_ru_alloc_c1_2_2
;
503 static int hf_radiotap_eht_data3_ru_alloc_c1_2_2_not_known
;
504 static int hf_radiotap_eht_data3_ru_alloc_c1_2_2_known
;
505 static int hf_radiotap_eht_data3_reserved
;
506 static int hf_radiotap_eht_data4
;
507 static int hf_radiotap_eht_data4_ru_alloc_c2_2_2
;
508 static int hf_radiotap_eht_data4_ru_alloc_c2_2_2_not_known
;
509 static int hf_radiotap_eht_data4_ru_alloc_c2_2_2_known
;
510 static int hf_radiotap_eht_data4_ru_alloc_c1_2_3
;
511 static int hf_radiotap_eht_data4_ru_alloc_c1_2_3_not_known
;
512 static int hf_radiotap_eht_data4_ru_alloc_c1_2_3_known
;
513 static int hf_radiotap_eht_data4_ru_alloc_c2_2_3
;
514 static int hf_radiotap_eht_data4_ru_alloc_c2_2_3_not_known
;
515 static int hf_radiotap_eht_data4_ru_alloc_c2_2_3_known
;
516 static int hf_radiotap_eht_data4_reserved
;
517 static int hf_radiotap_eht_data5
;
518 static int hf_radiotap_eht_data5_ru_alloc_c1_2_4
;
519 static int hf_radiotap_eht_data5_ru_alloc_c1_2_4_not_known
;
520 static int hf_radiotap_eht_data5_ru_alloc_c1_2_4_known
;
521 static int hf_radiotap_eht_data5_ru_alloc_c2_2_4
;
522 static int hf_radiotap_eht_data5_ru_alloc_c2_2_4_not_known
;
523 static int hf_radiotap_eht_data5_ru_alloc_c2_2_4_known
;
524 static int hf_radiotap_eht_data5_ru_alloc_c1_2_5
;
525 static int hf_radiotap_eht_data5_ru_alloc_c1_2_5_not_known
;
526 static int hf_radiotap_eht_data5_ru_alloc_c1_2_5_known
;
527 static int hf_radiotap_eht_data5_reserved
;
528 static int hf_radiotap_eht_data6
;
529 static int hf_radiotap_eht_data6_ru_alloc_c2_2_5
;
530 static int hf_radiotap_eht_data6_ru_alloc_c2_2_5_not_known
;
531 static int hf_radiotap_eht_data6_ru_alloc_c2_2_5_known
;
532 static int hf_radiotap_eht_data6_ru_alloc_c1_2_6
;
533 static int hf_radiotap_eht_data6_ru_alloc_c1_2_6_not_known
;
534 static int hf_radiotap_eht_data6_ru_alloc_c1_2_6_known
;
535 static int hf_radiotap_eht_data6_ru_alloc_c2_2_6
;
536 static int hf_radiotap_eht_data6_ru_alloc_c2_2_6_not_known
;
537 static int hf_radiotap_eht_data6_ru_alloc_c2_2_6_known
;
538 static int hf_radiotap_eht_data6_reserved
;
539 static int hf_radiotap_eht_data7
;
540 static int hf_radiotap_eht_data7_crc2
;
541 static int hf_radiotap_eht_data7_tail2
;
542 static int hf_radiotap_eht_data7_rsvd
;
543 static int hf_radiotap_eht_data7_nss
;
544 static int hf_radiotap_eht_data7_beamformed
;
545 static int hf_radiotap_eht_data7_number_non_ofdma_users
;
546 static int hf_radiotap_eht_data7_number_non_ofdma_users_not_known
;
547 static int hf_radiotap_eht_data7_user_encode_crc
;
548 static int hf_radiotap_eht_data7_user_encode_tail
;
549 static int hf_radiotap_eht_data7_rsvd2
;
550 static int hf_radiotap_eht_data8
;
551 static int hf_radiotap_eht_data8_ru_alloc_ps_160
;
552 static int hf_radiotap_eht_data8_ru_alloc_b0
;
553 static int hf_radiotap_eht_data8_ru_alloc_b7_b1
;
554 static int hf_radiotap_eht_data8_rsvd
;
555 static int hf_radiotap_eht_user_info
;
556 static int hf_radiotap_eht_ui_sta_id_known
;
557 static int hf_radiotap_eht_ui_mcs_known
;
558 static int hf_radiotap_eht_ui_coding_known
;
559 static int hf_radiotap_eht_ui_rsvd_known
;
560 static int hf_radiotap_eht_ui_nss_known
;
561 static int hf_radiotap_eht_ui_beamforming_known
;
562 static int hf_radiotap_eht_ui_spatial_config_known
;
563 static int hf_radiotap_eht_ui_data_captured
;
564 static int hf_radiotap_eht_ui_sta_id
;
565 static int hf_radiotap_eht_ui_sta_id_not_known
;
566 static int hf_radiotap_eht_ui_coding
;
567 static int hf_radiotap_eht_ui_coding_not_known
;
568 static int hf_radiotap_eht_ui_mcs
;
569 static int hf_radiotap_eht_ui_mcs_not_known
;
570 static int hf_radiotap_eht_ui_nss
;
571 static int hf_radiotap_eht_ui_nss_not_known
;
572 static int hf_radiotap_eht_ui_reserved
;
573 static int hf_radiotap_eht_ui_reserved_not_known
;
574 static int hf_radiotap_eht_ui_beamforming
;
575 static int hf_radiotap_eht_ui_beamforming_not_known
;
576 static int hf_radiotap_eht_ui_spatial_config
;
577 static int hf_radiotap_eht_ui_rsvd1
;
580 static const value_string eht_data_ru_mru_size_vals
[] = {
581 { IEEE80211_RADIOTAP_EHT_RU_26
, "26-tone RU" },
582 { IEEE80211_RADIOTAP_EHT_RU_52
, "52-tone RU" },
583 { IEEE80211_RADIOTAP_EHT_RU_106
, "106-tone RU" },
584 { IEEE80211_RADIOTAP_EHT_RU_242
, "242-tone RU"},
585 { IEEE80211_RADIOTAP_EHT_RU_484
, "484-tone RU"},
586 { IEEE80211_RADIOTAP_EHT_RU_996
, "996-tone RU"},
587 { IEEE80211_RADIOTAP_EHT_RU_2_TIMES_996
, "2x996-tone RU"},
588 { IEEE80211_RADIOTAP_EHT_RU_4_TIMES_994
, "4x996-tone RU"},
589 { IEEE80211_RADIOTAP_EHT_RU_52_PLUS_26
, "52+26-tone RU"},
590 { IEEE80211_RADIOTAP_EHT_RU_106_PLUS_26
, "106+26-tone RU"},
591 { IEEE80211_RADIOTAP_EHT_RU_484_PLUS_242
, "484+242-tone RU"},
592 { IEEE80211_RADIOTAP_EHT_RU_996_PLUS_484
, "996+484-tone RU"},
593 { IEEE80211_RADIOTAP_EHT_RU_996_PLUS_484_242
, "996+484+242-tone RU"},
594 { IEEE80211_RADIOTAP_EHT_RU_2_TIMES_996_PLUS_484
, "2x996+484-tone RU"},
595 { IEEE80211_RADIOTAP_EHT_RU_3_TIMES_996
, "3x996-tone RU"},
596 { IEEE80211_RADIOTAP_EHT_RU_3_TIMES_996_PLUS_484
, "3x996+484-tone RU"},
601 static int hf_radiotap_s1g_known
;
602 static int hf_radiotap_s1g_s1g_ppdu_format_known
;
603 static int hf_radiotap_s1g_response_indication_known
;
604 static int hf_radiotap_s1g_guard_interval_known
;
605 static int hf_radiotap_s1g_nss_known
;
606 static int hf_radiotap_s1g_bandwidth_known
;
607 static int hf_radiotap_s1g_mcs_known
;
608 static int hf_radiotap_s1g_color_known
;
609 static int hf_radiotap_s1g_uplink_indication_known
;
610 static int hf_radiotap_s1g_reserved_1
;
611 static int hf_radiotap_s1g_data_1
;
612 static int hf_radiotap_s1g_s1g_ppdu_format
;
613 static int hf_radiotap_s1g_response_indication
;
614 static int hf_radiotap_s1g_reserved_2
;
615 static int hf_radiotap_s1g_guard_interval
;
616 static int hf_radiotap_s1g_nss
;
617 static int hf_radiotap_s1g_bandwidth
;
618 static int hf_radiotap_s1g_mcs
;
619 static int hf_radiotap_s1g_data_2
;
620 static int hf_radiotap_s1g_color
;
621 static int hf_radiotap_s1g_uplink_indication
;
622 static int hf_radiotap_s1g_rssi
;
623 static int hf_radiotap_s1g_reserved_3
;
625 static int ett_radiotap
;
626 static int ett_radiotap_tlv
;
627 static int ett_radiotap_present
;
628 static int ett_radiotap_present_word
;
629 static int ett_radiotap_flags
;
630 static int ett_radiotap_rxflags
;
631 static int ett_radiotap_txflags
;
632 static int ett_radiotap_channel_flags
;
633 static int ett_radiotap_xchannel_flags
;
634 static int ett_radiotap_vendor
;
635 static int ett_radiotap_mcs
;
636 static int ett_radiotap_mcs_known
;
637 static int ett_radiotap_ampdu
;
638 static int ett_radiotap_ampdu_flags
;
639 static int ett_radiotap_vht
;
640 static int ett_radiotap_vht_known
;
641 static int ett_radiotap_vht_user
;
642 static int ett_radiotap_timestamp
;
643 static int ett_radiotap_timestamp_flags
;
644 static int ett_radiotap_he_info
;
645 static int ett_radiotap_he_info_data_1
;
646 static int ett_radiotap_he_info_data_2
;
647 static int ett_radiotap_he_info_data_3
;
648 static int ett_radiotap_he_info_data_4
;
649 static int ett_radiotap_he_info_data_5
;
650 static int ett_radiotap_he_info_data_6
;
651 static int ett_radiotap_he_mu_info
;
652 static int ett_radiotap_he_mu_info_flags_1
;
653 static int ett_radiotap_he_mu_info_flags_2
;
654 static int ett_radiotap_he_mu_chan_rus
;
655 static int ett_radiotap_0_length_psdu
;
656 static int ett_radiotap_l_sig
;
657 static int ett_radiotap_l_sig_data_1
;
658 static int ett_radiotap_l_sig_data_2
;
659 static int ett_radiotap_unknown_tlv
;
662 static int ett_radiotap_u_sig
;
663 static int ett_radiotap_u_sig_common
;
664 static int ett_radiotap_u_sig_value
;
667 static int ett_radiotap_s1g
;
668 static int ett_radiotap_s1g_known
;
669 static int ett_radiotap_s1g_data_1
;
670 static int ett_radiotap_s1g_data_2
;
673 static int ett_radiotap_eht
;
674 static int ett_radiotap_eht_known
;
675 static int ett_radiotap_eht_data
;
676 static int ett_radiotap_eht_user_info
;
677 static int ett_radiotap_eht_user_info_i
;
679 static expert_field ei_radiotap_invalid_header_length
;
680 static expert_field ei_radiotap_data_past_header
;
681 static expert_field ei_radiotap_present
;
682 static expert_field ei_radiotap_invalid_data_rate
;
684 static dissector_handle_t ieee80211_radio_handle
;
686 static capture_dissector_handle_t ieee80211_cap_handle
;
687 static capture_dissector_handle_t ieee80211_datapad_cap_handle
;
689 static dissector_table_t vendor_dissector_table
;
692 static bool radiotap_bit14_fcs
;
693 static bool radiotap_interpret_high_rates_as_mcs
;
695 #define USE_FCS_BIT 0
696 #define ASSUME_FCS_PRESENT 1
697 #define ASSUME_FCS_ABSENT 2
698 static const enum_val_t fcs_handling
[] = {
699 { "use_fcs_bit", "Use the FCS bit", USE_FCS_BIT
},
700 { "assume_fcs_present", "Assume all packets have an FCS at the end", ASSUME_FCS_PRESENT
},
701 { "assume_fcs_absent", "Assume all packets don't have an FCS at the end", ASSUME_FCS_ABSENT
},
704 static int radiotap_fcs_handling
= USE_FCS_BIT
;
706 #define BITNO_32(x) (((x) >> 16) ? 16 + BITNO_16((x) >> 16) : BITNO_16((x)))
707 #define BITNO_16(x) (((x) >> 8) ? 8 + BITNO_8((x) >> 8) : BITNO_8((x)))
708 #define BITNO_8(x) (((x) >> 4) ? 4 + BITNO_4((x) >> 4) : BITNO_4((x)))
709 #define BITNO_4(x) (((x) >> 2) ? 2 + BITNO_2((x) >> 2) : BITNO_2((x)))
710 #define BITNO_2(x) (((x) & 2) ? 1 : 0)
711 #define BIT(n) (1U << n)
713 /* not officially defined (yet) */
714 #define IEEE80211_RADIOTAP_F_SHORTGI 0x80
715 #define IEEE80211_RADIOTAP_XCHANNEL 18
717 /* Official specifcation:
719 * http://www.radiotap.org/
721 * Unofficial and historical specifications:
722 * http://madwifi-project.org/wiki/DevDocs/RadiotapHeader
723 * NetBSD's ieee80211_radiotap.h file
727 * Useful combinations of channel characteristics.
729 #define IEEE80211_CHAN_FHSS \
730 (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_GFSK)
731 #define IEEE80211_CHAN_DSSS \
732 (IEEE80211_CHAN_2GHZ)
733 #define IEEE80211_CHAN_A \
734 (IEEE80211_CHAN_5GHZ | IEEE80211_CHAN_OFDM)
735 #define IEEE80211_CHAN_B \
736 (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK)
737 #define IEEE80211_CHAN_PUREG \
738 (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_OFDM)
739 #define IEEE80211_CHAN_G \
740 (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_DYN)
741 #define IEEE80211_CHAN_108A \
742 (IEEE80211_CHAN_A | IEEE80211_CHAN_TURBO)
743 #define IEEE80211_CHAN_108G \
744 (IEEE80211_CHAN_G | IEEE80211_CHAN_TURBO)
745 #define IEEE80211_CHAN_108PUREG \
746 (IEEE80211_CHAN_PUREG | IEEE80211_CHAN_TURBO)
747 #define IEEE80211_CHAN_ST \
748 (IEEE80211_CHAN_108A | IEEE80211_CHAN_STURBO)
750 #define MAX_MCS_VHT_INDEX 9
751 #define MAX_VHT_NSS 8
754 * Maps a VHT bandwidth index to ieee80211_vhtinfo.rates index.
756 static const int ieee80211_vht_bw2rate_index
[] = {
758 /* 40Mhz total */ 1, 0, 0,
759 /* 80Mhz total */ 2, 1, 1, 0, 0, 0, 0,
760 /* 160Mhz total */ 3, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0
763 struct mcs_vht_valid
{
764 bool valid
[4][MAX_VHT_NSS
]; /* indexed by bandwidth and NSS-1 */
767 static const struct mcs_vht_valid ieee80211_vhtvalid
[MAX_MCS_VHT_INDEX
+1] = {
770 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
771 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
772 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
773 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
778 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
779 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
780 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
781 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
786 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
787 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
788 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
789 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
794 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
795 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
796 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
797 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
802 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
803 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
804 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
805 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
810 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
811 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
812 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
813 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
818 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
819 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
820 /* 80 Mhz */ { true, true, false, true, true, true, false, true },
821 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
826 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
827 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
828 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
829 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
834 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
835 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
836 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
837 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
842 { /* 20 Mhz */ { false, false, true, false, false, true, false, false },
843 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
844 /* 80 Mhz */ { true, true, true, true, true, false, true, true },
845 /* 160 Mhz */ { true, true, false, true, true, true, true, true },
850 struct mcs_vht_info
{
851 const char *modulation
;
852 const char *coding_rate
;
853 float rates
[4][2]; /* indexed by bandwidth and GI length */
856 static const struct mcs_vht_info ieee80211_vhtinfo
[MAX_MCS_VHT_INDEX
+1] = {
859 { /* 20 Mhz */ { 6.5f
, /* SGI */ 7.2f
, },
860 /* 40 Mhz */ { 13.5f
, /* SGI */ 15.0f
, },
861 /* 80 Mhz */ { 29.3f
, /* SGI */ 32.5f
, },
862 /* 160 Mhz */ { 58.5f
, /* SGI */ 65.0f
, }
867 { /* 20 Mhz */ { 13.0f
, /* SGI */ 14.4f
, },
868 /* 40 Mhz */ { 27.0f
, /* SGI */ 30.0f
, },
869 /* 80 Mhz */ { 58.5f
, /* SGI */ 65.0f
, },
870 /* 160 Mhz */ { 117.0f
, /* SGI */ 130.0f
, }
875 { /* 20 Mhz */ { 19.5f
, /* SGI */ 21.7f
, },
876 /* 40 Mhz */ { 40.5f
, /* SGI */ 45.0f
, },
877 /* 80 Mhz */ { 87.8f
, /* SGI */ 97.5f
, },
878 /* 160 Mhz */ { 175.5f
, /* SGI */ 195.0f
, }
883 { /* 20 Mhz */ { 26.0f
, /* SGI */ 28.9f
, },
884 /* 40 Mhz */ { 54.0f
, /* SGI */ 60.0f
, },
885 /* 80 Mhz */ { 117.0f
, /* SGI */ 130.0f
, },
886 /* 160 Mhz */ { 234.0f
, /* SGI */ 260.0f
, }
891 { /* 20 Mhz */ { 39.0f
, /* SGI */ 43.3f
, },
892 /* 40 Mhz */ { 81.0f
, /* SGI */ 90.0f
, },
893 /* 80 Mhz */ { 175.5f
, /* SGI */ 195.0f
, },
894 /* 160 Mhz */ { 351.0f
, /* SGI */ 390.0f
, }
899 { /* 20 Mhz */ { 52.0f
, /* SGI */ 57.8f
, },
900 /* 40 Mhz */ { 108.0f
, /* SGI */ 120.0f
, },
901 /* 80 Mhz */ { 234.0f
, /* SGI */ 260.0f
, },
902 /* 160 Mhz */ { 468.0f
, /* SGI */ 520.0f
, }
907 { /* 20 Mhz */ { 58.5f
, /* SGI */ 65.0f
, },
908 /* 40 Mhz */ { 121.5f
, /* SGI */ 135.0f
, },
909 /* 80 Mhz */ { 263.3f
, /* SGI */ 292.5f
, },
910 /* 160 Mhz */ { 526.5f
, /* SGI */ 585.0f
, }
915 { /* 20 Mhz */ { 65.0f
, /* SGI */ 72.2f
, },
916 /* 40 Mhz */ { 135.0f
, /* SGI */ 150.0f
, },
917 /* 80 Mhz */ { 292.5f
, /* SGI */ 325.0f
, },
918 /* 160 Mhz */ { 585.0f
, /* SGI */ 650.0f
, }
923 { /* 20 Mhz */ { 78.0f
, /* SGI */ 86.7f
, },
924 /* 40 Mhz */ { 162.0f
, /* SGI */ 180.0f
, },
925 /* 80 Mhz */ { 351.0f
, /* SGI */ 390.0f
, },
926 /* 160 Mhz */ { 702.0f
, /* SGI */ 780.0f
, }
931 { /* 20 Mhz */ { 86.7f
, /* SGI */ 96.3f
, },
932 /* 40 Mhz */ { 180.0f
, /* SGI */ 200.0f
, },
933 /* 80 Mhz */ { 390.0f
, /* SGI */ 433.3f
, },
934 /* 160 Mhz */ { 780.0f
, /* SGI */ 866.7f
, }
939 /* In order by value */
940 static const value_string vht_bandwidth
[] = {
941 { IEEE80211_RADIOTAP_VHT_BW_20
, "20 MHz" },
942 { IEEE80211_RADIOTAP_VHT_BW_40
, "40 MHz" },
943 { IEEE80211_RADIOTAP_VHT_BW_20L
, "20 MHz lower" },
944 { IEEE80211_RADIOTAP_VHT_BW_20U
, "20 MHz upper" },
945 { IEEE80211_RADIOTAP_VHT_BW_80
, "80 MHz" },
946 { IEEE80211_RADIOTAP_VHT_BW_40L
, "40 MHz lower" },
947 { IEEE80211_RADIOTAP_VHT_BW_40U
, "40 MHz upper" },
948 { IEEE80211_RADIOTAP_VHT_BW_20LL
, "20 MHz, channel 1/4" },
949 { IEEE80211_RADIOTAP_VHT_BW_20LU
, "20 MHz, channel 2/4" },
950 { IEEE80211_RADIOTAP_VHT_BW_20UL
, "20 MHz, channel 3/4" },
951 { IEEE80211_RADIOTAP_VHT_BW_20UU
, "20 MHz, channel 4/4" },
952 { IEEE80211_RADIOTAP_VHT_BW_160
, "160 MHz" },
953 { IEEE80211_RADIOTAP_VHT_BW_80L
, "80 MHz lower" },
954 { IEEE80211_RADIOTAP_VHT_BW_80U
, "80 MHz upper" },
955 { IEEE80211_RADIOTAP_VHT_BW_40LL
, "40 MHz, channel 1/4" },
956 { IEEE80211_RADIOTAP_VHT_BW_40LU
, "40 MHz, channel 2/4" },
957 { IEEE80211_RADIOTAP_VHT_BW_40UL
, "40 MHz, channel 3/4" },
958 { IEEE80211_RADIOTAP_VHT_BW_40UU
, "40 MHz, channel 4/4" },
959 { IEEE80211_RADIOTAP_VHT_BW_20LLL
, "20 MHz, channel 1/8" },
960 { IEEE80211_RADIOTAP_VHT_BW_20LLU
, "20 MHz, channel 2/8" },
961 { IEEE80211_RADIOTAP_VHT_BW_20LUL
, "20 MHz, channel 3/8" },
962 { IEEE80211_RADIOTAP_VHT_BW_20LUU
, "20 MHz, channel 4/8" },
963 { IEEE80211_RADIOTAP_VHT_BW_20ULL
, "20 MHz, channel 5/8" },
964 { IEEE80211_RADIOTAP_VHT_BW_20ULU
, "20 MHz, channel 6/8" },
965 { IEEE80211_RADIOTAP_VHT_BW_20UUL
, "20 MHz, channel 7/8" },
966 { IEEE80211_RADIOTAP_VHT_BW_20UUU
, "20 MHz, channel 8/8" },
969 static value_string_ext vht_bandwidth_ext
= VALUE_STRING_EXT_INIT(vht_bandwidth
);
971 static const value_string mcs_bandwidth
[] = {
972 { IEEE80211_RADIOTAP_MCS_BW_20
, "20 MHz" },
973 { IEEE80211_RADIOTAP_MCS_BW_40
, "40 MHz" },
974 { IEEE80211_RADIOTAP_MCS_BW_20L
, "20 MHz lower" },
975 { IEEE80211_RADIOTAP_MCS_BW_20U
, "20 MHz upper" },
979 static const value_string mcs_format
[] = {
985 static const value_string mcs_fec
[] = {
991 static const value_string mcs_gi
[] = {
997 static const true_false_string preamble_type
= {
1002 static const value_string timestamp_unit
[] = {
1003 { IEEE80211_RADIOTAP_TS_UNIT_MSEC
, "msec" },
1004 { IEEE80211_RADIOTAP_TS_UNIT_USEC
, "usec" },
1005 { IEEE80211_RADIOTAP_TS_UNIT_NSEC
, "nsec" },
1009 static const value_string timestamp_spos
[] = {
1010 { IEEE80211_RADIOTAP_TS_SPOS_MPDU
, "first MPDU bit/symbol" },
1011 { IEEE80211_RADIOTAP_TS_SPOS_ACQ
, "signal acquisition" },
1012 { IEEE80211_RADIOTAP_TS_SPOS_EOF
, "end of frame" },
1013 { IEEE80211_RADIOTAP_TS_SPOS_UNDEF
, "undefined" },
1018 static const value_string s1g_ppdu_format
[] = {
1025 static const value_string s1g_response_indication
[] = {
1026 { 0, "No response" },
1027 { 1, "NDP response" },
1028 { 2, "Normal response" },
1029 { 3, "Long response" },
1033 static const value_string s1g_guard_interval
[] = {
1039 static const value_string s1g_nss
[] = {
1047 static const value_string s1g_bandwidth
[] = {
1048 { 0, "1MHz channel" },
1049 { 1, "2MHz channel" },
1050 { 2, "4MHz channel" },
1051 { 3, "8MHz channel" },
1052 { 4, "16MHz channel" },
1056 static const value_string s1g_mcs
[] = {
1071 static const value_string s1g_color
[] = {
1083 static const range_string tlv_type_rvals
[] = {
1084 { 0, IEEE80211_RADIOTAP_TLV_S1G
- 1, "Bit-defined types" },
1085 { IEEE80211_RADIOTAP_TLV_S1G
, IEEE80211_RADIOTAP_TLV_S1G
, "S1G" },
1086 { IEEE80211_RADIOTAP_TLV_U_SIG
, IEEE80211_RADIOTAP_TLV_U_SIG
, "U-SIG" },
1087 { IEEE80211_RADIOTAP_TLV_EHT
, IEEE80211_RADIOTAP_TLV_EHT
, "EHT" },
1092 * The NetBSD ieee80211_radiotap man page
1093 * (http://netbsd.gw.com/cgi-bin/man-cgi?ieee80211_radiotap+9+NetBSD-current)
1096 * Radiotap capture fields must be naturally aligned. That is, 16-, 32-,
1097 * and 64-bit fields must begin on 16-, 32-, and 64-bit boundaries, respec-
1098 * tively. In this way, drivers can avoid unaligned accesses to radiotap
1099 * capture fields. radiotap-compliant drivers must insert padding before a
1100 * capture field to ensure its natural alignment. radiotap-compliant packet
1101 * dissectors, such as tcpdump(8), expect the padding.
1105 capture_radiotap(const unsigned char * pd
, int offset
, int len
, capture_packet_info_t
*cpinfo
, const union wtap_pseudo_header
*pseudo_header _U_
)
1108 uint32_t present
, xpresent
;
1110 const struct ieee80211_radiotap_header
*hdr
;
1112 if (!BYTES_ARE_IN_FRAME(offset
, len
,
1113 sizeof(struct ieee80211_radiotap_header
))) {
1116 hdr
= (const struct ieee80211_radiotap_header
*)pd
;
1117 it_len
= pletoh16(&hdr
->it_len
);
1118 if (!BYTES_ARE_IN_FRAME(offset
, len
, it_len
))
1122 /* Header length is bigger than total packet length */
1126 if (it_len
< sizeof(struct ieee80211_radiotap_header
)) {
1127 /* Header length is shorter than fixed-length portion of header */
1131 present
= pletoh32(&hdr
->it_present
);
1132 offset
+= (int)sizeof(struct ieee80211_radiotap_header
);
1133 it_len
-= (int)sizeof(struct ieee80211_radiotap_header
);
1135 /* skip over other present bitmaps */
1137 while (xpresent
& BIT(IEEE80211_RADIOTAP_EXT
)) {
1138 if (!BYTES_ARE_IN_FRAME(offset
, 4, it_len
)) {
1141 xpresent
= pletoh32(pd
+ offset
);
1149 * IEEE80211_RADIOTAP_TSFT is the lowest-order bit,
1150 * just skip over it.
1152 if (present
& BIT(IEEE80211_RADIOTAP_TSFT
)) {
1153 /* align it properly */
1155 int pad
= 8 - (offset
& 7);
1161 /* No room in header for this field. */
1164 /* That field is present, and it's 8 bytes long. */
1170 * IEEE80211_RADIOTAP_FLAGS is the next bit.
1172 if (present
& BIT(IEEE80211_RADIOTAP_FLAGS
)) {
1174 /* No room in header for this field. */
1177 /* That field is present; fetch it. */
1178 if (!BYTES_ARE_IN_FRAME(offset
, len
, 1)) {
1181 rflags
= pd
[offset
];
1184 /* 802.11 header follows */
1185 if (rflags
& IEEE80211_RADIOTAP_F_DATAPAD
)
1186 return call_capture_dissector(ieee80211_datapad_cap_handle
, pd
, offset
+ it_len
, len
, cpinfo
, pseudo_header
);
1188 return call_capture_dissector(ieee80211_cap_handle
, pd
, offset
+ it_len
, len
, cpinfo
, pseudo_header
);
1192 add_tlv_items(proto_tree
*tree
, tvbuff_t
*tvb
, int offset
)
1196 proto_tree_add_item(tree
, hf_radiotap_tlv_type
, tvb
,
1197 offset
, 2, ENC_LITTLE_ENDIAN
);
1200 proto_tree_add_item(tree
, hf_radiotap_tlv_datalen
, tvb
,
1201 offset
, 2, ENC_LITTLE_ENDIAN
);
1204 static const true_false_string tfs_known_unknown
= {
1209 static int * const data1_headers
[] = {
1210 &hf_radiotap_he_ppdu_format
,
1211 &hf_radiotap_he_bss_color_known
,
1212 &hf_radiotap_he_beam_change_known
,
1213 &hf_radiotap_he_ul_dl_known
,
1214 &hf_radiotap_he_data_mcs_known
,
1215 &hf_radiotap_he_data_dcm_known
,
1216 &hf_radiotap_he_coding_known
,
1217 &hf_radiotap_he_ldpc_extra_symbol_segment_known
,
1218 &hf_radiotap_he_stbc_known
,
1219 &hf_radiotap_he_spatial_reuse_1_known
,
1220 &hf_radiotap_he_spatial_reuse_2_known
,
1221 &hf_radiotap_he_spatial_reuse_3_known
,
1222 &hf_radiotap_he_spatial_reuse_4_known
,
1223 &hf_radiotap_he_data_bw_ru_allocation_known
,
1224 &hf_radiotap_he_doppler_known
,
1228 static const value_string he_pdu_format_vals
[] = {
1229 { IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_SU
, "HE_SU" },
1230 { IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_EXT_SU
, "HE_EXT_SU" },
1231 { IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_MU
, "HE_MU" },
1232 { IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_TRIG
, "HE_TRIG" },
1236 static int * const data2_headers
[] = {
1237 &hf_radiotap_he_pri_sec_80_mhz_known
,
1238 &hf_radiotap_he_gi_known
,
1239 &hf_radiotap_he_num_ltf_symbols_known
,
1240 &hf_radiotap_he_pre_fec_padding_factor_known
,
1241 &hf_radiotap_he_txbf_known
,
1242 &hf_radiotap_he_pe_disambiguity_known
,
1243 &hf_radiotap_he_txop_known
,
1244 &hf_radiotap_he_midamble_periodicity_known
,
1245 &hf_radiotap_he_ru_allocation_offset
,
1246 &hf_radiotap_he_ru_allocation_offset_known
,
1247 &hf_radiotap_he_pri_sec_80_mhz
,
1251 static const true_false_string tfs_pri_sec_80_mhz
= {
1256 static const value_string he_coding_vals
[] = {
1262 static const value_string he_data_bw_ru_alloc_vals
[] = {
1267 { 4, "26-tone RU" },
1268 { 5, "52-tone RU" },
1269 { 6, "106-tone RU" },
1270 { 7, "242-tone RU" },
1271 { 8, "484-tone RU" },
1272 { 9, "996-tone RU" },
1273 { 10, "2x996-tone RU" },
1282 static const value_string he_gi_vals
[] = {
1290 static const value_string he_ltf_symbol_size_vals
[] = {
1298 static const value_string he_num_ltf_symbols_vals
[] = {
1310 static const value_string he_nsts_vals
[] = {
1312 { 1, "1 space-time stream" },
1313 { 2, "2 space-time streams" },
1314 { 3, "3 space-time streams" },
1315 { 4, "4 space-time streams" },
1316 { 5, "5 space-time streams" },
1317 { 6, "6 space-time streams" },
1318 { 7, "7 space-time streams" },
1319 { 8, "8 space-time streams" },
1320 { 9, "9 space-time streams" },
1321 { 10, "10 space-time streams" },
1322 { 11, "11 space-time streams" },
1323 { 12, "12 space-time streams" },
1324 { 13, "13 space-time streams" },
1325 { 14, "14 space-time streams" },
1326 { 15, "15 space-time streams" },
1330 static const value_string he_midamble_periodicity_vals
[] = {
1337 dissect_radiotap_he_info(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
1338 int offset
, struct ieee_802_11ax
*info_11ax
, bool is_tlv
)
1340 uint16_t ppdu_format
= tvb_get_letohs(tvb
, offset
) &
1341 IEEE80211_RADIOTAP_HE_PPDU_FORMAT_MASK
;
1342 proto_tree
*he_info_tree
= NULL
;
1343 bool bss_color_known
= false;
1344 bool beam_change_known
= false;
1345 bool ul_dl_known
= false;
1346 bool data_mcs_known
= false;
1347 bool data_dcm_known
= false;
1348 bool coding_known
= false;
1349 bool ldpc_extra_symbol_segment_known
= false;
1350 bool stbc_known
= false;
1351 bool spatial_reuse_1_known
= false;
1352 bool spatial_reuse_2_known
= false;
1353 bool spatial_reuse_3_known
= false;
1354 bool spatial_reuse_4_known
= false;
1355 bool data_bw_ru_alloc_known
= false;
1356 bool doppler_known
= false;
1357 bool gi_known
= false;
1358 bool num_ltf_symbols_known
= false;
1359 bool ltf_symbol_size_known
= false;
1360 bool pre_fec_padding_factor_known
= false;
1361 bool txbf_known
= false;
1362 bool pe_disambiguity_known
= false;
1363 bool txop_known
= false;
1364 bool midamble_periodicity_known
= false;
1365 uint16_t data1
= tvb_get_letohs(tvb
, offset
);
1371 uint8_t ltf_symbol_size
= 0;
1374 * This is set differetly for each packet, depending on
1375 * which values in data3 are known. It thus will not
1376 * work if it's static.
1378 int *data3_headers
[] = {
1379 &hf_radiotap_he_bss_color
,
1380 &hf_radiotap_he_beam_change
,
1381 &hf_radiotap_he_ul_dl
,
1382 &hf_radiotap_he_data_mcs
,
1383 &hf_radiotap_he_data_dcm
,
1384 &hf_radiotap_he_coding
,
1385 &hf_radiotap_he_ldpc_extra_symbol_segment
,
1386 &hf_radiotap_he_stbc
,
1391 * Same story but for data4.
1393 int *data4_he_trig_headers
[] = {
1394 &hf_radiotap_spatial_reuse_1
,
1395 &hf_radiotap_spatial_reuse_2
,
1396 &hf_radiotap_spatial_reuse_3
,
1397 &hf_radiotap_spatial_reuse_4
,
1400 int *data4_he_su_and_he_ext_su_headers
[] = {
1401 &hf_radiotap_spatial_reuse
,
1402 &hf_radiotap_he_su_reserved
,
1405 int *data4_he_mu_headers
[] = {
1406 &hf_radiotap_spatial_reuse
,
1407 &hf_radiotap_sta_id_user_captured
,
1408 &hf_radiotap_he_mu_reserved
,
1411 int *data5_headers
[] = {
1412 &hf_radiotap_data_bandwidth_ru_allocation
,
1414 &hf_radiotap_ltf_symbol_size
,
1415 &hf_radiotap_num_ltf_symbols
,
1416 &hf_radiotap_d5_reserved_b11
,
1417 &hf_radiotap_pre_fec_padding_factor
,
1419 &hf_radiotap_pe_disambiguity
,
1424 * Same story, but for data6.
1426 int *data6_headers
[] = {
1427 &hf_radiotap_he_nsts
,
1428 &hf_radiotap_he_doppler_value
,
1429 &hf_radiotap_he_d6_reserved_00e0
,
1430 &hf_radiotap_he_txop_value
,
1431 &hf_radiotap_midamble_periodicity
,
1436 * Determine what is known.
1438 if (data1
& IEEE80211_RADIOTAP_HE_BSS_COLOR_KNOWN
)
1439 bss_color_known
= true;
1440 if (data1
& IEEE80211_RADIOTAP_HE_BEAM_CHANGE_KNOWN
)
1441 beam_change_known
= true;
1442 if (data1
& IEEE80211_RADIOTAP_HE_UL_DL_KNOWN
)
1444 if (data1
& IEEE80211_RADIOTAP_HE_DATA_MCS_KNOWN
)
1445 data_mcs_known
= true;
1446 if (data1
& IEEE80211_RADIOTAP_HE_DATA_DCM_KNOWN
)
1447 data_dcm_known
= true;
1448 if (data1
& IEEE80211_RADIOTAP_HE_CODING_KNOWN
)
1449 coding_known
= true;
1450 if (data1
& IEEE80211_RADIOTAP_HE_LDPC_EXTRA_SYMBOL_SEGMENT_KNOWN
)
1451 ldpc_extra_symbol_segment_known
= true;
1452 if (data1
& IEEE80211_RADIOTAP_HE_STBC_KNOWN
)
1454 if (data1
& IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_KNOWN
)
1455 spatial_reuse_1_known
= true;
1456 if (data1
& IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_2_KNOWN
)
1457 spatial_reuse_2_known
= true;
1458 if (data1
& IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_3_KNOWN
)
1459 spatial_reuse_3_known
= true;
1460 if (data1
& IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_4_KNOWN
)
1461 spatial_reuse_4_known
= true;
1462 if (data1
& IEEE80211_RADIOTAP_HE_DATA_BW_RU_ALLOCATION_KNOWN
)
1463 data_bw_ru_alloc_known
= true;
1464 if (data1
& IEEE80211_RADIOTAP_HE_DOPPLER_KNOWN
)
1465 doppler_known
= true;
1467 he_info_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 12,
1468 ett_radiotap_he_info
, NULL
, "HE information");
1471 add_tlv_items(he_info_tree
, tvb
, offset
);
1474 /* Add the bitmasks for each of D1 through D6 */
1475 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1476 hf_radiotap_he_info_data_1
, ett_radiotap_he_info_data_1
,
1477 data1_headers
, ENC_LITTLE_ENDIAN
);
1480 data2
= tvb_get_letohs(tvb
, offset
);
1481 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1482 hf_radiotap_he_info_data_2
, ett_radiotap_he_info_data_2
,
1483 data2_headers
, ENC_LITTLE_ENDIAN
);
1487 * Second lot of what is known
1489 if (data2
& IEEE80211_RADIOTAP_HE_GI_KNOWN
)
1491 if (data2
& IEEE80211_RADIOTAP_HE_NUM_LTF_SYMBOLS_KNOWN
)
1492 num_ltf_symbols_known
= true;
1493 if (data2
& IEEE80211_RADIOTAP_HE_PRE_FEC_PADDING_FACTOR_KNOWN
)
1494 pre_fec_padding_factor_known
= true;
1495 if (data2
& IEEE80211_RADIOTAP_HE_TXBF_KNOWN
)
1497 if (data2
& IEEE80211_RADIOTAP_HE_PE_DISAMBIGUITY_KNOWN
)
1498 pe_disambiguity_known
= true;
1499 if (data2
& IEEE80211_RADIOTAP_HE_TXOP_KNOWN
)
1501 if (data2
& IEEE80211_RADIOTAP_HE_MIDAMBLE_PERIODICITY_KNOWN
)
1502 midamble_periodicity_known
= true;
1505 * Set those fields that should be reserved
1507 if (!bss_color_known
)
1508 data3_headers
[0] = &hf_radiotap_he_bss_color_unknown
;
1509 if (!beam_change_known
)
1510 data3_headers
[1] = &hf_radiotap_he_beam_change_unknown
;
1512 data3_headers
[2] = &hf_radiotap_he_ul_dl_unknown
;
1513 if (!data_mcs_known
)
1514 data3_headers
[3] = &hf_radiotap_he_data_mcs_unknown
;
1515 if (!data_dcm_known
)
1516 data3_headers
[4] = &hf_radiotap_he_data_dcm_unknown
;
1518 data3_headers
[5] = &hf_radiotap_he_coding_unknown
;
1519 if (!ldpc_extra_symbol_segment_known
)
1520 data3_headers
[6] = &hf_radiotap_he_ldpc_extra_symbol_segment_unknown
;
1522 data3_headers
[7] = &hf_radiotap_he_stbc_unknown
;
1524 data3
= tvb_get_letohs(tvb
, offset
);
1525 if (data_mcs_known
) {
1526 info_11ax
->has_mcs_index
= true;
1527 info_11ax
->mcs
= (data3
& IEEE80211_RADIOTAP_HE_DATA_MCS_MASK
) >> 8;
1529 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1530 hf_radiotap_he_info_data_3
, ett_radiotap_he_info_data_3
,
1531 data3_headers
, ENC_LITTLE_ENDIAN
);
1534 if (ppdu_format
== IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_SU
||
1535 ppdu_format
== IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_EXT_SU
) {
1536 if (!spatial_reuse_1_known
)
1537 data4_he_su_and_he_ext_su_headers
[0] =
1538 &hf_radiotap_spatial_reuse_unknown
;
1539 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1540 hf_radiotap_he_info_data_4
, ett_radiotap_he_info_data_4
,
1541 data4_he_su_and_he_ext_su_headers
, ENC_LITTLE_ENDIAN
);
1542 } else if (ppdu_format
== IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_TRIG
) {
1543 if (!spatial_reuse_1_known
)
1544 data4_he_trig_headers
[0] =
1545 &hf_radiotap_spatial_reuse_1_unknown
;
1546 if (!spatial_reuse_2_known
)
1547 data4_he_trig_headers
[1] =
1548 &hf_radiotap_spatial_reuse_2_unknown
;
1549 if (!spatial_reuse_3_known
)
1550 data4_he_trig_headers
[2] =
1551 &hf_radiotap_spatial_reuse_3_unknown
;
1552 if (!spatial_reuse_4_known
)
1553 data4_he_trig_headers
[3] =
1554 &hf_radiotap_spatial_reuse_4_unknown
;
1555 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1556 hf_radiotap_he_info_data_4
, ett_radiotap_he_info_data_4
,
1557 data4_he_trig_headers
, ENC_LITTLE_ENDIAN
);
1559 if (!spatial_reuse_1_known
)
1560 data4_he_mu_headers
[0] =
1561 &hf_radiotap_spatial_reuse_unknown
;
1562 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1563 hf_radiotap_he_info_data_4
, ett_radiotap_he_info_data_4
,
1564 data4_he_mu_headers
, ENC_LITTLE_ENDIAN
);
1567 //data4 = tvb_get_letohs(tvb, offset);
1571 * The LTF Symbol Size field is zero if LFT Symbol size is unknown
1573 ltf_symbol_size
= (tvb_get_letohs(tvb
, offset
) >> 6) & 0x03;
1574 if (ltf_symbol_size
!= 0)
1575 ltf_symbol_size_known
= true;
1576 if (!data_bw_ru_alloc_known
)
1577 data5_headers
[0] = &hf_radiotap_data_bandwidth_ru_allocation_unknown
;
1579 data5_headers
[1] = &hf_radiotap_gi_unknown
;
1580 if (!ltf_symbol_size_known
)
1581 data5_headers
[2] = &hf_radiotap_ltf_symbol_size_unknown
;
1582 if (!num_ltf_symbols_known
)
1583 data5_headers
[3] = &hf_radiotap_num_ltf_symbols_unknown
;
1584 if (!pre_fec_padding_factor_known
)
1585 data5_headers
[5] = &hf_radiotap_pre_fec_padding_factor_unknown
;
1587 data5_headers
[6] = &hf_radiotap_txbf_unknown
;
1588 if (!pe_disambiguity_known
)
1589 data5_headers
[7] = &hf_radiotap_pe_disambiguity_unknown
;
1590 data5
= tvb_get_letohs(tvb
, offset
);
1592 info_11ax
->has_gi
= true;
1593 info_11ax
->gi
= (data5
& IEEE80211_RADIOTAP_HE_GI_MASK
) >> 4;
1595 if (data_bw_ru_alloc_known
) {
1596 info_11ax
->has_bwru
= true;
1597 info_11ax
->bwru
= (data5
& IEEE80211_RADIOTAP_HE_DATA_BANDWIDTH_RU_ALLOC_MASK
);
1599 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1600 hf_radiotap_he_info_data_5
, ett_radiotap_he_info_data_5
,
1601 data5_headers
, ENC_LITTLE_ENDIAN
);
1605 data6_headers
[1] = &hf_radiotap_he_doppler_value_unknown
;
1607 data6_headers
[3] = &hf_radiotap_he_txop_value_unknown
;
1608 if (!midamble_periodicity_known
)
1609 data6_headers
[4] = &hf_radiotap_midamble_periodicity_unknown
;
1610 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1611 hf_radiotap_he_info_data_6
, ett_radiotap_he_info_data_6
,
1612 data6_headers
, ENC_LITTLE_ENDIAN
);
1613 data6
= tvb_get_letohs(tvb
, offset
);
1615 info_11ax
->nsts
= data6
& IEEE80211_RADIOTAP_HE_NSTS_MASK
;
1620 not_captured_custom(char *result
, uint32_t value _U_
)
1622 snprintf(result
, ITEM_LABEL_LENGTH
,
1623 "NOT CAPTURED BY CAPTURE SOFTWARE");
1627 he_sig_b_symbols_custom(char *result
, uint32_t value
)
1629 snprintf(result
, ITEM_LABEL_LENGTH
, "%d", value
+1);
1633 dissect_radiotap_he_mu_info(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
1634 proto_tree
*tree
, int offset
, bool is_tlv
)
1636 proto_tree
*he_mu_info_tree
= NULL
;
1637 uint16_t flags1
= tvb_get_letohs(tvb
, offset
);
1638 bool sig_b_mcs_known
= false;
1639 bool sig_b_dcm_known
= false;
1640 proto_tree
*mu_chan1_rus
= NULL
;
1641 proto_tree
*mu_chan2_rus
= NULL
;
1642 int mu_rus_chan1_rus_0
= -1;
1643 int mu_rus_chan1_rus_1
= -1;
1644 int mu_rus_chan1_rus_2
= -1;
1645 int mu_rus_chan1_rus_3
= -1;
1646 int mu_rus_chan2_rus_0
= -1;
1647 int mu_rus_chan2_rus_1
= -1;
1648 int mu_rus_chan2_rus_2
= -1;
1649 int mu_rus_chan2_rus_3
= -1;
1650 bool mu_chan2_center_26_tone_ru_bit_known
= false;
1651 bool mu_chan1_rus_known
= false;
1652 bool mu_chan2_rus_known
= false;
1653 bool mu_chan1_center_26_tone_ru_bit_known
= false;
1654 bool mu_sig_b_compression_known
= false;
1655 bool mu_symbol_cnt_or_user_cnt_known
= false;
1656 bool mu_preamble_puncturing_known
= false;
1657 bool mu_bw_from_bw_sig_a_known
= false;
1658 uint8_t bw_from_sig_a
= 0;
1662 * This is set differetly for each packet, depending on
1663 * which values in flags1 are known. It thus will not
1664 * work if it's static.
1666 int *flags1_headers
[] = {
1667 &hf_radiotap_he_mu_sig_b_mcs
,
1668 &hf_radiotap_he_mu_sig_b_mcs_known
,
1669 &hf_radiotap_he_mu_sig_b_dcm
,
1670 &hf_radiotap_he_mu_sig_b_dcm_known
,
1671 &hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_known
,
1672 &hf_radiotap_he_mu_chan1_rus_known
,
1673 &hf_radiotap_he_mu_chan2_rus_known
,
1674 &hf_radiotap_he_mu_reserved_f1_b10_b11
,
1675 &hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_known
,
1676 &hf_radiotap_he_mu_chan1_center_26_tone_ru_value
,
1677 &hf_radiotap_he_mu_sig_b_compression_known
,
1678 &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_known
,
1683 * Same story but for flags2.
1685 int *flags2_headers
[] = {
1686 &hf_radiotap_he_mu_bw_from_bw_in_sig_a
,
1687 &hf_radiotap_he_mu_bw_from_bw_in_sig_a_known
,
1688 &hf_radiotap_he_mu_sig_b_compression_from_sig_a
,
1689 &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users
,
1690 &hf_radiotap_he_mu_preamble_puncturing
,
1691 &hf_radiotap_he_mu_preamble_puncturing_known
,
1692 &hf_radiotap_he_mu_chan2_center_26_tone_ru_value
,
1693 &hf_radiotap_he_mu_reserved_f2_b12_b15
,
1697 if (flags1
& IEEE80211_RADIOTAP_HE_MU_SIG_B_MCS_KNOWN
)
1698 sig_b_mcs_known
= true;
1699 if (flags1
& IEEE80211_RADIOTAP_HE_MU_SIG_B_DCM_KNOWN
)
1700 sig_b_dcm_known
= true;
1701 if (flags1
& IEEE80211_RADIOTAP_HE_MU_CHAN2_CENTER_26_TONE_RU_BIT_KNOWN
)
1702 mu_chan2_center_26_tone_ru_bit_known
= true;
1703 if (flags1
& IEEE80211_RADIOTAP_HE_MU_CHAN1_RUS_KNOWN
)
1704 mu_chan1_rus_known
= true;
1705 if (flags1
& IEEE80211_RADIOTAP_HE_MU_CHAN2_RUS_KNOWN
)
1706 mu_chan2_rus_known
= true;
1707 if (flags1
& IEEE80211_RADIOTAP_HE_MU_CHAN1_CENTER_26_TONE_RU_BIT_KNOWN
)
1708 mu_chan1_center_26_tone_ru_bit_known
= true;
1709 if (flags1
& IEEE80211_RADIOTAP_HE_MU_SIG_B_COMPRESSION_KNOWN
)
1710 mu_sig_b_compression_known
= true;
1711 if (flags1
& IEEE80211_RADIOTAP_HE_MU_SYMBOL_CNT_OR_USER_CNT_KNOWN
)
1712 mu_symbol_cnt_or_user_cnt_known
= true;
1714 if (!sig_b_mcs_known
) {
1715 flags1_headers
[1] = &hf_radiotap_he_mu_sig_b_mcs_unknown
;
1717 flags1_headers
[1] = &hf_radiotap_he_mu_sig_b_mcs_known
;
1719 if (!sig_b_dcm_known
) {
1720 flags1_headers
[3] = &hf_radiotap_he_mu_sig_b_dcm_unknown
;
1722 flags1_headers
[3] = &hf_radiotap_he_mu_sig_b_dcm_known
;
1724 if (!mu_chan2_center_26_tone_ru_bit_known
) {
1725 flags1_headers
[4] = &hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_unknown
;
1727 flags1_headers
[4] = &hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_known
;
1729 if (!mu_chan1_rus_known
) {
1730 flags1_headers
[5] = &hf_radiotap_he_mu_chan1_rus_unknown
;
1732 flags1_headers
[5] = &hf_radiotap_he_mu_chan1_rus_known
;
1734 if (!mu_chan2_rus_known
) {
1735 flags1_headers
[6] = &hf_radiotap_he_mu_chan2_rus_unknown
;
1737 flags1_headers
[6] = &hf_radiotap_he_mu_chan2_rus_known
;
1739 if (!mu_chan1_center_26_tone_ru_bit_known
) {
1740 flags1_headers
[8] = &hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_unknown
;
1742 flags1_headers
[8] = &hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_known
;
1744 if (!mu_symbol_cnt_or_user_cnt_known
) {
1745 flags1_headers
[11] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_unknown
;
1747 flags1_headers
[11] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_known
;
1750 if (!mu_chan1_center_26_tone_ru_bit_known
) {
1751 flags1_headers
[9] = &hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_unknown
;
1753 flags1_headers
[9] = &hf_radiotap_he_mu_chan1_center_26_tone_ru_value
;
1755 if (!mu_symbol_cnt_or_user_cnt_known
) {
1756 flags1_headers
[11] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_unknown
;
1758 flags1_headers
[11] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_known
;
1761 flags2
= tvb_get_letohs(tvb
, offset
+ 2);
1762 if (flags2
& IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_KNOWN
)
1763 mu_bw_from_bw_sig_a_known
= true;
1764 if (flags2
& IEEE80211_RADIOTAP_HE_MU_PREAMBLE_PUNCTURING_KNOWN
)
1765 mu_preamble_puncturing_known
= true;
1767 if (!mu_bw_from_bw_sig_a_known
) {
1768 flags2_headers
[0] = &hf_radiotap_he_mu_bw_from_bw_in_sig_a_unknown
;
1770 flags2_headers
[0] = &hf_radiotap_he_mu_bw_from_bw_in_sig_a
;
1772 if (!mu_sig_b_compression_known
) {
1773 flags2_headers
[2] = &hf_radiotap_he_mu_sig_b_compression_unknown
;
1775 flags2_headers
[2] = &hf_radiotap_he_mu_sig_b_compression_from_sig_a
;
1777 if (!mu_symbol_cnt_or_user_cnt_known
) {
1778 flags2_headers
[3] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_unknown
;
1780 flags2_headers
[3] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users
;
1782 if (!mu_preamble_puncturing_known
) {
1783 flags2_headers
[4] = &hf_radiotap_he_mu_preamble_puncturing_unknown
;
1785 flags2_headers
[4] = &hf_radiotap_he_mu_preamble_puncturing
;
1787 if (!mu_chan2_center_26_tone_ru_bit_known
) {
1788 flags2_headers
[6] = &hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_unknown
;
1790 flags2_headers
[6] = &hf_radiotap_he_mu_chan2_center_26_tone_ru_value
;
1793 bw_from_sig_a
= flags2
& IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_MASK
;
1796 * We have to hold of on displaying stuff until we have figured
1797 * everything out because the display of fields in flags1 depends
1798 * on bandwidth from flags2.
1801 /* Set the header fields depending on the bw and known fields */
1802 if (bw_from_sig_a
< 3) {
1803 if (mu_chan1_rus_known
) {
1804 mu_rus_chan1_rus_0
= hf_radiotap_he_mu_chan1_rus_0
;
1805 mu_rus_chan1_rus_1
= hf_radiotap_he_mu_chan1_rus_1
;
1806 mu_rus_chan1_rus_2
= hf_radiotap_he_mu_chan1_rus_2
;
1807 mu_rus_chan1_rus_3
= hf_radiotap_he_mu_chan1_rus_3
;
1809 mu_rus_chan1_rus_0
= hf_radiotap_he_mu_chan1_rus_0_unknown
;
1810 mu_rus_chan1_rus_1
= hf_radiotap_he_mu_chan1_rus_1_unknown
;
1811 mu_rus_chan1_rus_2
= hf_radiotap_he_mu_chan1_rus_2_unknown
;
1812 mu_rus_chan1_rus_3
= hf_radiotap_he_mu_chan1_rus_3_unknown
;
1814 if (mu_chan2_rus_known
) {
1815 mu_rus_chan2_rus_0
= hf_radiotap_he_mu_chan2_rus_0
;
1816 mu_rus_chan2_rus_1
= hf_radiotap_he_mu_chan2_rus_1
;
1817 mu_rus_chan2_rus_2
= hf_radiotap_he_mu_chan2_rus_2
;
1818 mu_rus_chan2_rus_3
= hf_radiotap_he_mu_chan2_rus_3
;
1820 mu_rus_chan2_rus_0
= hf_radiotap_he_mu_chan2_rus_0_unknown
;
1821 mu_rus_chan2_rus_1
= hf_radiotap_he_mu_chan2_rus_1_unknown
;
1822 mu_rus_chan2_rus_2
= hf_radiotap_he_mu_chan2_rus_2_unknown
;
1823 mu_rus_chan2_rus_3
= hf_radiotap_he_mu_chan2_rus_3_unknown
;
1826 mu_rus_chan1_rus_0
= hf_radiotap_he_mu_chan1_rus_0
;
1827 mu_rus_chan1_rus_1
= hf_radiotap_he_mu_chan1_rus_1
;
1828 mu_rus_chan1_rus_2
= hf_radiotap_he_mu_chan1_rus_2
;
1829 mu_rus_chan1_rus_3
= hf_radiotap_he_mu_chan1_rus_3
;
1830 mu_rus_chan2_rus_0
= hf_radiotap_he_mu_chan2_rus_0
;
1831 mu_rus_chan2_rus_1
= hf_radiotap_he_mu_chan2_rus_1
;
1832 mu_rus_chan2_rus_2
= hf_radiotap_he_mu_chan2_rus_2
;
1833 mu_rus_chan2_rus_3
= hf_radiotap_he_mu_chan2_rus_3
;
1836 he_mu_info_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 12,
1837 ett_radiotap_he_mu_info
, NULL
, "HE-MU information");
1840 add_tlv_items(he_mu_info_tree
, tvb
, offset
);
1843 proto_tree_add_bitmask(he_mu_info_tree
, tvb
, offset
,
1844 hf_radiotap_he_mu_info_flags_1
,
1845 ett_radiotap_he_mu_info_flags_1
,
1846 flags1_headers
, ENC_LITTLE_ENDIAN
);
1849 proto_tree_add_bitmask(he_mu_info_tree
, tvb
, offset
,
1850 hf_radiotap_he_mu_info_flags_2
,
1851 ett_radiotap_he_mu_info_flags_2
,
1852 flags2_headers
, ENC_LITTLE_ENDIAN
);
1855 mu_chan1_rus
= proto_tree_add_subtree(he_mu_info_tree
, tvb
, offset
, 4,
1856 ett_radiotap_he_mu_chan_rus
, NULL
,
1859 proto_tree_add_item(mu_chan1_rus
, mu_rus_chan1_rus_0
, tvb
, offset
, 1,
1863 proto_tree_add_item(mu_chan1_rus
, mu_rus_chan1_rus_1
, tvb
, offset
, 1,
1867 proto_tree_add_item(mu_chan1_rus
, mu_rus_chan1_rus_2
, tvb
, offset
, 1,
1871 proto_tree_add_item(mu_chan1_rus
, mu_rus_chan1_rus_3
, tvb
, offset
, 1,
1875 mu_chan2_rus
= proto_tree_add_subtree(he_mu_info_tree
, tvb
, offset
, 4,
1876 ett_radiotap_he_mu_chan_rus
, NULL
,
1879 proto_tree_add_item(mu_chan2_rus
, mu_rus_chan2_rus_0
, tvb
, offset
, 1,
1883 proto_tree_add_item(mu_chan2_rus
, mu_rus_chan2_rus_1
, tvb
, offset
, 1,
1887 proto_tree_add_item(mu_chan2_rus
, mu_rus_chan2_rus_2
, tvb
, offset
, 1,
1891 proto_tree_add_item(mu_chan2_rus
, mu_rus_chan2_rus_3
, tvb
, offset
, 1,
1895 static const range_string zero_length_psdu_rsvals
[] = {
1896 { 0, 0, "sounding PPDU" },
1897 { 1, 1, "reserved" },
1898 { 2, 254, "reserved" },
1899 { 255, 255, "vendor-specific" },
1904 dissect_radiotap_0_length_psdu(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
1905 int offset
, struct ieee_802_11_phdr
*phdr
)
1907 proto_tree
*zero_len_tree
= NULL
;
1910 zero_len_tree
= proto_tree_add_subtree(tree
, tvb
, offset
,
1911 tvb_captured_length_remaining(tvb
, offset
),
1912 ett_radiotap_0_length_psdu
, NULL
, "0-length PSDU");
1914 proto_tree_add_item_ret_uint(zero_len_tree
, hf_radiotap_0_length_psdu_type
,
1915 tvb
, offset
, 1, ENC_NA
, &psdu_type
);
1917 switch (psdu_type
) {
1920 phdr
->has_zero_length_psdu_type
= true;
1921 phdr
->zero_length_psdu_type
= PHDR_802_11_SOUNDING_PSDU
;
1925 phdr
->has_zero_length_psdu_type
= true;
1926 phdr
->zero_length_psdu_type
= PHDR_802_11_DATA_NOT_CAPTURED
;
1930 phdr
->has_zero_length_psdu_type
= true;
1931 phdr
->zero_length_psdu_type
= PHDR_802_11_0_LENGTH_PSDU_VENDOR_SPECIFIC
;
1936 static int * const l_sig_data1_headers
[] = {
1937 &hf_radiotap_l_sig_rate_known
,
1938 &hf_radiotap_l_sig_length_known
,
1939 &hf_radiotap_l_sig_reserved
,
1943 static int * const l_sig_data2_headers
[] = {
1944 &hf_radiotap_l_sig_rate
,
1945 &hf_radiotap_l_sig_length
,
1950 dissect_radiotap_l_sig(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
1953 proto_tree
*l_sig_tree
= NULL
;
1955 l_sig_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 4,
1956 ett_radiotap_l_sig
, NULL
, "L-SIG");
1958 proto_tree_add_bitmask(l_sig_tree
, tvb
, offset
,
1959 hf_radiotap_l_sig_data_1
, ett_radiotap_l_sig_data_1
,
1960 l_sig_data1_headers
, ENC_LITTLE_ENDIAN
);
1963 proto_tree_add_bitmask(l_sig_tree
, tvb
, offset
,
1964 hf_radiotap_l_sig_data_2
, ett_radiotap_l_sig_data_2
,
1965 l_sig_data2_headers
, ENC_LITTLE_ENDIAN
);
1968 static int * const usig_common_headers
[] = {
1969 &hf_radiotap_usig_phy_version_identifier_known
,
1970 &hf_radiotap_usig_bw_known
,
1971 &hf_radiotap_usig_ul_dl_known
,
1972 &hf_radiotap_usig_bss_color_known
,
1973 &hf_radiotap_usig_txop_known
,
1974 &hf_radiotap_usig_bad_u_sig_crc
,
1975 &hf_radiotap_usig_validate_bits_checked
,
1976 &hf_radiotap_usig_validate_bits_ok
,
1977 &hf_radiotap_usig_reserved
,
1978 &hf_radiotap_usig_phy_version_id
,
1979 &hf_radiotap_usig_bw
,
1980 &hf_radiotap_usig_ul_dl
,
1981 &hf_radiotap_usig_bss_color
,
1982 &hf_radiotap_usig_txop
,
1986 static const value_string eht_u_sig_bw_vals
[] = {
1998 static int * usig_eht_mu_ppdu_headers
[] = {
1999 &hf_radiotap_usig_eht_mu_b20_b24
,
2000 &hf_radiotap_usig_eht_mu_b25
,
2001 &hf_radiotap_usig_ppdu_type_and_comp_mode
,
2002 &hf_radiotap_usig_validate1
,
2003 &hf_radiotap_usig_punctured_channel_info
,
2004 &hf_radiotap_usig_validate2
,
2005 &hf_radiotap_usig_eht_sig_mcs
,
2006 &hf_radiotap_usig_number_eht_sig_symbols
,
2007 &hf_radiotap_usig_crc
,
2008 &hf_radiotap_usig_tail
,
2012 static int * usig_eht_tb_ppdu_headers
[] = {
2013 &hf_radiotap_usig_eht_tb_b20_b25
,
2014 &hf_radiotap_usig_ppdu_type_and_comp_mode
,
2015 &hf_radiotap_usig_eht_tb_validate1
,
2016 &hf_radiotap_usig_eht_tb_spatial_reuse_1
,
2017 &hf_radiotap_usig_eht_tb_spatial_reuse_2
,
2018 &hf_radiotap_usig_eht_tb_disregard
,
2019 &hf_radiotap_usig_eht_tb_crc
,
2020 &hf_radiotap_usig_eht_tb_tail
,
2024 /* U-SIG mask definition */
2026 #define U_SIG_U_SIG_1_B20_B24 0x0000001f
2027 #define U_SIG_U_SIG_1_B25 0x00000020
2028 #define U_SIG_U_SIG_2_B3_B7 0x00003e00
2029 #define U_SIG_U_SIG_2_B8 0x00004000
2030 #define U_SIG_U_SIG_2_B9_B10 0x00018000
2033 #define U_SIG_U_SIG_1_B20_B25 0x0000003f
2034 #define U_SIG_U_SIG_2_B3_B6 0x00001e00
2035 #define U_SIG_U_SIG_2_B7_B10 0x0001e000
2037 #define U_SIG_U_SIG_2_B0_B1 0x000000c0
2038 #define U_SIG_U_SIG_2_B2 0x00000100
2039 #define U_SIG_U_SIG_2_B11_B15 0x003e0000
2040 #define U_SIG_U_SIG_2_B16_B19 0x03c00000
2041 #define U_SIG_U_SIG_2_B20_B25 0xfc000000
2044 * Will never be called via old style bits
2047 dissect_radiotap_u_sig(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2048 int offset
, struct ieee_802_11_phdr
*phdr _U_
,
2051 proto_tree
*u_sig_tree
= NULL
;
2053 uint8_t type_and_comp
= 0;
2055 bool bw_known
= false;
2056 struct ieee_802_11be
*info_11be
= &phdr
->phy_info
.info_11be
;
2057 uint32_t usig_common
= tvb_get_letohl(tvb
, offset
);
2059 phdr
->phy
= PHDR_802_11_PHY_11BE
;
2061 u_sig_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 12,
2062 ett_radiotap_u_sig
, NULL
,
2065 add_tlv_items(u_sig_tree
, tvb
, offset
);
2067 ul_dl
= (tvb_get_uint8(tvb
, offset
+ 2) & 0x04) >> 2;
2068 proto_tree_add_bitmask(u_sig_tree
, tvb
, offset
,
2069 hf_radiotap_u_sig_common
,
2070 ett_radiotap_u_sig_common
,
2071 usig_common_headers
, ENC_LITTLE_ENDIAN
);
2073 bw_known
= usig_common
& IEEE80211_RADIOTAP_USIG_BW_KNOWN
;
2075 info_11be
->has_bandwidth
= true;
2076 info_11be
->bandwidth
= (usig_common
& IEEE80211_RADIOTAP_USIG_BW
) >> IEEE80211_RADIOTAP_USIG_BW_SHIFT
;
2081 * Now handle the Value and Mask ...
2083 mask
= tvb_get_letohl(tvb
, offset
+ 4);
2084 type_and_comp
= (tvb_get_uint8(tvb
, offset
) & 0xc0) >> 6;
2086 if ((ul_dl
== 0 && (type_and_comp
== 0 || type_and_comp
== 1 ||
2087 type_and_comp
== 2)) ||
2088 (ul_dl
== 1 && type_and_comp
== 1)) {
2089 if ((mask
& U_SIG_U_SIG_1_B20_B24
) != U_SIG_U_SIG_1_B20_B24
) {
2090 usig_eht_mu_ppdu_headers
[0] =
2091 &hf_radiotap_usig_eht_mu_b20_b24_not_known
;
2093 if ((mask
& U_SIG_U_SIG_1_B25
) != U_SIG_U_SIG_1_B25
) {
2094 usig_eht_mu_ppdu_headers
[1] =
2095 &hf_radiotap_usig_eht_mu_b25_not_known
;
2097 if ((mask
& U_SIG_U_SIG_2_B2
) != U_SIG_U_SIG_2_B2
) {
2098 usig_eht_mu_ppdu_headers
[3] =
2099 &hf_radiotap_usig_validate1_not_known
;
2101 if ((mask
& U_SIG_U_SIG_2_B3_B7
) != U_SIG_U_SIG_2_B3_B7
) {
2102 usig_eht_mu_ppdu_headers
[4] =
2103 &hf_radiotap_usig_punctured_channel_info_not_known
;
2105 if ((mask
& U_SIG_U_SIG_2_B8
) != U_SIG_U_SIG_2_B8
) {
2106 usig_eht_mu_ppdu_headers
[5] =
2107 &hf_radiotap_usig_validate2_not_known
;
2109 if ((mask
& U_SIG_U_SIG_2_B9_B10
) != U_SIG_U_SIG_2_B9_B10
) {
2110 usig_eht_mu_ppdu_headers
[6] =
2111 &hf_radiotap_usig_eht_sig_mcs_not_known
;
2113 if ((mask
& U_SIG_U_SIG_2_B11_B15
) != U_SIG_U_SIG_2_B11_B15
) {
2114 usig_eht_mu_ppdu_headers
[7] =
2115 &hf_radiotap_usig_number_eht_sig_symbols_not_known
;
2117 if ((mask
& U_SIG_U_SIG_2_B16_B19
) != U_SIG_U_SIG_2_B16_B19
) {
2118 usig_eht_mu_ppdu_headers
[8] =
2119 &hf_radiotap_usig_crc_not_known
;
2121 if ((mask
& U_SIG_U_SIG_2_B20_B25
) != U_SIG_U_SIG_2_B20_B25
) {
2122 usig_eht_mu_ppdu_headers
[9] =
2123 &hf_radiotap_usig_tail_not_known
;
2125 proto_tree_add_bitmask(u_sig_tree
, tvb
, offset
,
2126 hf_radiotap_usig_value_mu_ppdu
,
2127 ett_radiotap_u_sig_value
,
2128 usig_eht_mu_ppdu_headers
,
2131 if ((mask
& U_SIG_U_SIG_1_B20_B25
) != U_SIG_U_SIG_1_B20_B25
) {
2132 usig_eht_tb_ppdu_headers
[0] =
2133 &hf_radiotap_usig_eht_tb_b20_b25_not_known
;
2135 if ((mask
& U_SIG_U_SIG_2_B2
) != U_SIG_U_SIG_2_B2
) {
2136 usig_eht_tb_ppdu_headers
[2] =
2137 &hf_radiotap_usig_eht_tb_validate1_not_known
;
2139 if ((mask
& U_SIG_U_SIG_2_B3_B6
) != U_SIG_U_SIG_2_B3_B6
) {
2140 usig_eht_tb_ppdu_headers
[3] =
2141 &hf_radiotap_usig_eht_tb_spatial_reuse_1_not_known
;
2143 if ((mask
& U_SIG_U_SIG_2_B7_B10
) != U_SIG_U_SIG_2_B7_B10
) {
2144 usig_eht_tb_ppdu_headers
[4] =
2145 &hf_radiotap_usig_eht_tb_spatial_reuse_2_not_known
;
2147 if ((mask
& U_SIG_U_SIG_2_B11_B15
) != U_SIG_U_SIG_2_B11_B15
) {
2148 usig_eht_tb_ppdu_headers
[5] =
2149 &hf_radiotap_usig_eht_tb_disregard_not_known
;
2151 if ((mask
& U_SIG_U_SIG_2_B16_B19
) != U_SIG_U_SIG_2_B16_B19
) {
2152 usig_eht_tb_ppdu_headers
[6] =
2153 &hf_radiotap_usig_eht_tb_crc_not_known
;
2155 if ((mask
& U_SIG_U_SIG_2_B20_B25
) != U_SIG_U_SIG_2_B20_B25
) {
2156 usig_eht_tb_ppdu_headers
[7] =
2157 &hf_radiotap_usig_eht_tb_tail_not_known
;
2159 proto_tree_add_bitmask(u_sig_tree
, tvb
, offset
,
2160 hf_radiotap_usig_value_tb_ppdu
,
2161 ett_radiotap_u_sig_value
,
2162 usig_eht_tb_ppdu_headers
,
2167 proto_tree_add_item(u_sig_tree
, hf_radiotap_u_sig_mask
, tvb
, offset
, 4,
2172 * Will never be called via old style bits
2174 static int * const eht_known_headers
[] = {
2175 &hf_radiotap_eht_reserved_1
,
2176 &hf_radiotap_eht_spatial_reuse_known
,
2177 &hf_radiotap_eht_guard_interval_known
,
2178 &hf_radiotap_eht_reserved_8
,
2179 &hf_radiotap_eht_number_ltf_symbols_known
,
2180 &hf_radiotap_eht_ldpc_extra_symbol_segment_known
,
2181 &hf_radiotap_eht_pre_fec_padding_factor_known
,
2182 &hf_radiotap_eht_pe_disambiguity_known
,
2183 &hf_radiotap_eht_disregard_known
,
2184 &hf_radiotap_eht_reserved1
,
2185 &hf_radiotap_eht_reserved_2
,
2186 &hf_radiotap_eht_crc1_known
,
2187 &hf_radiotap_eht_tail1_known
,
2188 &hf_radiotap_eht_crc2_known
,
2189 &hf_radiotap_eht_tail2_known
,
2190 &hf_radiotap_eht_nss_known
,
2191 &hf_radiotap_eht_beamformed_known
,
2192 &hf_radiotap_eht_number_non_ofdma_users_known
,
2193 &hf_radiotap_eht_user_encoding_block_crc_known
,
2194 &hf_radiotap_eht_user_encoding_block_tail_known
,
2195 &hf_radiotap_eht_ru_mru_size_known
,
2196 &hf_radiotap_eht_ru_mru_index_known
,
2197 &hf_radiotap_eht_tb_ru_allocation_known
,
2198 &hf_radiotap_eht_primary_80mhz_channel_pos_known
,
2199 &hf_radiotap_eht_reserved_fc
,
2203 #define EHT_USER_INFO_STA_ID_KNOWN 0x01
2204 #define EHT_USER_INFO_MCS_KNOWN 0x02
2205 #define EHT_USER_INFO_CODING_KNOWN 0x04
2206 #define EHT_USER_INFO_RESERVED_KNOWN 0x08
2207 #define EHT_USER_INFO_NSS_KNOWN 0x10
2208 #define EHT_USER_INFO_BEAMFORMING_KNOWN 0x20
2209 #define EHT_USER_INFO_SPATIAL_CONFIGURATION_KNOWN 0x40
2211 #define EHT_USER_INFO_STA_ID_MASK 0x0007FF00
2212 #define EHT_USER_INFO_STA_ID_SHIFT 8
2214 #define EHT_USER_INFO_MCS_MASK 0x00F00000
2215 #define EHT_USER_INFO_MCS_SHIFT 20
2217 #define EHT_USER_INFO_NSS_MASK 0x0F000000
2218 #define EHT_USER_INFO_NSS_SHIFT 24
2221 dissect_eht_user_info(proto_tree
*tree
, tvbuff_t
*tvb
, int offset
, struct ieee_802_11be
*info_11be
)
2223 proto_item
*item
= NULL
;
2224 proto_tree
*sub_tree
= NULL
;
2225 uint32_t known
= tvb_get_letohl(tvb
, offset
);
2227 item
= proto_tree_add_item(tree
, hf_radiotap_eht_user_info
,
2228 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2229 sub_tree
= proto_item_add_subtree(item
, ett_radiotap_eht_user_info_i
);
2231 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_sta_id_known
, tvb
,
2232 offset
, 4, ENC_LITTLE_ENDIAN
);
2233 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_mcs_known
, tvb
, offset
,
2234 4, ENC_LITTLE_ENDIAN
);
2235 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_coding_known
, tvb
,
2236 offset
, 4, ENC_LITTLE_ENDIAN
);
2237 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_rsvd_known
, tvb
,
2238 offset
, 4, ENC_LITTLE_ENDIAN
);
2239 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_nss_known
, tvb
, offset
,
2240 4, ENC_LITTLE_ENDIAN
);
2241 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_beamforming_known
, tvb
,
2242 offset
, 4, ENC_LITTLE_ENDIAN
);
2243 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_spatial_config_known
,
2244 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2245 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_data_captured
, tvb
,
2246 offset
, 4, ENC_LITTLE_ENDIAN
);
2247 if (known
& EHT_USER_INFO_STA_ID_KNOWN
) {
2248 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_sta_id
, tvb
,
2249 offset
, 4, ENC_LITTLE_ENDIAN
);
2250 if (info_11be
->num_users
< 4) {
2251 info_11be
->user
[info_11be
->num_users
].sta_id_known
= true;
2252 info_11be
->user
[info_11be
->num_users
].sta_id
=
2253 (known
& EHT_USER_INFO_STA_ID_MASK
) >> EHT_USER_INFO_STA_ID_SHIFT
;
2256 item
= proto_tree_add_item(sub_tree
,
2257 hf_radiotap_eht_ui_sta_id_not_known
, tvb
,
2258 offset
, 4, ENC_LITTLE_ENDIAN
);
2259 proto_item_append_text(item
, " (Not known)");
2261 if (known
& EHT_USER_INFO_CODING_KNOWN
) {
2262 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_coding
, tvb
,
2263 offset
, 4, ENC_LITTLE_ENDIAN
);
2265 item
= proto_tree_add_item(sub_tree
,
2266 hf_radiotap_eht_ui_coding_not_known
, tvb
,
2267 offset
, 4, ENC_LITTLE_ENDIAN
);
2268 proto_item_append_text(item
, " (Not known)");
2270 if (known
& EHT_USER_INFO_MCS_KNOWN
) {
2271 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_mcs
, tvb
,
2272 offset
, 4, ENC_LITTLE_ENDIAN
);
2273 if (info_11be
->num_users
< 4) {
2274 info_11be
->user
[info_11be
->num_users
].mcs_known
= true;
2275 info_11be
->user
[info_11be
->num_users
].mcs
=
2276 (known
& EHT_USER_INFO_MCS_MASK
) >> EHT_USER_INFO_MCS_SHIFT
;
2279 item
= proto_tree_add_item(sub_tree
,
2280 hf_radiotap_eht_ui_mcs_not_known
, tvb
,
2281 offset
, 4, ENC_LITTLE_ENDIAN
);
2282 proto_item_append_text(item
, " (Not known)");
2286 if (known
& EHT_USER_INFO_NSS_KNOWN
) {
2287 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_nss
, tvb
,
2288 offset
, 4, ENC_LITTLE_ENDIAN
);
2289 if (info_11be
->num_users
< 4) {
2290 info_11be
->user
[info_11be
->num_users
].nsts_known
= true;
2291 info_11be
->user
[info_11be
->num_users
].nsts
=
2292 ((known
& EHT_USER_INFO_NSS_MASK
) >> EHT_USER_INFO_NSS_SHIFT
) + 1;
2295 item
= proto_tree_add_item(sub_tree
,
2296 hf_radiotap_eht_ui_nss_not_known
, tvb
,
2297 offset
, 4, ENC_LITTLE_ENDIAN
);
2298 proto_item_append_text(item
, " (Not known)");
2300 if (known
& EHT_USER_INFO_RESERVED_KNOWN
) {
2301 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_reserved
, tvb
,
2302 offset
, 4, ENC_LITTLE_ENDIAN
);
2304 item
= proto_tree_add_item(sub_tree
,
2305 hf_radiotap_eht_ui_reserved_not_known
, tvb
,
2306 offset
, 4, ENC_LITTLE_ENDIAN
);
2307 proto_item_append_text(item
, " (Not known)");
2309 if (known
& EHT_USER_INFO_BEAMFORMING_KNOWN
) {
2310 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_beamforming
,
2311 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2313 item
= proto_tree_add_item(sub_tree
,
2314 hf_radiotap_eht_ui_beamforming_not_known
, tvb
,
2315 offset
, 4, ENC_LITTLE_ENDIAN
);
2316 proto_item_append_text(item
, " (Not known)");
2318 if (known
& EHT_USER_INFO_SPATIAL_CONFIGURATION_KNOWN
) {
2319 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_spatial_config
,
2320 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2322 /* Overlap field, don't add in not known case */
2326 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_rsvd1
, tvb
,
2327 offset
, 4, ENC_LITTLE_ENDIAN
);
2328 info_11be
->num_users
++;
2332 dissect_radiotap_eht(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2333 int offset
, struct ieee_802_11_phdr
*phdr _U_
,
2336 proto_tree
*eht_tree
= NULL
;
2338 uint32_t ru_alloc_1_known
;
2339 uint32_t ru_x_alloc
;
2340 uint16_t len
= tvb_get_uint16(tvb
, offset
- 2, ENC_LITTLE_ENDIAN
);
2341 proto_item
*data
= NULL
, *item
= NULL
;
2342 proto_tree
*sub_tree
= NULL
, *user_info_tree
= NULL
;
2343 bool data_ru_mru_size_known
= false;
2344 bool gi_known
= false;
2348 phdr
->phy
= PHDR_802_11_PHY_11BE
;
2349 struct ieee_802_11be
*info_11be
= &phdr
->phy_info
.info_11be
;
2351 eht_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, len
,
2352 ett_radiotap_eht
, NULL
,
2355 add_tlv_items(eht_tree
, tvb
, offset
);
2357 known
= tvb_get_uint32(tvb
, offset
, ENC_LITTLE_ENDIAN
);
2358 proto_tree_add_bitmask(eht_tree
, tvb
, offset
,
2359 hf_radiotap_eht_known
,
2360 ett_radiotap_eht_known
,
2361 eht_known_headers
, ENC_LITTLE_ENDIAN
);
2364 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data0
, tvb
, offset
,
2365 4, ENC_LITTLE_ENDIAN
);
2367 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2369 proto_tree_add_item(sub_tree
,
2370 hf_radiotap_eht_data0_reserved1
,
2371 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2373 if (known
& IEEE80211_RADIOTAP_EHT_SPATIAL_REUSE_KNOWN
) {
2374 proto_tree_add_item(sub_tree
,
2375 hf_radiotap_eht_data0_spatial_reuse
,
2376 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2378 item
= proto_tree_add_item(sub_tree
,
2379 hf_radiotap_eht_data0_spatial_reuse_not_known
,
2380 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2381 proto_item_append_text(item
, " (Not known)");
2384 if (known
& IEEE80211_RADIOTAP_EHT_GUARD_INTERVAL_KNOWN
) {
2385 proto_tree_add_item(sub_tree
,
2386 hf_radiotap_eht_data0_gi
,
2387 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2390 item
= proto_tree_add_item(sub_tree
,
2391 hf_radiotap_eht_data0_gi_not_known
,
2392 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2393 proto_item_append_text(item
, " (Not known)");
2396 proto_tree_add_item(sub_tree
,
2397 hf_radiotap_eht_data0_ltf_symbol_size
,
2398 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2400 if (known
& IEEE80211_RADIOTAP_EHT_NUMBER_LTF_SYMBOLS_KNOWN
) {
2401 proto_tree_add_item(sub_tree
,
2402 hf_radiotap_eht_data0_number_ltf_symbols
,
2403 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2405 item
= proto_tree_add_item(sub_tree
,
2406 hf_radiotap_eht_data0_number_ltf_symbols_not_known
,
2407 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2408 proto_item_append_text(item
, " (Not known)");
2411 if (known
& IEEE80211_RADIOTAP_EHT_LDPC_EXTRA_SYMBOL_SEGMENT_KNOWN
) {
2412 proto_tree_add_item(sub_tree
,
2413 hf_radiotap_eht_data0_ldpc_extra_symbol_segment
,
2414 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2416 item
= proto_tree_add_item(sub_tree
,
2417 hf_radiotap_eht_data0_ldpc_extra_symbol_segment_not_known
,
2418 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2419 proto_item_append_text(item
, " (Not known)");
2422 if (known
& IEEE80211_RADIOTAP_EHT_PRE_FEC_PADDING_FACTOR_KNOWN
) {
2423 proto_tree_add_item(sub_tree
,
2424 hf_radiotap_eht_data0_pre_fec_padding_factor
,
2425 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2427 item
= proto_tree_add_item(sub_tree
,
2428 hf_radiotap_eht_data0_pre_fec_padding_factor_not_known
,
2429 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2430 proto_item_append_text(item
, " (Not known)");
2433 if (known
& IEEE80211_RADIOTAP_EHT_PE_DISAMBIGUITY_KNOWN
) {
2434 proto_tree_add_item(sub_tree
,
2435 hf_radiotap_eht_data0_pe_disambiguity
,
2436 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2438 item
= proto_tree_add_item(sub_tree
,
2439 hf_radiotap_eht_data0_pe_disambiguity_not_known
,
2440 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2441 proto_item_append_text(item
, " (Not known)");
2444 if (known
& IEEE80211_RADIOTAP_EHT_DISREGARD_KNOWN
) {
2445 proto_tree_add_item(sub_tree
,
2446 hf_radiotap_eht_data0_disregard
,
2447 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2449 item
= proto_tree_add_item(sub_tree
,
2450 hf_radiotap_eht_data0_disregard_not_known
,
2451 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2452 proto_item_append_text(item
, " (Not known)");
2455 if (known
& IEEE80211_RADIOTAP_EHT_CRC1_KNOWN
) {
2456 proto_tree_add_item(sub_tree
,
2457 hf_radiotap_eht_data0_crc1
,
2458 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2460 item
= proto_tree_add_item(sub_tree
,
2461 hf_radiotap_eht_data0_crc1_not_known
,
2462 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2463 proto_item_append_text(item
, " (Not known)");
2466 if (known
& IEEE80211_RADIOTAP_EHT_TAIL1_KNOWN
) {
2467 proto_tree_add_item(sub_tree
,
2468 hf_radiotap_eht_data0_tail1
,
2469 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2471 item
= proto_tree_add_item(sub_tree
,
2472 hf_radiotap_eht_data0_tail1_not_known
,
2473 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2474 proto_item_append_text(item
, " (Not known)");
2477 data0
= tvb_get_letohs(tvb
, offset
);
2479 info_11be
->has_gi
= true;
2480 info_11be
->gi
= (data0
& IEEE80211_RADIOTAP_EHT_GI_MASK
) >> IEEE80211_RADIOTAP_EHT_GI_SHIFT
;
2485 ru_alloc_1_known
= (tvb_get_letohl(tvb
, offset
) >> 22) & 0x01;
2487 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data1
, tvb
, offset
,
2488 4, ENC_LITTLE_ENDIAN
);
2490 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2492 if (known
& IEEE80211_RADIOTAP_EHT_RU_MRU_SIZE_KNOWN
) {
2493 proto_tree_add_item(sub_tree
,
2494 hf_radiotap_eht_data1_ru_mru_size
,
2495 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2496 data_ru_mru_size_known
= true;
2498 item
= proto_tree_add_item(sub_tree
,
2499 hf_radiotap_eht_data1_ru_mru_size_not_known
,
2500 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2501 proto_item_append_text(item
, " (Not known)");
2504 if (known
& IEEE80211_RADIOTAP_EHT_RU_MRU_INDEX_KNOWN
) {
2505 proto_tree_add_item(sub_tree
,
2506 hf_radiotap_eht_data1_ru_mru_index
,
2507 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2509 item
= proto_tree_add_item(sub_tree
,
2510 hf_radiotap_eht_data1_ru_mru_index_not_known
,
2511 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2512 proto_item_append_text(item
, " (Not known)");
2515 if (ru_alloc_1_known
) {
2516 proto_tree_add_item(sub_tree
,
2517 hf_radiotap_eht_data1_ru_alloc_c1_1_1
,
2518 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2520 item
= proto_tree_add_item(sub_tree
,
2521 hf_radiotap_eht_data1_ru_alloc_c1_1_1_not_known
,
2522 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2523 proto_item_append_text(item
, " (Not known)");
2526 proto_tree_add_item(sub_tree
,
2527 hf_radiotap_eht_data1_ru_alloc_c1_1_1_known
,
2528 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2530 proto_tree_add_item(sub_tree
,
2531 hf_radiotap_eht_data1_reserved
,
2532 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2534 if (known
& IEEE80211_RADIOTAP_EHT_PRIMARY_80MHZ_CHANNEL_POS_KNOWN
) {
2535 proto_tree_add_item(sub_tree
,
2536 hf_radiotap_eht_data1_primary_80_mhz_chan_pos
,
2537 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2539 item
= proto_tree_add_item(sub_tree
,
2540 hf_radiotap_eht_data1_primary_80_mhz_chan_pos_not_known
,
2541 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2542 proto_item_append_text(item
, " (Not known)");
2544 data1
= tvb_get_letohs(tvb
, offset
);
2545 if (data_ru_mru_size_known
) {
2546 info_11be
->has_ru_mru_size
= true;
2547 info_11be
->ru_mru_size
= (data1
& IEEE80211_RADIOTAP_EHT_RU_MRU_SIZE_MASK
);
2552 #define RU_ALLOC_X_KNOWN 0x00000200
2553 #define RU_ALLOC_X_PLUS_1_KNOWN 0x00080000
2554 #define RU_ALLOC_X_PLUS_2_KNOWN 0x20000000
2556 ru_x_alloc
= tvb_get_letohl(tvb
, offset
);
2557 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data2
, tvb
, offset
,
2558 4, ENC_LITTLE_ENDIAN
);
2559 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2561 if (ru_x_alloc
& RU_ALLOC_X_KNOWN
) {
2562 proto_tree_add_item(sub_tree
,
2563 hf_radiotap_eht_data2_ru_alloc_c2_1_1
,
2564 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2566 item
= proto_tree_add_item(sub_tree
,
2567 hf_radiotap_eht_data2_ru_alloc_c2_1_1_not_known
,
2568 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2569 proto_item_append_text(item
, " (Not known)");
2572 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data2_ru_alloc_c2_1_1_known
,
2573 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2575 if (ru_x_alloc
& RU_ALLOC_X_PLUS_1_KNOWN
) {
2576 proto_tree_add_item(sub_tree
,
2577 hf_radiotap_eht_data2_ru_alloc_c1_1_2
,
2578 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2580 item
= proto_tree_add_item(sub_tree
,
2581 hf_radiotap_eht_data2_ru_alloc_c1_1_2_not_known
,
2582 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2583 proto_item_append_text(item
, " (Not known)");
2586 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data2_ru_alloc_c1_1_2_known
,
2587 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2589 if (ru_x_alloc
& RU_ALLOC_X_PLUS_2_KNOWN
) {
2590 proto_tree_add_item(sub_tree
,
2591 hf_radiotap_eht_data2_ru_alloc_c2_1_2
,
2592 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2594 item
= proto_tree_add_item(sub_tree
,
2595 hf_radiotap_eht_data2_ru_alloc_c2_1_2_not_known
,
2596 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2597 proto_item_append_text(item
, " (Not known)");
2600 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data2_ru_alloc_c2_1_2_known
,
2601 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2603 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data2_reserved
, tvb
,
2604 offset
, 4, ENC_LITTLE_ENDIAN
);
2607 ru_x_alloc
= tvb_get_letohl(tvb
, offset
);
2608 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data3
, tvb
, offset
,
2609 4, ENC_LITTLE_ENDIAN
);
2611 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2613 if (ru_x_alloc
& RU_ALLOC_X_KNOWN
) {
2614 proto_tree_add_item(sub_tree
,
2615 hf_radiotap_eht_data3_ru_alloc_c1_2_1
,
2616 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2618 item
= proto_tree_add_item(sub_tree
,
2619 hf_radiotap_eht_data3_ru_alloc_c1_2_1_not_known
,
2620 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2621 proto_item_append_text(item
, " (Not known)");
2624 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data3_ru_alloc_c1_2_1_known
,
2625 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2627 if (ru_x_alloc
& RU_ALLOC_X_PLUS_1_KNOWN
) {
2628 proto_tree_add_item(sub_tree
,
2629 hf_radiotap_eht_data3_ru_alloc_c2_2_1
,
2630 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2632 item
= proto_tree_add_item(sub_tree
,
2633 hf_radiotap_eht_data3_ru_alloc_c2_2_1_not_known
,
2634 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2635 proto_item_append_text(item
, " (Not known)");
2638 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data3_ru_alloc_c2_2_1_known
,
2639 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2641 if (ru_x_alloc
& RU_ALLOC_X_PLUS_2_KNOWN
) {
2642 proto_tree_add_item(sub_tree
,
2643 hf_radiotap_eht_data3_ru_alloc_c1_2_2
,
2644 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2646 item
= proto_tree_add_item(sub_tree
,
2647 hf_radiotap_eht_data3_ru_alloc_c1_2_2_not_known
,
2648 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2649 proto_item_append_text(item
, " (Not known)");
2652 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data3_ru_alloc_c1_2_2_known
,
2653 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2655 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data3_reserved
, tvb
,
2656 offset
, 4, ENC_LITTLE_ENDIAN
);
2660 ru_x_alloc
= tvb_get_letohl(tvb
, offset
);
2661 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data4
, tvb
, offset
,
2662 4, ENC_LITTLE_ENDIAN
);
2664 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2666 if (ru_x_alloc
& RU_ALLOC_X_KNOWN
) {
2667 proto_tree_add_item(sub_tree
,
2668 hf_radiotap_eht_data4_ru_alloc_c2_2_2
,
2669 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2671 item
= proto_tree_add_item(sub_tree
,
2672 hf_radiotap_eht_data4_ru_alloc_c2_2_2_not_known
,
2673 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2674 proto_item_append_text(item
, " (Not known)");
2677 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data4_ru_alloc_c2_2_2_known
,
2678 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2680 if (ru_x_alloc
& RU_ALLOC_X_PLUS_1_KNOWN
) {
2681 proto_tree_add_item(sub_tree
,
2682 hf_radiotap_eht_data4_ru_alloc_c1_2_3
,
2683 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2685 item
= proto_tree_add_item(sub_tree
,
2686 hf_radiotap_eht_data4_ru_alloc_c1_2_3_not_known
,
2687 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2688 proto_item_append_text(item
, " (Not known)");
2691 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data4_ru_alloc_c1_2_3_known
,
2692 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2694 if (ru_x_alloc
& RU_ALLOC_X_PLUS_2_KNOWN
) {
2695 proto_tree_add_item(sub_tree
,
2696 hf_radiotap_eht_data4_ru_alloc_c2_2_3
,
2697 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2699 item
= proto_tree_add_item(sub_tree
,
2700 hf_radiotap_eht_data4_ru_alloc_c2_2_3_not_known
,
2701 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2702 proto_item_append_text(item
, " (Not known)");
2705 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data4_ru_alloc_c2_2_3_known
,
2706 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2708 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data4_reserved
, tvb
,
2709 offset
, 4, ENC_LITTLE_ENDIAN
);
2713 ru_x_alloc
= tvb_get_letohl(tvb
, offset
);
2714 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data5
, tvb
, offset
,
2715 4, ENC_LITTLE_ENDIAN
);
2717 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2719 if (ru_x_alloc
& RU_ALLOC_X_KNOWN
) {
2720 proto_tree_add_item(sub_tree
,
2721 hf_radiotap_eht_data5_ru_alloc_c1_2_4
,
2722 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2724 item
= proto_tree_add_item(sub_tree
,
2725 hf_radiotap_eht_data5_ru_alloc_c1_2_4_not_known
,
2726 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2727 proto_item_append_text(item
, " (Not known)");
2730 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data5_ru_alloc_c1_2_4_known
,
2731 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2733 if (ru_x_alloc
& RU_ALLOC_X_PLUS_1_KNOWN
) {
2734 proto_tree_add_item(sub_tree
,
2735 hf_radiotap_eht_data5_ru_alloc_c2_2_4
,
2736 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2738 item
= proto_tree_add_item(sub_tree
,
2739 hf_radiotap_eht_data5_ru_alloc_c2_2_4_not_known
,
2740 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2741 proto_item_append_text(item
, " (Not known)");
2744 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data5_ru_alloc_c2_2_4_known
,
2745 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2747 if (ru_x_alloc
& RU_ALLOC_X_PLUS_2_KNOWN
) {
2748 proto_tree_add_item(sub_tree
,
2749 hf_radiotap_eht_data5_ru_alloc_c1_2_5
,
2750 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2752 item
= proto_tree_add_item(sub_tree
,
2753 hf_radiotap_eht_data5_ru_alloc_c1_2_5_not_known
,
2754 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2755 proto_item_append_text(item
, " (Not known)");
2758 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data5_ru_alloc_c1_2_5_known
,
2759 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2761 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data5_reserved
, tvb
,
2762 offset
, 4, ENC_LITTLE_ENDIAN
);
2766 ru_x_alloc
= tvb_get_letohl(tvb
, offset
);
2767 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data6
, tvb
, offset
,
2768 4, ENC_LITTLE_ENDIAN
);
2770 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2772 if (ru_x_alloc
& RU_ALLOC_X_KNOWN
) {
2773 proto_tree_add_item(sub_tree
,
2774 hf_radiotap_eht_data6_ru_alloc_c2_2_5
,
2775 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2777 item
= proto_tree_add_item(sub_tree
,
2778 hf_radiotap_eht_data6_ru_alloc_c2_2_5_not_known
,
2779 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2780 proto_item_append_text(item
, " (Not known)");
2783 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data6_ru_alloc_c2_2_5_known
,
2784 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2786 if (ru_x_alloc
& RU_ALLOC_X_PLUS_1_KNOWN
) {
2787 proto_tree_add_item(sub_tree
,
2788 hf_radiotap_eht_data6_ru_alloc_c1_2_6
,
2789 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2791 item
= proto_tree_add_item(sub_tree
,
2792 hf_radiotap_eht_data6_ru_alloc_c1_2_6_not_known
,
2793 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2794 proto_item_append_text(item
, " (Not known)");
2797 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data6_ru_alloc_c1_2_6_known
,
2798 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2800 if (ru_x_alloc
& RU_ALLOC_X_PLUS_2_KNOWN
) {
2801 proto_tree_add_item(sub_tree
,
2802 hf_radiotap_eht_data6_ru_alloc_c2_2_6
,
2803 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2805 item
= proto_tree_add_item(sub_tree
,
2806 hf_radiotap_eht_data6_ru_alloc_c2_2_6_not_known
,
2807 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2808 proto_item_append_text(item
, " (Not known)");
2811 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data6_ru_alloc_c2_2_6_known
,
2812 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2814 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data6_reserved
, tvb
,
2815 offset
, 4, ENC_LITTLE_ENDIAN
);
2819 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data7
, tvb
, offset
,
2820 4, ENC_LITTLE_ENDIAN
);
2821 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2823 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_crc2
, tvb
, offset
,
2824 4, ENC_LITTLE_ENDIAN
);
2825 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_tail2
, tvb
, offset
,
2826 4, ENC_LITTLE_ENDIAN
);
2827 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_rsvd
, tvb
, offset
,
2828 4, ENC_LITTLE_ENDIAN
);
2829 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_nss
, tvb
, offset
,
2830 4, ENC_LITTLE_ENDIAN
);
2831 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_beamformed
, tvb
,
2832 offset
, 4, ENC_LITTLE_ENDIAN
);
2833 if (known
& IEEE80211_RADIOTAP_EHT_NUMBER_NON_OFDMA_USERS_KNOWN
) {
2834 proto_tree_add_item(sub_tree
,
2835 hf_radiotap_eht_data7_number_non_ofdma_users
,
2836 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2838 item
= proto_tree_add_item(sub_tree
,
2839 hf_radiotap_eht_data7_number_non_ofdma_users_not_known
,
2840 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2841 proto_item_append_text(item
, " (Not known)");
2843 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_user_encode_crc
,
2844 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2845 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_user_encode_tail
,
2846 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2847 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_rsvd2
, tvb
,
2848 offset
, 4, ENC_LITTLE_ENDIAN
);
2851 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data8
, tvb
, offset
,
2852 4, ENC_LITTLE_ENDIAN
);
2853 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2855 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data8_ru_alloc_ps_160
,
2856 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2857 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data8_ru_alloc_b0
,
2858 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2859 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data8_ru_alloc_b7_b1
,
2860 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2861 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data8_rsvd
, tvb
,
2862 offset
, 4, ENC_LITTLE_ENDIAN
);
2865 /* known + data[9] */
2869 * Now, are there any user-info entries?
2871 info_11be
->num_users
= 0;
2872 if (tvb_captured_length_remaining(tvb
, offset
) && len
> 0) {
2873 user_info_tree
= proto_tree_add_subtree(eht_tree
, tvb
, offset
,
2874 4, ett_radiotap_eht_user_info
, NULL
,
2876 while (tvb_captured_length_remaining(tvb
, offset
) && len
> 0) {
2877 dissect_eht_user_info(user_info_tree
, tvb
, offset
, info_11be
);
2884 static int * const s1g_known_headers
[] = {
2885 &hf_radiotap_s1g_s1g_ppdu_format_known
,
2886 &hf_radiotap_s1g_response_indication_known
,
2887 &hf_radiotap_s1g_guard_interval_known
,
2888 &hf_radiotap_s1g_nss_known
,
2889 &hf_radiotap_s1g_bandwidth_known
,
2890 &hf_radiotap_s1g_mcs_known
,
2891 &hf_radiotap_s1g_color_known
,
2892 &hf_radiotap_s1g_uplink_indication_known
,
2893 &hf_radiotap_s1g_reserved_1
,
2897 static int * const s1g_data1_headers
[] = {
2898 &hf_radiotap_s1g_s1g_ppdu_format
,
2899 &hf_radiotap_s1g_response_indication
,
2900 &hf_radiotap_s1g_reserved_2
,
2901 &hf_radiotap_s1g_guard_interval
,
2902 &hf_radiotap_s1g_nss
,
2903 &hf_radiotap_s1g_bandwidth
,
2904 &hf_radiotap_s1g_mcs
,
2908 static int * const s1g_data2_headers
[] = {
2909 &hf_radiotap_s1g_color
,
2910 &hf_radiotap_s1g_uplink_indication
,
2911 &hf_radiotap_s1g_reserved_3
,
2912 &hf_radiotap_s1g_rssi
,
2917 dissect_radiotap_s1g(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2918 int offset
, struct ieee_802_11_phdr
*phdr
, bool is_tlv _U_
)
2920 proto_tree
*s1g_tree
= NULL
;
2922 phdr
->phy
= PHDR_802_11_PHY_11AH
;
2923 s1g_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 6,
2924 ett_radiotap_s1g
, NULL
, "S1G");
2926 add_tlv_items(s1g_tree
, tvb
, offset
);
2928 proto_tree_add_bitmask(s1g_tree
, tvb
, offset
,
2929 hf_radiotap_s1g_known
, ett_radiotap_s1g_known
,
2930 s1g_known_headers
, ENC_LITTLE_ENDIAN
);
2933 proto_tree_add_bitmask(s1g_tree
, tvb
, offset
,
2934 hf_radiotap_s1g_data_1
, ett_radiotap_s1g_data_1
,
2935 s1g_data1_headers
, ENC_LITTLE_ENDIAN
);
2938 proto_tree_add_bitmask(s1g_tree
, tvb
, offset
,
2939 hf_radiotap_s1g_data_2
, ett_radiotap_s1g_data_2
,
2940 s1g_data2_headers
, ENC_LITTLE_ENDIAN
);
2944 dissect_radiotap_tsft(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2945 int offset
, struct ieee_802_11_phdr
*phdr
)
2947 phdr
->tsf_timestamp
= tvb_get_letoh64(tvb
, offset
);
2948 phdr
->has_tsf_timestamp
= true;
2949 proto_tree_add_uint64(tree
, hf_radiotap_mactime
, tvb
, offset
, 8,
2950 phdr
->tsf_timestamp
);
2954 dissect_radiotap_flags(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2955 int offset
, uint8_t *rflags
, struct ieee_802_11_phdr
*phdr
)
2958 proto_tree
*flags_tree
;
2960 *rflags
= tvb_get_uint8(tvb
, offset
);
2961 if (*rflags
& IEEE80211_RADIOTAP_F_DATAPAD
)
2962 phdr
->datapad
= true;
2963 switch (radiotap_fcs_handling
) {
2966 if (*rflags
& IEEE80211_RADIOTAP_F_FCS
)
2972 case ASSUME_FCS_PRESENT
:
2976 case ASSUME_FCS_ABSENT
:
2980 ft
= proto_tree_add_item(tree
, hf_radiotap_flags
, tvb
, offset
,
2981 1, ENC_LITTLE_ENDIAN
);
2982 flags_tree
= proto_item_add_subtree(ft
, ett_radiotap_flags
);
2984 proto_tree_add_item(flags_tree
, hf_radiotap_flags_cfp
, tvb
, offset
,
2985 1, ENC_LITTLE_ENDIAN
);
2986 proto_tree_add_item(flags_tree
, hf_radiotap_flags_preamble
, tvb
, offset
,
2987 1, ENC_LITTLE_ENDIAN
);
2988 proto_tree_add_item(flags_tree
, hf_radiotap_flags_wep
, tvb
, offset
, 1,
2990 proto_tree_add_item(flags_tree
, hf_radiotap_flags_frag
, tvb
, offset
, 1,
2992 proto_tree_add_item(flags_tree
, hf_radiotap_flags_fcs
, tvb
, offset
, 1,
2994 proto_tree_add_item(flags_tree
, hf_radiotap_flags_datapad
, tvb
, offset
,
2995 1, ENC_LITTLE_ENDIAN
);
2996 proto_tree_add_item(flags_tree
, hf_radiotap_flags_badfcs
, tvb
, offset
,
2997 1, ENC_LITTLE_ENDIAN
);
2998 proto_tree_add_item(flags_tree
, hf_radiotap_flags_shortgi
, tvb
, offset
,
2999 1, ENC_LITTLE_ENDIAN
);
3003 dissect_radiotap_rate(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
3004 int offset
, struct ieee_802_11_phdr
*phdr
)
3008 rate
= tvb_get_uint8(tvb
, offset
);
3010 * XXX On FreeBSD rate & 0x80 means we have an MCS. On
3011 * Linux and AirPcap it does not. (What about
3012 * macOS, NetBSD, OpenBSD, and DragonFly BSD?)
3014 * This is an issue either for proprietary extensions
3015 * to 11a or 11g, which do exist, or for 11n
3016 * implementations that stuff a rate value into
3017 * this field, which also appear to exist.
3019 if (radiotap_interpret_high_rates_as_mcs
&&
3020 rate
>= 0x80 && rate
<= (0x80+76)) {
3022 * XXX - we don't know the channel width
3023 * or guard interval length, so we can't
3024 * convert this to a data rate.
3026 * If you want us to show a data rate,
3027 * use the MCS field, not the Rate field;
3028 * the MCS field includes not only the
3029 * MCS index, it also includes bandwidth
3030 * and guard interval information.
3032 * XXX - can we get the channel width
3033 * from XChannel and the guard interval
3034 * information from Flags, at least on
3037 proto_tree_add_uint(tree
, hf_radiotap_mcs_index
, tvb
, offset
,
3040 col_add_fstr(pinfo
->cinfo
, COL_TX_RATE
, "%d.%d",
3041 rate
/ 2, rate
& 1 ? 5 : 0);
3042 proto_tree_add_float_format(tree
, hf_radiotap_datarate
,
3043 tvb
, offset
, 1, (float)rate
/ 2,
3044 "Data Rate: %.1f Mb/s",
3046 phdr
->has_data_rate
= true;
3047 phdr
->data_rate
= rate
;
3052 dissect_radiotap_channel(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
3053 int offset
, struct ieee_802_11_phdr
*phdr
)
3058 freq
= tvb_get_letohs(tvb
, offset
);
3061 * XXX - some captures have 0, which is
3066 phdr
->has_frequency
= true;
3067 phdr
->frequency
= freq
;
3068 calc_channel
= ieee80211_mhz_to_chan(freq
);
3069 if (calc_channel
!= -1) {
3070 phdr
->has_channel
= true;
3071 phdr
->channel
= calc_channel
;
3074 memset(&phdr
->phy_info
, 0, sizeof(phdr
->phy_info
));
3075 cflags
= tvb_get_letohs(tvb
, offset
+ 2);
3076 switch (cflags
& IEEE80211_CHAN_ALLTURBO
) {
3078 case IEEE80211_CHAN_FHSS
:
3079 phdr
->phy
= PHDR_802_11_PHY_11_FHSS
;
3082 case IEEE80211_CHAN_DSSS
:
3083 phdr
->phy
= PHDR_802_11_PHY_11_DSSS
;
3086 case IEEE80211_CHAN_A
:
3087 phdr
->phy
= PHDR_802_11_PHY_11A
;
3088 phdr
->phy_info
.info_11a
.has_turbo_type
= true;
3089 phdr
->phy_info
.info_11a
.turbo_type
= PHDR_802_11A_TURBO_TYPE_NORMAL
;
3092 case IEEE80211_CHAN_B
:
3093 phdr
->phy
= PHDR_802_11_PHY_11B
;
3096 case IEEE80211_CHAN_PUREG
:
3097 case IEEE80211_CHAN_G
:
3099 * One of those means, in theory, that there should
3100 * only be ERP-OFDM traffic, and the other means that
3101 * there could be both ERP-DSSS and ERP-OFDM traffic.
3103 * For now, we treat it as 11g; later, we'll check
3104 * the rate and, if it's a DSSS rate, mark it as 11b,
3107 phdr
->phy
= PHDR_802_11_PHY_11G
;
3108 phdr
->phy_info
.info_11g
.has_mode
= true;
3109 phdr
->phy_info
.info_11g
.mode
= PHDR_802_11G_MODE_NORMAL
;
3112 case IEEE80211_CHAN_108A
:
3113 phdr
->phy
= PHDR_802_11_PHY_11A
;
3114 phdr
->phy_info
.info_11a
.has_turbo_type
= true;
3115 /* We assume non-STURBO is dynamic turbo */
3116 phdr
->phy_info
.info_11a
.turbo_type
= PHDR_802_11A_TURBO_TYPE_DYNAMIC_TURBO
;
3119 case IEEE80211_CHAN_108PUREG
:
3120 phdr
->phy
= PHDR_802_11_PHY_11G
;
3121 phdr
->phy_info
.info_11g
.has_mode
= true;
3122 phdr
->phy_info
.info_11g
.mode
= PHDR_802_11G_MODE_SUPER_G
;
3127 * XXX - special-case 11ad; there's no field to explicitly indicate
3128 * an 11ad packet. Anything with a frequency in the 802.11ad range
3129 * is treated as 11ad.
3131 if (IS_80211AD(freq
)) {
3132 phdr
->phy
= PHDR_802_11_PHY_11AD
;
3135 /* XXX - Control frames are transmitted in legacy mode using the basic
3136 * rate, and in the 6 GHz band will get called PHY_11A (assuming the
3137 * 5 GHz bit is set), even though that the use of that band indicates
3138 * 802.11ax or 802.11be certified devices, which is confusing for some
3144 static int * const channel_flags
[] = {
3145 &hf_radiotap_channel_flags_700mhz
,
3146 &hf_radiotap_channel_flags_800mhz
,
3147 &hf_radiotap_channel_flags_900mhz
,
3148 &hf_radiotap_channel_flags_turbo
,
3149 &hf_radiotap_channel_flags_cck
,
3150 &hf_radiotap_channel_flags_ofdm
,
3151 &hf_radiotap_channel_flags_2ghz
,
3152 &hf_radiotap_channel_flags_5ghz
,
3153 &hf_radiotap_channel_flags_passive
,
3154 &hf_radiotap_channel_flags_dynamic
,
3155 &hf_radiotap_channel_flags_gfsk
,
3156 &hf_radiotap_channel_flags_gsm
,
3157 &hf_radiotap_channel_flags_sturbo
,
3158 &hf_radiotap_channel_flags_half
,
3159 &hf_radiotap_channel_flags_quarter
,
3163 chan_str
= ieee80211_mhz_to_str(freq
);
3164 col_add_str(pinfo
->cinfo
,
3165 COL_FREQ_CHAN
, chan_str
);
3166 proto_tree_add_uint_format_value(tree
,
3167 hf_radiotap_channel_frequency
,
3168 tvb
, offset
, 2, freq
,
3173 /* We're already 2-byte aligned. */
3174 proto_tree_add_bitmask(tree
, tvb
, offset
+ 2,
3175 hf_radiotap_channel_flags
,
3176 ett_radiotap_channel_flags
,
3177 channel_flags
, ENC_LITTLE_ENDIAN
);
3182 dissect_radiotap_fhss(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
3183 int offset
, struct ieee_802_11_phdr
*phdr
)
3186 * Just in case we didn't have a Channel field or
3187 * it said this was something other than 11 legacy
3190 phdr
->phy
= PHDR_802_11_PHY_11_FHSS
;
3191 phdr
->phy_info
.info_11_fhss
.has_hop_set
= true;
3192 phdr
->phy_info
.info_11_fhss
.hop_set
= tvb_get_uint8(tvb
, offset
);
3193 phdr
->phy_info
.info_11_fhss
.has_hop_pattern
= true;
3194 phdr
->phy_info
.info_11_fhss
.hop_pattern
= tvb_get_uint8(tvb
, offset
+ 1);
3195 proto_tree_add_item(tree
, hf_radiotap_fhss_hopset
, tvb
, offset
, 1,
3197 proto_tree_add_item(tree
, hf_radiotap_fhss_pattern
, tvb
, offset
+ 1, 1,
3202 dissect_radiotap_dbm_antsignal(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3203 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr
)
3205 int8_t dbm
= tvb_get_int8(tvb
, offset
);
3207 phdr
->has_signal_dbm
= true;
3208 phdr
->signal_dbm
= dbm
;
3209 col_add_fstr(pinfo
->cinfo
, COL_RSSI
, "%d dBm", dbm
);
3210 proto_tree_add_int(tree
, hf_radiotap_dbm_antsignal
, tvb
, offset
, 1, dbm
);
3215 dissect_radiotap_dbm_antnoise(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3216 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr
)
3218 int dbm
= tvb_get_int8(tvb
, offset
);
3220 phdr
->has_noise_dbm
= true;
3221 phdr
->noise_dbm
= dbm
;
3223 proto_tree_add_int(tree
, hf_radiotap_dbm_antnoise
, tvb
, offset
,
3229 dissect_radiotap_db_antsignal(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3230 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr
)
3232 uint8_t db
= tvb_get_uint8(tvb
, offset
);
3234 phdr
->has_signal_db
= true;
3235 phdr
->signal_db
= db
;
3236 col_add_fstr(pinfo
->cinfo
, COL_RSSI
, "%u dB", db
);
3237 proto_tree_add_uint(tree
, hf_radiotap_db_antsignal
, tvb
, offset
, 1, db
);
3241 dissect_radiotap_db_antnoise(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3242 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr
)
3244 unsigned db
= tvb_get_uint8(tvb
, offset
);
3246 phdr
->has_noise_db
= true;
3247 phdr
->noise_db
= db
;
3249 proto_tree_add_uint(tree
, hf_radiotap_db_antnoise
, tvb
, offset
,
3255 dissect_radiotap_rx_flags(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3256 proto_tree
*tree
, int offset
, proto_item
**hdr_fcs_ti
,
3257 int *hdr_fcs_offset
, int *sent_fcs
)
3259 if (radiotap_bit14_fcs
) {
3261 *sent_fcs
= tvb_get_ntohl(tvb
, offset
);
3262 *hdr_fcs_ti
= proto_tree_add_uint(tree
,
3263 hf_radiotap_fcs
, tvb
,
3264 offset
, 4, *sent_fcs
);
3265 *hdr_fcs_offset
= offset
;
3268 static int * const rxflags
[] = {
3269 &hf_radiotap_rxflags_badplcp
,
3273 proto_tree_add_bitmask(tree
, tvb
, offset
,
3274 hf_radiotap_rxflags
, ett_radiotap_rxflags
,
3275 rxflags
, ENC_LITTLE_ENDIAN
);
3281 dissect_radiotap_tx_flags(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3282 proto_tree
*tree
, int offset
)
3284 static int * const txflags
[] = {
3285 &hf_radiotap_txflags_fail
,
3286 &hf_radiotap_txflags_cts
,
3287 &hf_radiotap_txflags_rts
,
3288 &hf_radiotap_txflags_noack
,
3289 &hf_radiotap_txflags_noseqno
,
3290 &hf_radiotap_txflags_order
,
3294 proto_tree_add_bitmask(tree
, tvb
, offset
,
3295 hf_radiotap_txflags
, ett_radiotap_txflags
,
3296 txflags
, ENC_LITTLE_ENDIAN
);
3300 dissect_radiotap_xchannel(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3301 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr
)
3303 uint32_t xcflags
= tvb_get_letohl(tvb
, offset
);
3306 switch (xcflags
& IEEE80211_CHAN_ALLTURBO
) {
3308 case IEEE80211_CHAN_FHSS
:
3309 phdr
->phy
= PHDR_802_11_PHY_11_FHSS
;
3312 case IEEE80211_CHAN_DSSS
:
3313 phdr
->phy
= PHDR_802_11_PHY_11_DSSS
;
3316 case IEEE80211_CHAN_A
:
3317 phdr
->phy
= PHDR_802_11_PHY_11A
;
3318 phdr
->phy_info
.info_11a
.has_turbo_type
= true;
3319 phdr
->phy_info
.info_11a
.turbo_type
= PHDR_802_11A_TURBO_TYPE_NORMAL
;
3322 case IEEE80211_CHAN_B
:
3323 phdr
->phy
= PHDR_802_11_PHY_11B
;
3326 case IEEE80211_CHAN_PUREG
:
3327 case IEEE80211_CHAN_G
:
3328 phdr
->phy
= PHDR_802_11_PHY_11G
;
3329 phdr
->phy_info
.info_11g
.has_mode
= true;
3330 phdr
->phy_info
.info_11g
.mode
= PHDR_802_11G_MODE_NORMAL
;
3333 case IEEE80211_CHAN_108A
:
3334 phdr
->phy
= PHDR_802_11_PHY_11A
;
3335 phdr
->phy_info
.info_11a
.has_turbo_type
= true;
3336 /* We assume non-STURBO is dynamic turbo */
3337 phdr
->phy_info
.info_11a
.turbo_type
= PHDR_802_11A_TURBO_TYPE_DYNAMIC_TURBO
;
3340 case IEEE80211_CHAN_108PUREG
:
3341 phdr
->phy
= PHDR_802_11_PHY_11G
;
3342 phdr
->phy_info
.info_11g
.has_mode
= true;
3343 phdr
->phy_info
.info_11g
.mode
= PHDR_802_11G_MODE_SUPER_G
;
3346 case IEEE80211_CHAN_ST
:
3347 phdr
->phy
= PHDR_802_11_PHY_11A
;
3348 phdr
->phy_info
.info_11a
.has_turbo_type
= true;
3349 phdr
->phy_info
.info_11a
.turbo_type
= PHDR_802_11A_TURBO_TYPE_STATIC_TURBO
;
3352 case IEEE80211_CHAN_A
|IEEE80211_CHAN_HT20
:
3353 case IEEE80211_CHAN_A
|IEEE80211_CHAN_HT40D
:
3354 case IEEE80211_CHAN_A
|IEEE80211_CHAN_HT40U
:
3355 case IEEE80211_CHAN_G
|IEEE80211_CHAN_HT20
:
3356 case IEEE80211_CHAN_G
|IEEE80211_CHAN_HT40U
:
3357 case IEEE80211_CHAN_G
|IEEE80211_CHAN_HT40D
:
3358 phdr
->phy
= PHDR_802_11_PHY_11N
;
3361 freq
= tvb_get_letohs(tvb
, offset
+ 4);
3364 * XXX - some captures have 0, which is
3367 phdr
->has_frequency
= true;
3368 phdr
->frequency
= freq
;
3371 * XXX - special-case 11ad; there's no field to explicitly
3372 * indicate an 11ad packet. Anything with a frequency in
3373 * the 802.11ad range is treated as 11ad.
3375 if (IS_80211AD(freq
))
3376 phdr
->phy
= PHDR_802_11_PHY_11AD
;
3378 phdr
->has_channel
= true;
3379 phdr
->channel
= tvb_get_uint8(tvb
, offset
+ 6);
3381 static int * const xchannel_flags
[] = {
3382 &hf_radiotap_xchannel_flags_turbo
,
3383 &hf_radiotap_xchannel_flags_cck
,
3384 &hf_radiotap_xchannel_flags_ofdm
,
3385 &hf_radiotap_xchannel_flags_2ghz
,
3386 &hf_radiotap_xchannel_flags_5ghz
,
3387 &hf_radiotap_xchannel_flags_passive
,
3388 &hf_radiotap_xchannel_flags_dynamic
,
3389 &hf_radiotap_xchannel_flags_gfsk
,
3390 &hf_radiotap_xchannel_flags_gsm
,
3391 &hf_radiotap_xchannel_flags_sturbo
,
3392 &hf_radiotap_xchannel_flags_half
,
3393 &hf_radiotap_xchannel_flags_quarter
,
3394 &hf_radiotap_xchannel_flags_ht20
,
3395 &hf_radiotap_xchannel_flags_ht40u
,
3396 &hf_radiotap_xchannel_flags_ht40d
,
3400 proto_tree_add_item(tree
, hf_radiotap_xchannel_channel
,
3403 proto_tree_add_item(tree
, hf_radiotap_xchannel_frequency
,
3404 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
3406 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_radiotap_xchannel_flags
,
3407 ett_radiotap_xchannel_flags
,
3408 xchannel_flags
, ENC_LITTLE_ENDIAN
);
3412 proto_tree_add_uint(tree
, hf_radiotap_xchannel_maxpower
,
3413 tvb
, offset
+ 7, 1, maxpower
);
3419 dissect_radiotap_timestamp(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3420 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr _U_
)
3422 proto_item
*it_root
;
3423 proto_tree
*ts_tree
, *flg_tree
;
3425 it_root
= proto_tree_add_item(tree
, hf_radiotap_timestamp
, tvb
, offset
,
3427 ts_tree
= proto_item_add_subtree(it_root
, ett_radiotap_timestamp
);
3429 proto_tree_add_item(ts_tree
, hf_radiotap_timestamp_ts
, tvb
, offset
, 8,
3431 if (tvb_get_letohs(tvb
, offset
+ 11) & IEEE80211_RADIOTAP_TS_FLG_ACCURACY
)
3432 proto_tree_add_item(ts_tree
, hf_radiotap_timestamp_accuracy
,
3433 tvb
, offset
+ 8, 2, ENC_LITTLE_ENDIAN
);
3434 proto_tree_add_item(ts_tree
, hf_radiotap_timestamp_unit
, tvb
,
3435 offset
+ 10, 1, ENC_LITTLE_ENDIAN
);
3436 proto_tree_add_item(ts_tree
, hf_radiotap_timestamp_spos
, tvb
,
3437 offset
+ 10, 1, ENC_LITTLE_ENDIAN
);
3438 flg_tree
= proto_item_add_subtree(ts_tree
, ett_radiotap_timestamp_flags
);
3439 proto_tree_add_item(flg_tree
, hf_radiotap_timestamp_flags_32bit
, tvb
,
3440 offset
+ 11, 1, ENC_LITTLE_ENDIAN
);
3441 proto_tree_add_item(flg_tree
, hf_radiotap_timestamp_flags_accuracy
, tvb
,
3442 offset
+ 11, 1, ENC_LITTLE_ENDIAN
);
3446 dissect_radiotap(tvbuff_t
* tvb
, packet_info
* pinfo
, proto_tree
* tree
, void* unused_data _U_
)
3448 proto_tree
*radiotap_tree
= NULL
;
3449 proto_item
*length_item
= NULL
;
3450 proto_item
*present_item
= NULL
;
3451 proto_tree
*present_tree
= NULL
;
3452 proto_item
*present_word_item
= NULL
;
3453 proto_tree
*present_word_tree
= NULL
;
3454 proto_item
*ti
= NULL
;
3455 proto_item
*hidden_item
;
3460 proto_item
*rate_ti
;
3461 bool have_rflags
= false;
3463 /* backward compat with bit 14 == fcs in header */
3464 proto_item
*hdr_fcs_ti
= NULL
;
3465 int hdr_fcs_offset
= 0;
3466 uint32_t sent_fcs
= 0;
3470 struct ieee80211_radiotap_iterator iter
;
3471 struct ieee_802_11_phdr phdr
;
3472 unsigned char *bmap_start
;
3477 unsigned rtap_ns_offset
;
3478 unsigned rtap_ns_offset_next
;
3479 bool zero_length_psdu
= false;
3481 tvbuff_t
*ven_data_tvb
;
3483 /* our non-standard overrides */
3484 static struct radiotap_override overrides
[] = {
3485 {IEEE80211_RADIOTAP_XCHANNEL
, 4, 8}, /* xchannel */
3488 {14, 4, 4}, /* FCS in header */
3490 unsigned n_overrides
= array_length(overrides
);
3492 if (!radiotap_bit14_fcs
)
3495 /* We don't have any 802.11 metadata yet. */
3496 memset(&phdr
, 0, sizeof(phdr
));
3498 phdr
.decrypted
= false;
3499 phdr
.datapad
= false;
3500 phdr
.phy
= PHDR_802_11_PHY_UNKNOWN
;
3502 col_set_str(pinfo
->cinfo
, COL_PROTOCOL
, "WLAN");
3503 col_clear(pinfo
->cinfo
, COL_INFO
);
3505 version
= tvb_get_uint8(tvb
, 0);
3506 length
= tvb_get_letohs(tvb
, 2);
3508 col_add_fstr(pinfo
->cinfo
, COL_INFO
, "Radiotap Capture v%u, Length %u",
3511 /* Dissect the packet */
3513 ti
= proto_tree_add_protocol_format(tree
, proto_radiotap
,
3515 "Radiotap Header v%u, Length %u",
3517 radiotap_tree
= proto_item_add_subtree(ti
, ett_radiotap
);
3518 proto_tree_add_uint(radiotap_tree
, hf_radiotap_version
,
3519 tvb
, 0, 1, version
);
3520 proto_tree_add_item(radiotap_tree
, hf_radiotap_pad
,
3521 tvb
, 1, 1, ENC_LITTLE_ENDIAN
);
3522 length_item
= proto_tree_add_uint(radiotap_tree
, hf_radiotap_length
,
3527 * The length is the length of the entire radiotap header, so it
3528 * must be at least 8, for the version, padding, length, and first
3529 * presence flags word.
3532 expert_add_info(pinfo
, length_item
,
3533 &ei_radiotap_invalid_header_length
);
3534 return tvb_captured_length(tvb
);
3537 data
= tvb_memdup(pinfo
->pool
, tvb
, 0, length
);
3539 if (ieee80211_radiotap_iterator_init(&iter
, (struct ieee80211_radiotap_header
*)data
, length
, NULL
)) {
3541 proto_item_append_text(ti
, " (invalid)");
3542 /* maybe the length was correct anyway ... */
3543 goto hand_off_to_80211
;
3546 iter
.overrides
= overrides
;
3547 iter
.n_overrides
= n_overrides
;
3550 * Check the "present flags" bitmaps, and add them if we're
3553 bmap_start
= (unsigned char *)data
+ 4;
3554 n_bitmaps
= (unsigned)(iter
.this_arg
- bmap_start
) / 4;
3555 rtap_ns_next
= true;
3556 rtap_ns_offset_next
= 0;
3557 present_item
= proto_tree_add_item(radiotap_tree
,
3558 hf_radiotap_present
, tvb
, 4, n_bitmaps
* 4, ENC_NA
);
3559 present_tree
= proto_item_add_subtree(present_item
,
3560 ett_radiotap_present
);
3562 for (i
= 0; i
< n_bitmaps
; i
++) {
3563 uint32_t bmap
= pletoh32(bmap_start
+ 4 * i
);
3565 rtap_ns_offset
= rtap_ns_offset_next
;
3566 rtap_ns_offset_next
+= 32;
3571 proto_tree_add_item(present_tree
,
3572 hf_radiotap_present_word
,
3573 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3576 proto_item_add_subtree(present_word_item
,
3577 ett_radiotap_present_word
);
3579 rtap_ns
= rtap_ns_next
;
3581 /* Evaluate what kind of namespaces will come next */
3582 if (bmap
& BIT(IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE
)) {
3583 rtap_ns_next
= true;
3584 rtap_ns_offset_next
= 0;
3586 if (bmap
& BIT(IEEE80211_RADIOTAP_VENDOR_NAMESPACE
))
3587 rtap_ns_next
= false;
3588 if ((bmap
& (BIT(IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE
) |
3589 BIT(IEEE80211_RADIOTAP_VENDOR_NAMESPACE
)))
3590 == (BIT(IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE
) |
3591 BIT(IEEE80211_RADIOTAP_VENDOR_NAMESPACE
))) {
3592 expert_add_info_format(pinfo
, present_word_item
,
3593 &ei_radiotap_present
,
3594 "Both radiotap and vendor namespace specified in bitmask word %u",
3602 /* Currently, we don't know anything about bits >= 32 */
3607 proto_tree_add_item(present_word_tree
,
3608 hf_radiotap_present_tsft
, tvb
,
3609 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3610 proto_tree_add_item(present_word_tree
,
3611 hf_radiotap_present_flags
, tvb
,
3612 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3613 proto_tree_add_item(present_word_tree
,
3614 hf_radiotap_present_rate
, tvb
,
3615 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3616 proto_tree_add_item(present_word_tree
,
3617 hf_radiotap_present_channel
, tvb
,
3618 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3619 proto_tree_add_item(present_word_tree
,
3620 hf_radiotap_present_fhss
, tvb
,
3621 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3622 proto_tree_add_item(present_word_tree
,
3623 hf_radiotap_present_dbm_antsignal
,
3624 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3625 proto_tree_add_item(present_word_tree
,
3626 hf_radiotap_present_dbm_antnoise
,
3627 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3628 proto_tree_add_item(present_word_tree
,
3629 hf_radiotap_present_lock_quality
,
3630 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3631 proto_tree_add_item(present_word_tree
,
3632 hf_radiotap_present_tx_attenuation
,
3633 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3634 proto_tree_add_item(present_word_tree
,
3635 hf_radiotap_present_db_tx_attenuation
,
3636 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3637 proto_tree_add_item(present_word_tree
,
3638 hf_radiotap_present_dbm_tx_power
,
3639 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3640 proto_tree_add_item(present_word_tree
,
3641 hf_radiotap_present_antenna
, tvb
,
3642 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3643 proto_tree_add_item(present_word_tree
,
3644 hf_radiotap_present_db_antsignal
,
3645 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3646 proto_tree_add_item(present_word_tree
,
3647 hf_radiotap_present_db_antnoise
,
3648 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3649 if (radiotap_bit14_fcs
) {
3650 proto_tree_add_item(present_word_tree
,
3651 hf_radiotap_present_hdrfcs
,
3652 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3654 proto_tree_add_item(present_word_tree
,
3655 hf_radiotap_present_rxflags
,
3656 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3658 proto_tree_add_item(present_word_tree
,
3659 hf_radiotap_present_txflags
, tvb
,
3660 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3661 proto_tree_add_item(present_word_tree
,
3662 hf_radiotap_present_data_retries
, tvb
,
3663 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3664 proto_tree_add_item(present_word_tree
,
3665 hf_radiotap_present_xchannel
, tvb
,
3666 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3668 proto_tree_add_item(present_word_tree
,
3669 hf_radiotap_present_mcs
, tvb
,
3670 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3671 proto_tree_add_item(present_word_tree
,
3672 hf_radiotap_present_ampdu
, tvb
,
3673 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3674 proto_tree_add_item(present_word_tree
,
3675 hf_radiotap_present_vht
, tvb
,
3676 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3677 proto_tree_add_item(present_word_tree
,
3678 hf_radiotap_present_timestamp
, tvb
,
3679 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3680 proto_tree_add_item(present_word_tree
,
3681 hf_radiotap_present_he
, tvb
,
3682 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3683 proto_tree_add_item(present_word_tree
,
3684 hf_radiotap_present_he_mu
, tvb
,
3685 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3686 proto_tree_add_item(present_word_tree
,
3687 hf_radiotap_present_0_length_psdu
,
3688 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3689 proto_tree_add_item(present_word_tree
,
3690 hf_radiotap_present_l_sig
, tvb
,
3691 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3693 ti
= proto_tree_add_item(present_word_tree
,
3694 hf_radiotap_present_reserved
, tvb
,
3695 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3696 proto_tree_add_item(present_word_tree
,
3697 hf_radiotap_present_tlv
, tvb
,
3698 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3702 proto_tree_add_item(present_word_tree
,
3703 hf_radiotap_present_rtap_ns
, tvb
,
3704 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3705 proto_tree_add_item(present_word_tree
,
3706 hf_radiotap_present_vendor_ns
, tvb
,
3707 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3708 proto_tree_add_item(present_word_tree
,
3709 hf_radiotap_present_ext
, tvb
,
3710 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3714 while (!(err
= ieee80211_radiotap_iterator_next(&iter
))) {
3715 proto_tree
*item_tree
= radiotap_tree
;
3717 offset
= (int)((unsigned char *) iter
.this_arg
- (unsigned char *) data
);
3719 if (iter
.this_arg_index
== IEEE80211_RADIOTAP_VENDOR_NAMESPACE
3720 && tree
&& !iter
.tlv_mode
) {
3721 proto_tree
*ven_tree
;
3723 const char *manuf_name
;
3726 manuf_name
= tvb_get_manuf_name(tvb
, offset
);
3727 subns
= tvb_get_uint8(tvb
, offset
+3);
3729 vt
= proto_tree_add_bytes_format_value(item_tree
,
3730 hf_radiotap_vendor_ns
,
3736 ven_tree
= proto_item_add_subtree(vt
, ett_radiotap_vendor
);
3738 * This is defined on the Radiotap site as an array
3739 * of 3 octets, containing an OUI, but we show fields
3740 * of that sort as a 24-bit big-endian field, so
3741 * ENC_BIG_ENDIAN is correct here.
3743 proto_tree_add_item(ven_tree
, hf_radiotap_ven_oui
,
3744 tvb
, offset
, 3, ENC_BIG_ENDIAN
);
3745 proto_tree_add_item(ven_tree
, hf_radiotap_ven_subns
,
3746 tvb
, offset
+ 3, 1, ENC_LITTLE_ENDIAN
);
3747 /* Get OUI and sub namespace as UINT32 */
3748 ven_ns_id
= tvb_get_uint32(tvb
, offset
, ENC_BIG_ENDIAN
);
3749 if (iter
.tlv_mode
) {
3750 proto_tree_add_item(ven_tree
, hf_radiotap_ven_item
, tvb
,
3751 offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
3752 ven_data_tvb
= tvb_new_subset_length(tvb
, offset
+ 8, iter
.this_arg_size
- 8);
3754 proto_tree_add_item(ven_tree
, hf_radiotap_ven_skip
, tvb
,
3755 offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
3756 ven_data_tvb
= tvb_new_subset_length(tvb
, offset
+ 6, iter
.this_arg_size
- 6);
3758 if (!dissector_try_uint_new(vendor_dissector_table
, ven_ns_id
, ven_data_tvb
, pinfo
, ven_tree
, true, NULL
)) {
3759 proto_tree_add_item(ven_tree
, hf_radiotap_ven_data
, ven_data_tvb
, 0, -1, ENC_NA
);
3763 if (!iter
.is_radiotap_ns
)
3766 switch (iter
.this_arg_index
) {
3768 case IEEE80211_RADIOTAP_TSFT
:
3769 dissect_radiotap_tsft(tvb
, pinfo
, item_tree
, offset
,
3773 case IEEE80211_RADIOTAP_FLAGS
:
3775 dissect_radiotap_flags(tvb
, pinfo
, item_tree
, offset
,
3779 case IEEE80211_RADIOTAP_RATE
:
3780 dissect_radiotap_rate(tvb
, pinfo
, item_tree
, offset
,
3784 case IEEE80211_RADIOTAP_CHANNEL
:
3785 dissect_radiotap_channel(tvb
, pinfo
, item_tree
, offset
,
3789 case IEEE80211_RADIOTAP_FHSS
:
3790 dissect_radiotap_fhss(tvb
, pinfo
, item_tree
, offset
,
3794 case IEEE80211_RADIOTAP_DBM_ANTSIGNAL
:
3795 dissect_radiotap_dbm_antsignal(tvb
, pinfo
, item_tree
,
3799 case IEEE80211_RADIOTAP_DBM_ANTNOISE
:
3800 dissect_radiotap_dbm_antnoise(tvb
, pinfo
, item_tree
,
3804 case IEEE80211_RADIOTAP_LOCK_QUALITY
:
3805 proto_tree_add_item(item_tree
,
3806 hf_radiotap_quality
, tvb
,
3807 offset
, 2, ENC_LITTLE_ENDIAN
);
3810 case IEEE80211_RADIOTAP_TX_ATTENUATION
:
3811 proto_tree_add_item(item_tree
,
3812 hf_radiotap_tx_attenuation
, tvb
,
3813 offset
, 2, ENC_LITTLE_ENDIAN
);
3816 case IEEE80211_RADIOTAP_DB_TX_ATTENUATION
:
3817 proto_tree_add_item(item_tree
,
3818 hf_radiotap_db_tx_attenuation
, tvb
,
3819 offset
, 2, ENC_LITTLE_ENDIAN
);
3822 case IEEE80211_RADIOTAP_DBM_TX_POWER
:
3823 proto_tree_add_item(item_tree
,
3824 hf_radiotap_txpower
, tvb
,
3828 case IEEE80211_RADIOTAP_ANTENNA
:
3829 proto_tree_add_item(item_tree
,
3830 hf_radiotap_antenna
, tvb
,
3834 case IEEE80211_RADIOTAP_DB_ANTSIGNAL
:
3835 dissect_radiotap_db_antsignal(tvb
, pinfo
, item_tree
,
3839 case IEEE80211_RADIOTAP_DB_ANTNOISE
:
3840 dissect_radiotap_db_antnoise(tvb
, pinfo
, item_tree
,
3844 case IEEE80211_RADIOTAP_RX_FLAGS
:
3845 dissect_radiotap_rx_flags(tvb
, pinfo
, item_tree
,
3846 offset
, &hdr_fcs_ti
,
3847 &hdr_fcs_offset
, &sent_fcs
);
3850 case IEEE80211_RADIOTAP_TX_FLAGS
:
3851 dissect_radiotap_tx_flags(tvb
, pinfo
, item_tree
,
3855 case IEEE80211_RADIOTAP_DATA_RETRIES
:
3856 proto_tree_add_item(item_tree
,
3857 hf_radiotap_data_retries
, tvb
,
3858 offset
, 1, ENC_LITTLE_ENDIAN
);
3861 case IEEE80211_RADIOTAP_XCHANNEL
:
3862 dissect_radiotap_xchannel(tvb
, pinfo
, item_tree
,
3866 case IEEE80211_RADIOTAP_MCS
: {
3867 proto_tree
*mcs_tree
= NULL
;
3868 uint8_t mcs_known
, mcs_flags
;
3872 bool can_calculate_rate
;
3875 * Start out assuming that we can calculate the rate;
3876 * if we are missing any of the MCS index, channel
3877 * width, or guard interval length, we can't.
3879 can_calculate_rate
= true;
3881 mcs_known
= tvb_get_uint8(tvb
, offset
);
3883 * If there's actually any data here, not an
3884 * empty field, this is 802.11n - unless we've
3885 * seen a frequency >= 60 GHz and already set
3888 if (mcs_known
!= 0 &&
3889 phdr
.phy
!= PHDR_802_11_PHY_11AD
) {
3890 phdr
.phy
= PHDR_802_11_PHY_11N
;
3891 memset(&phdr
.phy_info
.info_11n
, 0, sizeof(phdr
.phy_info
.info_11n
));
3894 mcs_flags
= tvb_get_uint8(tvb
, offset
+ 1);
3895 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_MCS
) {
3896 mcs
= tvb_get_uint8(tvb
, offset
+ 2);
3897 phdr
.phy_info
.info_11n
.has_mcs_index
= true;
3898 phdr
.phy_info
.info_11n
.mcs_index
= mcs
;
3901 can_calculate_rate
= false; /* no MCS index */
3903 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_BW
) {
3904 phdr
.phy_info
.info_11n
.has_bandwidth
= true;
3905 phdr
.phy_info
.info_11n
.bandwidth
= (mcs_flags
& IEEE80211_RADIOTAP_MCS_BW_MASK
);
3907 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_GI
) {
3908 gi_length
= (mcs_flags
& IEEE80211_RADIOTAP_MCS_SGI
) ?
3910 phdr
.phy_info
.info_11n
.has_short_gi
= true;
3911 phdr
.phy_info
.info_11n
.short_gi
= gi_length
;
3914 can_calculate_rate
= false; /* no GI width */
3916 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_FMT
) {
3917 phdr
.phy_info
.info_11n
.has_greenfield
= true;
3918 phdr
.phy_info
.info_11n
.greenfield
= (mcs_flags
& IEEE80211_RADIOTAP_MCS_FMT_GF
) != 0;
3920 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_FEC
) {
3921 phdr
.phy_info
.info_11n
.has_fec
= true;
3922 phdr
.phy_info
.info_11n
.fec
= (mcs_flags
& IEEE80211_RADIOTAP_MCS_FEC_LDPC
) ? 1 : 0;
3924 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_STBC
) {
3925 phdr
.phy_info
.info_11n
.has_stbc_streams
= true;
3926 phdr
.phy_info
.info_11n
.stbc_streams
= (mcs_flags
& IEEE80211_RADIOTAP_MCS_STBC_MASK
) >> IEEE80211_RADIOTAP_MCS_STBC_SHIFT
;
3928 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_NESS
) {
3929 phdr
.phy_info
.info_11n
.has_ness
= true;
3930 /* This is stored a bit weirdly */
3931 phdr
.phy_info
.info_11n
.ness
=
3932 ((mcs_known
& IEEE80211_RADIOTAP_MCS_NESS_BIT1
) >> 6) |
3933 ((mcs_flags
& IEEE80211_RADIOTAP_MCS_NESS_BIT0
) >> 7);
3938 static int * const mcs_haves_with_ness_bit1
[] = {
3939 &hf_radiotap_mcs_have_bw
,
3940 &hf_radiotap_mcs_have_index
,
3941 &hf_radiotap_mcs_have_gi
,
3942 &hf_radiotap_mcs_have_format
,
3943 &hf_radiotap_mcs_have_fec
,
3944 &hf_radiotap_mcs_have_stbc
,
3945 &hf_radiotap_mcs_have_ness
,
3946 &hf_radiotap_mcs_ness_bit1
,
3949 static int * const mcs_haves_without_ness_bit1
[] = {
3950 &hf_radiotap_mcs_have_bw
,
3951 &hf_radiotap_mcs_have_index
,
3952 &hf_radiotap_mcs_have_gi
,
3953 &hf_radiotap_mcs_have_format
,
3954 &hf_radiotap_mcs_have_fec
,
3955 &hf_radiotap_mcs_have_stbc
,
3956 &hf_radiotap_mcs_have_ness
,
3960 it
= proto_tree_add_item(item_tree
, hf_radiotap_mcs
,
3961 tvb
, offset
, 3, ENC_NA
);
3962 mcs_tree
= proto_item_add_subtree(it
, ett_radiotap_mcs
);
3964 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_NESS
)
3965 proto_tree_add_bitmask(mcs_tree
, tvb
, offset
, hf_radiotap_mcs_known
, ett_radiotap_mcs_known
, mcs_haves_with_ness_bit1
, ENC_LITTLE_ENDIAN
);
3967 proto_tree_add_bitmask(mcs_tree
, tvb
, offset
, hf_radiotap_mcs_known
, ett_radiotap_mcs_known
, mcs_haves_without_ness_bit1
, ENC_LITTLE_ENDIAN
);
3969 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_BW
) {
3970 bandwidth
= ((mcs_flags
& IEEE80211_RADIOTAP_MCS_BW_MASK
) == IEEE80211_RADIOTAP_MCS_BW_40
) ?
3972 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_bw
,
3973 tvb
, offset
+ 1, 1, mcs_flags
);
3976 can_calculate_rate
= false; /* no bandwidth */
3978 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_GI
) {
3979 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_gi
,
3980 tvb
, offset
+ 1, 1, mcs_flags
);
3982 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_FMT
) {
3983 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_format
,
3984 tvb
, offset
+ 1, 1, mcs_flags
);
3986 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_FEC
) {
3987 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_fec
,
3988 tvb
, offset
+ 1, 1, mcs_flags
);
3990 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_STBC
) {
3991 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_stbc
,
3992 tvb
, offset
+ 1, 1, mcs_flags
);
3994 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_NESS
) {
3995 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_ness_bit0
,
3996 tvb
, offset
+ 1, 1, mcs_flags
);
3998 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_MCS
) {
3999 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_index
,
4000 tvb
, offset
+ 2, 1, mcs
);
4004 * If we have the MCS index, channel width, and
4005 * guard interval length, and the MCS index is
4006 * valid, we can compute the rate. If the resulting
4007 * rate is non-zero, report it. (If it's zero,
4008 * it's an MCS/channel width/GI combination that
4009 * 802.11n doesn't support.)
4011 if (can_calculate_rate
&& mcs
<= MAX_MCS_INDEX
4012 && ieee80211_ht_Dbps
[mcs
] != 0) {
4013 float rate
= ieee80211_htrate(mcs
, bandwidth
, gi_length
);
4014 col_add_fstr(pinfo
->cinfo
, COL_TX_RATE
, "%.1f", rate
);
4016 rate_ti
= proto_tree_add_float_format(item_tree
,
4017 hf_radiotap_datarate
,
4018 tvb
, offset
, 3, rate
,
4019 "Data Rate: %.1f Mb/s", rate
);
4020 proto_item_set_generated(rate_ti
);
4025 case IEEE80211_RADIOTAP_AMPDU_STATUS
: {
4027 proto_tree
*ampdu_tree
= NULL
, *ampdu_flags_tree
;
4028 uint16_t ampdu_flags
;
4030 phdr
.has_aggregate_info
= 1;
4031 phdr
.aggregate_flags
= 0;
4032 phdr
.aggregate_id
= tvb_get_letohl(tvb
, offset
);
4034 ampdu_flags
= tvb_get_letohs(tvb
, offset
+ 4);
4035 if (ampdu_flags
& IEEE80211_RADIOTAP_AMPDU_IS_LAST
)
4036 phdr
.aggregate_flags
|= PHDR_802_11_LAST_PART_OF_A_MPDU
;
4037 if (ampdu_flags
& IEEE80211_RADIOTAP_AMPDU_DELIM_CRC_ERR
)
4038 phdr
.aggregate_flags
|= PHDR_802_11_A_MPDU_DELIM_CRC_ERROR
;
4041 it
= proto_tree_add_item(item_tree
, hf_radiotap_ampdu
,
4042 tvb
, offset
, 8, ENC_NA
);
4043 ampdu_tree
= proto_item_add_subtree(it
, ett_radiotap_ampdu
);
4045 proto_tree_add_item(ampdu_tree
, hf_radiotap_ampdu_ref
,
4046 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
4048 it
= proto_tree_add_item(ampdu_tree
, hf_radiotap_ampdu_flags
,
4049 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4050 ampdu_flags_tree
= proto_item_add_subtree(it
, ett_radiotap_ampdu_flags
);
4051 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_report_zerolen
,
4052 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4053 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_is_zerolen
,
4054 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4055 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_last_known
,
4056 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4057 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_is_last
,
4058 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4059 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_delim_crc_error
,
4060 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4061 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_eof
,
4062 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4063 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_eof_known
,
4064 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4066 if (ampdu_flags
& IEEE80211_RADIOTAP_AMPDU_DELIM_CRC_KNOWN
) {
4068 proto_tree_add_item(ampdu_tree
, hf_radiotap_ampdu_delim_crc
,
4069 tvb
, offset
+ 6, 1, ENC_NA
);
4073 case IEEE80211_RADIOTAP_VHT
: {
4074 proto_item
*it
, *it_root
= NULL
;
4075 proto_tree
*vht_tree
= NULL
, *vht_known_tree
= NULL
, *user_tree
= NULL
;
4077 uint8_t vht_flags
, bw
, mcs_nss
;
4078 unsigned bandwidth
= 0;
4079 unsigned gi_length
= 0;
4082 bool can_calculate_rate
;
4086 * Start out assuming that we can calculate the rate;
4087 * if we are missing any of the MCS index, channel
4088 * width, or guard interval length, we can't.
4090 can_calculate_rate
= true;
4092 known
= tvb_get_letohs(tvb
, offset
);
4094 * If there's actually any data here, not an
4095 * empty field, this is 802.11ac.
4098 phdr
.phy
= PHDR_802_11_PHY_11AC
;
4100 vht_flags
= tvb_get_uint8(tvb
, offset
+ 2);
4102 it_root
= proto_tree_add_item(item_tree
, hf_radiotap_vht
,
4103 tvb
, offset
, 12, ENC_NA
);
4104 vht_tree
= proto_item_add_subtree(it_root
, ett_radiotap_vht
);
4105 it
= proto_tree_add_item(vht_tree
, hf_radiotap_vht_known
,
4106 tvb
, offset
, 2, ENC_NA
);
4107 vht_known_tree
= proto_item_add_subtree(it
, ett_radiotap_vht_known
);
4109 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_stbc
,
4110 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4111 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_txop_ps
,
4112 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4113 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_gi
,
4114 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4115 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_sgi_nsym_da
,
4116 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4117 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_ldpc_extra
,
4118 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4119 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_bf
,
4120 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4121 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_bw
,
4122 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4123 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_gid
,
4124 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4125 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_p_aid
,
4126 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4129 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_STBC
) {
4130 phdr
.phy_info
.info_11ac
.has_stbc
= true;
4131 phdr
.phy_info
.info_11ac
.stbc
= (vht_flags
& IEEE80211_RADIOTAP_VHT_STBC
) != 0;
4133 proto_tree_add_item(vht_tree
, hf_radiotap_vht_stbc
,
4134 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4137 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_TXOP_PS
) {
4138 phdr
.phy_info
.info_11ac
.has_txop_ps_not_allowed
= true;
4139 phdr
.phy_info
.info_11ac
.txop_ps_not_allowed
= (vht_flags
& IEEE80211_RADIOTAP_VHT_TXOP_PS
) != 0;
4141 proto_tree_add_item(vht_tree
, hf_radiotap_vht_txop_ps
,
4142 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4145 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_GI
) {
4146 gi_length
= (vht_flags
& IEEE80211_RADIOTAP_VHT_SGI
) ? 1 : 0;
4147 phdr
.phy_info
.info_11ac
.has_short_gi
= true;
4148 phdr
.phy_info
.info_11ac
.short_gi
= gi_length
;
4150 proto_tree_add_item(vht_tree
, hf_radiotap_vht_gi
,
4151 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4154 can_calculate_rate
= false; /* no GI width */
4157 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_SGI_NSYM_DA
) {
4158 phdr
.phy_info
.info_11ac
.has_short_gi_nsym_disambig
= true;
4159 phdr
.phy_info
.info_11ac
.short_gi_nsym_disambig
= (vht_flags
& IEEE80211_RADIOTAP_VHT_SGI_NSYM_DA
) != 0;
4161 it
= proto_tree_add_item(vht_tree
, hf_radiotap_vht_sgi_nsym_da
,
4162 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4163 if ((vht_flags
& IEEE80211_RADIOTAP_VHT_SGI_NSYM_DA
) &&
4164 (known
& IEEE80211_RADIOTAP_VHT_HAVE_GI
) &&
4165 !(vht_flags
& IEEE80211_RADIOTAP_VHT_SGI
))
4166 proto_item_append_text(it
, " (invalid)");
4170 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_LDPC_EXTRA
) {
4171 phdr
.phy_info
.info_11ac
.has_ldpc_extra_ofdm_symbol
= true;
4172 phdr
.phy_info
.info_11ac
.ldpc_extra_ofdm_symbol
= (vht_flags
& IEEE80211_RADIOTAP_VHT_LDPC_EXTRA
) != 0;
4174 proto_tree_add_item(vht_tree
, hf_radiotap_vht_ldpc_extra
,
4175 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4179 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_BF
) {
4180 phdr
.phy_info
.info_11ac
.has_beamformed
= true;
4181 phdr
.phy_info
.info_11ac
.beamformed
= (vht_flags
& IEEE80211_RADIOTAP_VHT_BF
) != 0;
4183 proto_tree_add_item(vht_tree
, hf_radiotap_vht_bf
,
4184 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4187 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_BW
) {
4188 bw
= tvb_get_uint8(tvb
, offset
+ 3) & IEEE80211_RADIOTAP_VHT_BW_MASK
;
4189 phdr
.phy_info
.info_11ac
.has_bandwidth
= true;
4190 phdr
.phy_info
.info_11ac
.bandwidth
= bw
;
4191 if (bw
< array_length(ieee80211_vht_bw2rate_index
))
4192 bandwidth
= ieee80211_vht_bw2rate_index
[bw
];
4194 can_calculate_rate
= false; /* unknown bandwidth */
4197 proto_tree_add_item(vht_tree
, hf_radiotap_vht_bw
,
4198 tvb
, offset
+ 3, 1, ENC_LITTLE_ENDIAN
);
4200 can_calculate_rate
= false; /* no bandwidth */
4203 phdr
.phy_info
.info_11ac
.has_fec
= true;
4204 phdr
.phy_info
.info_11ac
.fec
= tvb_get_uint8(tvb
, offset
+ 8);
4206 for (user
= 0; user
< 4; user
++) {
4207 mcs_nss
= tvb_get_uint8(tvb
, offset
+ 4 + user
);
4208 nss
= (mcs_nss
& IEEE80211_RADIOTAP_VHT_NSS
);
4209 mcs
= (mcs_nss
& IEEE80211_RADIOTAP_VHT_MCS
) >> 4;
4210 phdr
.phy_info
.info_11ac
.mcs
[user
] = mcs
;
4211 phdr
.phy_info
.info_11ac
.nss
[user
] = nss
;
4215 * OK, there's some data here.
4216 * If we haven't already flagged this
4219 if (phdr
.phy
!= PHDR_802_11_PHY_11AC
) {
4220 phdr
.phy
= PHDR_802_11_PHY_11AC
;
4223 it
= proto_tree_add_item(vht_tree
, hf_radiotap_vht_user
,
4224 tvb
, offset
+ 4, 5, ENC_NA
);
4225 proto_item_append_text(it
, " %d: MCS %u", user
, mcs
);
4226 user_tree
= proto_item_add_subtree(it
, ett_radiotap_vht_user
);
4228 it
= proto_tree_add_item(user_tree
, hf_radiotap_vht_mcs
[user
],
4229 tvb
, offset
+ 4 + user
, 1,
4231 if (mcs
> MAX_MCS_VHT_INDEX
) {
4232 proto_item_append_text(it
, " (invalid)");
4234 proto_item_append_text(it
, " (%s %s)",
4235 ieee80211_vhtinfo
[mcs
].modulation
,
4236 ieee80211_vhtinfo
[mcs
].coding_rate
);
4239 proto_tree_add_item(user_tree
, hf_radiotap_vht_nss
[user
],
4240 tvb
, offset
+ 4 + user
, 1, ENC_LITTLE_ENDIAN
);
4241 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_STBC
) {
4243 proto_item
*nsts_ti
;
4245 if (vht_flags
& IEEE80211_RADIOTAP_VHT_STBC
)
4249 nsts_ti
= proto_tree_add_uint(user_tree
, hf_radiotap_vht_nsts
[user
],
4250 tvb
, offset
+ 4 + user
, 1, nsts
);
4251 proto_item_set_generated(nsts_ti
);
4253 proto_tree_add_item(user_tree
, hf_radiotap_vht_coding
[user
],
4254 tvb
, offset
+ 8, 1,ENC_LITTLE_ENDIAN
);
4257 if (can_calculate_rate
&& mcs
<= MAX_MCS_VHT_INDEX
&&
4258 nss
<= MAX_VHT_NSS
) {
4259 float rate
= ieee80211_vhtinfo
[mcs
].rates
[bandwidth
][gi_length
] * nss
;
4260 if (rate
!= 0.0f
) {
4261 rate_ti
= proto_tree_add_float_format(user_tree
,
4262 hf_radiotap_vht_datarate
[user
],
4263 tvb
, offset
, 12, rate
,
4264 "Data Rate: %.1f Mb/s", rate
);
4265 proto_item_set_generated(rate_ti
);
4266 if (ieee80211_vhtvalid
[mcs
].valid
[bandwidth
][nss
-1] == false)
4267 expert_add_info(pinfo
, rate_ti
, &ei_radiotap_invalid_data_rate
);
4274 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_GID
) {
4275 phdr
.phy_info
.info_11ac
.has_group_id
= true;
4276 phdr
.phy_info
.info_11ac
.group_id
= tvb_get_uint8(tvb
, offset
+ 9);
4278 proto_tree_add_item(vht_tree
, hf_radiotap_vht_gid
,
4279 tvb
, offset
+9, 1, ENC_LITTLE_ENDIAN
);
4282 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_PAID
) {
4283 phdr
.phy_info
.info_11ac
.has_partial_aid
= true;
4284 phdr
.phy_info
.info_11ac
.partial_aid
= tvb_get_letohs(tvb
, offset
+ 10);
4286 proto_tree_add_item(vht_tree
, hf_radiotap_vht_p_aid
,
4287 tvb
, offset
+10, 2, ENC_LITTLE_ENDIAN
);
4293 case IEEE80211_RADIOTAP_TIMESTAMP
: {
4294 dissect_radiotap_timestamp(tvb
, pinfo
, item_tree
,
4298 case IEEE80211_RADIOTAP_HE
:
4300 * Presumably this is (whatever draft of) 802.11ax.
4301 * Also, presumably, you won't get the HE_MU field
4302 * without this field.
4304 phdr
.phy
= PHDR_802_11_PHY_11AX
;
4305 dissect_radiotap_he_info(tvb
, pinfo
, radiotap_tree
,
4306 offset
, &phdr
.phy_info
.info_11ax
,
4309 case IEEE80211_RADIOTAP_HE_MU
:
4310 dissect_radiotap_he_mu_info(tvb
, pinfo
, item_tree
,
4311 offset
, iter
.tlv_mode
);
4313 case IEEE80211_RADIOTAP_0_LENGTH_PSDU
:
4314 dissect_radiotap_0_length_psdu(tvb
, pinfo
, item_tree
, offset
, &phdr
);
4315 zero_length_psdu
= true;
4317 case IEEE80211_RADIOTAP_L_SIG
:
4318 dissect_radiotap_l_sig(tvb
, pinfo
, item_tree
, offset
);
4320 case IEEE80211_RADIOTAP_TLVS
:
4321 /* used for padding */
4323 case IEEE80211_RADIOTAP_TLV_S1G
:
4324 dissect_radiotap_s1g(tvb
, pinfo
, item_tree
, offset
,
4325 &phdr
, iter
.tlv_mode
);
4327 case IEEE80211_RADIOTAP_TLV_U_SIG
:
4328 dissect_radiotap_u_sig(tvb
, pinfo
, item_tree
, offset
,
4329 &phdr
, iter
.tlv_mode
);
4331 case IEEE80211_RADIOTAP_TLV_EHT
:
4332 dissect_radiotap_eht(tvb
, pinfo
, item_tree
, offset
,
4333 &phdr
, iter
.tlv_mode
);
4336 if (iter
.tlv_mode
) {
4337 proto_tree
*unknown_tlv
;
4339 unknown_tlv
= proto_tree_add_subtree(tree
, tvb
,
4342 ett_radiotap_unknown_tlv
,
4343 NULL
, "Unknown TLV");
4344 proto_tree_add_item(unknown_tlv
,
4345 hf_radiotap_tlv_type
, tvb
,
4346 offset
, 2, ENC_LITTLE_ENDIAN
);
4349 proto_tree_add_item(unknown_tlv
,
4350 hf_radiotap_tlv_datalen
, tvb
,
4351 offset
, 2, ENC_LITTLE_ENDIAN
);
4354 proto_tree_add_item(unknown_tlv
,
4355 hf_radiotap_unknown_tlv_data
,
4356 tvb
, offset
, length
, ENC_NA
);
4358 proto_tree_add_item(item_tree
,
4359 hf_radiotap_unknown_tlv_data
,
4361 iter
.this_arg_size
, ENC_NA
);
4367 if (err
!= -ENOENT
) {
4368 expert_add_info(pinfo
, present_item
,
4369 &ei_radiotap_data_past_header
);
4371 proto_item_append_text(ti
, " (malformed)");
4375 * Is there any more there?
4377 if (zero_length_psdu
) {
4378 return tvb_captured_length(tvb
);
4383 * The comment in the radiotap.org page about the suggested
4384 * xchannel field says:
4386 * As used, this field conflates channel properties (which
4387 * need not be stored per packet but are more or less fixed)
4388 * with packet properties (like the modulation).
4390 * The channel field, in practice, seems to be used, in some
4391 * cases, to indicate channel properties (from which the packet
4392 * modulation cannot be inferred) and, in other cases, to
4393 * indicate the packet's modulation.
4395 * There is even a capture in which the channel field indicates
4396 * that the channel is an OFDM channel with a center frequency
4397 * of 2452 MHz, and the data rate field indicates a 1 Mb/s rate,
4398 * which means you can't rely on the CCK/OFDM/dynamic CCK/OFDM
4399 * bits in the channel field to indicate anything. (There are
4400 * also captures in which a 1 Mb/s packet has the CCK flag set,
4401 * so it clearly doesn't indicate how the packet was transmitted.)
4403 * That makes the channel field unusable either for determining
4404 * the channel type or for determining the packet modulation,
4405 * as it cannot be determined how it's being used. The xchannel
4406 * field might well be used inconsistently as well.
4408 * Fortunately, there are other ways to determine the packet
4411 * if there's an FHSS flag, the packet was transmitted
4412 * using the 802.11 legacy FHSS modulation;
4416 * if there's an HE field, the packet was transmitted
4417 * using one of the 11ax HE PHY's specified modulations;
4419 * otherwise, if there's a VHT field, the packet was
4420 * transmitted using one of the 11ac VHT PHY's specified
4423 * otherwise, if there's an MCS field, the packet was
4424 * transmitted using one of the 11n HT PHY's specified
4429 * if the data rate is 1 Mb/s or 2 Mb/s, the packet was
4430 * transmitted using the 802.11 legacy DSSS modulation
4431 * (we ignore the IR PHY - was it ever implemented?);
4433 * if the data rate is 5 Mb/s or 11 Mb/s, the packet
4434 * was transmitted using the 802.11b DSSS/CCK modulation
4435 * (or the now-obsolete DSSS/PBCC modulation; *if* we can
4436 * rely on the channel/xchannel field's "CCK channel" and
4437 * "Dynamic CCK-OFDM channel" flags, the absence of either
4438 * flag would presumably indicate DSSS/PBCC);
4440 * if the data rate is 22 Mb/s or 33 Mb/s, the packet was
4441 * transmitted using the 802.11b DSSS/PBCC modulation (as
4442 * those speeds aren't supported by DSSS/CCK);
4444 * if the data rate is one of the OFDM rates for the 11a
4445 * OFDM PHY and the OFDM part of the 11g ERP PHY, the
4446 * packet was transmitted with the 11g/11a OFDM modulation.
4448 * We've already handled the HE, VHT, and MCS fields, and may
4449 * have attempted to use the channel and xchannel fields to
4450 * guess the modulation. That guess might get the wrong answer
4451 * for 11g "Dynamic CCK-OFDM" channels.
4453 * If we have the data rate, we use it to:
4455 * fix up the 11g channels;
4457 * determine the modulation if we haven't been able to
4458 * determine it any other way.
4460 if (phdr
.has_data_rate
) {
4461 if (phdr
.phy
== PHDR_802_11_PHY_UNKNOWN
) {
4463 * We don't know they PHY, but we do have the
4464 * data rate; try to guess it based on the
4465 * data rate and center frequency.
4467 if (RATE_IS_DSSS(phdr
.data_rate
)) {
4469 phdr
.phy
= PHDR_802_11_PHY_11B
;
4470 } else if (RATE_IS_OFDM(phdr
.data_rate
)) {
4471 /* 11a or 11g, depending on the band. */
4472 if (phdr
.has_frequency
) {
4473 if (FREQ_IS_BG(phdr
.frequency
)) {
4475 phdr
.phy
= PHDR_802_11_PHY_11G
;
4478 phdr
.phy
= PHDR_802_11_PHY_11A
;
4482 } else if (phdr
.phy
== PHDR_802_11_PHY_11G
) {
4483 if (RATE_IS_DSSS(phdr
.data_rate
)) {
4485 phdr
.phy
= PHDR_802_11_PHY_11B
;
4492 case PHDR_802_11_PHY_11B
:
4494 * We now know it's 11b, so set the "short preamble"
4498 phdr
.phy_info
.info_11b
.has_short_preamble
= true;
4499 phdr
.phy_info
.info_11b
.short_preamble
=
4500 (rflags
& IEEE80211_RADIOTAP_F_SHORTPRE
) ? true : false;
4502 phdr
.phy_info
.info_11b
.has_short_preamble
= false;
4505 case PHDR_802_11_PHY_11N
:
4507 * This doesn't supply "short GI" information,
4508 * so use the 0x80 bit in the Flags field,
4509 * if we have it; it's "Currently unspecified
4510 * but used" for that purpose, according to
4511 * the radiotap.org page for that field.
4513 if (!phdr
.phy_info
.info_11n
.has_short_gi
&& have_rflags
) {
4514 phdr
.phy_info
.info_11n
.has_short_gi
= true;
4516 phdr
.phy_info
.info_11n
.short_gi
= 1;
4518 phdr
.phy_info
.info_11n
.short_gi
= 0;
4523 /* Grab the rest of the frame. */
4524 next_tvb
= tvb_new_subset_remaining(tvb
, length
);
4526 /* If we had an in-header FCS, check it.
4527 * This can only happen if the backward-compat configuration option
4528 * is chosen by the user. */
4530 unsigned captured_length
= tvb_captured_length(next_tvb
);
4531 unsigned reported_length
= tvb_reported_length(next_tvb
);
4532 unsigned fcs_len
= (phdr
.fcs_len
> 0) ? phdr
.fcs_len
: 0;
4534 /* It would be very strange for the header to have an FCS for the
4535 * frame *and* the frame to have the FCS at the end, but it's possible, so
4536 * take that into account by using the FCS length recorded in pinfo. */
4538 /* Watch out for [erroneously] short frames */
4539 if (captured_length
>= reported_length
&&
4540 captured_length
> fcs_len
) {
4542 crc32_802_tvb(next_tvb
, tvb_captured_length(next_tvb
) - fcs_len
);
4544 /* By virtue of hdr_fcs_ti being set, we know that 'tree' is set,
4545 * so there's no need to check it here. */
4546 if (calc_fcs
== sent_fcs
) {
4547 proto_item_append_text(hdr_fcs_ti
,
4550 proto_item_append_text(hdr_fcs_ti
,
4551 " [incorrect, should be 0x%08x]",
4554 proto_tree_add_boolean(radiotap_tree
,
4555 hf_radiotap_fcs_bad
,
4556 tvb
, hdr_fcs_offset
,
4558 proto_item_set_hidden(hidden_item
);
4561 proto_item_append_text(hdr_fcs_ti
,
4562 " [cannot verify - not enough data]");
4566 /* dissect the 802.11 packet next */
4567 call_dissector_with_data(ieee80211_radio_handle
, next_tvb
, pinfo
,
4570 return tvb_captured_length(tvb
);
4573 void proto_register_radiotap(void)
4576 static hf_register_info hf
[] = {
4577 {&hf_radiotap_version
,
4578 {"Header revision", "radiotap.version",
4579 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
4580 "Version of radiotap header format", HFILL
}},
4583 {"Header pad", "radiotap.pad",
4584 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
4587 {&hf_radiotap_length
,
4588 {"Header length", "radiotap.length",
4589 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
4590 "Length of header including version, pad, length and data fields", HFILL
}},
4592 {&hf_radiotap_present
,
4593 {"Present flags", "radiotap.present",
4594 FT_NONE
, BASE_NONE
, NULL
, 0x0,
4595 "Bitmask indicating which fields are present", HFILL
}},
4597 {&hf_radiotap_present_word
,
4598 {"Present flags word", "radiotap.present.word",
4599 FT_UINT32
, BASE_HEX
, NULL
, 0x0,
4600 "Word from present flags bitmask", HFILL
}},
4602 {&hf_radiotap_tlv_type
,
4603 {"TLV type", "radiotap.tlv.type",
4604 FT_UINT32
, BASE_DEC
|BASE_RANGE_STRING
, RVALS(tlv_type_rvals
),
4607 {&hf_radiotap_tlv_datalen
,
4608 {"TLV datalen", "radiotap.tlv.datalen",
4609 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4612 {&hf_radiotap_unknown_tlv_data
,
4613 {"unknown TLV data", "radiotap.tlv.unknown_data",
4614 FT_BYTES
, BASE_NONE
, NULL
, 0x0,
4617 #define RADIOTAP_MASK(name) BIT(IEEE80211_RADIOTAP_ ##name)
4619 /* Boolean 'present' flags */
4620 {&hf_radiotap_present_tsft
,
4621 {"TSFT", "radiotap.present.tsft",
4622 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(TSFT
),
4623 "Specifies if the Time Synchronization Function Timer field is present", HFILL
}},
4625 {&hf_radiotap_present_flags
,
4626 {"Flags", "radiotap.present.flags",
4627 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(FLAGS
),
4628 "Specifies if the channel flags field is present", HFILL
}},
4630 {&hf_radiotap_present_rate
,
4631 {"Rate", "radiotap.present.rate",
4632 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(RATE
),
4633 "Specifies if the transmit/receive rate field is present", HFILL
}},
4635 {&hf_radiotap_present_channel
,
4636 {"Channel", "radiotap.present.channel",
4637 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(CHANNEL
),
4638 "Specifies if the transmit/receive frequency field is present", HFILL
}},
4640 {&hf_radiotap_present_fhss
,
4641 {"FHSS", "radiotap.present.fhss",
4642 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(FHSS
),
4643 "Specifies if the hop set and pattern is present for frequency hopping radios", HFILL
}},
4645 {&hf_radiotap_present_dbm_antsignal
,
4646 {"dBm Antenna Signal", "radiotap.present.dbm_antsignal",
4647 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DBM_ANTSIGNAL
),
4648 "Specifies if the antenna signal strength in dBm is present", HFILL
}},
4650 {&hf_radiotap_present_dbm_antnoise
,
4651 {"dBm Antenna Noise", "radiotap.present.dbm_antnoise",
4652 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DBM_ANTNOISE
),
4653 "Specifies if the RF noise power at antenna field is present", HFILL
}},
4655 {&hf_radiotap_present_lock_quality
,
4656 {"Lock Quality", "radiotap.present.lock_quality",
4657 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(LOCK_QUALITY
),
4658 "Specifies if the signal quality field is present", HFILL
}},
4660 {&hf_radiotap_present_tx_attenuation
,
4661 {"TX Attenuation", "radiotap.present.tx_attenuation",
4662 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(TX_ATTENUATION
),
4663 "Specifies if the transmit power distance from max power field is present", HFILL
}},
4665 {&hf_radiotap_present_db_tx_attenuation
,
4666 {"dB TX Attenuation", "radiotap.present.db_tx_attenuation",
4667 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DB_TX_ATTENUATION
),
4668 "Specifies if the transmit power distance from max power (in dB) field is present", HFILL
}},
4670 {&hf_radiotap_present_dbm_tx_power
,
4671 {"dBm TX Power", "radiotap.present.dbm_tx_power",
4672 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DBM_TX_POWER
),
4673 "Specifies if the transmit power (in dBm) field is present", HFILL
}},
4675 {&hf_radiotap_present_antenna
,
4676 {"Antenna", "radiotap.present.antenna",
4677 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(ANTENNA
),
4678 "Specifies if the antenna number field is present", HFILL
}},
4680 {&hf_radiotap_present_db_antsignal
,
4681 {"dB Antenna Signal", "radiotap.present.db_antsignal",
4682 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DB_ANTSIGNAL
),
4683 "Specifies if the RF signal power at antenna in dB field is present", HFILL
}},
4685 {&hf_radiotap_present_db_antnoise
,
4686 {"dB Antenna Noise", "radiotap.present.db_antnoise",
4687 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DB_ANTNOISE
),
4688 "Specifies if the RF signal power at antenna in dBm field is present", HFILL
}},
4690 {&hf_radiotap_present_rxflags
,
4691 {"RX flags", "radiotap.present.rxflags",
4692 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(RX_FLAGS
),
4693 "Specifies if the RX flags field is present", HFILL
}},
4695 {&hf_radiotap_present_txflags
,
4696 {"TX flags", "radiotap.present.txflags",
4697 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(TX_FLAGS
),
4698 "Specifies if the TX flags field is present", HFILL
}},
4700 {&hf_radiotap_present_hdrfcs
,
4701 {"FCS in header", "radiotap.present.fcs",
4702 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(RX_FLAGS
),
4703 "Specifies if the FCS field is present", HFILL
}},
4705 { &hf_radiotap_present_data_retries
,
4706 {"data retries", "radiotap.present.data_retries",
4707 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DATA_RETRIES
),
4708 "Specifies if the data retries field is present", HFILL
}},
4710 {&hf_radiotap_present_xchannel
,
4711 {"Channel+", "radiotap.present.xchannel",
4712 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(XCHANNEL
),
4713 "Specifies if the extended channel info field is present", HFILL
}},
4715 {&hf_radiotap_present_mcs
,
4716 {"MCS information", "radiotap.present.mcs",
4717 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(MCS
),
4718 "Specifies if the MCS field is present", HFILL
}},
4720 {&hf_radiotap_present_ampdu
,
4721 {"A-MPDU Status", "radiotap.present.ampdu",
4722 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(AMPDU_STATUS
),
4723 "Specifies if the A-MPDU status field is present", HFILL
}},
4725 {&hf_radiotap_present_vht
,
4726 {"VHT information", "radiotap.present.vht",
4727 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(VHT
),
4728 "Specifies if the VHT field is present", HFILL
}},
4730 {&hf_radiotap_present_timestamp
,
4731 {"frame timestamp", "radiotap.present.timestamp",
4732 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(TIMESTAMP
),
4733 "Specifies if the timestamp field is present", HFILL
}},
4735 {&hf_radiotap_present_he
,
4736 {"HE information", "radiotap.present.he",
4737 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(HE
),
4738 "Specifies if the HE field is present", HFILL
}},
4740 {&hf_radiotap_present_he_mu
,
4741 {"HE-MU information", "radiotap.present.he_mu",
4742 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(HE_MU
),
4743 "Specifies if the HE field is present", HFILL
}},
4745 {&hf_radiotap_present_0_length_psdu
,
4746 {"0 Length PSDU", "radiotap.present.0_length.psdu",
4747 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(0_LENGTH_PSDU
),
4748 "Specifies whether or not the 0-Length PSDU field is present", HFILL
}},
4750 {&hf_radiotap_present_l_sig
,
4751 {"L-SIG", "radiotap.present.l_sig",
4752 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(L_SIG
),
4753 "Specifies whether or not the L-SIG field is present", HFILL
}},
4755 {&hf_radiotap_present_tlv
,
4756 {"TLVs", "radiotap.present.tlv",
4757 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(TLVS
),
4758 "Specifies switch to TLV fields", HFILL
}},
4760 {&hf_radiotap_present_reserved
,
4761 {"Reserved", "radiotap.present.reserved",
4762 FT_UINT32
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_NOTDEFINED
,
4763 "Not (yet) defined present flags (Must be zero)", HFILL
}},
4765 {&hf_radiotap_present_rtap_ns
,
4766 {"Radiotap NS next", "radiotap.present.rtap_ns",
4767 FT_BOOLEAN
, 32, NULL
, RADIOTAP_MASK(RADIOTAP_NAMESPACE
),
4768 "Specifies a reset to the radiotap namespace", HFILL
}},
4770 {&hf_radiotap_present_vendor_ns
,
4771 {"Vendor NS next", "radiotap.present.vendor_ns",
4772 FT_BOOLEAN
, 32, NULL
, RADIOTAP_MASK(VENDOR_NAMESPACE
),
4773 "Specifies that the next bitmap is in a vendor namespace", HFILL
}},
4775 {&hf_radiotap_present_ext
,
4776 {"Ext", "radiotap.present.ext",
4777 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(EXT
),
4778 "Specifies if there are any extensions to the header present", HFILL
}},
4780 /* Boolean 'present.flags' flags */
4781 {&hf_radiotap_flags
,
4782 {"Flags", "radiotap.flags",
4783 FT_UINT8
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
4785 {&hf_radiotap_flags_cfp
,
4786 {"CFP", "radiotap.flags.cfp",
4787 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_CFP
,
4788 "Sent/Received during CFP", HFILL
}},
4790 {&hf_radiotap_flags_preamble
,
4791 {"Preamble", "radiotap.flags.preamble",
4792 FT_BOOLEAN
, 8, TFS(&preamble_type
),
4793 IEEE80211_RADIOTAP_F_SHORTPRE
,
4794 "Sent/Received with short preamble", HFILL
}},
4796 {&hf_radiotap_flags_wep
,
4797 {"WEP", "radiotap.flags.wep",
4798 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_WEP
,
4799 "Sent/Received with WEP encryption", HFILL
}},
4801 {&hf_radiotap_flags_frag
,
4802 {"Fragmentation", "radiotap.flags.frag",
4803 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_FRAG
,
4804 "Sent/Received with fragmentation", HFILL
}},
4806 {&hf_radiotap_flags_fcs
,
4807 {"FCS at end", "radiotap.flags.fcs",
4808 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_FCS
,
4809 "Frame includes FCS at end", HFILL
}},
4811 {&hf_radiotap_flags_datapad
,
4812 {"Data Pad", "radiotap.flags.datapad",
4813 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_DATAPAD
,
4814 "Frame has padding between 802.11 header and payload", HFILL
}},
4816 {&hf_radiotap_flags_badfcs
,
4817 {"Bad FCS", "radiotap.flags.badfcs",
4818 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_BADFCS
,
4819 "Frame received with bad FCS", HFILL
}},
4821 {&hf_radiotap_flags_shortgi
,
4822 {"Short GI", "radiotap.flags.shortgi",
4823 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_SHORTGI
,
4824 "Frame Sent/Received with HT short Guard Interval", HFILL
}},
4826 {&hf_radiotap_mactime
,
4827 {"MAC timestamp", "radiotap.mactime",
4828 FT_UINT64
, BASE_DEC
, NULL
, 0x0,
4829 "Value in microseconds of the MAC's Time Synchronization Function timer"
4830 " when the first bit of the MPDU arrived at the MAC.",
4833 {&hf_radiotap_quality
,
4834 {"Signal Quality", "radiotap.quality",
4835 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
4836 "Signal quality (unitless measure)", HFILL
}},
4839 {"802.11 FCS", "radiotap.fcs",
4840 FT_UINT32
, BASE_HEX
, NULL
, 0x0,
4841 "Frame check sequence of this frame", HFILL
}},
4844 {&hf_radiotap_channel
,
4845 {"Channel", "radiotap.channel",
4846 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4847 "802.11 channel number that this frame was sent/received on", HFILL
}},
4850 {&hf_radiotap_channel_frequency
,
4851 {"Channel frequency", "radiotap.channel.freq",
4852 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4853 "Channel frequency in megahertz that this frame was sent/received on", HFILL
}},
4855 {&hf_radiotap_channel_flags
,
4856 {"Channel flags", "radiotap.channel.flags",
4857 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
4860 {&hf_radiotap_channel_flags_turbo
,
4861 {"Turbo", "radiotap.channel.flags.turbo",
4862 FT_BOOLEAN
, 16, NULL
, 0x0010, "Channel Flags Turbo", HFILL
}},
4864 {&hf_radiotap_channel_flags_700mhz
,
4865 {"700 MHz spectrum", "radiotap.channel.flags.700mhz",
4866 FT_BOOLEAN
, 16, NULL
, 0x0001, "Channel Flags Turbo", HFILL
}},
4868 {&hf_radiotap_channel_flags_800mhz
,
4869 {"800 MHz spectrum", "radiotap.channel.flags.800mhz",
4870 FT_BOOLEAN
, 16, NULL
, 0x0002, "Channel Flags Turbo", HFILL
}},
4872 {&hf_radiotap_channel_flags_900mhz
,
4873 {"900 MHz spectrum", "radiotap.channel.flags.900mhz",
4874 FT_BOOLEAN
, 16, NULL
, 0x0004, "Channel Flags Turbo", HFILL
}},
4876 {&hf_radiotap_channel_flags_cck
,
4877 {"Complementary Code Keying (CCK)", "radiotap.channel.flags.cck",
4878 FT_BOOLEAN
, 16, NULL
, 0x0020,
4879 "Channel Flags Complementary Code Keying (CCK) Modulation", HFILL
}},
4881 {&hf_radiotap_channel_flags_ofdm
,
4882 {"Orthogonal Frequency-Division Multiplexing (OFDM)", "radiotap.channel.flags.ofdm",
4883 FT_BOOLEAN
, 16, NULL
, 0x0040,
4884 "Channel Flags Orthogonal Frequency-Division Multiplexing (OFDM)", HFILL
}},
4886 {&hf_radiotap_channel_flags_2ghz
,
4887 {"2 GHz spectrum", "radiotap.channel.flags.2ghz",
4888 FT_BOOLEAN
, 16, NULL
, 0x0080, "Channel Flags 2 GHz spectrum", HFILL
}},
4890 {&hf_radiotap_channel_flags_5ghz
,
4891 {"5 GHz spectrum", "radiotap.channel.flags.5ghz",
4892 FT_BOOLEAN
, 16, NULL
, 0x0100, "Channel Flags 5 GHz spectrum", HFILL
}},
4894 {&hf_radiotap_channel_flags_passive
,
4895 {"Passive", "radiotap.channel.flags.passive",
4896 FT_BOOLEAN
, 16, NULL
, 0x0200,
4897 "Channel Flags Passive", HFILL
}},
4899 {&hf_radiotap_channel_flags_dynamic
,
4900 {"Dynamic CCK-OFDM", "radiotap.channel.flags.dynamic",
4901 FT_BOOLEAN
, 16, NULL
, 0x0400,
4902 "Channel Flags Dynamic CCK-OFDM Channel", HFILL
}},
4904 {&hf_radiotap_channel_flags_gfsk
,
4905 {"Gaussian Frequency Shift Keying (GFSK)", "radiotap.channel.flags.gfsk",
4906 FT_BOOLEAN
, 16, NULL
, 0x0800,
4907 "Channel Flags Gaussian Frequency Shift Keying (GFSK) Modulation", HFILL
}},
4909 {&hf_radiotap_channel_flags_gsm
,
4910 {"GSM (900MHz)", "radiotap.channel.flags.gsm",
4911 FT_BOOLEAN
, 16, NULL
, 0x1000,
4912 "Channel Flags GSM", HFILL
}},
4914 {&hf_radiotap_channel_flags_sturbo
,
4915 {"Static Turbo", "radiotap.channel.flags.sturbo",
4916 FT_BOOLEAN
, 16, NULL
, 0x2000,
4917 "Channel Flags Status Turbo", HFILL
}},
4919 {&hf_radiotap_channel_flags_half
,
4920 {"Half Rate Channel (10MHz Channel Width)", "radiotap.channel.flags.half",
4921 FT_BOOLEAN
, 16, NULL
, 0x4000,
4922 "Channel Flags Half Rate", HFILL
}},
4924 {&hf_radiotap_channel_flags_quarter
,
4925 {"Quarter Rate Channel (5MHz Channel Width)", "radiotap.channel.flags.quarter",
4926 FT_BOOLEAN
, 16, NULL
, 0x8000,
4927 "Channel Flags Quarter Rate", HFILL
}},
4929 {&hf_radiotap_rxflags
,
4930 {"RX flags", "radiotap.rxflags",
4931 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
4934 {&hf_radiotap_rxflags_badplcp
,
4935 {"Bad PLCP", "radiotap.rxflags.badplcp",
4936 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_RX_BADPLCP
,
4937 "Frame with bad PLCP", HFILL
}},
4939 {&hf_radiotap_txflags
,
4940 {"TX flags", "radiotap.txflags",
4941 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
4944 {&hf_radiotap_txflags_fail
,
4945 {"Fail", "radiotap.rxflags.fail",
4946 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_FAIL
,
4947 "Transmission failed due to excessive retries", HFILL
}},
4949 {&hf_radiotap_txflags_cts
,
4950 {"CTS", "radiotap.rxflags.cts",
4951 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_CTS
,
4952 "Transmission used CTS-to-self protection", HFILL
}},
4954 {&hf_radiotap_txflags_rts
,
4955 {"RTS/CTS", "radiotap.rxflags.rts",
4956 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_RTS
,
4957 "Transmission used RTS/CTS handshake", HFILL
}},
4959 {&hf_radiotap_txflags_noack
,
4960 {"No ACK", "radiotap.rxflags.noack",
4961 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_NOACK
,
4962 "Transmission shall not expect an ACK frame", HFILL
}},
4964 {&hf_radiotap_txflags_noseqno
,
4965 {"Has Seqnum", "radiotap.rxflags.noseqno",
4966 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_NOSEQNO
,
4967 "Frame includes a pre-configured sequence number", HFILL
}},
4969 {&hf_radiotap_txflags_order
,
4970 {"Order", "radiotap.rxflags.order",
4971 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_ORDER
,
4972 "Frame must not be reordered relative to others with this flag", HFILL
}},
4974 {&hf_radiotap_xchannel_channel
,
4975 {"Channel number", "radiotap.xchannel.channel",
4976 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4979 {&hf_radiotap_xchannel_frequency
,
4980 {"Channel frequency", "radiotap.xchannel.freq",
4981 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4984 {&hf_radiotap_xchannel_flags
,
4985 {"Channel flags", "radiotap.xchannel.flags",
4986 FT_UINT32
, BASE_HEX
, NULL
, 0x0,
4989 {&hf_radiotap_xchannel_flags_turbo
,
4990 {"Turbo", "radiotap.xchannel.flags.turbo",
4991 FT_BOOLEAN
, 24, NULL
, 0x000010,
4992 "Channel Flags Turbo", HFILL
}},
4994 {&hf_radiotap_xchannel_flags_cck
,
4995 {"Complementary Code Keying (CCK)", "radiotap.xchannel.flags.cck",
4996 FT_BOOLEAN
, 24, NULL
, 0x000020,
4997 "Channel Flags Complementary Code Keying (CCK) Modulation", HFILL
}},
4999 {&hf_radiotap_xchannel_flags_ofdm
,
5000 {"Orthogonal Frequency-Division Multiplexing (OFDM)", "radiotap.xchannel.flags.ofdm",
5001 FT_BOOLEAN
, 24, NULL
, 0x000040,
5002 "Channel Flags Orthogonal Frequency-Division Multiplexing (OFDM)", HFILL
}},
5004 {&hf_radiotap_xchannel_flags_2ghz
,
5005 {"2 GHz spectrum", "radiotap.xchannel.flags.2ghz",
5006 FT_BOOLEAN
, 24, NULL
, 0x000080,
5007 "Channel Flags 2 GHz spectrum", HFILL
}},
5009 {&hf_radiotap_xchannel_flags_5ghz
,
5010 {"5 GHz spectrum", "radiotap.xchannel.flags.5ghz",
5011 FT_BOOLEAN
, 24, NULL
, 0x000100,
5012 "Channel Flags 5 GHz spectrum", HFILL
}},
5014 {&hf_radiotap_xchannel_flags_passive
,
5015 {"Passive", "radiotap.channel.xtype.passive",
5016 FT_BOOLEAN
, 24, NULL
, 0x000200,
5017 "Channel Flags Passive", HFILL
}},
5019 {&hf_radiotap_xchannel_flags_dynamic
,
5020 {"Dynamic CCK-OFDM", "radiotap.xchannel.flags.dynamic",
5021 FT_BOOLEAN
, 24, NULL
, 0x000400,
5022 "Channel Flags Dynamic CCK-OFDM Channel", HFILL
}},
5024 {&hf_radiotap_xchannel_flags_gfsk
,
5025 {"Gaussian Frequency Shift Keying (GFSK)",
5026 "radiotap.xchannel.flags.gfsk",
5027 FT_BOOLEAN
, 24, NULL
, 0x000800,
5028 "Channel Flags Gaussian Frequency Shift Keying (GFSK) Modulation",
5031 {&hf_radiotap_xchannel_flags_gsm
,
5032 {"GSM (900MHz)", "radiotap.xchannel.flags.gsm",
5033 FT_BOOLEAN
, 24, NULL
, 0x001000,
5034 "Channel Flags GSM", HFILL
}},
5036 {&hf_radiotap_xchannel_flags_sturbo
,
5037 {"Static Turbo", "radiotap.xchannel.flags.sturbo",
5038 FT_BOOLEAN
, 24, NULL
, 0x002000,
5039 "Channel Flags Status Turbo", HFILL
}},
5041 {&hf_radiotap_xchannel_flags_half
,
5042 {"Half Rate Channel (10MHz Channel Width)", "radiotap.xchannel.flags.half",
5043 FT_BOOLEAN
, 24, NULL
, 0x004000,
5044 "Channel Flags Half Rate", HFILL
}},
5046 {&hf_radiotap_xchannel_flags_quarter
,
5047 {"Quarter Rate Channel (5MHz Channel Width)", "radiotap.xchannel.flags.quarter",
5048 FT_BOOLEAN
, 24, NULL
, 0x008000,
5049 "Channel Flags Quarter Rate", HFILL
}},
5051 {&hf_radiotap_xchannel_flags_ht20
,
5052 {"HT Channel (20MHz Channel Width)", "radiotap.xchannel.flags.ht20",
5053 FT_BOOLEAN
, 24, NULL
, 0x010000,
5054 "Channel Flags HT/20", HFILL
}},
5056 {&hf_radiotap_xchannel_flags_ht40u
,
5057 {"HT Channel (40MHz Channel Width with Extension channel above)", "radiotap.xchannel.flags.ht40u",
5058 FT_BOOLEAN
, 24, NULL
, 0x020000,
5059 "Channel Flags HT/40+", HFILL
}},
5061 {&hf_radiotap_xchannel_flags_ht40d
,
5062 {"HT Channel (40MHz Channel Width with Extension channel below)", "radiotap.xchannel.flags.ht40d",
5063 FT_BOOLEAN
, 24, NULL
, 0x040000,
5064 "Channel Flags HT/40-", HFILL
}},
5066 {&hf_radiotap_xchannel_maxpower
,
5067 {"Max transmit power", "radiotap.xchannel.maxpower",
5068 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
5071 {&hf_radiotap_fhss_hopset
,
5072 {"FHSS Hop Set", "radiotap.fhss.hopset",
5073 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5074 "Frequency Hopping Spread Spectrum hopset", HFILL
}},
5076 {&hf_radiotap_fhss_pattern
,
5077 {"FHSS Pattern", "radiotap.fhss.pattern",
5078 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5079 "Frequency Hopping Spread Spectrum hop pattern", HFILL
}},
5081 {&hf_radiotap_datarate
,
5082 {"Data rate (Mb/s)", "radiotap.datarate",
5083 FT_FLOAT
, BASE_NONE
, NULL
, 0x0,
5084 "Speed this frame was sent/received at", HFILL
}},
5086 {&hf_radiotap_antenna
,
5087 {"Antenna", "radiotap.antenna",
5088 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
5089 "Antenna number this frame was sent/received over (starting at 0)", HFILL
}},
5091 {&hf_radiotap_dbm_antsignal
,
5092 {"Antenna signal", "radiotap.dbm_antsignal",
5093 FT_INT8
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_dbm
), 0x0,
5094 "RF signal power at the antenna expressed as decibels"
5095 " from one milliwatt", HFILL
}},
5097 {&hf_radiotap_db_antsignal
,
5098 {"dB antenna signal", "radiotap.db_antsignal",
5099 FT_UINT8
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_decibels
), 0x0,
5100 "RF signal power at the antenna expressed as decibels"
5101 " from a fixed, arbitrary value", HFILL
}},
5103 {&hf_radiotap_dbm_antnoise
,
5104 {"Antenna noise", "radiotap.dbm_antnoise",
5105 FT_INT8
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_dbm
), 0x0,
5106 "RF noise power at the antenna expressed as decibels"
5107 " from one milliwatt", HFILL
}},
5109 {&hf_radiotap_db_antnoise
,
5110 {"dB antenna noise", "radiotap.db_antnoise",
5111 FT_UINT8
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_decibels
), 0x0,
5112 "RF noise power at the antenna expressed as decibels"
5113 " from a fixed, arbitrary value", HFILL
}},
5115 {&hf_radiotap_tx_attenuation
,
5116 {"TX attenuation", "radiotap.txattenuation",
5117 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
5118 "Transmit power expressed as unitless distance from max power"
5119 " set at factory calibration (0 is max power)", HFILL
}},
5121 {&hf_radiotap_db_tx_attenuation
,
5122 {"dB TX attenuation", "radiotap.db_txattenuation",
5123 FT_UINT16
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_decibels
), 0x0,
5124 "Transmit power expressed as decibels from max power"
5125 " set at factory calibration (0 is max power)", HFILL
}},
5127 {&hf_radiotap_txpower
,
5128 {"Transmit power", "radiotap.txpower",
5129 FT_INT8
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_dbm
), 0x0,
5130 "Transmit power at the antenna port expressed as decibels"
5131 " from one milliwatt", HFILL
}},
5133 { &hf_radiotap_data_retries
,
5134 {"data retries", "radiotap.data_retries",
5135 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5136 "Number of data retries a transmitted frame used", HFILL
} },
5139 {"MCS information", "radiotap.mcs",
5140 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5143 {&hf_radiotap_mcs_known
,
5144 {"Known MCS information", "radiotap.mcs.known",
5145 FT_UINT8
, BASE_HEX
, NULL
, 0x0,
5146 "Bit mask indicating what MCS information is present", HFILL
}},
5148 {&hf_radiotap_mcs_have_bw
,
5149 {"Bandwidth", "radiotap.mcs.have_bw",
5150 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_BW
,
5151 "Bandwidth information present", HFILL
}},
5153 {&hf_radiotap_mcs_have_index
,
5154 {"MCS index", "radiotap.mcs.have_index",
5155 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_MCS
,
5156 "MCS index information present", HFILL
}},
5158 {&hf_radiotap_mcs_have_gi
,
5159 {"Guard interval", "radiotap.mcs.have_gi",
5160 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_GI
,
5161 "Sent/Received guard interval information present", HFILL
}},
5163 {&hf_radiotap_mcs_have_format
,
5164 {"Format", "radiotap.mcs.have_format",
5165 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_FMT
,
5166 "Format information present", HFILL
}},
5168 {&hf_radiotap_mcs_have_fec
,
5169 {"FEC type", "radiotap.mcs.have_fec",
5170 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_FEC
,
5171 "Forward error correction type information present", HFILL
}},
5173 {&hf_radiotap_mcs_have_stbc
,
5174 {"STBC streams", "radiotap.mcs.have_stbc",
5175 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_STBC
,
5176 "Space Time Block Coding streams information present", HFILL
}},
5178 {&hf_radiotap_mcs_have_ness
,
5179 {"Number of extension spatial streams", "radiotap.mcs.have_ness",
5180 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_NESS
,
5181 "Number of extension spatial streams information present", HFILL
}},
5183 {&hf_radiotap_mcs_ness_bit1
,
5184 {"Number of extension spatial streams bit 1", "radiotap.mcs.ness_bit1",
5185 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_MCS_NESS_BIT1
,
5186 "Bit 1 of number of extension spatial streams information", HFILL
}},
5188 {&hf_radiotap_mcs_bw
,
5189 {"Bandwidth", "radiotap.mcs.bw",
5190 FT_UINT8
, BASE_DEC
, VALS(mcs_bandwidth
),
5191 IEEE80211_RADIOTAP_MCS_BW_MASK
, NULL
, HFILL
}},
5193 {&hf_radiotap_mcs_gi
,
5194 {"Guard interval", "radiotap.mcs.gi",
5195 FT_UINT8
, BASE_DEC
, VALS(mcs_gi
), IEEE80211_RADIOTAP_MCS_SGI
,
5196 "Sent/Received guard interval", HFILL
}},
5198 {&hf_radiotap_mcs_format
,
5199 {"Format", "radiotap.mcs.format",
5200 FT_UINT8
, BASE_DEC
, VALS(mcs_format
), IEEE80211_RADIOTAP_MCS_FMT_GF
,
5203 {&hf_radiotap_mcs_fec
,
5204 {"FEC type", "radiotap.mcs.fec",
5205 FT_UINT8
, BASE_DEC
, VALS(mcs_fec
), IEEE80211_RADIOTAP_MCS_FEC_LDPC
,
5206 "Forward error correction type", HFILL
}},
5208 {&hf_radiotap_mcs_stbc
,
5209 {"STBC streams", "radiotap.mcs.stbc",
5210 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_MCS_STBC_MASK
,
5211 "Number of Space Time Block Code streams", HFILL
}},
5213 {&hf_radiotap_mcs_ness_bit0
,
5214 {"Number of extension spatial streams bit 0", "radiotap.mcs.ness_bit0",
5215 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_MCS_NESS_BIT0
,
5216 "Bit 0 of number of extension spatial streams information", HFILL
}},
5218 {&hf_radiotap_mcs_index
,
5219 {"MCS index", "radiotap.mcs.index",
5220 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5223 {&hf_radiotap_ampdu
,
5224 {"A-MPDU status", "radiotap.ampdu",
5225 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5228 {&hf_radiotap_ampdu_ref
,
5229 {"A-MPDU reference number", "radiotap.ampdu.reference",
5230 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
5233 {&hf_radiotap_ampdu_flags
,
5234 {"A-MPDU flags", "radiotap.ampdu.flags",
5235 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5236 "A-MPDU status flags", HFILL
}},
5238 {&hf_radiotap_ampdu_flags_report_zerolen
,
5239 {"Driver reports 0-length subframes in this A-MPDU", "radiotap.ampdu.flags.report_zerolen",
5240 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_REPORT_ZEROLEN
,
5243 {&hf_radiotap_ampdu_flags_is_zerolen
,
5244 {"This is a 0-length subframe", "radiotap.ampdu.flags.is_zerolen",
5245 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_IS_ZEROLEN
,
5248 {&hf_radiotap_ampdu_flags_last_known
,
5249 {"Last subframe of this A-MPDU is known", "radiotap.ampdu.flags.lastknown",
5250 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_LAST_KNOWN
,
5253 {&hf_radiotap_ampdu_flags_is_last
,
5254 {"This is the last subframe of this A-MPDU", "radiotap.ampdu.flags.last",
5255 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_IS_LAST
,
5258 {&hf_radiotap_ampdu_flags_delim_crc_error
,
5259 {"Delimiter CRC error on this subframe", "radiotap.ampdu.flags.delim_crc_error",
5260 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_DELIM_CRC_ERR
,
5263 {&hf_radiotap_ampdu_flags_eof
,
5264 {"EOF on this subframe", "radiotap.ampdu.flags.eof",
5265 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_EOF
,
5268 {&hf_radiotap_ampdu_flags_eof_known
,
5269 {"EOF of this A-MPDU is known", "radiotap.ampdu.flags.eof_known",
5270 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_EOF_KNOWN
,
5273 {&hf_radiotap_ampdu_delim_crc
,
5274 {"A-MPDU subframe delimiter CRC", "radiotap.ampdu.delim_crc",
5275 FT_UINT8
, BASE_HEX
, NULL
, 0x0,
5279 {"VHT information", "radiotap.vht",
5280 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5283 {&hf_radiotap_vht_known
,
5284 {"Known VHT information", "radiotap.vht.known",
5285 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5286 "Bit mask indicating what VHT information is present", HFILL
}},
5288 {&hf_radiotap_vht_user
,
5289 {"User", "radiotap.vht.user",
5290 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5293 {&hf_radiotap_vht_have_stbc
,
5294 {"STBC", "radiotap.vht.have_stbc",
5295 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_STBC
,
5296 "Space Time Block Coding information present", HFILL
}},
5298 {&hf_radiotap_vht_have_txop_ps
,
5299 {"TXOP_PS_NOT_ALLOWED", "radiotap.vht.have_txop_ps",
5300 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_TXOP_PS
,
5301 "TXOP_PS_NOT_ALLOWED information present", HFILL
}},
5303 {&hf_radiotap_vht_have_gi
,
5304 {"Guard interval", "radiotap.vht.have_gi",
5305 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_GI
,
5306 "Short/Long guard interval information present", HFILL
}},
5308 {&hf_radiotap_vht_have_sgi_nsym_da
,
5309 {"SGI Nsym disambiguation", "radiotap.vht.have_sgi_nsym_da",
5310 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_SGI_NSYM_DA
,
5311 "Short guard interval Nsym disambiguation information present", HFILL
}},
5313 {&hf_radiotap_vht_have_ldpc_extra
,
5314 {"LDPC extra OFDM symbol", "radiotap.vht.ldpc_extra",
5315 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_LDPC_EXTRA
,
5318 {&hf_radiotap_vht_have_bf
,
5319 {"Beamformed", "radiotap.vht.have_beamformed",
5320 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_BF
,
5323 {&hf_radiotap_vht_have_bw
,
5324 {"Bandwidth", "radiotap.mcs.have_bw",
5325 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_BW
,
5328 {&hf_radiotap_vht_have_gid
,
5329 {"Group ID", "radiotap.mcs.have_gid",
5330 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_GID
,
5333 {&hf_radiotap_vht_have_p_aid
,
5334 {"Partial AID", "radiotap.mcs.have_paid",
5335 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_PAID
,
5338 {&hf_radiotap_vht_stbc
,
5339 {"STBC", "radiotap.vht.stbc",
5340 FT_BOOLEAN
, 8, TFS(&tfs_on_off
), IEEE80211_RADIOTAP_VHT_STBC
,
5341 "Space Time Block Coding flag", HFILL
}},
5343 {&hf_radiotap_vht_txop_ps
,
5344 {"TXOP_PS_NOT_ALLOWED", "radiotap.vht.txop_ps",
5345 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_VHT_TXOP_PS
,
5346 "Flag indicating whether STAs may doze during TXOP", HFILL
}},
5348 {&hf_radiotap_vht_gi
,
5349 {"Guard interval", "radiotap.vht.gi",
5350 FT_UINT8
, BASE_DEC
, VALS(mcs_gi
), IEEE80211_RADIOTAP_VHT_SGI
,
5351 "Short/Long guard interval", HFILL
}},
5353 {&hf_radiotap_vht_sgi_nsym_da
,
5354 {"SGI Nsym disambiguation", "radiotap.vht.sgi_nsym_da",
5355 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_VHT_SGI_NSYM_DA
,
5356 "Short Guard Interval Nsym disambiguation", HFILL
}},
5358 {&hf_radiotap_vht_ldpc_extra
,
5359 {"LDPC extra OFDM symbol", "radiotap.vht.ldpc_extra",
5360 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_VHT_LDPC_EXTRA
,
5363 {&hf_radiotap_vht_bf
,
5364 {"Beamformed", "radiotap.vht.beamformed",
5365 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_VHT_BF
,
5368 {&hf_radiotap_vht_bw
,
5369 {"Bandwidth", "radiotap.vht.bw",
5370 FT_UINT8
, BASE_DEC
| BASE_EXT_STRING
, &vht_bandwidth_ext
, 0x0,
5373 {&hf_radiotap_vht_nsts
[0],
5374 {"Space-time streams 0", "radiotap.vht.nsts.0",
5375 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5376 "Number of Space-time streams", HFILL
}},
5378 {&hf_radiotap_vht_nsts
[1],
5379 {"Space-time streams 1", "radiotap.vht.nsts.1",
5380 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5381 "Number of Space-time streams", HFILL
}},
5383 {&hf_radiotap_vht_nsts
[2],
5384 {"Space-time streams 2", "radiotap.vht.nsts.2",
5385 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5386 "Number of Space-time streams", HFILL
}},
5388 {&hf_radiotap_vht_nsts
[3],
5389 {"Space-time streams 3", "radiotap.vht.nsts.3",
5390 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5391 "Number of Space-time streams", HFILL
}},
5393 {&hf_radiotap_vht_mcs
[0],
5394 {"MCS index 0", "radiotap.vht.mcs.0",
5395 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_MCS
,
5396 "MCS index", HFILL
}},
5398 {&hf_radiotap_vht_mcs
[1],
5399 {"MCS index 1", "radiotap.vht.mcs.1",
5400 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_MCS
,
5401 "MCS index", HFILL
}},
5403 {&hf_radiotap_vht_mcs
[2],
5404 {"MCS index 2", "radiotap.vht.mcs.2",
5405 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_MCS
,
5406 "MCS index", HFILL
}},
5408 {&hf_radiotap_vht_mcs
[3],
5409 {"MCS index 3", "radiotap.vht.mcs.3",
5410 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_MCS
,
5411 "MCS index", HFILL
}},
5413 {&hf_radiotap_vht_nss
[0],
5414 {"Spatial streams 0", "radiotap.vht.nss.0",
5415 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_NSS
,
5416 "Number of spatial streams", HFILL
}},
5418 {&hf_radiotap_vht_nss
[1],
5419 {"Spatial streams 1", "radiotap.vht.nss.1",
5420 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_NSS
,
5421 "Number of spatial streams", HFILL
}},
5423 {&hf_radiotap_vht_nss
[2],
5424 {"Spatial streams 2", "radiotap.vht.nss.2",
5425 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_NSS
,
5426 "Number of spatial streams", HFILL
}},
5428 {&hf_radiotap_vht_nss
[3],
5429 {"Spatial streams 3", "radiotap.vht.nss.3",
5430 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_NSS
,
5431 "Number of spatial streams", HFILL
}},
5433 {&hf_radiotap_vht_coding
[0],
5434 {"Coding 0", "radiotap.vht.coding.0",
5435 FT_UINT8
, BASE_DEC
, VALS(mcs_fec
), 0x01,
5438 {&hf_radiotap_vht_coding
[1],
5439 {"Coding 1", "radiotap.vht.coding.1",
5440 FT_UINT8
, BASE_DEC
, VALS(mcs_fec
), 0x02,
5443 {&hf_radiotap_vht_coding
[2],
5444 {"Coding 2", "radiotap.vht.coding.2",
5445 FT_UINT8
, BASE_DEC
, VALS(mcs_fec
), 0x04,
5448 {&hf_radiotap_vht_coding
[3],
5449 {"Coding 3", "radiotap.vht.coding.3",
5450 FT_UINT8
, BASE_DEC
, VALS(mcs_fec
), 0x08,
5453 {&hf_radiotap_vht_datarate
[0],
5454 {"Data rate (Mb/s) 0", "radiotap.vht.datarate.0",
5455 FT_FLOAT
, BASE_NONE
, NULL
, 0x0,
5456 "Speed this frame was sent/received at", HFILL
}},
5458 {&hf_radiotap_vht_datarate
[1],
5459 {"Data rate (Mb/s) 1", "radiotap.vht.datarate.1",
5460 FT_FLOAT
, BASE_NONE
, NULL
, 0x0,
5461 "Speed this frame was sent/received at", HFILL
}},
5463 {&hf_radiotap_vht_datarate
[2],
5464 {"Data rate (Mb/s) 2", "radiotap.vht.datarate.2",
5465 FT_FLOAT
, BASE_NONE
, NULL
, 0x0,
5466 "Speed this frame was sent/received at", HFILL
}},
5468 {&hf_radiotap_vht_datarate
[3],
5469 {"Data rate (Mb/s) 3", "radiotap.vht.datarate.3",
5470 FT_FLOAT
, BASE_NONE
, NULL
, 0x0,
5471 "Speed this frame was sent/received at", HFILL
}},
5473 {&hf_radiotap_vht_gid
,
5474 {"Group Id", "radiotap.vht.gid",
5475 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5478 {&hf_radiotap_vht_p_aid
,
5479 {"Partial AID", "radiotap.vht.paid",
5480 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
5483 {&hf_radiotap_timestamp
,
5484 {"timestamp information", "radiotap.timestamp",
5485 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5488 {&hf_radiotap_timestamp_ts
,
5489 {"timestamp", "radiotap.timestamp.ts",
5490 FT_UINT64
, BASE_DEC
, NULL
, 0x0,
5493 {&hf_radiotap_timestamp_accuracy
,
5494 {"accuracy", "radiotap.timestamp.accuracy",
5495 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
5498 {&hf_radiotap_timestamp_unit
,
5499 {"time unit", "radiotap.timestamp.unit",
5500 FT_UINT8
, BASE_DEC
, VALS(timestamp_unit
),
5501 IEEE80211_RADIOTAP_TS_UNIT_MASK
,
5504 {&hf_radiotap_timestamp_spos
,
5505 {"sampling position", "radiotap.timestamp.samplingpos",
5506 FT_UINT8
, BASE_DEC
, VALS(timestamp_spos
),
5507 IEEE80211_RADIOTAP_TS_SPOS_MASK
,
5510 {&hf_radiotap_timestamp_flags_32bit
,
5511 {"32-bit counter", "radiotap.timestamp.flags.32bit",
5512 FT_BOOLEAN
, 8, TFS(&tfs_yes_no
), IEEE80211_RADIOTAP_TS_FLG_32BIT
,
5515 {&hf_radiotap_timestamp_flags_accuracy
,
5516 {"accuracy field", "radiotap.timestamp.flags.accuracy",
5517 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_TS_FLG_ACCURACY
,
5520 {&hf_radiotap_vendor_ns
,
5521 {"Vendor namespace", "radiotap.vendor_namespace",
5522 FT_BYTES
, BASE_NONE
, NULL
, 0x0,
5525 {&hf_radiotap_ven_oui
,
5526 {"Vendor OUI", "radiotap.vendor_oui",
5527 FT_UINT24
, BASE_OUI
, NULL
, 0x0,
5530 {&hf_radiotap_ven_subns
,
5531 {"Vendor sub namespace", "radiotap.vendor_subns",
5532 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5533 "Vendor-specified sub namespace", HFILL
}},
5535 {&hf_radiotap_ven_skip
,
5536 {"Vendor data length", "radiotap.vendor_data_len",
5537 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
5538 "Length of vendor-specified data", HFILL
}},
5540 {&hf_radiotap_ven_item
,
5541 {"Vendor data item type", "radiotap.vendor_data_item_type",
5542 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
5543 "Item type of vendor-specific data", HFILL
}},
5545 {&hf_radiotap_ven_data
,
5546 {"Vendor data", "radiotap.vendor_data",
5547 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5548 "Vendor-specified data", HFILL
}},
5550 /* Special variables */
5551 {&hf_radiotap_fcs_bad
,
5552 {"Bad FCS", "radiotap.fcs_bad",
5553 FT_BOOLEAN
, BASE_NONE
, NULL
, 0x0,
5554 "Specifies if this frame has a bad frame check sequence", HFILL
}},
5556 {&hf_radiotap_he_info_data_1
,
5557 {"HE Data 1", "radiotap.he.data_1",
5558 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5559 "Data 1 of the HE Info field", HFILL
}},
5561 {&hf_radiotap_he_ppdu_format
,
5562 {"PPDU Format", "radiotap.he.data_1.ppdu_format",
5563 FT_UINT16
, BASE_HEX
, VALS(he_pdu_format_vals
),
5564 IEEE80211_RADIOTAP_HE_PPDU_FORMAT_MASK
, NULL
, HFILL
}},
5566 {&hf_radiotap_he_bss_color_known
,
5567 {"BSS Color known", "radiotap.he.data_1.bss_color_known",
5568 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5569 IEEE80211_RADIOTAP_HE_BSS_COLOR_KNOWN
, NULL
, HFILL
}},
5571 {&hf_radiotap_he_beam_change_known
,
5572 {"Beam Change known", "radiotap.he.data_1.beam_change_known",
5573 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5574 IEEE80211_RADIOTAP_HE_BEAM_CHANGE_KNOWN
, NULL
, HFILL
}},
5576 {&hf_radiotap_he_ul_dl_known
,
5577 {"UL/DL known", "radiotap.he.data_1.ul_dl_known",
5578 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5579 IEEE80211_RADIOTAP_HE_UL_DL_KNOWN
, NULL
, HFILL
}},
5581 {&hf_radiotap_he_data_mcs_known
,
5582 {"data MCS known", "radiotap.he.data_1.data_mcs_known",
5583 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5584 IEEE80211_RADIOTAP_HE_DATA_MCS_KNOWN
, NULL
, HFILL
}},
5586 {&hf_radiotap_he_data_dcm_known
,
5587 {"data DCM known", "radiotap.he.data_1.data_dcm_known",
5588 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5589 IEEE80211_RADIOTAP_HE_DATA_DCM_KNOWN
, NULL
, HFILL
}},
5591 {&hf_radiotap_he_coding_known
,
5592 {"Coding known", "radiotap.he.data_1.coding_known",
5593 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5594 IEEE80211_RADIOTAP_HE_CODING_KNOWN
, NULL
, HFILL
}},
5596 {&hf_radiotap_he_ldpc_extra_symbol_segment_known
,
5597 {"LDPC extra symbol segment known", "radiotap.he.data_1.ldpc_extra_symbol_segment_known",
5598 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5599 IEEE80211_RADIOTAP_HE_LDPC_EXTRA_SYMBOL_SEGMENT_KNOWN
, NULL
, HFILL
}},
5601 {&hf_radiotap_he_stbc_known
,
5602 {"STBC known", "radiotap.he.data_1.stbc_known",
5603 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5604 IEEE80211_RADIOTAP_HE_STBC_KNOWN
, NULL
, HFILL
}},
5606 {&hf_radiotap_he_spatial_reuse_1_known
,
5607 {"Spatial Reuse 1 known", "radiotap.he.data_1.spatial_reuse_1_known",
5608 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5609 IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_KNOWN
, NULL
, HFILL
}},
5611 {&hf_radiotap_he_spatial_reuse_2_known
,
5612 {"Spatial Reuse 2 known", "radiotap.he.data_1.spatial_reuse_2_known",
5613 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5614 IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_2_KNOWN
, NULL
, HFILL
}},
5616 {&hf_radiotap_he_spatial_reuse_3_known
,
5617 {"Spatial Reuse 3 known", "radiotap.he.data_1.spatial_reuse_3_known",
5618 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5619 IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_3_KNOWN
, NULL
, HFILL
}},
5621 {&hf_radiotap_he_spatial_reuse_4_known
,
5622 {"Spatial Reuse 4 known", "radiotap.he.data_1.spatial_reuse_4_known",
5623 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5624 IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_4_KNOWN
, NULL
, HFILL
}},
5626 {&hf_radiotap_he_data_bw_ru_allocation_known
,
5627 {"data BW/RU allocation known", "radiotap.he.data_1.data_bw_ru_allocation_known",
5628 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5629 IEEE80211_RADIOTAP_HE_DATA_BW_RU_ALLOCATION_KNOWN
, NULL
, HFILL
}},
5631 {&hf_radiotap_he_doppler_known
,
5632 {"Doppler known", "radiotap.he.data_1.doppler_known",
5633 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5634 IEEE80211_RADIOTAP_HE_DOPPLER_KNOWN
, NULL
, HFILL
}},
5636 {&hf_radiotap_he_info_data_2
,
5637 {"HE Data 2", "radiotap.he.data_2",
5638 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5639 "Data 1 of the HE Info field", HFILL
}},
5641 {&hf_radiotap_he_pri_sec_80_mhz_known
,
5642 {"pri/sec 80 MHz known", "radiotap.he.data_2.pri_sec_80_mhz_known",
5643 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_HE_PRI_SEC_80_MHZ_KNOWN
,
5646 {&hf_radiotap_he_gi_known
,
5647 {"GI known", "radiotap.he.data_2.gi_known",
5648 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_GI_KNOWN
,
5651 {&hf_radiotap_he_num_ltf_symbols_known
,
5652 {"LTF symbols known", "radiotap.he.data_2.num_ltf_symbols_known",
5653 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_NUM_LTF_SYMBOLS_KNOWN
,
5656 {&hf_radiotap_he_pre_fec_padding_factor_known
,
5657 {"Pre-FEC Padding Factor known", "radiotap.he.data_2.pre_fec_padding_factor_known",
5658 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_PRE_FEC_PADDING_FACTOR_KNOWN
,
5661 {&hf_radiotap_he_txbf_known
,
5662 {"TxBF known", "radiotap.he.data_2.txbf_known",
5663 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_TXBF_KNOWN
,
5666 {&hf_radiotap_he_pe_disambiguity_known
,
5667 {"PE Disambiguity known", "radiotap.he.data_2.pe_disambiguity_known",
5668 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_PE_DISAMBIGUITY_KNOWN
,
5671 {&hf_radiotap_he_txop_known
,
5672 {"TXOP known", "radiotap.he.data_2.txop_known",
5673 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_TXOP_KNOWN
,
5676 {&hf_radiotap_he_midamble_periodicity_known
,
5677 {"midamble periodicity known", "radiotap.he.data_2.midamble_periodicity_known",
5678 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_MIDAMBLE_PERIODICITY_KNOWN
,
5681 {&hf_radiotap_he_ru_allocation_offset
,
5682 {"RU allocation offset", "radiotap.he.data_2.ru_allocation_offset",
5683 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_RU_ALLOCATION_OFFSET
,
5686 {&hf_radiotap_he_ru_allocation_offset_known
,
5687 {"RU allocation offset known", "radiotap.he.data_2.ru_allocation_offset_known",
5688 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5689 IEEE80211_RADIOTAP_HE_RU_ALLOCATION_OFFSET_KNOWN
,
5692 {&hf_radiotap_he_pri_sec_80_mhz
,
5693 {"pri/sec 80 MHz", "radiotap.he.data_2.pri_sec_80_mhz",
5694 FT_BOOLEAN
, 16, TFS(&tfs_pri_sec_80_mhz
),
5695 IEEE80211_RADIOTAP_HE_PRI_SEC_80_MHZ
,
5698 {&hf_radiotap_he_bss_color
,
5699 {"BSS Color", "radiotap.he.data_3.bss_color",
5700 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_BSS_COLOR_MASK
,
5703 {&hf_radiotap_he_bss_color_unknown
,
5704 {"BSS Color unknown", "radiotap.he.data_3.bss_color_unknown",
5705 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_BSS_COLOR_MASK
,
5708 {&hf_radiotap_he_beam_change
,
5709 {"Beam Change", "radiotap.he.data_3.beam_change",
5710 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_BEAM_CHANGE
,
5713 {&hf_radiotap_he_beam_change_unknown
,
5714 {"Beam Change unknown", "radiotap.he.data_3.beam_change_unknown",
5715 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_BEAM_CHANGE
,
5718 {&hf_radiotap_he_ul_dl
,
5719 {"UL/DL", "radiotap.he.data_3.ul_dl",
5720 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_UL_DL
,
5723 {&hf_radiotap_he_ul_dl_unknown
,
5724 {"UL/DL unknown", "radiotap.he.data_3.ul_dl_unknown",
5725 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_UL_DL
,
5728 {&hf_radiotap_he_data_mcs
,
5729 {"data MCS", "radiotap.he.data_3.data_mcs",
5730 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DATA_MCS_MASK
,
5733 {&hf_radiotap_he_data_mcs_unknown
,
5734 {"data MCS unknown", "radiotap.he.data_3.data_mcs_unknown",
5735 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DATA_MCS_MASK
,
5738 {&hf_radiotap_he_data_dcm
,
5739 {"data DCM", "radiotap.he.data_3.data_dcm",
5740 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DATA_DCM
,
5743 {&hf_radiotap_he_data_dcm_unknown
,
5744 {"data DCM unknown", "radiotap.he.data_3.data_dcm_unknown",
5745 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DATA_DCM
,
5748 {&hf_radiotap_he_coding
,
5749 {"Coding", "radiotap.he.data_3.coding",
5750 FT_UINT16
, BASE_HEX
, VALS(he_coding_vals
),
5751 IEEE80211_RADIOTAP_HE_CODING
, NULL
, HFILL
}},
5753 {&hf_radiotap_he_coding_unknown
,
5754 {"Coding unknown", "radiotap.he.data_3.coding_unknown",
5755 FT_UINT16
, BASE_HEX
, NULL
,
5756 IEEE80211_RADIOTAP_HE_CODING
, NULL
, HFILL
}},
5758 {&hf_radiotap_he_ldpc_extra_symbol_segment
,
5759 {"LDPC extra symbol segment", "radiotap.he.data_3.ldpc_extra_symbol_segment",
5760 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_LDPC_EXTRA_SYMBOL_SEGMENT
,
5763 {&hf_radiotap_he_ldpc_extra_symbol_segment_unknown
,
5764 {"LDPC extra symbol segment unknown",
5765 "radiotap.he.data_3.ldpc_extra_symbol_segment_unknown",
5766 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_LDPC_EXTRA_SYMBOL_SEGMENT
,
5769 {&hf_radiotap_he_stbc
,
5770 {"STBC", "radiotap.he.data_3.stbc",
5771 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_STBC
,
5774 {&hf_radiotap_he_stbc_unknown
,
5775 {"STBC unknown", "radiotap.he.data_3.stbc_unknown",
5776 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_STBC
,
5779 {&hf_radiotap_he_info_data_3
,
5780 {"HE Data 3", "radiotap.he.data_3",
5781 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5782 "Data 1 of the HE Info field", HFILL
}},
5784 {&hf_radiotap_spatial_reuse
,
5785 {"Spatial Reuse", "radiotap.he.data_4.spatial_reuse",
5786 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_MASK
,
5789 {&hf_radiotap_spatial_reuse_unknown
,
5790 {"Spatial Reuse unknown", "radiotap.he.data_4.spatial_reuse_unknown",
5791 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_MASK
,
5794 {&hf_radiotap_he_su_reserved
,
5795 {"Reserved", "radiotap.he.data_4.reserved_d4_fff0",
5796 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_D4_FFF0
,
5799 {&hf_radiotap_spatial_reuse_1
,
5800 {"Spatial Reuse 1", "radiotap.he.data_4.spatial_reuse_1",
5801 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_1_MASK
,
5804 {&hf_radiotap_spatial_reuse_1_unknown
,
5805 {"Spatial Reuse 1 unknown", "radiotap.he.data_4.spatial_reuse_1_unknown",
5806 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_1_MASK
,
5809 {&hf_radiotap_spatial_reuse_2
,
5810 {"Spatial Reuse 2", "radiotap.he.data_4.spatial_reuse_2",
5811 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_2_MASK
,
5814 {&hf_radiotap_spatial_reuse_2_unknown
,
5815 {"Spatial Reuse 2 unknown", "radiotap.he.data_4.spatial_reuse_2_unknown",
5816 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_2_MASK
,
5819 {&hf_radiotap_spatial_reuse_3
,
5820 {"Spatial Reuse 3", "radiotap.he.data_4.spatial_reuse_3",
5821 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_3_MASK
,
5824 {&hf_radiotap_spatial_reuse_3_unknown
,
5825 {"Spatial Reuse 3 unknown", "radiotap.he.data_4.spatial_reuse_3_unknown",
5826 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_3_MASK
,
5829 {&hf_radiotap_spatial_reuse_4
,
5830 {"Spatial Reuse 4", "radiotap.he.data_4.spatial_reuse_4",
5831 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_4_MASK
,
5834 {&hf_radiotap_spatial_reuse_4_unknown
,
5835 {"Spatial Reuse 4 unknown", "radiotap.he.data_4.spatial_reuse_4_unknown",
5836 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_4_MASK
,
5839 {&hf_radiotap_sta_id_user_captured
,
5840 {"STA-ID of user data captured for", "radiotap.he.data_4.sta_id_user",
5841 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_STA_ID_MASK
,
5844 {&hf_radiotap_he_mu_reserved
,
5845 {"Reserved", "radiotap.he.data_4.reserved_d4_b15",
5846 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_RESERVED_D4_B15
,
5849 {&hf_radiotap_he_info_data_4
,
5850 {"HE Data 4", "radiotap.he.data_4",
5851 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5852 "Data 1 of the HE Info field", HFILL
}},
5854 {&hf_radiotap_data_bandwidth_ru_allocation
,
5855 {"data Bandwidth/RU allocation", "radiotap.he.data_5.data_bw_ru_allocation",
5856 FT_UINT16
, BASE_HEX
, VALS(he_data_bw_ru_alloc_vals
),
5857 IEEE80211_RADIOTAP_HE_DATA_BANDWIDTH_RU_ALLOC_MASK
, NULL
, HFILL
}},
5859 {&hf_radiotap_data_bandwidth_ru_allocation_unknown
,
5860 {"data Bandwidth/RU allocation unknown",
5861 "radiotap.he.data_5.data_bw_ru_allocation_unknown",
5862 FT_UINT16
, BASE_HEX
, NULL
,
5863 IEEE80211_RADIOTAP_HE_DATA_BANDWIDTH_RU_ALLOC_MASK
, NULL
, HFILL
}},
5866 {"GI", "radiotap.he.data_5.gi",
5867 FT_UINT16
, BASE_HEX
, VALS(he_gi_vals
), IEEE80211_RADIOTAP_HE_GI_MASK
,
5870 {&hf_radiotap_gi_unknown
,
5871 {"GI unknown", "radiotap.he.data_5.gi_unknown",
5872 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_GI_MASK
,
5875 {&hf_radiotap_ltf_symbol_size
,
5876 {"LTF symbol size", "radiotap.he.data_5.ltf_symbol_size",
5877 FT_UINT16
, BASE_HEX
, VALS(he_ltf_symbol_size_vals
),
5878 IEEE80211_RADIOTAP_HE_LTF_SYMBOL_SIZE
, NULL
, HFILL
}},
5880 {&hf_radiotap_ltf_symbol_size_unknown
,
5881 {"LTF symbol size unknown", "radiotap.he.data_5.ltf_symbol_size_unknown",
5882 FT_UINT16
, BASE_HEX
, NULL
,
5883 IEEE80211_RADIOTAP_HE_LTF_SYMBOL_SIZE
, NULL
, HFILL
}},
5885 {&hf_radiotap_num_ltf_symbols
,
5886 {"LTF symbols", "radiotap.he.num_ltf_symbols",
5887 FT_UINT16
, BASE_HEX
, VALS(he_num_ltf_symbols_vals
),
5888 IEEE80211_RADIOTAP_HE_NUM_LTF_SYMBOLS_MASK
, NULL
, HFILL
}},
5890 {&hf_radiotap_num_ltf_symbols_unknown
,
5891 {"LTF symbols unknown", "radiotap.he.num_ltf_symbols_unknown",
5892 FT_UINT16
, BASE_HEX
, NULL
,
5893 IEEE80211_RADIOTAP_HE_NUM_LTF_SYMBOLS_MASK
, NULL
, HFILL
}},
5895 {&hf_radiotap_d5_reserved_b11
,
5896 {"reserved", "radiotap.he.data_5.reserved_d5_b11",
5897 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_RESERVED_D5_B11
,
5900 {&hf_radiotap_pre_fec_padding_factor
,
5901 {"Pre-FEC Padding Factor", "radiotap.he.pre_fec_padding_factor",
5902 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_PRE_FEC_PADDING_FACTOR_MASK
,
5905 {&hf_radiotap_pre_fec_padding_factor_unknown
,
5906 {"Pre-FEC Padding Factor unknown", "radiotap.he.pre_fec_padding_factor_unknown",
5907 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_PRE_FEC_PADDING_FACTOR_MASK
,
5911 {"TxBF", "radiotap.he.txbf",
5912 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_TXBF
,
5915 {&hf_radiotap_txbf_unknown
,
5916 {"TxBF unknown", "radiotap.he.txbf_unknown",
5917 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_TXBF
,
5920 {&hf_radiotap_pe_disambiguity
,
5921 {"PE Disambiguity", "radiotap.he.pe_disambiguity",
5922 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_PE_DISAMBIGUITY
,
5925 {&hf_radiotap_pe_disambiguity_unknown
,
5926 {"PE Disambiguity unknown", "radiotap.he.pe_disambiguity_unknown",
5927 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_PE_DISAMBIGUITY
,
5930 {&hf_radiotap_he_info_data_5
,
5931 {"HE Data 5", "radiotap.he.data_5",
5932 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5933 "Data 1 of the HE Info field", HFILL
}},
5935 {&hf_radiotap_he_nsts
,
5936 {"NSTS", "radiotap.he.data_6.nsts",
5937 FT_UINT16
, BASE_HEX
, VALS(he_nsts_vals
),IEEE80211_RADIOTAP_HE_NSTS_MASK
,
5940 {&hf_radiotap_he_doppler_value
,
5941 {"Doppler value", "radiotap.he.data_6.doppler_value",
5942 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DOPLER_VALUE
,
5945 {&hf_radiotap_he_doppler_value_unknown
,
5946 {"Doppler value unknown", "radiotap.he.data_6.doppler_value_unknown",
5947 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DOPLER_VALUE
,
5950 {&hf_radiotap_he_d6_reserved_00e0
,
5951 {"Reserved", "radiotap.he.data_6.reserved_d6_00e0",
5952 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_RESERVED_D6_00E0
,
5955 {&hf_radiotap_he_txop_value
,
5956 {"TXOP value", "radiotap.he.data_6.txop_value",
5957 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_TXOP_VALUE_MASK
,
5960 {&hf_radiotap_he_txop_value_unknown
,
5961 {"TXOP value unknown", "radiotap.he.data_6.txop_value_unknown",
5962 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_TXOP_VALUE_MASK
,
5965 {&hf_radiotap_midamble_periodicity
,
5966 {"midamble periodicity", "radiotap.he.data_6.midamble_periodicity",
5967 FT_UINT16
, BASE_HEX
, VALS(he_midamble_periodicity_vals
),
5968 IEEE80211_RADIOTAP_HE_MIDAMBLE_PERIODICITY
, NULL
, HFILL
}},
5970 {&hf_radiotap_midamble_periodicity_unknown
,
5971 {"midamble periodicity unknown",
5972 "radiotap.he.data_6.midamble_periodicity_unknown",
5973 FT_UINT16
, BASE_HEX
, NULL
,
5974 IEEE80211_RADIOTAP_HE_MIDAMBLE_PERIODICITY
, NULL
, HFILL
}},
5976 {&hf_radiotap_he_info_data_6
,
5977 {"HE Data 6", "radiotap.he.data_6",
5978 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5979 "Data 1 of the HE Info field", HFILL
}},
5981 {&hf_radiotap_he_mu_sig_b_mcs
,
5982 {"SIG-B MCS (from SIG-A)", "radiotap.he_mu.sig_b_mcs",
5983 FT_UINT16
, BASE_HEX
, NULL
,
5984 IEEE80211_RADIOTAP_HE_MU_SIG_B_MCS_MASK
, NULL
, HFILL
}},
5986 {&hf_radiotap_he_mu_sig_b_mcs_unknown
,
5987 {"SIG-B MCS (from SIG-A) unknown",
5988 "radiotap.he_mu.sig_b_mcs_unknown",
5989 FT_UINT16
, BASE_HEX
, NULL
,
5990 IEEE80211_RADIOTAP_HE_MU_SIG_B_MCS_MASK
, NULL
, HFILL
}},
5992 {&hf_radiotap_he_mu_sig_b_mcs_known
,
5993 {"SIG-B MCS known", "radiotap.he_mu.sig_b_mcs_known",
5994 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5995 IEEE80211_RADIOTAP_HE_MU_SIG_B_MCS_KNOWN
, NULL
, HFILL
}},
5997 {&hf_radiotap_he_mu_sig_b_dcm
,
5998 {"SIG-B DCM (from SIG-A)", "radiotap.he_mu.sig_b_dcm",
5999 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_MU_SIG_B_DCM
,
6002 {&hf_radiotap_he_mu_sig_b_dcm_unknown
,
6003 {"SIG-B DCM (from SIG-A) unknown",
6004 "radiotap.he_mu.sig_b_dcm_unknown",
6005 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_MU_SIG_B_DCM
,
6008 {&hf_radiotap_he_mu_sig_b_dcm_known
,
6009 {"SIG-B DCM known", "radiotap.he_mu.sig_b_dmc_known",
6010 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6011 IEEE80211_RADIOTAP_HE_MU_SIG_B_DCM_KNOWN
, NULL
, HFILL
}},
6013 {&hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_known
,
6014 {"Channel2 center 26-tone RU bit known", "radiotap.he_mu.chan2_center_26_tone_ru_bit_known",
6015 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6016 IEEE80211_RADIOTAP_HE_MU_CHAN2_CENTER_26_TONE_RU_BIT_KNOWN
, NULL
, HFILL
}},
6018 {&hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_unknown
,
6019 {"Channel2 center 26-tone RU bit known", "radiotap.he_mu.chan2_center_26_tone_ru_bit_unknown",
6020 FT_UINT16
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6021 IEEE80211_RADIOTAP_HE_MU_CHAN2_CENTER_26_TONE_RU_BIT_KNOWN
, NULL
, HFILL
}},
6023 {&hf_radiotap_he_mu_chan1_rus_known
,
6024 {"Channel 1 RUs known", "radiotap.he_mu.chan1_rus_known",
6025 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6026 IEEE80211_RADIOTAP_HE_MU_CHAN1_RUS_KNOWN
, NULL
, HFILL
}},
6028 {&hf_radiotap_he_mu_chan1_rus_unknown
,
6029 {"Channel 1 RUs unknown", "radiotap.he_mu.chan1_rus_unknown",
6030 FT_UINT16
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6031 IEEE80211_RADIOTAP_HE_MU_CHAN1_RUS_KNOWN
, NULL
, HFILL
}},
6033 {&hf_radiotap_he_mu_chan2_rus_known
,
6034 {"Channel 2 RUs known", "radiotap.he_mu.chan2_rus_known",
6035 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6036 IEEE80211_RADIOTAP_HE_MU_CHAN2_RUS_KNOWN
, NULL
, HFILL
}},
6038 {&hf_radiotap_he_mu_chan2_rus_unknown
,
6039 {"Channel 2 RUs unknown", "radiotap.he_mu.chan2_rus_unknown",
6040 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6041 IEEE80211_RADIOTAP_HE_MU_CHAN2_RUS_KNOWN
, NULL
, HFILL
}},
6043 {&hf_radiotap_he_mu_reserved_f1_b10_b11
,
6044 {"Reserved", "radiotap.he_mu.reserved_f1_b10_b11",
6045 FT_UINT16
, BASE_HEX
, NULL
,
6046 IEEE80211_RADIOTAP_HE_MU_RESERVED_F1_B10_B11
, NULL
, HFILL
}},
6048 {&hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_known
,
6049 {"Channel1 center 26-tone RU bit known", "radiotap.he_mu.chan1_center_26_tone_ru_bit_known",
6050 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6051 IEEE80211_RADIOTAP_HE_MU_CHAN1_CENTER_26_TONE_RU_BIT_KNOWN
, NULL
, HFILL
}},
6053 {&hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_unknown
,
6054 {"Channel1 center 26-tone RU bit known", "radiotap.he_mu.chan1_center_26_tone_ru_bit_unknown",
6055 FT_UINT16
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6056 IEEE80211_RADIOTAP_HE_MU_CHAN1_CENTER_26_TONE_RU_BIT_KNOWN
, NULL
, HFILL
}},
6058 {&hf_radiotap_he_mu_chan1_center_26_tone_ru_value
,
6059 {"Channel1 center 26-tone RU value", "radiotap.he_mu.chan1_center_26_tone_ru_value",
6060 FT_UINT16
, BASE_HEX
, NULL
,
6061 IEEE80211_RADIOTAP_HE_MU_CHAN1_CENTER_26_TONE_RU_VALUE
, NULL
, HFILL
}},
6063 {&hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_known
,
6064 {"# of HE-SIG-B Symbols/MU-MINO users known",
6065 "radiotap.he_mu.symbol_cnt_or_user_cnt_known",
6066 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6067 IEEE80211_RADIOTAP_HE_MU_SYMBOL_CNT_OR_USER_CNT_KNOWN
,
6070 {&hf_radiotap_he_mu_info_flags_1
,
6071 {"HE-MU Flags 1", "radiotap.he_mu.flags_1",
6072 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
6073 "Flags 1 of the HE-MU Info field", HFILL
}},
6075 {&hf_radiotap_he_mu_bw_from_bw_in_sig_a
,
6076 {"bandwidth from Bandwidth field in SIG-A",
6077 "radiotap.he_mu.bw_from_sig_a",
6078 FT_UINT16
, BASE_DEC
, NULL
,
6079 IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_MASK
, NULL
, HFILL
}},
6081 {&hf_radiotap_he_mu_bw_from_bw_in_sig_a_unknown
,
6082 {"bandwidth from Bandwidth field in SIG-A unknown",
6083 "radiotap.he_mu.bw_from_sig_a_unknown",
6084 FT_UINT16
, BASE_DEC
, NULL
,
6085 IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_MASK
, NULL
, HFILL
}},
6087 {&hf_radiotap_he_mu_bw_from_bw_in_sig_a_known
,
6088 {"bandwidth from Bandwidth field in SIG-A known",
6089 "radiotap.he_mu.bw_from_sig_a_known",
6090 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6091 IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_KNOWN
, NULL
, HFILL
}},
6093 {&hf_radiotap_he_mu_sig_b_compression_from_sig_a
,
6094 {"SIG-B compression from SIG-A", "radiotap.he_mu.sig_b_compression",
6095 FT_BOOLEAN
, 16, NULL
,
6096 IEEE80211_RADIOTAP_HE_MU_SIG_B_COMPRESSION_FROM_SIG_A
,
6099 {&hf_radiotap_he_mu_sig_b_compression_known
,
6100 {"SIG-B compression known", "radiotap.he_mu.sig_b_compression_known",
6101 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6102 IEEE80211_RADIOTAP_HE_MU_SIG_B_COMPRESSION_KNOWN
, NULL
, HFILL
}},
6104 {&hf_radiotap_he_mu_sig_b_compression_unknown
,
6105 {"SIG-B compression unknown", "radiotap.he_mu.sig_b_compression_unknown",
6106 FT_UINT16
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6107 IEEE80211_RADIOTAP_HE_MU_SIG_B_COMPRESSION_FROM_SIG_A
, NULL
, HFILL
}},
6109 {&hf_radiotap_he_mu_sig_b_syms_mu_mimo_users
,
6110 {"# of HE-SIG-B Symbols or # of MU-MIMO Users",
6111 "radiotap.he_mu.sig_b_syms_or_mu_mimo_users",
6112 FT_UINT16
, BASE_CUSTOM
, CF_FUNC(he_sig_b_symbols_custom
),
6113 IEEE80211_RADIOTAP_HE_MU_SYMBOL_CNT_OR_USER_CNT
, NULL
, HFILL
}},
6115 {&hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_unknown
,
6116 {"# of HE-SIG-B Symbols or # of MU-MIMO Users unknown",
6117 "radiotap.he_mu.sig_b_syms_or_mu_mimo_users_unknown",
6118 FT_UINT16
, BASE_DEC
, NULL
,
6119 IEEE80211_RADIOTAP_HE_MU_SYMBOL_CNT_OR_USER_CNT
, NULL
, HFILL
}},
6121 {&hf_radiotap_he_mu_preamble_puncturing
,
6122 {"preamble puncturing from Bandwidth field in HE-SIG-A",
6123 "radiotap.he_mu.preamble_puncturing",
6124 FT_UINT16
, BASE_HEX
, NULL
,
6125 IEEE80211_RADIOTAP_HE_MU_PREAMBLE_PUNCTURING_MASK
, NULL
, HFILL
}},
6127 {&hf_radiotap_he_mu_preamble_puncturing_unknown
,
6128 {"preamble puncturing from Bandwidth field in HE-SIG-A unknown",
6129 "radiotap.he_mu.preamble_puncturing",
6130 FT_UINT16
, BASE_HEX
, NULL
,
6131 IEEE80211_RADIOTAP_HE_MU_PREAMBLE_PUNCTURING_MASK
, NULL
, HFILL
}},
6133 {&hf_radiotap_he_mu_preamble_puncturing_known
,
6134 {"preamble puncturing from Bandwidth field in HE-SIG-A known",
6135 "radiotap.he_mu.preamble_puncturing_known",
6136 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6137 IEEE80211_RADIOTAP_HE_MU_PREAMBLE_PUNCTURING_KNOWN
, NULL
, HFILL
}},
6139 {&hf_radiotap_he_mu_chan2_center_26_tone_ru_value
,
6140 {"Chan2 Center 26 Tone RU Value",
6141 "radiotap.he_mu.chan2_center_26_tone_ru_value",
6142 FT_UINT16
, BASE_HEX
, NULL
,
6143 IEEE80211_RADIOTAP_HE_MU_CHAN2_CENTER_26_TONE_RU_VALUE
,
6146 {&hf_radiotap_he_mu_reserved_f2_b12_b15
,
6147 {"Reserved", "radiotap.he_mu.reserved_f2_b12_b15",
6148 FT_UINT16
, BASE_HEX
, NULL
,
6149 IEEE80211_RADIOTAP_HE_MU_RESERVED_F2_B12_B15
, NULL
, HFILL
}},
6151 {&hf_radiotap_he_mu_info_flags_2
,
6152 {"HE-MU Flags 2", "radiotap.he_mu.flags_2",
6153 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
6154 "Flags 2 of the HE-MU Info field", HFILL
}},
6156 {&hf_radiotap_he_mu_chan1_rus_0
,
6157 {"Chan1 RU[0] index", "radiotap.he_mu.chan1_rus_0_index",
6158 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6160 {&hf_radiotap_he_mu_chan1_rus_0_unknown
,
6161 {"Chan1 RU[0] index unknown",
6162 "radiotap.he_mu.chan1_rus_0_index_unknown",
6163 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6166 {&hf_radiotap_he_mu_chan1_rus_1
,
6167 {"Chan1 RU[1] index", "radiotap.he_mu.chan1_rus_1_index",
6168 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6170 {&hf_radiotap_he_mu_chan1_rus_1_unknown
,
6171 {"Chan1 RU[1] index unknown",
6172 "radiotap.he_mu.chan1_rus_1_index_unknown",
6173 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6176 {&hf_radiotap_he_mu_chan1_rus_2
,
6177 {"Chan1 RU[2] index", "radiotap.he_mu.chan1_rus_2_index",
6178 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6180 {&hf_radiotap_he_mu_chan1_rus_2_unknown
,
6181 {"Chan1 RU[2] index unknown",
6182 "radiotap.he_mu.chan1_rus_2_index_unknown",
6183 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6186 {&hf_radiotap_he_mu_chan1_rus_3
,
6187 {"Chan1 RU[3] index", "radiotap.he_mu.chan1_rus_3_index",
6188 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6190 {&hf_radiotap_he_mu_chan1_rus_3_unknown
,
6191 {"Chan1 RU[3] index unknown",
6192 "radiotap.he_mu.chan1_rus_3_index_unknown",
6193 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6196 {&hf_radiotap_he_mu_chan2_rus_0
,
6197 {"Chan2 RU[0] index", "radiotap.he_mu.chan2_rus_0_index",
6198 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6200 {&hf_radiotap_he_mu_chan2_rus_0_unknown
,
6201 {"Chan2 RU[0] index unknown",
6202 "radiotap.he_mu.chan2_rus_0_index_unknown",
6203 FT_UINT8
, BASE_CUSTOM
,
6204 CF_FUNC(not_captured_custom
), 0x0, NULL
, HFILL
}},
6206 {&hf_radiotap_he_mu_chan2_rus_1
,
6207 {"Chan2 RU[1] index", "radiotap.he_mu.chan2_rus_1_index",
6208 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6210 {&hf_radiotap_he_mu_chan2_rus_1_unknown
,
6211 {"Chan2 RU[1] index unknown",
6212 "radiotap.he_mu.chan2_rus_1_index_unknown",
6213 FT_UINT8
, BASE_CUSTOM
,
6214 CF_FUNC(not_captured_custom
), 0x0, NULL
, HFILL
}},
6216 {&hf_radiotap_he_mu_chan2_rus_2
,
6217 {"Chan2 RU[2] index", "radiotap.he_mu.chan2_rus_2_index",
6218 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6220 {&hf_radiotap_he_mu_chan2_rus_2_unknown
,
6221 {"Chan2 RU[2] index unknown",
6222 "radiotap.he_mu.chan2_rus_2_index_unknown",
6223 FT_UINT8
, BASE_CUSTOM
,
6224 CF_FUNC(not_captured_custom
), 0x0, NULL
, HFILL
}},
6226 {&hf_radiotap_he_mu_chan2_rus_3
,
6227 {"Chan2 RU[3] index", "radiotap.he_mu.chan2_rus_3_index",
6228 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6230 {&hf_radiotap_he_mu_chan2_rus_3_unknown
,
6231 {"Chan2 RU[3] index unknown",
6232 "radiotap.he_mu.chan2_rus_3_index_unknown",
6233 FT_UINT8
, BASE_CUSTOM
,
6234 CF_FUNC(not_captured_custom
), 0x0, NULL
, HFILL
}},
6236 {&hf_radiotap_0_length_psdu_type
,
6237 {"Type", "radiotap.0_len_psdu.type",
6238 FT_UINT8
, BASE_HEX
|BASE_RANGE_STRING
,
6239 RVALS(zero_length_psdu_rsvals
), 0x0, NULL
, HFILL
}},
6241 {&hf_radiotap_l_sig_data_1
,
6242 {"Data1", "radiotap.l_sig.data1",
6243 FT_UINT16
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
6245 {&hf_radiotap_l_sig_rate_known
,
6246 {"rate known", "radiotap.l_sig.rate_known",
6247 FT_BOOLEAN
, 16, NULL
,
6248 IEEE80211_RADIOTAP_L_SIG_RATE_KNOWN
, NULL
, HFILL
}},
6250 {&hf_radiotap_l_sig_length_known
,
6251 {"length known", "radiotap.l_sig.length_known",
6252 FT_BOOLEAN
, 16, NULL
,
6253 IEEE80211_RADIOTAP_L_SIG_LENGTH_KNOWN
, NULL
, HFILL
}},
6255 {&hf_radiotap_l_sig_reserved
,
6256 {"reserved", "radiotap.l_sig.reserved",
6257 FT_UINT16
, BASE_HEX
, NULL
,
6258 IEEE80211_RADIOTAP_L_SIG_RESERVED_MASK
, NULL
, HFILL
}},
6260 {&hf_radiotap_l_sig_data_2
,
6261 {"Data2", "radiotap.l_sig.data2",
6262 FT_UINT16
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6264 {&hf_radiotap_l_sig_rate
,
6265 {"rate", "radiotap.l_sig.rate",
6266 FT_UINT16
, BASE_DEC
, NULL
,
6267 IEEE80211_RADIOTAP_L_SIG_RATE_MASK
, NULL
, HFILL
}},
6269 {&hf_radiotap_l_sig_length
,
6270 {"length", "radiotap.l_sig.length",
6271 FT_UINT16
, BASE_DEC
, NULL
,
6272 IEEE80211_RADIOTAP_L_SIG_LENGTH_MASK
, NULL
, HFILL
}},
6274 {&hf_radiotap_u_sig_common
,
6275 {"U-SIG common", "radiotap.u_sig.common",
6276 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6278 {&hf_radiotap_usig_phy_version_identifier_known
,
6279 {"PHY version identifier known",
6280 "radiotap.u_sig.common.phy_version_identifier_known",
6281 FT_BOOLEAN
, 32, NULL
, 0x00000001, NULL
, HFILL
}},
6283 {&hf_radiotap_usig_bw_known
,
6284 {"BW known", "radiotap.u_sig.common.bw_known",
6285 FT_BOOLEAN
, 32, NULL
, 0x00000002, NULL
, HFILL
}},
6287 {&hf_radiotap_usig_ul_dl_known
,
6288 {"UL/DL known", "radiotap.u_sig.common.ul_dl_known",
6289 FT_BOOLEAN
, 32, NULL
, 0x00000004, NULL
, HFILL
}},
6291 {&hf_radiotap_usig_bss_color_known
,
6292 {"BSS Color known", "radiotap.u_sig.common.bss_color_known",
6293 FT_BOOLEAN
, 32, NULL
, 0x00000008, NULL
, HFILL
}},
6295 {&hf_radiotap_usig_txop_known
,
6296 {"TXOP known", "radiotap.u_sig.common.txop_known",
6297 FT_BOOLEAN
, 32, NULL
, 0x00000010, NULL
, HFILL
}},
6299 {&hf_radiotap_usig_bad_u_sig_crc
,
6300 {"Bad U-SIG CRC", "radiotap.u_sig.common.bad_u_sig_crc",
6301 FT_BOOLEAN
, 32, NULL
, 0x00000020, NULL
, HFILL
}},
6303 {&hf_radiotap_usig_validate_bits_checked
,
6304 {"Validate bits checked", "radiotap.u_sig.common.validate_bits_checked",
6305 FT_BOOLEAN
, 32, NULL
, 0x00000040, NULL
, HFILL
}},
6307 {&hf_radiotap_usig_validate_bits_ok
,
6308 {"Validate bits OK", "radiotap.u_sig.common.validate_bits_ok",
6309 FT_BOOLEAN
, 32, NULL
, 0x00000080, NULL
, HFILL
}},
6311 {&hf_radiotap_usig_reserved
,
6312 {"Reserved", "radiotap.u_sig.common.reserved",
6313 FT_UINT32
, BASE_HEX
, NULL
, 0x00000fc0, NULL
, HFILL
}},
6315 {&hf_radiotap_usig_phy_version_id
,
6316 {"Phy version identifier",
6317 "radiotap.u_sig.common.phy_version_identifier",
6318 FT_UINT32
, BASE_DEC
, NULL
, 0x00007000, NULL
, HFILL
}},
6320 {&hf_radiotap_usig_bw
,
6321 {"BW", "radiotap.u_sig.common.bw",
6322 FT_UINT32
, BASE_HEX
, VALS(eht_u_sig_bw_vals
), 0x00038000,
6325 {&hf_radiotap_usig_ul_dl
,
6326 {"UL/DL", "radiotap.u_sig.common.ul_dl",
6327 FT_BOOLEAN
, 32, NULL
, 0x00040000, NULL
, HFILL
}},
6329 {&hf_radiotap_usig_bss_color
,
6330 {"BSS Color", "radiotap.u_sig.common.bss_color",
6331 FT_UINT32
, BASE_DEC
, NULL
, 0x01f80000, NULL
, HFILL
}},
6333 {&hf_radiotap_usig_txop
,
6334 {"TXOP", "radiotap.u_sig.common.txop",
6335 FT_UINT32
, BASE_DEC
, NULL
, 0xfe000000, NULL
, HFILL
}},
6337 {&hf_radiotap_u_sig_mask
,
6338 {"mask", "radiotap.u_sig.mask",
6339 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6341 {&hf_radiotap_usig_value_mu_ppdu
,
6342 {"EHT MU PPDU", "radiotap.u_sig.value.mu_ppdu",
6343 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6345 {&hf_radiotap_usig_eht_mu_b20_b24
,
6347 "radiotap.u_sig.value.mu_ppdu.u_sig_1_b20_b24",
6348 FT_UINT32
, BASE_HEX
, NULL
, 0x0000001f, NULL
, HFILL
}},
6350 {&hf_radiotap_usig_eht_mu_b20_b24_not_known
,
6351 {"U-SIG-1 B20-B24 not known",
6352 "radiotap.u_sig.value.mu_ppdu.u_sig_1_b20_b24_not_known",
6353 FT_UINT32
, BASE_HEX
, NULL
, 0x0000001f, NULL
, HFILL
}},
6355 {&hf_radiotap_usig_eht_mu_b25
,
6356 {"U-SIG-1 B25", "radiotap.u_sig.value.mu_ppdu.u_sig_1_b25",
6357 FT_UINT32
, BASE_HEX
, NULL
, 0x00000020, NULL
, HFILL
}},
6359 {&hf_radiotap_usig_eht_mu_b25_not_known
,
6360 {"U-SIG-1 B25 not known",
6361 "radiotap.u_sig.value.mu_ppdu.u_sig_1_b25_not_known",
6362 FT_UINT32
, BASE_HEX
, NULL
, 0x00000020, NULL
, HFILL
}},
6364 {&hf_radiotap_usig_ppdu_type_and_comp_mode
,
6365 {"PPDU Type and Compression Mode",
6366 "radiotap.u_sig.value.ppdu_type_and_compression_mode",
6367 FT_UINT32
, BASE_HEX
, NULL
, 0x000000c0, NULL
, HFILL
}},
6369 {&hf_radiotap_usig_validate1
,
6370 {"Validate", "radiotap.u_sig.value.mu_ppdu.validate1",
6371 FT_UINT32
, BASE_HEX
, NULL
, 0x00000100, NULL
, HFILL
}},
6373 {&hf_radiotap_usig_validate1_not_known
,
6374 {"Validate not known",
6375 "radiotap.u_sig.value.mu_ppdu.validate1_not_known",
6376 FT_UINT32
, BASE_HEX
, NULL
, 0x00000100, NULL
, HFILL
}},
6378 {&hf_radiotap_usig_punctured_channel_info
,
6379 {"Punctured Channel Information",
6380 "radiotap.u_sig.value.mu_ppdu.punctured_channel_information",
6381 FT_UINT32
, BASE_HEX
, NULL
, 0x00003e00, NULL
, HFILL
}},
6383 {&hf_radiotap_usig_punctured_channel_info_not_known
,
6384 {"Punctured Channel Information not known",
6385 "radiotap.u_sig.value.mu_ppdu.punctured_channel_information_not_known",
6386 FT_UINT32
, BASE_HEX
, NULL
, 0x00003e00, NULL
, HFILL
}},
6388 {&hf_radiotap_usig_validate2
,
6389 {"Validate", "radiotap.u_sig.value.mu_ppdu.validate2",
6390 FT_UINT32
, BASE_HEX
, NULL
, 0x00004000, NULL
, HFILL
}},
6392 {&hf_radiotap_usig_validate2_not_known
,
6393 {"Validate not known",
6394 "radiotap.u_sig.value.mu_ppdu.validate2_not_known",
6395 FT_UINT32
, BASE_HEX
, NULL
, 0x00004000, NULL
, HFILL
}},
6397 {&hf_radiotap_usig_eht_sig_mcs
,
6398 {"EHT-SIG MCS", "radiotap.u_sig.value.mu_ppdu.eht_sig_mcs",
6399 FT_UINT32
, BASE_HEX
, NULL
, 0x00018000, NULL
, HFILL
}},
6401 {&hf_radiotap_usig_eht_sig_mcs_not_known
,
6402 {"EHT-SIG MCS not known",
6403 "radiotap.u_sig.value.mu_ppdu.eht_sig_mcs_not_known",
6404 FT_UINT32
, BASE_HEX
, NULL
, 0x00018000, NULL
, HFILL
}},
6406 {&hf_radiotap_usig_number_eht_sig_symbols
,
6407 {"Number of EHT-SIG Symbols",
6408 "radiotap.u_sig.value.mu_ppdu.number_of_eht_sig_symbols",
6409 FT_UINT32
, BASE_HEX
, NULL
, 0x003e0000, NULL
, HFILL
}},
6411 {&hf_radiotap_usig_number_eht_sig_symbols_not_known
,
6412 {"Number of EHT-SIG Symbols not known",
6413 "radiotap.u_sig.value.mu_ppdu.number_of_eht_sig_symbols_not_known",
6414 FT_UINT32
, BASE_HEX
, NULL
, 0x003e0000, NULL
, HFILL
}},
6416 {&hf_radiotap_usig_crc
,
6417 {"CRC", "radiotap.u_sig.value.mu_ppdu.crc",
6418 FT_UINT32
, BASE_HEX
, NULL
, 0x03c00000, NULL
, HFILL
}},
6420 {&hf_radiotap_usig_crc_not_known
,
6421 {"CRC not known", "radiotap.u_sig.value.mu_ppdu.crc_not_known",
6422 FT_UINT32
, BASE_HEX
, NULL
, 0x03c00000, NULL
, HFILL
}},
6424 {&hf_radiotap_usig_tail
,
6425 {"Tail", "radiotap.u_sig.value.mu_ppdu.tail",
6426 FT_UINT32
, BASE_HEX
, NULL
, 0xfc000000, NULL
, HFILL
}},
6428 {&hf_radiotap_usig_tail_not_known
,
6429 {"Tail not known", "radiotap.u_sig.value.mu_ppdu.tail_not_known",
6430 FT_UINT32
, BASE_HEX
, NULL
, 0xfc000000, NULL
, HFILL
}},
6432 {&hf_radiotap_usig_value_tb_ppdu
,
6433 {"EHT TB PPDU", "radiotap.u_sig.value.tb_ppdu",
6434 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6436 {&hf_radiotap_usig_eht_tb_b20_b25
,
6437 {"Disregard", "radiotap.u_sig.value.tb_ppdu.disregard",
6438 FT_UINT32
, BASE_HEX
, NULL
, 0x0000003f, NULL
, HFILL
}},
6440 {&hf_radiotap_usig_eht_tb_b20_b25_not_known
,
6441 {"Disregard not known",
6442 "radiotap.u_sig.value.tb_ppdu.disregard_not_known",
6443 FT_UINT32
, BASE_HEX
, NULL
, 0x0000003f, NULL
, HFILL
}},
6445 {&hf_radiotap_usig_eht_tb_validate1
,
6446 {"Validate", "radiotap.u_sig.value.tb_ppdu.validate1",
6447 FT_UINT32
, BASE_HEX
, NULL
, 0x00000100, NULL
, HFILL
}},
6449 {&hf_radiotap_usig_eht_tb_validate1_not_known
,
6450 {"Validate not known",
6451 "radiotap.u_sig.value.tb_ppdu.validate1_not_known",
6452 FT_UINT32
, BASE_HEX
, NULL
, 0x00000100, NULL
, HFILL
}},
6454 {&hf_radiotap_usig_eht_tb_spatial_reuse_1
,
6456 "radiotap.u_sig.value.tb_ppdu.spatial_reuse_1",
6457 FT_UINT32
, BASE_HEX
, NULL
, 0x00001e00, NULL
, HFILL
}},
6459 {&hf_radiotap_usig_eht_tb_spatial_reuse_1_not_known
,
6460 {"Spatial Reuse 1 not known",
6461 "radiotap.u_sig.value.tb_ppdu.spatial_reuse_1_not_known",
6462 FT_UINT32
, BASE_HEX
, NULL
, 0x00001e00, NULL
, HFILL
}},
6464 {&hf_radiotap_usig_eht_tb_spatial_reuse_2
,
6466 "radiotap.u_sig.value.tb_ppdu.spatial_reuse_2",
6467 FT_UINT32
, BASE_HEX
, NULL
, 0x0001e000, NULL
, HFILL
}},
6469 {&hf_radiotap_usig_eht_tb_spatial_reuse_2_not_known
,
6470 {"Spatial Reuse 2 not known",
6471 "radiotap.u_sig.value.tb_ppdu.spatial_reuse_2_not_known",
6472 FT_UINT32
, BASE_HEX
, NULL
, 0x0001e000, NULL
, HFILL
}},
6474 {&hf_radiotap_usig_eht_tb_disregard
,
6475 {"Disregard", "radiotap.u_sig.value.tb_ppdu.disregard",
6476 FT_UINT32
, BASE_HEX
, NULL
, 0x003e0000, NULL
, HFILL
}},
6478 {&hf_radiotap_usig_eht_tb_disregard_not_known
,
6479 {"Disregard not known",
6480 "radiotap.u_sig.value.tb_ppdu.disregard_not_known",
6481 FT_UINT32
, BASE_HEX
, NULL
, 0x003e0000, NULL
, HFILL
}},
6483 {&hf_radiotap_usig_eht_tb_crc
,
6484 {"CRC", "radiotap.u_sig.value.tb_ppdu.crc",
6485 FT_UINT32
, BASE_HEX
, NULL
, 0x03c00000, NULL
, HFILL
}},
6487 {&hf_radiotap_usig_eht_tb_crc_not_known
,
6488 {"CRC not known", "radiotap.u_sig.value.tb_ppdu.crc_not_known",
6489 FT_UINT32
, BASE_HEX
, NULL
, 0x03c00000, NULL
, HFILL
}},
6491 {&hf_radiotap_usig_eht_tb_tail
,
6492 {"Tail", "radiotap.u_sig.value.tb_ppdu.tail",
6493 FT_UINT32
, BASE_HEX
, NULL
, 0xfc000000, NULL
, HFILL
}},
6495 {&hf_radiotap_usig_eht_tb_tail_not_known
,
6497 "radiotap.u_sig.value.tb_ppdu.tail_not_known",
6498 FT_UINT32
, BASE_HEX
, NULL
, 0xfc000000, NULL
, HFILL
}},
6500 {&hf_radiotap_eht_known
,
6501 {"known", "radiotap.eht.known",
6502 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6504 {&hf_radiotap_eht_reserved_1
,
6506 "radiotap.eht.known.reserved_1",
6507 FT_UINT32
, BASE_HEX
, NULL
, 0x00000001, NULL
, HFILL
}},
6509 {&hf_radiotap_eht_spatial_reuse_known
,
6510 {"Spatial Reuse Known",
6511 "radiotap.eht.known.spatial_reuse_known",
6512 FT_BOOLEAN
, 32, NULL
, 0x00000002, NULL
, HFILL
}},
6514 {&hf_radiotap_eht_guard_interval_known
,
6515 {"Guard Interval Known",
6516 "radiotap.eht.known.guard_interval_known",
6517 FT_BOOLEAN
, 32, NULL
, 0x00000004, NULL
, HFILL
}},
6519 {&hf_radiotap_eht_reserved_8
,
6521 "radiotap.eht.known.reserved_8",
6522 FT_BOOLEAN
, 32, NULL
, 0x00000008, NULL
, HFILL
}},
6524 {&hf_radiotap_eht_number_ltf_symbols_known
,
6525 {"Number of LTF symbols Known",
6526 "radiotap.eht.known.number_ltf_symbols_known",
6527 FT_BOOLEAN
, 32, NULL
, 0x00000010, NULL
, HFILL
}},
6529 {&hf_radiotap_eht_ldpc_extra_symbol_segment_known
,
6530 {"LDPC Extra Symbol Segment Known",
6531 "radiotap.eht.known.ldpc_extra_symbol_segment_known",
6532 FT_BOOLEAN
, 32, NULL
, 0x00000020, NULL
, HFILL
}},
6534 {&hf_radiotap_eht_pre_fec_padding_factor_known
,
6535 {"Pre-FEC Padding Factor Known",
6536 "radiotap.eht.known.pre_fec_padding_factor_known",
6537 FT_BOOLEAN
, 32, NULL
, 0x00000040, NULL
, HFILL
}},
6539 {&hf_radiotap_eht_pe_disambiguity_known
,
6540 {"PE Disambiguity Known",
6541 "radiotap.eht.known.pe_disambiguity_known",
6542 FT_BOOLEAN
, 32, NULL
, 0x00000080, NULL
, HFILL
}},
6544 {&hf_radiotap_eht_disregard_known
,
6545 {"EHT Disregard Known",
6546 "radiotap.eht.known.eht_disregard_known",
6547 FT_BOOLEAN
, 32, NULL
, 0x00000100, NULL
, HFILL
}},
6549 {&hf_radiotap_eht_reserved1
,
6551 "radiotap.eht.known.reserved1",
6552 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
6554 {&hf_radiotap_eht_reserved_2
,
6556 "radiotap.eht.known.reserved_2",
6557 FT_UINT32
, BASE_HEX
, NULL
, 0x00001c00, NULL
, HFILL
}},
6559 {&hf_radiotap_eht_crc1_known
,
6561 "radiotap.eht.known.crc1_known",
6562 FT_BOOLEAN
, 32, NULL
, 0x00002000, NULL
, HFILL
}},
6564 {&hf_radiotap_eht_tail1_known
,
6566 "radiotap.eht.known.tail1_known",
6567 FT_BOOLEAN
, 32, NULL
, 0x00004000, NULL
, HFILL
}},
6569 {&hf_radiotap_eht_crc2_known
,
6571 "radiotap.eht.known.crc2_known",
6572 FT_BOOLEAN
, 32, NULL
, 0x00008000, NULL
, HFILL
}},
6574 {&hf_radiotap_eht_tail2_known
,
6575 {"Tail2 known", "radiotap.eht.known.tail2_known",
6576 FT_BOOLEAN
, 32, NULL
, 0x00010000, NULL
, HFILL
}},
6578 {&hf_radiotap_eht_nss_known
,
6580 "radiotap.eht.known.nss_known",
6581 FT_BOOLEAN
, 32, NULL
, 0x00020000, NULL
, HFILL
}},
6583 {&hf_radiotap_eht_beamformed_known
,
6584 {"Beamformed Known",
6585 "radiotap.eht.known.beamformed_known",
6586 FT_BOOLEAN
, 32, NULL
, 0x00040000, NULL
, HFILL
}},
6588 {&hf_radiotap_eht_number_non_ofdma_users_known
,
6589 {"Number of Non-OFDMA Users Known",
6590 "radiotap.eht.known.number_of_non_ofdma_users_known",
6591 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
6593 {&hf_radiotap_eht_user_encoding_block_crc_known
,
6594 {"User Encoding Block CRC Known",
6595 "radiotap.eht.known.user_encoding_block_crc_known",
6596 FT_BOOLEAN
, 32, NULL
, 0x00100000, NULL
, HFILL
}},
6598 {&hf_radiotap_eht_user_encoding_block_tail_known
,
6599 {"User Encoding Block Tail Known",
6600 "radiotap.eht.known.user_encoding_block_tail_known",
6601 FT_BOOLEAN
, 32, NULL
, 0x00200000, NULL
, HFILL
}},
6603 {&hf_radiotap_eht_ru_mru_size_known
,
6604 {"RU/MRU Size Known",
6605 "radiotap.eht.known.ru_mru_size_known",
6606 FT_BOOLEAN
, 32, NULL
, 0x00400000, NULL
, HFILL
}},
6608 {&hf_radiotap_eht_ru_mru_index_known
,
6609 {"RU/MRU Index Known",
6610 "radiotap.eht.known.ru_mru_index_known",
6611 FT_BOOLEAN
, 32, NULL
, 0x00800000, NULL
, HFILL
}},
6613 {&hf_radiotap_eht_tb_ru_allocation_known
,
6614 {"TB RU Allocation Known",
6615 "radiotap.eht.known.tb_ru_known",
6616 FT_BOOLEAN
, 32, NULL
, 0x01000000, NULL
, HFILL
}},
6618 {&hf_radiotap_eht_primary_80mhz_channel_pos_known
,
6619 {"Primary 80MHz Channel Position Known",
6620 "radiotap.eht.know.primary_80mhz_channel_position_known",
6621 FT_BOOLEAN
, 32, NULL
, 0x02000000, NULL
, HFILL
}},
6623 {&hf_radiotap_eht_reserved_fc
,
6625 "radiotap.eht.known.reserved_fc",
6626 FT_UINT32
, BASE_HEX
, NULL
, 0xfc000000, NULL
, HFILL
}},
6628 {&hf_radiotap_eht_data0
,
6629 {"data[0]", "radiotap.eht.data_0",
6630 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6632 {&hf_radiotap_eht_data0_reserved1
,
6634 "radiotap.eht.data_0.reserved1",
6635 FT_UINT32
, BASE_HEX
, NULL
, 0x00000007, NULL
, HFILL
}},
6637 {&hf_radiotap_eht_data0_spatial_reuse
,
6639 "radiotap.eht.data_0.spatial_reuse",
6640 FT_UINT32
, BASE_DEC
, NULL
, 0x00000078, NULL
, HFILL
}},
6642 {&hf_radiotap_eht_data0_spatial_reuse_not_known
,
6644 "radiotap.eht.data_0.spatial_reuse_not_known",
6645 FT_UINT32
, BASE_DEC
, NULL
, 0x00000078, NULL
, HFILL
}},
6647 {&hf_radiotap_eht_data0_gi
,
6649 "radiotap.eht.data_0.gi",
6650 FT_UINT32
, BASE_DEC
, VALS(he_gi_vals
), 0x00000180, NULL
, HFILL
}},
6652 {&hf_radiotap_eht_data0_gi_not_known
,
6654 "radiotap.eht.data_0.gi_not_known",
6655 FT_UINT32
, BASE_DEC
, NULL
, 0x00000180, NULL
, HFILL
}},
6657 {&hf_radiotap_eht_data0_ltf_symbol_size
,
6659 "radiotap.eht.data_0.ltf_symbol_size",
6660 FT_UINT32
, BASE_DEC
, VALS(he_ltf_symbol_size_vals
), 0x00000600, NULL
, HFILL
}},
6662 {&hf_radiotap_eht_data0_number_ltf_symbols
,
6663 {"Number of LTF symbols",
6664 "radiotap.eht.data_0.number_ltf_symbols",
6665 FT_UINT32
, BASE_DEC
, VALS(he_num_ltf_symbols_vals
), 0x00003800, NULL
, HFILL
}},
6667 {&hf_radiotap_eht_data0_number_ltf_symbols_not_known
,
6668 {"Number of LTF symbols",
6669 "radiotap.eht.data_0.number_ltf_symbols_not_known",
6670 FT_UINT32
, BASE_DEC
, NULL
, 0x00003800, NULL
, HFILL
}},
6672 {&hf_radiotap_eht_data0_ldpc_extra_symbol_segment
,
6673 {"LDPC extra symbol segment",
6674 "radiotap.eht.data_0.ldpc_extra_symbol_segment",
6675 FT_BOOLEAN
, 32, NULL
, 0x00004000, NULL
, HFILL
}},
6677 {&hf_radiotap_eht_data0_ldpc_extra_symbol_segment_not_known
,
6678 {"LDPC extra symbol segment",
6679 "radiotap.eht.data_0.ldpc_extra_symbol_segment_not_known",
6680 FT_BOOLEAN
, 32, NULL
, 0x00004000, NULL
, HFILL
}},
6682 {&hf_radiotap_eht_data0_pre_fec_padding_factor
,
6683 {"Pre-FEC padding factor",
6684 "radiotap.eht.data_0.pre_fec_padding_factor",
6685 FT_UINT32
, BASE_DEC
, NULL
, 0x00018000, NULL
, HFILL
}},
6687 {&hf_radiotap_eht_data0_pre_fec_padding_factor_not_known
,
6688 {"Pre-FEC padding factor",
6689 "radiotap.eht.data_0.pre_fec_padding_factor_not_known",
6690 FT_UINT32
, BASE_DEC
, NULL
, 0x00018000, NULL
, HFILL
}},
6692 {&hf_radiotap_eht_data0_pe_disambiguity
,
6694 "radiotap.eht.data_0.pe_disambiguity",
6695 FT_UINT32
, BASE_DEC
, NULL
, 0x00020000, NULL
, HFILL
}},
6697 {&hf_radiotap_eht_data0_pe_disambiguity_not_known
,
6699 "radiotap.eht.data_0.pe_disambiguity_not_known",
6700 FT_UINT32
, BASE_DEC
, NULL
, 0x00020000, NULL
, HFILL
}},
6702 {&hf_radiotap_eht_data0_disregard
,
6704 "radiotap.eht.data_0.disregard",
6705 FT_UINT32
, BASE_DEC
, NULL
, 0x003C0000, NULL
, HFILL
}},
6707 {&hf_radiotap_eht_data0_disregard_not_known
,
6709 "radiotap.eht.data_0.disregard_not_known",
6710 FT_UINT32
, BASE_DEC
, NULL
, 0x003C0000, NULL
, HFILL
}},
6712 {&hf_radiotap_eht_data0_crc1
,
6714 "radiotap.eht.data_0.crc1",
6715 FT_UINT32
, BASE_DEC
, NULL
, 0x03C00000, NULL
, HFILL
}},
6717 {&hf_radiotap_eht_data0_crc1_not_known
,
6719 "radiotap.eht.data_0.crc1_not_known",
6720 FT_UINT32
, BASE_DEC
, NULL
, 0x03C00000, NULL
, HFILL
}},
6722 {&hf_radiotap_eht_data0_tail1
,
6724 "radiotap.eht.data_0.tail1",
6725 FT_UINT32
, BASE_DEC
, NULL
, 0xFC000000, NULL
, HFILL
}},
6727 {&hf_radiotap_eht_data0_tail1_not_known
,
6729 "radiotap.eht.data_0.tail1_not_known",
6730 FT_UINT32
, BASE_DEC
, NULL
, 0xFC000000, NULL
, HFILL
}},
6732 {&hf_radiotap_eht_data1
,
6733 {"data[1]", "radiotap.eht.data_1",
6734 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6736 {&hf_radiotap_eht_data1_ru_mru_size
,
6738 "radiotap.eht.data_1.ru_mru_size",
6739 FT_UINT32
, BASE_DEC
, VALS(eht_data_ru_mru_size_vals
), 0x0000001F, NULL
, HFILL
}},
6741 {&hf_radiotap_eht_data1_ru_mru_size_not_known
,
6743 "radiotap.eht.data_1.ru_mru_size_not_known",
6744 FT_UINT32
, BASE_DEC
, NULL
, 0x0000001F, NULL
, HFILL
}},
6746 {&hf_radiotap_eht_data1_ru_mru_index
,
6748 "radiotap.eht.data_1.ru_mru_index",
6749 FT_UINT32
, BASE_DEC
, NULL
, 0x00001FE0, NULL
, HFILL
}},
6751 {&hf_radiotap_eht_data1_ru_mru_index_not_known
,
6753 "radiotap.eht.data_1.ru_mru_index_not_known",
6754 FT_UINT32
, BASE_DEC
, NULL
, 0x00001FE0, NULL
, HFILL
}},
6756 {&hf_radiotap_eht_data1_ru_alloc_c1_1_1
,
6757 {"Content Channel 1 RU Allocation 1::1",
6758 "radiotap.eht.data_1.content_channel_1_ru_allocation_1_1",
6759 FT_UINT32
, BASE_HEX
, NULL
, 0x003FE000, NULL
, HFILL
}},
6761 {&hf_radiotap_eht_data1_ru_alloc_c1_1_1_not_known
,
6762 {"Content Channel 1 RU Allocation 1::1",
6763 "radiotap.eht.data_1.content_channel_1_ru_allocation_1_1_not_known",
6764 FT_UINT32
, BASE_HEX
, NULL
, 0x003FE000, NULL
, HFILL
}},
6766 {&hf_radiotap_eht_data1_ru_alloc_c1_1_1_known
,
6767 {"Content Channel 1 RU Allocation 1::1 known",
6768 "radiotap.eht.data_1.content_channel_1_ru_allocation_1_1_known",
6769 FT_BOOLEAN
, 32, NULL
, 0x00400000, NULL
, HFILL
}},
6771 {&hf_radiotap_eht_data1_reserved
,
6773 "radiotap.eht.data_1.reserved",
6774 FT_UINT32
, BASE_HEX
, NULL
, 0x3f000000, NULL
, HFILL
}},
6776 {&hf_radiotap_eht_data1_primary_80_mhz_chan_pos
,
6777 {"Primary 80 MHz Channel Position",
6778 "radiotap.eht.data_1.primary_80_mhz_channel_position",
6779 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6781 {&hf_radiotap_eht_data1_primary_80_mhz_chan_pos_not_known
,
6782 {"Primary 80 MHz Channel Position",
6783 "radiotap.eht.data_1.primary_80_mhz_channel_position_not_known",
6784 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6786 {&hf_radiotap_eht_data2
,
6787 {"data[2]", "radiotap.eht.data_2",
6788 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6790 {&hf_radiotap_eht_data2_ru_alloc_c2_1_1
,
6791 {"Content Channel 2 RU Allocation 1::1",
6792 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_1",
6793 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6795 {&hf_radiotap_eht_data2_ru_alloc_c2_1_1_not_known
,
6796 {"Content Channel 2 RU Allocation 1::1",
6797 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_1_not_known",
6798 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6800 {&hf_radiotap_eht_data2_ru_alloc_c2_1_1_known
,
6801 {"Content Channel 2 RU Allocation 1::1 known",
6802 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_1_known",
6803 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
6805 {&hf_radiotap_eht_data2_ru_alloc_c1_1_2
,
6806 {"Content Channel 1 RU Allocation 1::2",
6807 "radiotap.eht.data_2.content_channel_1_ru_allocation_1_2",
6808 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6810 {&hf_radiotap_eht_data2_ru_alloc_c1_1_2_not_known
,
6811 {"Content Channel 1 RU Allocation 1::2",
6812 "radiotap.eht.data_2.content_channel_1_ru_allocation_1_2_not_known",
6813 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6815 {&hf_radiotap_eht_data2_ru_alloc_c1_1_2_known
,
6816 {"Content Channel 1 RU Allocation 1::2 known",
6817 "radiotap.eht.data_2.content_channel_1_ru_allocation_1_2_known",
6818 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
6820 {&hf_radiotap_eht_data2_ru_alloc_c2_1_2
,
6821 {"Content Channel 2 RU Allocation 1::2",
6822 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_2",
6823 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6825 {&hf_radiotap_eht_data2_ru_alloc_c2_1_2_not_known
,
6826 {"Content Channel 2 RU Allocation 1::2",
6827 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_2_not_known",
6828 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6830 {&hf_radiotap_eht_data2_ru_alloc_c2_1_2_known
,
6831 {"Content Channel 2 RU Allocation 1::2 known",
6832 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_2_known",
6833 FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
6835 {&hf_radiotap_eht_data2_reserved
,
6836 {"Reserved", "radiotap.eht.data_2.reserved",
6837 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6839 {&hf_radiotap_eht_data3
,
6840 {"data[3]", "radiotap.eht.data_3",
6841 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6843 {&hf_radiotap_eht_data3_ru_alloc_c1_2_1
,
6844 {"Content Channel 1 RU Allocation 2::1",
6845 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_1",
6846 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6848 {&hf_radiotap_eht_data3_ru_alloc_c1_2_1_not_known
,
6849 {"Content Channel 1 RU Allocation 2::1",
6850 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_1_not_known",
6851 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6853 {&hf_radiotap_eht_data3_ru_alloc_c1_2_1_known
,
6854 {"Content Channel 1 RU Allocation 2::1 known",
6855 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_1_known",
6856 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
6858 {&hf_radiotap_eht_data3_ru_alloc_c2_2_1
,
6859 {"Content Channel 2 RU Allocation 2::1",
6860 "radiotap.eht.data_3.content_channel_2_ru_allocation_2_1",
6861 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6863 {&hf_radiotap_eht_data3_ru_alloc_c2_2_1_not_known
,
6864 {"Content Channel 2 RU Allocation 2::1",
6865 "radiotap.eht.data_3.content_channel_2_ru_allocation_2_1_not_known",
6866 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6868 {&hf_radiotap_eht_data3_ru_alloc_c2_2_1_known
,
6869 {"Content Channel 2 RU Allocation 2::1 known",
6870 "radiotap.eht.data_3.content_channel_2_ru_allocation_2_1_known",
6871 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
6873 {&hf_radiotap_eht_data3_ru_alloc_c1_2_2
,
6874 {"Content Channel 1 RU Allocation 2::2",
6875 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_2",
6876 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6878 {&hf_radiotap_eht_data3_ru_alloc_c1_2_2_not_known
,
6879 {"Content Channel 1 RU Allocation 2::2",
6880 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_2_not_known",
6881 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6883 {&hf_radiotap_eht_data3_ru_alloc_c1_2_2_known
,
6884 {"Content Channel 1 RU Allocation 2::2 known",
6885 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_2_known",
6886 FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
6888 {&hf_radiotap_eht_data3_reserved
,
6889 {"Reserved", "radiotap.eht.data_3.reserved",
6890 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6892 {&hf_radiotap_eht_data4
,
6893 {"data[4]", "radiotap.eht.data_4",
6894 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6896 {&hf_radiotap_eht_data4_ru_alloc_c2_2_2
,
6897 {"Content Channel 2 RU Allocation 2::2",
6898 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_2",
6899 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6901 {&hf_radiotap_eht_data4_ru_alloc_c2_2_2_not_known
,
6902 {"Content Channel 2 RU Allocation 2::2",
6903 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_2_not_known",
6904 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6906 {&hf_radiotap_eht_data4_ru_alloc_c2_2_2_known
,
6907 {"Content Channel 2 RU Allocation 2::2 known",
6908 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_2_known",
6909 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
6911 {&hf_radiotap_eht_data4_ru_alloc_c1_2_3
,
6912 {"Content Channel 1 RU Allocation 2::3",
6913 "radiotap.eht.data_4.content_channel_1_ru_allocation_2_3",
6914 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6916 {&hf_radiotap_eht_data4_ru_alloc_c1_2_3_not_known
,
6917 {"Content Channel 1 RU Allocation 2::3",
6918 "radiotap.eht.data_4.content_channel_1_ru_allocation_2_3_not_known",
6919 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6921 {&hf_radiotap_eht_data4_ru_alloc_c1_2_3_known
,
6922 {"Content Channel 1 RU Allocation 2::3 known",
6923 "radiotap.eht.data_4.content_channel_1_ru_allocation_2_3_known",
6924 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
6926 {&hf_radiotap_eht_data4_ru_alloc_c2_2_3
,
6927 {"Content Channel 2 RU Allocation 2::3",
6928 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_3",
6929 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6931 {&hf_radiotap_eht_data4_ru_alloc_c2_2_3_not_known
,
6932 {"Content Channel 2 RU Allocation 2::3",
6933 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_3_not_known",
6934 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6936 {&hf_radiotap_eht_data4_ru_alloc_c2_2_3_known
,
6937 {"Content Channel 2 RU Allocation 2::3 known",
6938 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_3_known",
6939 FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
6941 {&hf_radiotap_eht_data4_reserved
,
6942 {"Reserved", "radiotap.eht.data_4.reserved",
6943 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6945 {&hf_radiotap_eht_data5
,
6946 {"data[5]", "radiotap.eht.data_5",
6947 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6949 {&hf_radiotap_eht_data5_ru_alloc_c1_2_4
,
6950 {"Content Channel 1 RU Allocation 2::4",
6951 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_4",
6952 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6954 {&hf_radiotap_eht_data5_ru_alloc_c1_2_4_not_known
,
6955 {"Content Channel 1 RU Allocation 2::4",
6956 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_4_not_known",
6957 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6959 {&hf_radiotap_eht_data5_ru_alloc_c1_2_4_known
,
6960 {"Content Channel 1 RU Allocation 2::4 known",
6961 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_4_known",
6962 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
6964 {&hf_radiotap_eht_data5_ru_alloc_c2_2_4
,
6965 {"Content Channel 2 RU Allocation 2::4",
6966 "radiotap.eht.data_5.content_channel_2_ru_allocation_2_4",
6967 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6969 {&hf_radiotap_eht_data5_ru_alloc_c2_2_4_not_known
,
6970 {"Content Channel 2 RU Allocation 2::4",
6971 "radiotap.eht.data_5.content_channel_2_ru_allocation_2_4_not_known",
6972 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6974 {&hf_radiotap_eht_data5_ru_alloc_c2_2_4_known
,
6975 {"Content Channel 2 RU Allocation 2::4 known",
6976 "radiotap.eht.data_5.content_channel_2_ru_allocation_2_4_known",
6977 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
6979 {&hf_radiotap_eht_data5_ru_alloc_c1_2_5
,
6980 {"Content Channel 1 RU Allocation 2::5",
6981 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_5",
6982 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6984 {&hf_radiotap_eht_data5_ru_alloc_c1_2_5_not_known
,
6985 {"Content Channel 1 RU Allocation 2::5",
6986 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_5_not_known",
6987 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6989 {&hf_radiotap_eht_data5_ru_alloc_c1_2_5_known
,
6990 {"Content Channel 1 RU Allocation 2::5 known",
6991 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_5_known",
6992 FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
6994 {&hf_radiotap_eht_data5_reserved
,
6995 {"Reserved", "radiotap.eht.data_5.reserved",
6996 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6998 {&hf_radiotap_eht_data6
,
6999 {"data[6]", "radiotap.eht.data_6",
7000 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
7002 {&hf_radiotap_eht_data6_ru_alloc_c2_2_5
,
7003 {"Content Channel 2 RU Allocation 2::5",
7004 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_5",
7005 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
7007 {&hf_radiotap_eht_data6_ru_alloc_c2_2_5_not_known
,
7008 {"Content Channel 2 RU Allocation 2::5",
7009 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_5_not_known",
7010 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
7012 {&hf_radiotap_eht_data6_ru_alloc_c2_2_5_known
,
7013 {"Content Channel 2 RU Allocation 2::5 known",
7014 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_5_known",
7015 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
7017 {&hf_radiotap_eht_data6_ru_alloc_c1_2_6
,
7018 {"Content Channel 1 RU Allocation 2::6",
7019 "radiotap.eht.data_6.content_channel_1_ru_allocation_2_6",
7020 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
7022 {&hf_radiotap_eht_data6_ru_alloc_c1_2_6_not_known
,
7023 {"Content Channel 1 RU Allocation 2::6",
7024 "radiotap.eht.data_6.content_channel_1_ru_allocation_2_6_not_known",
7025 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
7027 {&hf_radiotap_eht_data6_ru_alloc_c1_2_6_known
,
7028 {"Content Channel 1 RU Allocation 2::6 known",
7029 "radiotap.eht.data_6.content_channel_1_ru_allocation_2_6_known",
7030 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
7032 {&hf_radiotap_eht_data6_ru_alloc_c2_2_6
,
7033 {"Content Channel 2 RU Allocation 2::6",
7034 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_6",
7035 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
7037 {&hf_radiotap_eht_data6_ru_alloc_c2_2_6_not_known
,
7038 {"Content Channel 2 RU Allocation 2::6",
7039 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_6_not_known",
7040 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
7042 {&hf_radiotap_eht_data6_ru_alloc_c2_2_6_known
,
7043 {"Content Channel 2 RU Allocation 2::6 known",
7044 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_6_known",
7045 FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
7047 {&hf_radiotap_eht_data6_reserved
,
7048 {"Reserved", "radiotap.eht.data_6.reserved",
7049 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
7051 {&hf_radiotap_eht_data7
,
7052 {"data[7]", "radiotap.eht.data_7",
7053 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
7055 {&hf_radiotap_eht_data7_crc2
,
7056 {"CRC2 (OFDMA Only: For RU Allocation-2)",
7057 "radiotap.eht.data_7.crc2",
7058 FT_UINT32
, BASE_HEX
, NULL
, 0x0000000f, NULL
, HFILL
}},
7060 {&hf_radiotap_eht_data7_tail2
,
7061 {"Tail2 (OFDMA Only: after RU Allocation-2)",
7062 "radiotap.eht.data_7.tail2",
7063 FT_UINT32
, BASE_HEX
, NULL
, 0x000003f0, NULL
, HFILL
}},
7065 {&hf_radiotap_eht_data7_rsvd
,
7066 {"reserved", "radiotap.eht.data_7.reserved1",
7067 FT_UINT32
, BASE_HEX
, NULL
, 0x00000c00, NULL
, HFILL
}},
7069 {&hf_radiotap_eht_data7_nss
,
7070 {"NSS (EHT sounding)", "radiotap.eht.data_7.nss_eht_sounding",
7071 FT_UINT32
, BASE_HEX
, NULL
, 0x0000f000, NULL
, HFILL
}},
7073 {&hf_radiotap_eht_data7_beamformed
,
7074 {"Beamformed (EHT sounding)",
7075 "radiotap.eht.data_7.beamformed_eht_sounding",
7076 FT_BOOLEAN
, 32, NULL
, 0x00010000, NULL
, HFILL
}},
7078 {&hf_radiotap_eht_data7_number_non_ofdma_users
,
7079 {"Number Of Non-OFDMA Users",
7080 "radiotap.eht.data_7.number_of_non_ofdma_users",
7081 FT_UINT32
, BASE_DEC
, NULL
, 0x000e0000, NULL
, HFILL
}},
7083 {&hf_radiotap_eht_data7_number_non_ofdma_users_not_known
,
7084 {"Number Of Non-OFDMA Users",
7085 "radiotap.eht.data_7.number_of_non_ofdma_users_not_known",
7086 FT_UINT32
, BASE_DEC
, NULL
, 0x000e0000, NULL
, HFILL
}},
7088 {&hf_radiotap_eht_data7_user_encode_crc
,
7089 {"User Encoding Block CRC",
7090 "radiotap.eht.data_7.user_encoding_block_crc",
7091 FT_UINT32
, BASE_HEX
, NULL
, 0x00f00000, NULL
, HFILL
}},
7093 {&hf_radiotap_eht_data7_user_encode_tail
,
7094 {"User Encoding Block Tail",
7095 "radiotap.eht.data_7.user_encoding_block_tail",
7096 FT_UINT32
, BASE_HEX
, NULL
, 0x3f000000, NULL
, HFILL
}},
7098 {&hf_radiotap_eht_data7_rsvd2
,
7099 {"Reserved", "radiotap.eht.data_7.reserved2",
7100 FT_UINT32
, BASE_HEX
, NULL
, 0xC0000000, NULL
, HFILL
}},
7102 {&hf_radiotap_eht_data8
,
7103 {"data[8]", "radiotap.eht.data_8",
7104 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
7106 {&hf_radiotap_eht_data8_ru_alloc_ps_160
,
7107 {"RU Allocation (TB Format): PS 160",
7108 "radiotap.eht.data_8.ru_allocation_tb_format_ps_160",
7109 FT_UINT32
, BASE_HEX
, NULL
, 0x00000001, NULL
, HFILL
}},
7111 {&hf_radiotap_eht_data8_ru_alloc_b0
,
7112 {"RU Allocation (TB Format): B0",
7113 "radiotap.eht.data_8.ru_allocation_tb_format_b0",
7114 FT_UINT32
, BASE_HEX
, NULL
, 0x00000002, NULL
, HFILL
}},
7116 {&hf_radiotap_eht_data8_ru_alloc_b7_b1
,
7117 {"RU Allocation (TB Format): B7-B1",
7118 "radiotap.eht.data_8.ru_allocation_tb_format_b7_b1",
7119 FT_UINT32
, BASE_HEX
, NULL
, 0x000001fc, NULL
, HFILL
}},
7121 {&hf_radiotap_eht_data8_rsvd
,
7123 "radiotap.eht.data_8.reserved1",
7124 FT_UINT32
, BASE_HEX
, NULL
, 0xfffffe00, NULL
, HFILL
}},
7126 {&hf_radiotap_eht_user_info
,
7127 {"user_info", "radiotap.eht.user_info",
7128 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
7130 {&hf_radiotap_eht_ui_sta_id_known
,
7131 {"STA-ID known", "radiotap.eht.user_info.sta_id_known",
7132 FT_BOOLEAN
, 32, NULL
, 0x00000001, NULL
, HFILL
}},
7134 {&hf_radiotap_eht_ui_mcs_known
,
7135 {"MCS known", "radiotap.eht.user_info.mcs_known",
7136 FT_BOOLEAN
, 32, NULL
, 0x00000002, NULL
, HFILL
}},
7138 {&hf_radiotap_eht_ui_coding_known
,
7139 {"Coding known", "radiotap.eht.user_info.coding_known",
7140 FT_BOOLEAN
, 32, NULL
, 0x00000004, NULL
, HFILL
}},
7142 {&hf_radiotap_eht_ui_rsvd_known
,
7143 {"Reserved known", "radiotap.eht.user_info.reserved_known",
7144 FT_BOOLEAN
, 32, NULL
, 0x00000008, NULL
, HFILL
}},
7146 {&hf_radiotap_eht_ui_nss_known
,
7147 {"NSS known", "radiotap.eht.user_info.nss_known",
7148 FT_BOOLEAN
, 32, NULL
, 0x00000010, NULL
, HFILL
}},
7150 {&hf_radiotap_eht_ui_beamforming_known
,
7151 {"Beamforming known",
7152 "radiotap.eht.user_info.beamforming_known",
7153 FT_BOOLEAN
, 32, NULL
, 0x00000020, NULL
, HFILL
}},
7155 {&hf_radiotap_eht_ui_spatial_config_known
,
7156 {"Spatial Configuration known",
7157 "radiotap.eht.user_info.spatial_configuration_known",
7158 FT_BOOLEAN
, 32, NULL
, 0x00000040, NULL
, HFILL
}},
7160 {&hf_radiotap_eht_ui_data_captured
,
7161 {"Data captured for this user",
7162 "radiotap.eht.user_info.data_captured_for_this_user",
7163 FT_BOOLEAN
, 32, NULL
, 0x00000080, NULL
, HFILL
}},
7165 {&hf_radiotap_eht_ui_sta_id
,
7166 {"STA-ID", "radiotap.eht.user_info.sta_id",
7167 FT_UINT32
, BASE_HEX
, NULL
, 0x0007ff00, NULL
, HFILL
}},
7169 {&hf_radiotap_eht_ui_sta_id_not_known
,
7170 {"STA-ID", "radiotap.eht.user_info.sta_id_not_known",
7171 FT_UINT32
, BASE_HEX
, NULL
, 0x0007ff00, NULL
, HFILL
}},
7173 {&hf_radiotap_eht_ui_coding
,
7174 {"Coding", "radiotap.eht.user_info.coding",
7175 FT_UINT32
, BASE_HEX
, VALS(he_coding_vals
), 0x00080000, NULL
, HFILL
}},
7177 {&hf_radiotap_eht_ui_coding_not_known
,
7178 {"Coding", "radiotap.eht.user_info.coding_not_known",
7179 FT_UINT32
, BASE_HEX
, NULL
, 0x00080000, NULL
, HFILL
}},
7181 {&hf_radiotap_eht_ui_mcs
,
7182 {"MCS", "radiotap.eht.user_info.mcs",
7183 FT_UINT32
, BASE_HEX
, NULL
, 0x00f00000, NULL
, HFILL
}},
7185 {&hf_radiotap_eht_ui_mcs_not_known
,
7186 {"MCS", "radiotap.eht.user_info.mcs_not_known",
7187 FT_UINT32
, BASE_HEX
, NULL
, 0x00f00000, NULL
, HFILL
}},
7189 {&hf_radiotap_eht_ui_nss
,
7190 {"NSS", "radiotap.eht.user_info.nss",
7191 FT_UINT32
, BASE_HEX
, NULL
, 0x0f000000, NULL
, HFILL
}},
7193 {&hf_radiotap_eht_ui_nss_not_known
,
7194 {"NSS", "radiotap.eht.user_info.nss_not_known",
7195 FT_UINT32
, BASE_HEX
, NULL
, 0x0f000000, NULL
, HFILL
}},
7197 {&hf_radiotap_eht_ui_reserved
,
7198 {"Reserved", "radiotap.eht.user_info.reserved",
7199 FT_UINT32
, BASE_HEX
, NULL
, 0x10000000, NULL
, HFILL
}},
7201 {&hf_radiotap_eht_ui_reserved_not_known
,
7202 {"Reserved", "radiotap.eht.user_info.reserved_not_known",
7203 FT_UINT32
, BASE_HEX
, NULL
, 0x10000000, NULL
, HFILL
}},
7205 {&hf_radiotap_eht_ui_beamforming
,
7206 {"Beamforming", "radiotap.eht.user_info.beamforming",
7207 FT_UINT32
, BASE_HEX
, NULL
, 0x20000000, NULL
, HFILL
}},
7209 {&hf_radiotap_eht_ui_beamforming_not_known
,
7210 {"Beamforming", "radiotap.eht.user_info.beamforming_not_known",
7211 FT_UINT32
, BASE_HEX
, NULL
, 0x20000000, NULL
, HFILL
}},
7213 {&hf_radiotap_eht_ui_spatial_config
,
7214 {"Spatial Configuration",
7215 "radiotap.eht.user_info.spatial_configuration",
7216 FT_UINT32
, BASE_HEX
, NULL
, 0x3f000000, NULL
, HFILL
}},
7218 {&hf_radiotap_eht_ui_rsvd1
,
7219 {"Reserved", "radiotap.eht.user_info.reserved1",
7220 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
7222 {&hf_radiotap_s1g_known
,
7223 {"Known", "radiotap.s1g.known",
7224 FT_UINT16
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
7226 {&hf_radiotap_s1g_s1g_ppdu_format_known
,
7227 {"S1G PPDU Format Known", "radiotap.s1g.s1g_ppdu_format_known",
7228 FT_BOOLEAN
, 16, NULL
,
7229 IEEE80211_RADIOTAP_TLV_S1G_S1G_PPDU_FORMAT_KNOWN
, NULL
, HFILL
}},
7231 {&hf_radiotap_s1g_response_indication_known
,
7232 {"Response Indication Known", "radiotap.s1g.response_indication_known",
7233 FT_BOOLEAN
, 16, NULL
,
7234 IEEE80211_RADIOTAP_TLV_S1G_RESPONSE_INDICATION_KNOWN
, NULL
, HFILL
}},
7236 {&hf_radiotap_s1g_guard_interval_known
,
7237 {"Guard Interval Known", "radiotap.s1g.guard_interval_known",
7238 FT_BOOLEAN
, 16, NULL
,
7239 IEEE80211_RADIOTAP_TLV_S1G_GUARD_INTERVAL_KNOWN
, NULL
, HFILL
}},
7241 {&hf_radiotap_s1g_nss_known
,
7242 {"NSS Known", "radiotap.s1g.nss_known",
7243 FT_BOOLEAN
, 16, NULL
,
7244 IEEE80211_RADIOTAP_TLV_S1G_NSS_KNOWN
, NULL
, HFILL
}},
7246 {&hf_radiotap_s1g_bandwidth_known
,
7247 {"Bandwidth Known", "radiotap.s1g.bandwidth_known",
7248 FT_BOOLEAN
, 16, NULL
,
7249 IEEE80211_RADIOTAP_TLV_S1G_BANDWIDTH_KNOWN
, NULL
, HFILL
}},
7251 {&hf_radiotap_s1g_mcs_known
,
7252 {"MCS Known", "radiotap.s1g.mcs_known",
7253 FT_BOOLEAN
, 16, NULL
,
7254 IEEE80211_RADIOTAP_TLV_S1G_MCS_KNOWN
, NULL
, HFILL
}},
7256 {&hf_radiotap_s1g_color_known
,
7257 {"Color Known", "radiotap.s1g.color_known",
7258 FT_BOOLEAN
, 16, NULL
,
7259 IEEE80211_RADIOTAP_TLV_S1G_COLOR_KNOWN
, NULL
, HFILL
}},
7261 {&hf_radiotap_s1g_uplink_indication_known
,
7262 {"Uplink Indication Known",
7263 "radiotap.s1g.uplink_indication_known",
7264 FT_BOOLEAN
, 16, NULL
,
7265 IEEE80211_RADIOTAP_TLV_S1G_UPLINK_INDICATION_KNOWN
,
7268 {&hf_radiotap_s1g_reserved_1
,
7269 {"Reserved 1", "radiotap.s1g.reserved_1",
7270 FT_UINT16
, BASE_HEX
, NULL
,
7271 IEEE80211_RADIOTAP_TLV_S1G_RESERVED_1
, NULL
, HFILL
}},
7273 {&hf_radiotap_s1g_data_1
,
7274 {"Data1", "radiotap.s1g.data_1",
7275 FT_UINT16
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
7277 {&hf_radiotap_s1g_s1g_ppdu_format
,
7278 {"S1G PPDU Format", "radiotap.s1g.s1g_ppdu_format",
7279 FT_UINT16
, BASE_DEC
, VALS(s1g_ppdu_format
),
7280 IEEE80211_RADIOTAP_TLV_S1G_S1G_PPDU_FORMAT
, NULL
, HFILL
}},
7282 {&hf_radiotap_s1g_response_indication
,
7283 {"Response Indication", "radiotap.s1g.response_indication",
7284 FT_UINT16
, BASE_DEC
, VALS(s1g_response_indication
),
7285 IEEE80211_RADIOTAP_TLV_S1G_RESPONSE_INDICATION
, NULL
, HFILL
}},
7287 {&hf_radiotap_s1g_reserved_2
,
7288 {"Reserved 2", "radiotap.s1g.reserved_2",
7289 FT_UINT16
, BASE_HEX
, NULL
,
7290 IEEE80211_RADIOTAP_TLV_S1G_RESERVED_2
, NULL
, HFILL
}},
7292 {&hf_radiotap_s1g_guard_interval
,
7293 {"Guard Interval", "radiotap.s1g.guard_interval",
7294 FT_UINT16
, BASE_DEC
, VALS(s1g_guard_interval
),
7295 IEEE80211_RADIOTAP_TLV_S1G_GUARD_INTERVAL
, NULL
, HFILL
}},
7297 {&hf_radiotap_s1g_nss
,
7298 {"NSS", "radiotap.s1g.nss",
7299 FT_UINT16
, BASE_DEC
, VALS(s1g_nss
),
7300 IEEE80211_RADIOTAP_TLV_S1G_NSS
, NULL
, HFILL
}},
7302 {&hf_radiotap_s1g_bandwidth
,
7303 {"Bandwidth", "radiotap.s1g.bandwidth",
7304 FT_UINT16
, BASE_DEC
, VALS(s1g_bandwidth
),
7305 IEEE80211_RADIOTAP_TLV_S1G_BANDWIDTH
, NULL
, HFILL
}},
7307 {&hf_radiotap_s1g_mcs
,
7308 {"MCS", "radiotap.s1g.mcs",
7309 FT_UINT16
, BASE_DEC
, VALS(s1g_mcs
),
7310 IEEE80211_RADIOTAP_TLV_S1G_MCS
, NULL
, HFILL
}},
7312 {&hf_radiotap_s1g_data_2
,
7313 {"Data2", "radiotap.s1g.data_2",
7314 FT_UINT16
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
7316 {&hf_radiotap_s1g_color
,
7317 {"Color", "radiotap.s1g.color",
7318 FT_UINT16
, BASE_DEC
, VALS(s1g_color
),
7319 IEEE80211_RADIOTAP_TLV_S1G_COLOR
, NULL
, HFILL
}},
7321 {&hf_radiotap_s1g_uplink_indication
,
7322 {"Uplink Indication", "radiotap.s1g.uplink_indication",
7323 FT_BOOLEAN
, 16, NULL
,
7324 IEEE80211_RADIOTAP_TLV_S1G_UPLINK_INDICATION
, NULL
, HFILL
}},
7326 {&hf_radiotap_s1g_reserved_3
,
7327 {"Reserved 3", "radiotap.s1g.reserved_3",
7328 FT_UINT16
, BASE_HEX
, NULL
,
7329 IEEE80211_RADIOTAP_TLV_S1G_RESERVED_3
, NULL
, HFILL
}},
7331 {&hf_radiotap_s1g_rssi
,
7332 {"RSSI", "radiotap.s1g.rssi",
7333 FT_INT16
, BASE_DEC
, NULL
,
7334 IEEE80211_RADIOTAP_TLV_S1G_RSSI
, NULL
, HFILL
}},
7336 static int *ett
[] = {
7339 &ett_radiotap_present
,
7340 &ett_radiotap_present_word
,
7341 &ett_radiotap_flags
,
7342 &ett_radiotap_rxflags
,
7343 &ett_radiotap_txflags
,
7344 &ett_radiotap_channel_flags
,
7345 &ett_radiotap_xchannel_flags
,
7346 &ett_radiotap_vendor
,
7348 &ett_radiotap_mcs_known
,
7349 &ett_radiotap_ampdu
,
7350 &ett_radiotap_ampdu_flags
,
7352 &ett_radiotap_vht_known
,
7353 &ett_radiotap_vht_user
,
7354 &ett_radiotap_timestamp
,
7355 &ett_radiotap_timestamp_flags
,
7356 &ett_radiotap_he_info
,
7357 &ett_radiotap_he_info_data_1
,
7358 &ett_radiotap_he_info_data_2
,
7359 &ett_radiotap_he_info_data_3
,
7360 &ett_radiotap_he_info_data_4
,
7361 &ett_radiotap_he_info_data_5
,
7362 &ett_radiotap_he_info_data_6
,
7363 &ett_radiotap_he_mu_info
,
7364 &ett_radiotap_he_mu_info_flags_1
,
7365 &ett_radiotap_he_mu_info_flags_2
,
7366 &ett_radiotap_he_mu_chan_rus
,
7367 &ett_radiotap_0_length_psdu
,
7368 &ett_radiotap_l_sig
,
7369 &ett_radiotap_l_sig_data_1
,
7370 &ett_radiotap_l_sig_data_2
,
7371 &ett_radiotap_u_sig
,
7372 &ett_radiotap_u_sig_common
,
7373 &ett_radiotap_u_sig_value
,
7375 &ett_radiotap_eht_known
,
7376 &ett_radiotap_eht_data
,
7377 &ett_radiotap_eht_user_info
,
7378 &ett_radiotap_eht_user_info_i
,
7380 &ett_radiotap_s1g_known
,
7381 &ett_radiotap_s1g_data_1
,
7382 &ett_radiotap_s1g_data_2
,
7383 &ett_radiotap_unknown_tlv
,
7385 static ei_register_info ei
[] = {
7386 { &ei_radiotap_invalid_header_length
, { "radiotap.length.invalid", PI_MALFORMED
, PI_ERROR
, "The radiotap header length is less than 8 bytes", EXPFILL
}},
7387 { &ei_radiotap_present
, { "radiotap.present.radiotap_and_vendor", PI_MALFORMED
, PI_ERROR
, "Both radiotap and vendor namespace specified in bitmask word", EXPFILL
}},
7388 { &ei_radiotap_data_past_header
, { "radiotap.data_past_header", PI_MALFORMED
, PI_ERROR
, "Radiotap data goes past the end of the radiotap header", EXPFILL
}},
7389 { &ei_radiotap_invalid_data_rate
, { "radiotap.vht.datarate.invalid", PI_PROTOCOL
, PI_WARN
, "Data rate invalid", EXPFILL
}},
7392 module_t
*radiotap_module
;
7393 expert_module_t
* expert_radiotap
;
7396 proto_register_protocol("IEEE 802.11 Radiotap Capture header", "802.11 Radiotap", "radiotap");
7397 proto_register_field_array(proto_radiotap
, hf
, array_length(hf
));
7398 proto_register_subtree_array(ett
, array_length(ett
));
7399 expert_radiotap
= expert_register_protocol(proto_radiotap
);
7400 expert_register_field_array(expert_radiotap
, ei
, array_length(ei
));
7401 register_dissector("radiotap", dissect_radiotap
, proto_radiotap
);
7403 /* Subdissector table for vendor namespace, the key is OUI with sub namespace (4 bytes) */
7404 vendor_dissector_table
= register_dissector_table("radiotap.vendor",
7405 "Vendor namespace", proto_radiotap
, FT_UINT32
, BASE_HEX
);
7407 radiotap_module
= prefs_register_protocol(proto_radiotap
, NULL
);
7408 prefs_register_bool_preference(radiotap_module
, "bit14_fcs_in_header",
7409 "Assume bit 14 means FCS in header",
7410 "Radiotap has a bit to indicate whether the FCS is still on the frame or not. "
7411 "Some generators (e.g. AirPcap) use a non-standard radiotap flag 14 to put "
7412 "the FCS into the header.",
7413 &radiotap_bit14_fcs
);
7415 prefs_register_bool_preference(radiotap_module
, "interpret_high_rates_as_mcs",
7416 "Interpret high rates as MCS",
7417 "Some generators use rates with bit 7 set to indicate an MCS, e.g. BSD. "
7418 "others (Linux, AirPcap) do not.",
7419 &radiotap_interpret_high_rates_as_mcs
);
7421 prefs_register_enum_preference(radiotap_module
, "fcs_handling",
7422 "Whether and how to override the FCS bit",
7423 "Whether to use the FCS bit, assume the FCS is always present, "
7424 "or assume the FCS is never present.",
7425 &radiotap_fcs_handling
,
7426 fcs_handling
, false);
7429 void proto_reg_handoff_radiotap(void)
7431 dissector_handle_t radiotap_handle
;
7432 capture_dissector_handle_t radiotap_cap_handle
;
7434 /* handle for 802.11+radio information dissector */
7435 ieee80211_radio_handle
= find_dissector_add_dependency("wlan_radio", proto_radiotap
);
7437 radiotap_handle
= find_dissector_add_dependency("radiotap", proto_radiotap
);
7439 dissector_add_uint("wtap_encap", WTAP_ENCAP_IEEE_802_11_RADIOTAP
,
7443 * The radiotap and 802.11 headers aren't stripped off for
7444 * monitor-mode packets in Linux cooked captures, so dissect
7447 dissector_add_uint("sll.hatype", ARPHRD_IEEE80211_RADIOTAP
,
7450 radiotap_cap_handle
= create_capture_dissector_handle(capture_radiotap
, proto_radiotap
);
7451 capture_dissector_add_uint("wtap_encap", WTAP_ENCAP_IEEE_802_11_RADIOTAP
, radiotap_cap_handle
);
7453 ieee80211_cap_handle
= find_capture_dissector("ieee80211");
7454 ieee80211_datapad_cap_handle
= find_capture_dissector("ieee80211_datapad");
7458 * Editor modelines - https://www.wireshark.org/tools/modelines.html
7463 * indent-tabs-mode: t
7466 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
7467 * :indentSize=8:tabSize=8:noTabs=false: