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_flags
;
76 static int hf_radiotap_xchannel_frequency
;
77 static int hf_radiotap_xchannel_channel
;
78 static int hf_radiotap_xchannel_maxpower
;
79 static int hf_radiotap_xchannel_flags_turbo
;
80 static int hf_radiotap_xchannel_flags_cck
;
81 static int hf_radiotap_xchannel_flags_ofdm
;
82 static int hf_radiotap_xchannel_flags_2ghz
;
83 static int hf_radiotap_xchannel_flags_5ghz
;
84 static int hf_radiotap_xchannel_flags_passive
;
85 static int hf_radiotap_xchannel_flags_dynamic
;
86 static int hf_radiotap_xchannel_flags_gfsk
;
87 static int hf_radiotap_xchannel_flags_gsm
;
88 static int hf_radiotap_xchannel_flags_sturbo
;
89 static int hf_radiotap_xchannel_flags_half
;
90 static int hf_radiotap_xchannel_flags_quarter
;
91 static int hf_radiotap_xchannel_flags_ht20
;
92 static int hf_radiotap_xchannel_flags_ht40u
;
93 static int hf_radiotap_xchannel_flags_ht40d
;
94 static int hf_radiotap_fhss_hopset
;
95 static int hf_radiotap_fhss_pattern
;
96 static int hf_radiotap_datarate
;
97 static int hf_radiotap_antenna
;
98 static int hf_radiotap_dbm_antsignal
;
99 static int hf_radiotap_db_antsignal
;
100 static int hf_radiotap_dbm_antnoise
;
101 static int hf_radiotap_db_antnoise
;
102 static int hf_radiotap_tx_attenuation
;
103 static int hf_radiotap_db_tx_attenuation
;
104 static int hf_radiotap_txpower
;
105 static int hf_radiotap_data_retries
;
106 static int hf_radiotap_vendor_ns
;
107 static int hf_radiotap_ven_oui
;
108 static int hf_radiotap_ven_subns
;
109 static int hf_radiotap_ven_skip
;
110 static int hf_radiotap_ven_item
;
111 static int hf_radiotap_ven_data
;
112 static int hf_radiotap_mcs
;
113 static int hf_radiotap_mcs_known
;
114 static int hf_radiotap_mcs_have_bw
;
115 static int hf_radiotap_mcs_have_index
;
116 static int hf_radiotap_mcs_have_gi
;
117 static int hf_radiotap_mcs_have_format
;
118 static int hf_radiotap_mcs_have_fec
;
119 static int hf_radiotap_mcs_have_stbc
;
120 static int hf_radiotap_mcs_have_ness
;
121 static int hf_radiotap_mcs_ness_bit1
;
122 static int hf_radiotap_mcs_bw
;
123 static int hf_radiotap_mcs_index
;
124 static int hf_radiotap_mcs_gi
;
125 static int hf_radiotap_mcs_format
;
126 static int hf_radiotap_mcs_fec
;
127 static int hf_radiotap_mcs_stbc
;
128 static int hf_radiotap_mcs_ness_bit0
;
129 static int hf_radiotap_ampdu
;
130 static int hf_radiotap_ampdu_ref
;
131 static int hf_radiotap_ampdu_flags
;
132 static int hf_radiotap_ampdu_flags_report_zerolen
;
133 static int hf_radiotap_ampdu_flags_is_zerolen
;
134 static int hf_radiotap_ampdu_flags_last_known
;
135 static int hf_radiotap_ampdu_flags_is_last
;
136 static int hf_radiotap_ampdu_flags_delim_crc_error
;
137 static int hf_radiotap_ampdu_delim_crc
;
138 static int hf_radiotap_ampdu_flags_eof_known
;
139 static int hf_radiotap_ampdu_flags_eof
;
140 static int hf_radiotap_vht
;
141 static int hf_radiotap_vht_known
;
142 static int hf_radiotap_vht_have_stbc
;
143 static int hf_radiotap_vht_have_txop_ps
;
144 static int hf_radiotap_vht_have_gi
;
145 static int hf_radiotap_vht_have_sgi_nsym_da
;
146 static int hf_radiotap_vht_have_ldpc_extra
;
147 static int hf_radiotap_vht_have_bf
;
148 static int hf_radiotap_vht_have_bw
;
149 static int hf_radiotap_vht_have_gid
;
150 static int hf_radiotap_vht_have_p_aid
;
151 static int hf_radiotap_vht_stbc
;
152 static int hf_radiotap_vht_txop_ps
;
153 static int hf_radiotap_vht_gi
;
154 static int hf_radiotap_vht_sgi_nsym_da
;
155 static int hf_radiotap_vht_ldpc_extra
;
156 static int hf_radiotap_vht_bf
;
157 static int hf_radiotap_vht_bw
;
158 static int hf_radiotap_vht_nsts
[4];
159 static int hf_radiotap_vht_mcs
[4];
160 static int hf_radiotap_vht_nss
[4];
161 static int hf_radiotap_vht_coding
[4];
162 static int hf_radiotap_vht_datarate
[4];
163 static int hf_radiotap_vht_gid
;
164 static int hf_radiotap_vht_p_aid
;
165 static int hf_radiotap_vht_user
;
166 static int hf_radiotap_timestamp
;
167 static int hf_radiotap_timestamp_ts
;
168 static int hf_radiotap_timestamp_accuracy
;
169 static int hf_radiotap_timestamp_unit
;
170 static int hf_radiotap_timestamp_spos
;
171 static int hf_radiotap_timestamp_flags_32bit
;
172 static int hf_radiotap_timestamp_flags_accuracy
;
174 /* "Present" flags */
175 static int hf_radiotap_present_word
;
176 static int hf_radiotap_present_tsft
;
177 static int hf_radiotap_present_flags
;
178 static int hf_radiotap_present_rate
;
179 static int hf_radiotap_present_channel
;
180 static int hf_radiotap_present_fhss
;
181 static int hf_radiotap_present_dbm_antsignal
;
182 static int hf_radiotap_present_dbm_antnoise
;
183 static int hf_radiotap_present_lock_quality
;
184 static int hf_radiotap_present_tx_attenuation
;
185 static int hf_radiotap_present_db_tx_attenuation
;
186 static int hf_radiotap_present_dbm_tx_power
;
187 static int hf_radiotap_present_antenna
;
188 static int hf_radiotap_present_db_antsignal
;
189 static int hf_radiotap_present_db_antnoise
;
190 static int hf_radiotap_present_hdrfcs
;
191 static int hf_radiotap_present_rxflags
;
192 static int hf_radiotap_present_txflags
;
193 static int hf_radiotap_present_reserved16
;
194 static int hf_radiotap_present_data_retries
;
195 static int hf_radiotap_present_xchannel
;
196 static int hf_radiotap_present_mcs
;
197 static int hf_radiotap_present_ampdu
;
198 static int hf_radiotap_present_vht
;
199 static int hf_radiotap_present_timestamp
;
200 static int hf_radiotap_present_he
;
201 static int hf_radiotap_present_he_mu
;
202 static int hf_radiotap_present_reserved25
;
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_rtap_ns
;
207 static int hf_radiotap_present_vendor_ns
;
208 static int hf_radiotap_present_ext
;
210 /* "present.flags" flags */
211 static int hf_radiotap_flags
;
212 static int hf_radiotap_flags_cfp
;
213 static int hf_radiotap_flags_preamble
;
214 static int hf_radiotap_flags_wep
;
215 static int hf_radiotap_flags_frag
;
216 static int hf_radiotap_flags_fcs
;
217 static int hf_radiotap_flags_datapad
;
218 static int hf_radiotap_flags_badfcs
;
219 static int hf_radiotap_flags_shortgi
;
221 static int hf_radiotap_quality
;
222 static int hf_radiotap_fcs
;
223 static int hf_radiotap_fcs_bad
;
226 static int hf_radiotap_he_ppdu_format
;
227 static int hf_radiotap_he_bss_color_known
;
228 static int hf_radiotap_he_beam_change_known
;
229 static int hf_radiotap_he_ul_dl_known
;
230 static int hf_radiotap_he_data_mcs_known
;
231 static int hf_radiotap_he_data_dcm_known
;
232 static int hf_radiotap_he_coding_known
;
233 static int hf_radiotap_he_ldpc_extra_symbol_segment_known
;
234 static int hf_radiotap_he_stbc_known
;
235 static int hf_radiotap_he_spatial_reuse_1_known
;
236 static int hf_radiotap_he_spatial_reuse_2_known
;
237 static int hf_radiotap_he_spatial_reuse_3_known
;
238 static int hf_radiotap_he_spatial_reuse_4_known
;
239 static int hf_radiotap_he_data_bw_ru_allocation_known
;
240 static int hf_radiotap_he_doppler_known
;
241 static int hf_radiotap_he_pri_sec_80_mhz_known
;
242 static int hf_radiotap_he_gi_known
;
243 static int hf_radiotap_he_num_ltf_symbols_known
;
244 static int hf_radiotap_he_pre_fec_padding_factor_known
;
245 static int hf_radiotap_he_txbf_known
;
246 static int hf_radiotap_he_pe_disambiguity_known
;
247 static int hf_radiotap_he_txop_known
;
248 static int hf_radiotap_he_midamble_periodicity_known
;
249 static int hf_radiotap_he_ru_allocation_offset
;
250 static int hf_radiotap_he_ru_allocation_offset_known
;
251 static int hf_radiotap_he_pri_sec_80_mhz
;
252 static int hf_radiotap_he_bss_color
;
253 static int hf_radiotap_he_bss_color_unknown
;
254 static int hf_radiotap_he_beam_change
;
255 static int hf_radiotap_he_beam_change_unknown
;
256 static int hf_radiotap_he_ul_dl
;
257 static int hf_radiotap_he_ul_dl_unknown
;
258 static int hf_radiotap_he_data_mcs
;
259 static int hf_radiotap_he_data_mcs_unknown
;
260 static int hf_radiotap_he_data_dcm
;
261 static int hf_radiotap_he_data_dcm_unknown
;
262 static int hf_radiotap_he_coding
;
263 static int hf_radiotap_he_coding_unknown
;
264 static int hf_radiotap_he_ldpc_extra_symbol_segment
;
265 static int hf_radiotap_he_ldpc_extra_symbol_segment_unknown
;
266 static int hf_radiotap_he_stbc
;
267 static int hf_radiotap_he_stbc_unknown
;
268 static int hf_radiotap_spatial_reuse
;
269 static int hf_radiotap_spatial_reuse_unknown
;
270 static int hf_radiotap_he_su_reserved
;
271 static int hf_radiotap_spatial_reuse_1
;
272 static int hf_radiotap_spatial_reuse_1_unknown
;
273 static int hf_radiotap_spatial_reuse_2
;
274 static int hf_radiotap_spatial_reuse_2_unknown
;
275 static int hf_radiotap_spatial_reuse_3
;
276 static int hf_radiotap_spatial_reuse_3_unknown
;
277 static int hf_radiotap_spatial_reuse_4
;
278 static int hf_radiotap_spatial_reuse_4_unknown
;
279 static int hf_radiotap_sta_id_user_captured
;
280 static int hf_radiotap_he_mu_reserved
;
281 static int hf_radiotap_data_bandwidth_ru_allocation
;
282 static int hf_radiotap_data_bandwidth_ru_allocation_unknown
;
283 static int hf_radiotap_gi
;
284 static int hf_radiotap_gi_unknown
;
285 static int hf_radiotap_ltf_symbol_size
;
286 static int hf_radiotap_ltf_symbol_size_unknown
;
287 static int hf_radiotap_num_ltf_symbols
;
288 static int hf_radiotap_num_ltf_symbols_unknown
;
289 static int hf_radiotap_d5_reserved_b11
;
290 static int hf_radiotap_pre_fec_padding_factor
;
291 static int hf_radiotap_pre_fec_padding_factor_unknown
;
292 static int hf_radiotap_txbf
;
293 static int hf_radiotap_txbf_unknown
;
294 static int hf_radiotap_pe_disambiguity
;
295 static int hf_radiotap_pe_disambiguity_unknown
;
296 static int hf_radiotap_he_nsts
;
297 static int hf_radiotap_he_doppler_value
;
298 static int hf_radiotap_he_doppler_value_unknown
;
299 static int hf_radiotap_he_d6_reserved_00e0
;
300 static int hf_radiotap_he_txop_value
;
301 static int hf_radiotap_he_txop_value_unknown
;
302 static int hf_radiotap_midamble_periodicity
;
303 static int hf_radiotap_midamble_periodicity_unknown
;
304 static int hf_radiotap_he_info_data_1
;
305 static int hf_radiotap_he_info_data_2
;
306 static int hf_radiotap_he_info_data_3
;
307 static int hf_radiotap_he_info_data_4
;
308 static int hf_radiotap_he_info_data_5
;
309 static int hf_radiotap_he_info_data_6
;
310 static int hf_radiotap_he_mu_sig_b_mcs
;
311 static int hf_radiotap_he_mu_sig_b_mcs_unknown
;
312 static int hf_radiotap_he_mu_sig_b_mcs_known
;
313 static int hf_radiotap_he_mu_sig_b_dcm
;
314 static int hf_radiotap_he_mu_sig_b_dcm_unknown
;
315 static int hf_radiotap_he_mu_sig_b_dcm_known
;
316 static int hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_known
;
317 static int hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_unknown
;
318 static int hf_radiotap_he_mu_chan1_rus_known
;
319 static int hf_radiotap_he_mu_chan1_rus_unknown
;
320 static int hf_radiotap_he_mu_chan2_rus_known
;
321 static int hf_radiotap_he_mu_chan2_rus_unknown
;
322 static int hf_radiotap_he_mu_reserved_f1_b10_b11
;
323 static int hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_known
;
324 static int hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_unknown
;
325 static int hf_radiotap_he_mu_chan1_center_26_tone_ru_value
;
326 static int hf_radiotap_he_mu_sig_b_compression_known
;
327 static int hf_radiotap_he_mu_sig_b_compression_unknown
;
328 static int hf_radiotap_he_mu_sig_b_compression_from_sig_a
;
329 static int hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_known
;
330 static int hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_unknown
;
331 static int hf_radiotap_he_mu_info_flags_1
;
332 static int hf_radiotap_he_mu_bw_from_bw_in_sig_a
;
333 static int hf_radiotap_he_mu_bw_from_bw_in_sig_a_unknown
;
334 static int hf_radiotap_he_mu_bw_from_bw_in_sig_a_known
;
335 static int hf_radiotap_he_mu_sig_b_syms_mu_mimo_users
;
336 static int hf_radiotap_he_mu_preamble_puncturing
;
337 static int hf_radiotap_he_mu_preamble_puncturing_unknown
;
338 static int hf_radiotap_he_mu_preamble_puncturing_known
;
339 static int hf_radiotap_he_mu_chan2_center_26_tone_ru_value
;
340 static int hf_radiotap_he_mu_reserved_f2_b12_b15
;
341 static int hf_radiotap_he_mu_info_flags_2
;
342 static int hf_radiotap_he_mu_chan1_rus_0
;
343 static int hf_radiotap_he_mu_chan1_rus_0_unknown
;
344 static int hf_radiotap_he_mu_chan1_rus_1
;
345 static int hf_radiotap_he_mu_chan1_rus_1_unknown
;
346 static int hf_radiotap_he_mu_chan1_rus_2
;
347 static int hf_radiotap_he_mu_chan1_rus_2_unknown
;
348 static int hf_radiotap_he_mu_chan1_rus_3
;
349 static int hf_radiotap_he_mu_chan1_rus_3_unknown
;
350 static int hf_radiotap_he_mu_chan2_rus_0
;
351 static int hf_radiotap_he_mu_chan2_rus_0_unknown
;
352 static int hf_radiotap_he_mu_chan2_rus_1
;
353 static int hf_radiotap_he_mu_chan2_rus_1_unknown
;
354 static int hf_radiotap_he_mu_chan2_rus_2
;
355 static int hf_radiotap_he_mu_chan2_rus_2_unknown
;
356 static int hf_radiotap_he_mu_chan2_rus_3
;
357 static int hf_radiotap_he_mu_chan2_rus_3_unknown
;
360 static int hf_radiotap_0_length_psdu_type
;
363 static int hf_radiotap_l_sig_data_1
;
364 static int hf_radiotap_l_sig_rate_known
;
365 static int hf_radiotap_l_sig_length_known
;
366 static int hf_radiotap_l_sig_reserved
;
367 static int hf_radiotap_l_sig_data_2
;
368 static int hf_radiotap_l_sig_rate
;
369 static int hf_radiotap_l_sig_length
;
372 static int hf_radiotap_u_sig_common
;
373 static int hf_radiotap_usig_phy_version_identifier_known
;
374 static int hf_radiotap_usig_bw_known
;
375 static int hf_radiotap_usig_ul_dl_known
;
376 static int hf_radiotap_usig_bss_color_known
;
377 static int hf_radiotap_usig_txop_known
;
378 static int hf_radiotap_usig_bad_u_sig_crc
;
379 static int hf_radiotap_usig_validate_bits_checked
;
380 static int hf_radiotap_usig_validate_bits_ok
;
381 static int hf_radiotap_usig_reserved
;
382 static int hf_radiotap_usig_phy_version_id
;
383 static int hf_radiotap_usig_bw
;
384 static int hf_radiotap_usig_ul_dl
;
385 static int hf_radiotap_usig_bss_color
;
386 static int hf_radiotap_usig_txop
;
387 static int hf_radiotap_usig_value_mu_ppdu
;
388 static int hf_radiotap_usig_eht_mu_b20_b24
;
389 static int hf_radiotap_usig_eht_mu_b20_b24_not_known
;
390 static int hf_radiotap_usig_eht_mu_b25
;
391 static int hf_radiotap_usig_eht_mu_b25_not_known
;
392 static int hf_radiotap_usig_ppdu_type_and_comp_mode
;
393 static int hf_radiotap_usig_validate1
;
394 static int hf_radiotap_usig_validate1_not_known
;
395 static int hf_radiotap_usig_punctured_channel_info
;
396 static int hf_radiotap_usig_punctured_channel_info_not_known
;
397 static int hf_radiotap_usig_validate2
;
398 static int hf_radiotap_usig_validate2_not_known
;
399 static int hf_radiotap_usig_eht_sig_mcs
;
400 static int hf_radiotap_usig_eht_sig_mcs_not_known
;
401 static int hf_radiotap_usig_number_eht_sig_symbols
;
402 static int hf_radiotap_usig_number_eht_sig_symbols_not_known
;
403 static int hf_radiotap_usig_crc
;
404 static int hf_radiotap_usig_crc_not_known
;
405 static int hf_radiotap_usig_tail
;
406 static int hf_radiotap_usig_tail_not_known
;
407 static int hf_radiotap_u_sig_mask
;
408 static int hf_radiotap_usig_value_tb_ppdu
;
409 static int hf_radiotap_usig_eht_tb_b20_b25
;
410 static int hf_radiotap_usig_eht_tb_b20_b25_not_known
;
411 static int hf_radiotap_usig_eht_tb_validate1
;
412 static int hf_radiotap_usig_eht_tb_validate1_not_known
;
413 static int hf_radiotap_usig_eht_tb_spatial_reuse_1
;
414 static int hf_radiotap_usig_eht_tb_spatial_reuse_1_not_known
;
415 static int hf_radiotap_usig_eht_tb_spatial_reuse_2
;
416 static int hf_radiotap_usig_eht_tb_spatial_reuse_2_not_known
;
417 static int hf_radiotap_usig_eht_tb_disregard
;
418 static int hf_radiotap_usig_eht_tb_disregard_not_known
;
419 static int hf_radiotap_usig_eht_tb_crc
;
420 static int hf_radiotap_usig_eht_tb_crc_not_known
;
421 static int hf_radiotap_usig_eht_tb_tail
;
422 static int hf_radiotap_usig_eht_tb_tail_not_known
;
425 static int hf_radiotap_eht_known
;
426 static int hf_radiotap_eht_reserved_1
;
427 static int hf_radiotap_eht_spatial_reuse_known
;
428 static int hf_radiotap_eht_guard_interval_known
;
429 static int hf_radiotap_eht_reserved_8
;
430 static int hf_radiotap_eht_number_ltf_symbols_known
;
431 static int hf_radiotap_eht_ldpc_extra_symbol_segment_known
;
432 static int hf_radiotap_eht_pre_fec_padding_factor_known
;
433 static int hf_radiotap_eht_pe_disambiguity_known
;
434 static int hf_radiotap_eht_disregard_known
;
435 static int hf_radiotap_eht_reserved1
;
436 static int hf_radiotap_eht_reserved_2
;
437 static int hf_radiotap_eht_crc1_known
;
438 static int hf_radiotap_eht_tail1_known
;
439 static int hf_radiotap_eht_crc2_known
;
440 static int hf_radiotap_eht_tail2_known
;
441 static int hf_radiotap_eht_nss_known
;
442 static int hf_radiotap_eht_beamformed_known
;
443 static int hf_radiotap_eht_number_non_ofdma_users_known
;
444 static int hf_radiotap_eht_user_encoding_block_crc_known
;
445 static int hf_radiotap_eht_user_encoding_block_tail_known
;
446 static int hf_radiotap_eht_ru_mru_size_known
;
447 static int hf_radiotap_eht_ru_mru_index_known
;
448 static int hf_radiotap_eht_tb_ru_allocation_known
;
449 static int hf_radiotap_eht_primary_80mhz_channel_pos_known
;
450 static int hf_radiotap_eht_reserved_fc
;
451 static int hf_radiotap_eht_data0
;
452 static int hf_radiotap_eht_data0_reserved1
;
453 static int hf_radiotap_eht_data0_spatial_reuse
;
454 static int hf_radiotap_eht_data0_spatial_reuse_not_known
;
455 static int hf_radiotap_eht_data0_gi
;
456 static int hf_radiotap_eht_data0_gi_not_known
;
457 static int hf_radiotap_eht_data0_ltf_symbol_size
;
458 static int hf_radiotap_eht_data0_number_ltf_symbols
;
459 static int hf_radiotap_eht_data0_number_ltf_symbols_not_known
;
460 static int hf_radiotap_eht_data0_ldpc_extra_symbol_segment
;
461 static int hf_radiotap_eht_data0_ldpc_extra_symbol_segment_not_known
;
462 static int hf_radiotap_eht_data0_pre_fec_padding_factor
;
463 static int hf_radiotap_eht_data0_pre_fec_padding_factor_not_known
;
464 static int hf_radiotap_eht_data0_pe_disambiguity
;
465 static int hf_radiotap_eht_data0_pe_disambiguity_not_known
;
466 static int hf_radiotap_eht_data0_disregard
;
467 static int hf_radiotap_eht_data0_disregard_not_known
;
468 static int hf_radiotap_eht_data0_crc1
;
469 static int hf_radiotap_eht_data0_crc1_not_known
;
470 static int hf_radiotap_eht_data0_tail1
;
471 static int hf_radiotap_eht_data0_tail1_not_known
;
472 static int hf_radiotap_eht_data1
;
473 static int hf_radiotap_eht_data1_ru_mru_size
;
474 static int hf_radiotap_eht_data1_ru_mru_size_not_known
;
475 static int hf_radiotap_eht_data1_ru_mru_index
;
476 static int hf_radiotap_eht_data1_ru_mru_index_not_known
;
477 static int hf_radiotap_eht_data1_ru_alloc_c1_1_1
;
478 static int hf_radiotap_eht_data1_ru_alloc_c1_1_1_not_known
;
479 static int hf_radiotap_eht_data1_ru_alloc_c1_1_1_known
;
480 static int hf_radiotap_eht_data1_reserved
;
481 static int hf_radiotap_eht_data1_primary_80_mhz_chan_pos
;
482 static int hf_radiotap_eht_data1_primary_80_mhz_chan_pos_not_known
;
483 static int hf_radiotap_eht_data2
;
484 static int hf_radiotap_eht_data2_ru_alloc_c2_1_1
;
485 static int hf_radiotap_eht_data2_ru_alloc_c2_1_1_not_known
;
486 static int hf_radiotap_eht_data2_ru_alloc_c2_1_1_known
;
487 static int hf_radiotap_eht_data2_ru_alloc_c1_1_2
;
488 static int hf_radiotap_eht_data2_ru_alloc_c1_1_2_not_known
;
489 static int hf_radiotap_eht_data2_ru_alloc_c1_1_2_known
;
490 static int hf_radiotap_eht_data2_ru_alloc_c2_1_2
;
491 static int hf_radiotap_eht_data2_ru_alloc_c2_1_2_not_known
;
492 static int hf_radiotap_eht_data2_ru_alloc_c2_1_2_known
;
493 static int hf_radiotap_eht_data2_reserved
;
494 static int hf_radiotap_eht_data3
;
495 static int hf_radiotap_eht_data3_ru_alloc_c1_2_1
;
496 static int hf_radiotap_eht_data3_ru_alloc_c1_2_1_not_known
;
497 static int hf_radiotap_eht_data3_ru_alloc_c1_2_1_known
;
498 static int hf_radiotap_eht_data3_ru_alloc_c2_2_1
;
499 static int hf_radiotap_eht_data3_ru_alloc_c2_2_1_not_known
;
500 static int hf_radiotap_eht_data3_ru_alloc_c2_2_1_known
;
501 static int hf_radiotap_eht_data3_ru_alloc_c1_2_2
;
502 static int hf_radiotap_eht_data3_ru_alloc_c1_2_2_not_known
;
503 static int hf_radiotap_eht_data3_ru_alloc_c1_2_2_known
;
504 static int hf_radiotap_eht_data3_reserved
;
505 static int hf_radiotap_eht_data4
;
506 static int hf_radiotap_eht_data4_ru_alloc_c2_2_2
;
507 static int hf_radiotap_eht_data4_ru_alloc_c2_2_2_not_known
;
508 static int hf_radiotap_eht_data4_ru_alloc_c2_2_2_known
;
509 static int hf_radiotap_eht_data4_ru_alloc_c1_2_3
;
510 static int hf_radiotap_eht_data4_ru_alloc_c1_2_3_not_known
;
511 static int hf_radiotap_eht_data4_ru_alloc_c1_2_3_known
;
512 static int hf_radiotap_eht_data4_ru_alloc_c2_2_3
;
513 static int hf_radiotap_eht_data4_ru_alloc_c2_2_3_not_known
;
514 static int hf_radiotap_eht_data4_ru_alloc_c2_2_3_known
;
515 static int hf_radiotap_eht_data4_reserved
;
516 static int hf_radiotap_eht_data5
;
517 static int hf_radiotap_eht_data5_ru_alloc_c1_2_4
;
518 static int hf_radiotap_eht_data5_ru_alloc_c1_2_4_not_known
;
519 static int hf_radiotap_eht_data5_ru_alloc_c1_2_4_known
;
520 static int hf_radiotap_eht_data5_ru_alloc_c2_2_4
;
521 static int hf_radiotap_eht_data5_ru_alloc_c2_2_4_not_known
;
522 static int hf_radiotap_eht_data5_ru_alloc_c2_2_4_known
;
523 static int hf_radiotap_eht_data5_ru_alloc_c1_2_5
;
524 static int hf_radiotap_eht_data5_ru_alloc_c1_2_5_not_known
;
525 static int hf_radiotap_eht_data5_ru_alloc_c1_2_5_known
;
526 static int hf_radiotap_eht_data5_reserved
;
527 static int hf_radiotap_eht_data6
;
528 static int hf_radiotap_eht_data6_ru_alloc_c2_2_5
;
529 static int hf_radiotap_eht_data6_ru_alloc_c2_2_5_not_known
;
530 static int hf_radiotap_eht_data6_ru_alloc_c2_2_5_known
;
531 static int hf_radiotap_eht_data6_ru_alloc_c1_2_6
;
532 static int hf_radiotap_eht_data6_ru_alloc_c1_2_6_not_known
;
533 static int hf_radiotap_eht_data6_ru_alloc_c1_2_6_known
;
534 static int hf_radiotap_eht_data6_ru_alloc_c2_2_6
;
535 static int hf_radiotap_eht_data6_ru_alloc_c2_2_6_not_known
;
536 static int hf_radiotap_eht_data6_ru_alloc_c2_2_6_known
;
537 static int hf_radiotap_eht_data6_reserved
;
538 static int hf_radiotap_eht_data7
;
539 static int hf_radiotap_eht_data7_crc2
;
540 static int hf_radiotap_eht_data7_tail2
;
541 static int hf_radiotap_eht_data7_rsvd
;
542 static int hf_radiotap_eht_data7_nss
;
543 static int hf_radiotap_eht_data7_beamformed
;
544 static int hf_radiotap_eht_data7_number_non_ofdma_users
;
545 static int hf_radiotap_eht_data7_number_non_ofdma_users_not_known
;
546 static int hf_radiotap_eht_data7_user_encode_crc
;
547 static int hf_radiotap_eht_data7_user_encode_tail
;
548 static int hf_radiotap_eht_data7_rsvd2
;
549 static int hf_radiotap_eht_data8
;
550 static int hf_radiotap_eht_data8_ru_alloc_ps_160
;
551 static int hf_radiotap_eht_data8_ru_alloc_b0
;
552 static int hf_radiotap_eht_data8_ru_alloc_b7_b1
;
553 static int hf_radiotap_eht_data8_rsvd
;
554 static int hf_radiotap_eht_user_info
;
555 static int hf_radiotap_eht_ui_sta_id_known
;
556 static int hf_radiotap_eht_ui_mcs_known
;
557 static int hf_radiotap_eht_ui_coding_known
;
558 static int hf_radiotap_eht_ui_rsvd_known
;
559 static int hf_radiotap_eht_ui_nss_known
;
560 static int hf_radiotap_eht_ui_beamforming_known
;
561 static int hf_radiotap_eht_ui_spatial_config_known
;
562 static int hf_radiotap_eht_ui_data_captured
;
563 static int hf_radiotap_eht_ui_sta_id
;
564 static int hf_radiotap_eht_ui_sta_id_not_known
;
565 static int hf_radiotap_eht_ui_coding
;
566 static int hf_radiotap_eht_ui_coding_not_known
;
567 static int hf_radiotap_eht_ui_mcs
;
568 static int hf_radiotap_eht_ui_mcs_not_known
;
569 static int hf_radiotap_eht_ui_nss
;
570 static int hf_radiotap_eht_ui_nss_not_known
;
571 static int hf_radiotap_eht_ui_reserved
;
572 static int hf_radiotap_eht_ui_reserved_not_known
;
573 static int hf_radiotap_eht_ui_beamforming
;
574 static int hf_radiotap_eht_ui_beamforming_not_known
;
575 static int hf_radiotap_eht_ui_spatial_config
;
576 static int hf_radiotap_eht_ui_rsvd1
;
579 static const value_string eht_data_ru_mru_size_vals
[] = {
580 { IEEE80211_RADIOTAP_EHT_RU_26
, "26-tone RU" },
581 { IEEE80211_RADIOTAP_EHT_RU_52
, "52-tone RU" },
582 { IEEE80211_RADIOTAP_EHT_RU_106
, "106-tone RU" },
583 { IEEE80211_RADIOTAP_EHT_RU_242
, "242-tone RU"},
584 { IEEE80211_RADIOTAP_EHT_RU_484
, "484-tone RU"},
585 { IEEE80211_RADIOTAP_EHT_RU_996
, "996-tone RU"},
586 { IEEE80211_RADIOTAP_EHT_RU_2_TIMES_996
, "2x996-tone RU"},
587 { IEEE80211_RADIOTAP_EHT_RU_4_TIMES_994
, "4x996-tone RU"},
588 { IEEE80211_RADIOTAP_EHT_RU_52_PLUS_26
, "52+26-tone RU"},
589 { IEEE80211_RADIOTAP_EHT_RU_106_PLUS_26
, "106+26-tone RU"},
590 { IEEE80211_RADIOTAP_EHT_RU_484_PLUS_242
, "484+242-tone RU"},
591 { IEEE80211_RADIOTAP_EHT_RU_996_PLUS_484
, "996+484-tone RU"},
592 { IEEE80211_RADIOTAP_EHT_RU_996_PLUS_484_242
, "996+484+242-tone RU"},
593 { IEEE80211_RADIOTAP_EHT_RU_2_TIMES_996_PLUS_484
, "2x996+484-tone RU"},
594 { IEEE80211_RADIOTAP_EHT_RU_3_TIMES_996
, "3x996-tone RU"},
595 { IEEE80211_RADIOTAP_EHT_RU_3_TIMES_996_PLUS_484
, "3x996+484-tone RU"},
600 static int hf_radiotap_s1g_known
;
601 static int hf_radiotap_s1g_s1g_ppdu_format_known
;
602 static int hf_radiotap_s1g_response_indication_known
;
603 static int hf_radiotap_s1g_guard_interval_known
;
604 static int hf_radiotap_s1g_nss_known
;
605 static int hf_radiotap_s1g_bandwidth_known
;
606 static int hf_radiotap_s1g_mcs_known
;
607 static int hf_radiotap_s1g_color_known
;
608 static int hf_radiotap_s1g_uplink_indication_known
;
609 static int hf_radiotap_s1g_reserved_1
;
610 static int hf_radiotap_s1g_data_1
;
611 static int hf_radiotap_s1g_s1g_ppdu_format
;
612 static int hf_radiotap_s1g_response_indication
;
613 static int hf_radiotap_s1g_reserved_2
;
614 static int hf_radiotap_s1g_guard_interval
;
615 static int hf_radiotap_s1g_nss
;
616 static int hf_radiotap_s1g_bandwidth
;
617 static int hf_radiotap_s1g_mcs
;
618 static int hf_radiotap_s1g_data_2
;
619 static int hf_radiotap_s1g_color
;
620 static int hf_radiotap_s1g_uplink_indication
;
621 static int hf_radiotap_s1g_rssi
;
622 static int hf_radiotap_s1g_reserved_3
;
624 static int ett_radiotap
;
625 static int ett_radiotap_tlv
;
626 static int ett_radiotap_present
;
627 static int ett_radiotap_present_word
;
628 static int ett_radiotap_flags
;
629 static int ett_radiotap_rxflags
;
630 static int ett_radiotap_txflags
;
631 static int ett_radiotap_channel_flags
;
632 static int ett_radiotap_xchannel_flags
;
633 static int ett_radiotap_vendor
;
634 static int ett_radiotap_mcs
;
635 static int ett_radiotap_mcs_known
;
636 static int ett_radiotap_ampdu
;
637 static int ett_radiotap_ampdu_flags
;
638 static int ett_radiotap_vht
;
639 static int ett_radiotap_vht_known
;
640 static int ett_radiotap_vht_user
;
641 static int ett_radiotap_timestamp
;
642 static int ett_radiotap_timestamp_flags
;
643 static int ett_radiotap_he_info
;
644 static int ett_radiotap_he_info_data_1
;
645 static int ett_radiotap_he_info_data_2
;
646 static int ett_radiotap_he_info_data_3
;
647 static int ett_radiotap_he_info_data_4
;
648 static int ett_radiotap_he_info_data_5
;
649 static int ett_radiotap_he_info_data_6
;
650 static int ett_radiotap_he_mu_info
;
651 static int ett_radiotap_he_mu_info_flags_1
;
652 static int ett_radiotap_he_mu_info_flags_2
;
653 static int ett_radiotap_he_mu_chan_rus
;
654 static int ett_radiotap_0_length_psdu
;
655 static int ett_radiotap_l_sig
;
656 static int ett_radiotap_l_sig_data_1
;
657 static int ett_radiotap_l_sig_data_2
;
658 static int ett_radiotap_unknown_tlv
;
661 static int ett_radiotap_u_sig
;
662 static int ett_radiotap_u_sig_common
;
663 static int ett_radiotap_u_sig_value
;
666 static int ett_radiotap_s1g
;
667 static int ett_radiotap_s1g_known
;
668 static int ett_radiotap_s1g_data_1
;
669 static int ett_radiotap_s1g_data_2
;
672 static int ett_radiotap_eht
;
673 static int ett_radiotap_eht_known
;
674 static int ett_radiotap_eht_data
;
675 static int ett_radiotap_eht_user_info
;
676 static int ett_radiotap_eht_user_info_i
;
678 static expert_field ei_radiotap_invalid_header_length
;
679 static expert_field ei_radiotap_data_past_header
;
680 static expert_field ei_radiotap_present
;
681 static expert_field ei_radiotap_invalid_data_rate
;
683 static dissector_handle_t ieee80211_radio_handle
;
685 static capture_dissector_handle_t ieee80211_cap_handle
;
686 static capture_dissector_handle_t ieee80211_datapad_cap_handle
;
688 static dissector_table_t vendor_dissector_table
;
691 static bool radiotap_bit14_fcs
;
692 static bool radiotap_interpret_high_rates_as_mcs
;
694 #define USE_FCS_BIT 0
695 #define ASSUME_FCS_PRESENT 1
696 #define ASSUME_FCS_ABSENT 2
697 static const enum_val_t fcs_handling
[] = {
698 { "use_fcs_bit", "Use the FCS bit", USE_FCS_BIT
},
699 { "assume_fcs_present", "Assume all packets have an FCS at the end", ASSUME_FCS_PRESENT
},
700 { "assume_fcs_absent", "Assume all packets don't have an FCS at the end", ASSUME_FCS_ABSENT
},
703 static int radiotap_fcs_handling
= USE_FCS_BIT
;
705 #define BITNO_32(x) (((x) >> 16) ? 16 + BITNO_16((x) >> 16) : BITNO_16((x)))
706 #define BITNO_16(x) (((x) >> 8) ? 8 + BITNO_8((x) >> 8) : BITNO_8((x)))
707 #define BITNO_8(x) (((x) >> 4) ? 4 + BITNO_4((x) >> 4) : BITNO_4((x)))
708 #define BITNO_4(x) (((x) >> 2) ? 2 + BITNO_2((x) >> 2) : BITNO_2((x)))
709 #define BITNO_2(x) (((x) & 2) ? 1 : 0)
710 #define BIT(n) (1U << n)
712 /* not officially defined (yet) */
713 #define IEEE80211_RADIOTAP_F_SHORTGI 0x80
714 #define IEEE80211_RADIOTAP_XCHANNEL 18
716 /* Official specifcation:
718 * http://www.radiotap.org/
720 * Unofficial and historical specifications:
721 * http://madwifi-project.org/wiki/DevDocs/RadiotapHeader
722 * NetBSD's ieee80211_radiotap.h file
726 * Useful combinations of channel characteristics.
728 #define IEEE80211_CHAN_FHSS \
729 (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_GFSK)
730 #define IEEE80211_CHAN_DSSS \
731 (IEEE80211_CHAN_2GHZ)
732 #define IEEE80211_CHAN_A \
733 (IEEE80211_CHAN_5GHZ | IEEE80211_CHAN_OFDM)
734 #define IEEE80211_CHAN_B \
735 (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK)
736 #define IEEE80211_CHAN_PUREG \
737 (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_OFDM)
738 #define IEEE80211_CHAN_G \
739 (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_DYN)
740 #define IEEE80211_CHAN_108A \
741 (IEEE80211_CHAN_A | IEEE80211_CHAN_TURBO)
742 #define IEEE80211_CHAN_108G \
743 (IEEE80211_CHAN_G | IEEE80211_CHAN_TURBO)
744 #define IEEE80211_CHAN_108PUREG \
745 (IEEE80211_CHAN_PUREG | IEEE80211_CHAN_TURBO)
746 #define IEEE80211_CHAN_ST \
747 (IEEE80211_CHAN_108A | IEEE80211_CHAN_STURBO)
749 #define MAX_MCS_VHT_INDEX 9
750 #define MAX_VHT_NSS 8
753 * Maps a VHT bandwidth index to ieee80211_vhtinfo.rates index.
755 static const int ieee80211_vht_bw2rate_index
[] = {
757 /* 40Mhz total */ 1, 0, 0,
758 /* 80Mhz total */ 2, 1, 1, 0, 0, 0, 0,
759 /* 160Mhz total */ 3, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0
762 struct mcs_vht_valid
{
763 bool valid
[4][MAX_VHT_NSS
]; /* indexed by bandwidth and NSS-1 */
766 static const struct mcs_vht_valid ieee80211_vhtvalid
[MAX_MCS_VHT_INDEX
+1] = {
769 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
770 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
771 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
772 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
777 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
778 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
779 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
780 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
785 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
786 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
787 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
788 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
793 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
794 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
795 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
796 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
801 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
802 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
803 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
804 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
809 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
810 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
811 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
812 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
817 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
818 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
819 /* 80 Mhz */ { true, true, false, true, true, true, false, true },
820 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
825 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
826 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
827 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
828 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
833 { /* 20 Mhz */ { true, true, true, true, true, true, true, true },
834 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
835 /* 80 Mhz */ { true, true, true, true, true, true, true, true },
836 /* 160 Mhz */ { true, true, true, true, true, true, true, true },
841 { /* 20 Mhz */ { false, false, true, false, false, true, false, false },
842 /* 40 Mhz */ { true, true, true, true, true, true, true, true },
843 /* 80 Mhz */ { true, true, true, true, true, false, true, true },
844 /* 160 Mhz */ { true, true, false, true, true, true, true, true },
849 struct mcs_vht_info
{
850 const char *modulation
;
851 const char *coding_rate
;
852 float rates
[4][2]; /* indexed by bandwidth and GI length */
855 static const struct mcs_vht_info ieee80211_vhtinfo
[MAX_MCS_VHT_INDEX
+1] = {
858 { /* 20 Mhz */ { 6.5f
, /* SGI */ 7.2f
, },
859 /* 40 Mhz */ { 13.5f
, /* SGI */ 15.0f
, },
860 /* 80 Mhz */ { 29.3f
, /* SGI */ 32.5f
, },
861 /* 160 Mhz */ { 58.5f
, /* SGI */ 65.0f
, }
866 { /* 20 Mhz */ { 13.0f
, /* SGI */ 14.4f
, },
867 /* 40 Mhz */ { 27.0f
, /* SGI */ 30.0f
, },
868 /* 80 Mhz */ { 58.5f
, /* SGI */ 65.0f
, },
869 /* 160 Mhz */ { 117.0f
, /* SGI */ 130.0f
, }
874 { /* 20 Mhz */ { 19.5f
, /* SGI */ 21.7f
, },
875 /* 40 Mhz */ { 40.5f
, /* SGI */ 45.0f
, },
876 /* 80 Mhz */ { 87.8f
, /* SGI */ 97.5f
, },
877 /* 160 Mhz */ { 175.5f
, /* SGI */ 195.0f
, }
882 { /* 20 Mhz */ { 26.0f
, /* SGI */ 28.9f
, },
883 /* 40 Mhz */ { 54.0f
, /* SGI */ 60.0f
, },
884 /* 80 Mhz */ { 117.0f
, /* SGI */ 130.0f
, },
885 /* 160 Mhz */ { 234.0f
, /* SGI */ 260.0f
, }
890 { /* 20 Mhz */ { 39.0f
, /* SGI */ 43.3f
, },
891 /* 40 Mhz */ { 81.0f
, /* SGI */ 90.0f
, },
892 /* 80 Mhz */ { 175.5f
, /* SGI */ 195.0f
, },
893 /* 160 Mhz */ { 351.0f
, /* SGI */ 390.0f
, }
898 { /* 20 Mhz */ { 52.0f
, /* SGI */ 57.8f
, },
899 /* 40 Mhz */ { 108.0f
, /* SGI */ 120.0f
, },
900 /* 80 Mhz */ { 234.0f
, /* SGI */ 260.0f
, },
901 /* 160 Mhz */ { 468.0f
, /* SGI */ 520.0f
, }
906 { /* 20 Mhz */ { 58.5f
, /* SGI */ 65.0f
, },
907 /* 40 Mhz */ { 121.5f
, /* SGI */ 135.0f
, },
908 /* 80 Mhz */ { 263.3f
, /* SGI */ 292.5f
, },
909 /* 160 Mhz */ { 526.5f
, /* SGI */ 585.0f
, }
914 { /* 20 Mhz */ { 65.0f
, /* SGI */ 72.2f
, },
915 /* 40 Mhz */ { 135.0f
, /* SGI */ 150.0f
, },
916 /* 80 Mhz */ { 292.5f
, /* SGI */ 325.0f
, },
917 /* 160 Mhz */ { 585.0f
, /* SGI */ 650.0f
, }
922 { /* 20 Mhz */ { 78.0f
, /* SGI */ 86.7f
, },
923 /* 40 Mhz */ { 162.0f
, /* SGI */ 180.0f
, },
924 /* 80 Mhz */ { 351.0f
, /* SGI */ 390.0f
, },
925 /* 160 Mhz */ { 702.0f
, /* SGI */ 780.0f
, }
930 { /* 20 Mhz */ { 86.7f
, /* SGI */ 96.3f
, },
931 /* 40 Mhz */ { 180.0f
, /* SGI */ 200.0f
, },
932 /* 80 Mhz */ { 390.0f
, /* SGI */ 433.3f
, },
933 /* 160 Mhz */ { 780.0f
, /* SGI */ 866.7f
, }
938 /* In order by value */
939 static const value_string vht_bandwidth
[] = {
940 { IEEE80211_RADIOTAP_VHT_BW_20
, "20 MHz" },
941 { IEEE80211_RADIOTAP_VHT_BW_40
, "40 MHz" },
942 { IEEE80211_RADIOTAP_VHT_BW_20L
, "20 MHz lower" },
943 { IEEE80211_RADIOTAP_VHT_BW_20U
, "20 MHz upper" },
944 { IEEE80211_RADIOTAP_VHT_BW_80
, "80 MHz" },
945 { IEEE80211_RADIOTAP_VHT_BW_40L
, "40 MHz lower" },
946 { IEEE80211_RADIOTAP_VHT_BW_40U
, "40 MHz upper" },
947 { IEEE80211_RADIOTAP_VHT_BW_20LL
, "20 MHz, channel 1/4" },
948 { IEEE80211_RADIOTAP_VHT_BW_20LU
, "20 MHz, channel 2/4" },
949 { IEEE80211_RADIOTAP_VHT_BW_20UL
, "20 MHz, channel 3/4" },
950 { IEEE80211_RADIOTAP_VHT_BW_20UU
, "20 MHz, channel 4/4" },
951 { IEEE80211_RADIOTAP_VHT_BW_160
, "160 MHz" },
952 { IEEE80211_RADIOTAP_VHT_BW_80L
, "80 MHz lower" },
953 { IEEE80211_RADIOTAP_VHT_BW_80U
, "80 MHz upper" },
954 { IEEE80211_RADIOTAP_VHT_BW_40LL
, "40 MHz, channel 1/4" },
955 { IEEE80211_RADIOTAP_VHT_BW_40LU
, "40 MHz, channel 2/4" },
956 { IEEE80211_RADIOTAP_VHT_BW_40UL
, "40 MHz, channel 3/4" },
957 { IEEE80211_RADIOTAP_VHT_BW_40UU
, "40 MHz, channel 4/4" },
958 { IEEE80211_RADIOTAP_VHT_BW_20LLL
, "20 MHz, channel 1/8" },
959 { IEEE80211_RADIOTAP_VHT_BW_20LLU
, "20 MHz, channel 2/8" },
960 { IEEE80211_RADIOTAP_VHT_BW_20LUL
, "20 MHz, channel 3/8" },
961 { IEEE80211_RADIOTAP_VHT_BW_20LUU
, "20 MHz, channel 4/8" },
962 { IEEE80211_RADIOTAP_VHT_BW_20ULL
, "20 MHz, channel 5/8" },
963 { IEEE80211_RADIOTAP_VHT_BW_20ULU
, "20 MHz, channel 6/8" },
964 { IEEE80211_RADIOTAP_VHT_BW_20UUL
, "20 MHz, channel 7/8" },
965 { IEEE80211_RADIOTAP_VHT_BW_20UUU
, "20 MHz, channel 8/8" },
968 static value_string_ext vht_bandwidth_ext
= VALUE_STRING_EXT_INIT(vht_bandwidth
);
970 static const value_string mcs_bandwidth
[] = {
971 { IEEE80211_RADIOTAP_MCS_BW_20
, "20 MHz" },
972 { IEEE80211_RADIOTAP_MCS_BW_40
, "40 MHz" },
973 { IEEE80211_RADIOTAP_MCS_BW_20L
, "20 MHz lower" },
974 { IEEE80211_RADIOTAP_MCS_BW_20U
, "20 MHz upper" },
978 static const value_string mcs_format
[] = {
984 static const value_string mcs_fec
[] = {
990 static const value_string mcs_gi
[] = {
996 static const true_false_string preamble_type
= {
1001 static const value_string timestamp_unit
[] = {
1002 { IEEE80211_RADIOTAP_TS_UNIT_MSEC
, "msec" },
1003 { IEEE80211_RADIOTAP_TS_UNIT_USEC
, "usec" },
1004 { IEEE80211_RADIOTAP_TS_UNIT_NSEC
, "nsec" },
1008 static const value_string timestamp_spos
[] = {
1009 { IEEE80211_RADIOTAP_TS_SPOS_MPDU
, "first MPDU bit/symbol" },
1010 { IEEE80211_RADIOTAP_TS_SPOS_ACQ
, "signal acquisition" },
1011 { IEEE80211_RADIOTAP_TS_SPOS_EOF
, "end of frame" },
1012 { IEEE80211_RADIOTAP_TS_SPOS_UNDEF
, "undefined" },
1017 static const value_string s1g_ppdu_format
[] = {
1024 static const value_string s1g_response_indication
[] = {
1025 { 0, "No response" },
1026 { 1, "NDP response" },
1027 { 2, "Normal response" },
1028 { 3, "Long response" },
1032 static const value_string s1g_guard_interval
[] = {
1038 static const value_string s1g_nss
[] = {
1046 static const value_string s1g_bandwidth
[] = {
1047 { 0, "1MHz channel" },
1048 { 1, "2MHz channel" },
1049 { 2, "4MHz channel" },
1050 { 3, "8MHz channel" },
1051 { 4, "16MHz channel" },
1055 static const value_string s1g_mcs
[] = {
1070 static const value_string s1g_color
[] = {
1082 static const range_string tlv_type_rvals
[] = {
1083 { 0, IEEE80211_RADIOTAP_TLV_S1G
- 1, "Bit-defined types" },
1084 { IEEE80211_RADIOTAP_TLV_S1G
, IEEE80211_RADIOTAP_TLV_S1G
, "S1G" },
1085 { IEEE80211_RADIOTAP_TLV_U_SIG
, IEEE80211_RADIOTAP_TLV_U_SIG
, "U-SIG" },
1086 { IEEE80211_RADIOTAP_TLV_EHT
, IEEE80211_RADIOTAP_TLV_EHT
, "EHT" },
1091 * The NetBSD ieee80211_radiotap man page
1092 * (http://netbsd.gw.com/cgi-bin/man-cgi?ieee80211_radiotap+9+NetBSD-current)
1095 * Radiotap capture fields must be naturally aligned. That is, 16-, 32-,
1096 * and 64-bit fields must begin on 16-, 32-, and 64-bit boundaries, respec-
1097 * tively. In this way, drivers can avoid unaligned accesses to radiotap
1098 * capture fields. radiotap-compliant drivers must insert padding before a
1099 * capture field to ensure its natural alignment. radiotap-compliant packet
1100 * dissectors, such as tcpdump(8), expect the padding.
1104 capture_radiotap(const unsigned char * pd
, int offset
, int len
, capture_packet_info_t
*cpinfo
, const union wtap_pseudo_header
*pseudo_header _U_
)
1107 uint32_t present
, xpresent
;
1109 const struct ieee80211_radiotap_header
*hdr
;
1111 if (!BYTES_ARE_IN_FRAME(offset
, len
,
1112 sizeof(struct ieee80211_radiotap_header
))) {
1115 hdr
= (const struct ieee80211_radiotap_header
*)pd
;
1116 it_len
= pletoh16(&hdr
->it_len
);
1117 if (!BYTES_ARE_IN_FRAME(offset
, len
, it_len
))
1121 /* Header length is bigger than total packet length */
1125 if (it_len
< sizeof(struct ieee80211_radiotap_header
)) {
1126 /* Header length is shorter than fixed-length portion of header */
1130 present
= pletoh32(&hdr
->it_present
);
1131 offset
+= (int)sizeof(struct ieee80211_radiotap_header
);
1132 it_len
-= (int)sizeof(struct ieee80211_radiotap_header
);
1134 /* skip over other present bitmaps */
1136 while (xpresent
& BIT(IEEE80211_RADIOTAP_EXT
)) {
1137 if (!BYTES_ARE_IN_FRAME(offset
, 4, it_len
)) {
1140 xpresent
= pletoh32(pd
+ offset
);
1148 * IEEE80211_RADIOTAP_TSFT is the lowest-order bit,
1149 * just skip over it.
1151 if (present
& BIT(IEEE80211_RADIOTAP_TSFT
)) {
1152 /* align it properly */
1154 int pad
= 8 - (offset
& 7);
1160 /* No room in header for this field. */
1163 /* That field is present, and it's 8 bytes long. */
1169 * IEEE80211_RADIOTAP_FLAGS is the next bit.
1171 if (present
& BIT(IEEE80211_RADIOTAP_FLAGS
)) {
1173 /* No room in header for this field. */
1176 /* That field is present; fetch it. */
1177 if (!BYTES_ARE_IN_FRAME(offset
, len
, 1)) {
1180 rflags
= pd
[offset
];
1183 /* 802.11 header follows */
1184 if (rflags
& IEEE80211_RADIOTAP_F_DATAPAD
)
1185 return call_capture_dissector(ieee80211_datapad_cap_handle
, pd
, offset
+ it_len
, len
, cpinfo
, pseudo_header
);
1187 return call_capture_dissector(ieee80211_cap_handle
, pd
, offset
+ it_len
, len
, cpinfo
, pseudo_header
);
1191 add_tlv_items(proto_tree
*tree
, tvbuff_t
*tvb
, int offset
)
1195 proto_tree_add_item(tree
, hf_radiotap_tlv_type
, tvb
,
1196 offset
, 2, ENC_LITTLE_ENDIAN
);
1199 proto_tree_add_item(tree
, hf_radiotap_tlv_datalen
, tvb
,
1200 offset
, 2, ENC_LITTLE_ENDIAN
);
1203 static const true_false_string tfs_known_unknown
= {
1208 static int * const data1_headers
[] = {
1209 &hf_radiotap_he_ppdu_format
,
1210 &hf_radiotap_he_bss_color_known
,
1211 &hf_radiotap_he_beam_change_known
,
1212 &hf_radiotap_he_ul_dl_known
,
1213 &hf_radiotap_he_data_mcs_known
,
1214 &hf_radiotap_he_data_dcm_known
,
1215 &hf_radiotap_he_coding_known
,
1216 &hf_radiotap_he_ldpc_extra_symbol_segment_known
,
1217 &hf_radiotap_he_stbc_known
,
1218 &hf_radiotap_he_spatial_reuse_1_known
,
1219 &hf_radiotap_he_spatial_reuse_2_known
,
1220 &hf_radiotap_he_spatial_reuse_3_known
,
1221 &hf_radiotap_he_spatial_reuse_4_known
,
1222 &hf_radiotap_he_data_bw_ru_allocation_known
,
1223 &hf_radiotap_he_doppler_known
,
1227 static const value_string he_pdu_format_vals
[] = {
1228 { IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_SU
, "HE_SU" },
1229 { IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_EXT_SU
, "HE_EXT_SU" },
1230 { IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_MU
, "HE_MU" },
1231 { IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_TRIG
, "HE_TRIG" },
1235 static int * const data2_headers
[] = {
1236 &hf_radiotap_he_pri_sec_80_mhz_known
,
1237 &hf_radiotap_he_gi_known
,
1238 &hf_radiotap_he_num_ltf_symbols_known
,
1239 &hf_radiotap_he_pre_fec_padding_factor_known
,
1240 &hf_radiotap_he_txbf_known
,
1241 &hf_radiotap_he_pe_disambiguity_known
,
1242 &hf_radiotap_he_txop_known
,
1243 &hf_radiotap_he_midamble_periodicity_known
,
1244 &hf_radiotap_he_ru_allocation_offset
,
1245 &hf_radiotap_he_ru_allocation_offset_known
,
1246 &hf_radiotap_he_pri_sec_80_mhz
,
1250 static const true_false_string tfs_pri_sec_80_mhz
= {
1255 static const value_string he_coding_vals
[] = {
1261 static const value_string he_data_bw_ru_alloc_vals
[] = {
1266 { 4, "26-tone RU" },
1267 { 5, "52-tone RU" },
1268 { 6, "106-tone RU" },
1269 { 7, "242-tone RU" },
1270 { 8, "484-tone RU" },
1271 { 9, "996-tone RU" },
1272 { 10, "2x996-tone RU" },
1281 static const value_string he_gi_vals
[] = {
1289 static const value_string he_ltf_symbol_size_vals
[] = {
1297 static const value_string he_num_ltf_symbols_vals
[] = {
1309 static const value_string he_nsts_vals
[] = {
1311 { 1, "1 space-time stream" },
1312 { 2, "2 space-time streams" },
1313 { 3, "3 space-time streams" },
1314 { 4, "4 space-time streams" },
1315 { 5, "5 space-time streams" },
1316 { 6, "6 space-time streams" },
1317 { 7, "7 space-time streams" },
1318 { 8, "8 space-time streams" },
1319 { 9, "9 space-time streams" },
1320 { 10, "10 space-time streams" },
1321 { 11, "11 space-time streams" },
1322 { 12, "12 space-time streams" },
1323 { 13, "13 space-time streams" },
1324 { 14, "14 space-time streams" },
1325 { 15, "15 space-time streams" },
1329 static const value_string he_midamble_periodicity_vals
[] = {
1336 dissect_radiotap_he_info(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
1337 int offset
, struct ieee_802_11ax
*info_11ax
, bool is_tlv
)
1339 uint16_t ppdu_format
= tvb_get_letohs(tvb
, offset
) &
1340 IEEE80211_RADIOTAP_HE_PPDU_FORMAT_MASK
;
1341 proto_tree
*he_info_tree
= NULL
;
1342 bool bss_color_known
= false;
1343 bool beam_change_known
= false;
1344 bool ul_dl_known
= false;
1345 bool data_mcs_known
= false;
1346 bool data_dcm_known
= false;
1347 bool coding_known
= false;
1348 bool ldpc_extra_symbol_segment_known
= false;
1349 bool stbc_known
= false;
1350 bool spatial_reuse_1_known
= false;
1351 bool spatial_reuse_2_known
= false;
1352 bool spatial_reuse_3_known
= false;
1353 bool spatial_reuse_4_known
= false;
1354 bool data_bw_ru_alloc_known
= false;
1355 bool doppler_known
= false;
1356 bool gi_known
= false;
1357 bool num_ltf_symbols_known
= false;
1358 bool ltf_symbol_size_known
= false;
1359 bool pre_fec_padding_factor_known
= false;
1360 bool txbf_known
= false;
1361 bool pe_disambiguity_known
= false;
1362 bool txop_known
= false;
1363 bool midamble_periodicity_known
= false;
1364 uint16_t data1
= tvb_get_letohs(tvb
, offset
);
1370 uint8_t ltf_symbol_size
= 0;
1373 * This is set differetly for each packet, depending on
1374 * which values in data3 are known. It thus will not
1375 * work if it's static.
1377 int *data3_headers
[] = {
1378 &hf_radiotap_he_bss_color
,
1379 &hf_radiotap_he_beam_change
,
1380 &hf_radiotap_he_ul_dl
,
1381 &hf_radiotap_he_data_mcs
,
1382 &hf_radiotap_he_data_dcm
,
1383 &hf_radiotap_he_coding
,
1384 &hf_radiotap_he_ldpc_extra_symbol_segment
,
1385 &hf_radiotap_he_stbc
,
1390 * Same story but for data4.
1392 int *data4_he_trig_headers
[] = {
1393 &hf_radiotap_spatial_reuse_1
,
1394 &hf_radiotap_spatial_reuse_2
,
1395 &hf_radiotap_spatial_reuse_3
,
1396 &hf_radiotap_spatial_reuse_4
,
1399 int *data4_he_su_and_he_ext_su_headers
[] = {
1400 &hf_radiotap_spatial_reuse
,
1401 &hf_radiotap_he_su_reserved
,
1404 int *data4_he_mu_headers
[] = {
1405 &hf_radiotap_spatial_reuse
,
1406 &hf_radiotap_sta_id_user_captured
,
1407 &hf_radiotap_he_mu_reserved
,
1410 int *data5_headers
[] = {
1411 &hf_radiotap_data_bandwidth_ru_allocation
,
1413 &hf_radiotap_ltf_symbol_size
,
1414 &hf_radiotap_num_ltf_symbols
,
1415 &hf_radiotap_d5_reserved_b11
,
1416 &hf_radiotap_pre_fec_padding_factor
,
1418 &hf_radiotap_pe_disambiguity
,
1423 * Same story, but for data6.
1425 int *data6_headers
[] = {
1426 &hf_radiotap_he_nsts
,
1427 &hf_radiotap_he_doppler_value
,
1428 &hf_radiotap_he_d6_reserved_00e0
,
1429 &hf_radiotap_he_txop_value
,
1430 &hf_radiotap_midamble_periodicity
,
1435 * Determine what is known.
1437 if (data1
& IEEE80211_RADIOTAP_HE_BSS_COLOR_KNOWN
)
1438 bss_color_known
= true;
1439 if (data1
& IEEE80211_RADIOTAP_HE_BEAM_CHANGE_KNOWN
)
1440 beam_change_known
= true;
1441 if (data1
& IEEE80211_RADIOTAP_HE_UL_DL_KNOWN
)
1443 if (data1
& IEEE80211_RADIOTAP_HE_DATA_MCS_KNOWN
)
1444 data_mcs_known
= true;
1445 if (data1
& IEEE80211_RADIOTAP_HE_DATA_DCM_KNOWN
)
1446 data_dcm_known
= true;
1447 if (data1
& IEEE80211_RADIOTAP_HE_CODING_KNOWN
)
1448 coding_known
= true;
1449 if (data1
& IEEE80211_RADIOTAP_HE_LDPC_EXTRA_SYMBOL_SEGMENT_KNOWN
)
1450 ldpc_extra_symbol_segment_known
= true;
1451 if (data1
& IEEE80211_RADIOTAP_HE_STBC_KNOWN
)
1453 if (data1
& IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_KNOWN
)
1454 spatial_reuse_1_known
= true;
1455 if (data1
& IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_2_KNOWN
)
1456 spatial_reuse_2_known
= true;
1457 if (data1
& IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_3_KNOWN
)
1458 spatial_reuse_3_known
= true;
1459 if (data1
& IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_4_KNOWN
)
1460 spatial_reuse_4_known
= true;
1461 if (data1
& IEEE80211_RADIOTAP_HE_DATA_BW_RU_ALLOCATION_KNOWN
)
1462 data_bw_ru_alloc_known
= true;
1463 if (data1
& IEEE80211_RADIOTAP_HE_DOPPLER_KNOWN
)
1464 doppler_known
= true;
1466 he_info_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 12,
1467 ett_radiotap_he_info
, NULL
, "HE information");
1470 add_tlv_items(he_info_tree
, tvb
, offset
);
1473 /* Add the bitmasks for each of D1 through D6 */
1474 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1475 hf_radiotap_he_info_data_1
, ett_radiotap_he_info_data_1
,
1476 data1_headers
, ENC_LITTLE_ENDIAN
);
1479 data2
= tvb_get_letohs(tvb
, offset
);
1480 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1481 hf_radiotap_he_info_data_2
, ett_radiotap_he_info_data_2
,
1482 data2_headers
, ENC_LITTLE_ENDIAN
);
1486 * Second lot of what is known
1488 if (data2
& IEEE80211_RADIOTAP_HE_GI_KNOWN
)
1490 if (data2
& IEEE80211_RADIOTAP_HE_NUM_LTF_SYMBOLS_KNOWN
)
1491 num_ltf_symbols_known
= true;
1492 if (data2
& IEEE80211_RADIOTAP_HE_PRE_FEC_PADDING_FACTOR_KNOWN
)
1493 pre_fec_padding_factor_known
= true;
1494 if (data2
& IEEE80211_RADIOTAP_HE_TXBF_KNOWN
)
1496 if (data2
& IEEE80211_RADIOTAP_HE_PE_DISAMBIGUITY_KNOWN
)
1497 pe_disambiguity_known
= true;
1498 if (data2
& IEEE80211_RADIOTAP_HE_TXOP_KNOWN
)
1500 if (data2
& IEEE80211_RADIOTAP_HE_MIDAMBLE_PERIODICITY_KNOWN
)
1501 midamble_periodicity_known
= true;
1504 * Set those fields that should be reserved
1506 if (!bss_color_known
)
1507 data3_headers
[0] = &hf_radiotap_he_bss_color_unknown
;
1508 if (!beam_change_known
)
1509 data3_headers
[1] = &hf_radiotap_he_beam_change_unknown
;
1511 data3_headers
[2] = &hf_radiotap_he_ul_dl_unknown
;
1512 if (!data_mcs_known
)
1513 data3_headers
[3] = &hf_radiotap_he_data_mcs_unknown
;
1514 if (!data_dcm_known
)
1515 data3_headers
[4] = &hf_radiotap_he_data_dcm_unknown
;
1517 data3_headers
[5] = &hf_radiotap_he_coding_unknown
;
1518 if (!ldpc_extra_symbol_segment_known
)
1519 data3_headers
[6] = &hf_radiotap_he_ldpc_extra_symbol_segment_unknown
;
1521 data3_headers
[7] = &hf_radiotap_he_stbc_unknown
;
1523 data3
= tvb_get_letohs(tvb
, offset
);
1524 if (data_mcs_known
) {
1525 info_11ax
->has_mcs_index
= true;
1526 info_11ax
->mcs
= (data3
& IEEE80211_RADIOTAP_HE_DATA_MCS_MASK
) >> 8;
1528 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1529 hf_radiotap_he_info_data_3
, ett_radiotap_he_info_data_3
,
1530 data3_headers
, ENC_LITTLE_ENDIAN
);
1533 if (ppdu_format
== IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_SU
||
1534 ppdu_format
== IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_EXT_SU
) {
1535 if (!spatial_reuse_1_known
)
1536 data4_he_su_and_he_ext_su_headers
[0] =
1537 &hf_radiotap_spatial_reuse_unknown
;
1538 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1539 hf_radiotap_he_info_data_4
, ett_radiotap_he_info_data_4
,
1540 data4_he_su_and_he_ext_su_headers
, ENC_LITTLE_ENDIAN
);
1541 } else if (ppdu_format
== IEEE80211_RADIOTAP_HE_PPDU_FORMAT_HE_TRIG
) {
1542 if (!spatial_reuse_1_known
)
1543 data4_he_trig_headers
[0] =
1544 &hf_radiotap_spatial_reuse_1_unknown
;
1545 if (!spatial_reuse_2_known
)
1546 data4_he_trig_headers
[1] =
1547 &hf_radiotap_spatial_reuse_2_unknown
;
1548 if (!spatial_reuse_3_known
)
1549 data4_he_trig_headers
[2] =
1550 &hf_radiotap_spatial_reuse_3_unknown
;
1551 if (!spatial_reuse_4_known
)
1552 data4_he_trig_headers
[3] =
1553 &hf_radiotap_spatial_reuse_4_unknown
;
1554 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1555 hf_radiotap_he_info_data_4
, ett_radiotap_he_info_data_4
,
1556 data4_he_trig_headers
, ENC_LITTLE_ENDIAN
);
1558 if (!spatial_reuse_1_known
)
1559 data4_he_mu_headers
[0] =
1560 &hf_radiotap_spatial_reuse_unknown
;
1561 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1562 hf_radiotap_he_info_data_4
, ett_radiotap_he_info_data_4
,
1563 data4_he_mu_headers
, ENC_LITTLE_ENDIAN
);
1566 //data4 = tvb_get_letohs(tvb, offset);
1570 * The LTF Symbol Size field is zero if LFT Symbol size is unknown
1572 ltf_symbol_size
= (tvb_get_letohs(tvb
, offset
) >> 6) & 0x03;
1573 if (ltf_symbol_size
!= 0)
1574 ltf_symbol_size_known
= true;
1575 if (!data_bw_ru_alloc_known
)
1576 data5_headers
[0] = &hf_radiotap_data_bandwidth_ru_allocation_unknown
;
1578 data5_headers
[1] = &hf_radiotap_gi_unknown
;
1579 if (!ltf_symbol_size_known
)
1580 data5_headers
[2] = &hf_radiotap_ltf_symbol_size_unknown
;
1581 if (!num_ltf_symbols_known
)
1582 data5_headers
[3] = &hf_radiotap_num_ltf_symbols_unknown
;
1583 if (!pre_fec_padding_factor_known
)
1584 data5_headers
[5] = &hf_radiotap_pre_fec_padding_factor_unknown
;
1586 data5_headers
[6] = &hf_radiotap_txbf_unknown
;
1587 if (!pe_disambiguity_known
)
1588 data5_headers
[7] = &hf_radiotap_pe_disambiguity_unknown
;
1589 data5
= tvb_get_letohs(tvb
, offset
);
1591 info_11ax
->has_gi
= true;
1592 info_11ax
->gi
= (data5
& IEEE80211_RADIOTAP_HE_GI_MASK
) >> 4;
1594 if (data_bw_ru_alloc_known
) {
1595 info_11ax
->has_bwru
= true;
1596 info_11ax
->bwru
= (data5
& IEEE80211_RADIOTAP_HE_DATA_BANDWIDTH_RU_ALLOC_MASK
);
1598 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1599 hf_radiotap_he_info_data_5
, ett_radiotap_he_info_data_5
,
1600 data5_headers
, ENC_LITTLE_ENDIAN
);
1604 data6_headers
[1] = &hf_radiotap_he_doppler_value_unknown
;
1606 data6_headers
[3] = &hf_radiotap_he_txop_value_unknown
;
1607 if (!midamble_periodicity_known
)
1608 data6_headers
[4] = &hf_radiotap_midamble_periodicity_unknown
;
1609 proto_tree_add_bitmask(he_info_tree
, tvb
, offset
,
1610 hf_radiotap_he_info_data_6
, ett_radiotap_he_info_data_6
,
1611 data6_headers
, ENC_LITTLE_ENDIAN
);
1612 data6
= tvb_get_letohs(tvb
, offset
);
1614 info_11ax
->nsts
= data6
& IEEE80211_RADIOTAP_HE_NSTS_MASK
;
1619 not_captured_custom(char *result
, uint32_t value _U_
)
1621 snprintf(result
, ITEM_LABEL_LENGTH
,
1622 "NOT CAPTURED BY CAPTURE SOFTWARE");
1626 he_sig_b_symbols_custom(char *result
, uint32_t value
)
1628 snprintf(result
, ITEM_LABEL_LENGTH
, "%d", value
+1);
1632 dissect_radiotap_he_mu_info(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
1633 proto_tree
*tree
, int offset
, bool is_tlv
)
1635 proto_tree
*he_mu_info_tree
= NULL
;
1636 uint16_t flags1
= tvb_get_letohs(tvb
, offset
);
1637 bool sig_b_mcs_known
= false;
1638 bool sig_b_dcm_known
= false;
1639 proto_tree
*mu_chan1_rus
= NULL
;
1640 proto_tree
*mu_chan2_rus
= NULL
;
1641 int mu_rus_chan1_rus_0
= -1;
1642 int mu_rus_chan1_rus_1
= -1;
1643 int mu_rus_chan1_rus_2
= -1;
1644 int mu_rus_chan1_rus_3
= -1;
1645 int mu_rus_chan2_rus_0
= -1;
1646 int mu_rus_chan2_rus_1
= -1;
1647 int mu_rus_chan2_rus_2
= -1;
1648 int mu_rus_chan2_rus_3
= -1;
1649 bool mu_chan2_center_26_tone_ru_bit_known
= false;
1650 bool mu_chan1_rus_known
= false;
1651 bool mu_chan2_rus_known
= false;
1652 bool mu_chan1_center_26_tone_ru_bit_known
= false;
1653 bool mu_sig_b_compression_known
= false;
1654 bool mu_symbol_cnt_or_user_cnt_known
= false;
1655 bool mu_preamble_puncturing_known
= false;
1656 bool mu_bw_from_bw_sig_a_known
= false;
1657 uint8_t bw_from_sig_a
= 0;
1661 * This is set differetly for each packet, depending on
1662 * which values in flags1 are known. It thus will not
1663 * work if it's static.
1665 int *flags1_headers
[] = {
1666 &hf_radiotap_he_mu_sig_b_mcs
,
1667 &hf_radiotap_he_mu_sig_b_mcs_known
,
1668 &hf_radiotap_he_mu_sig_b_dcm
,
1669 &hf_radiotap_he_mu_sig_b_dcm_known
,
1670 &hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_known
,
1671 &hf_radiotap_he_mu_chan1_rus_known
,
1672 &hf_radiotap_he_mu_chan2_rus_known
,
1673 &hf_radiotap_he_mu_reserved_f1_b10_b11
,
1674 &hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_known
,
1675 &hf_radiotap_he_mu_chan1_center_26_tone_ru_value
,
1676 &hf_radiotap_he_mu_sig_b_compression_known
,
1677 &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_known
,
1682 * Same story but for flags2.
1684 int *flags2_headers
[] = {
1685 &hf_radiotap_he_mu_bw_from_bw_in_sig_a
,
1686 &hf_radiotap_he_mu_bw_from_bw_in_sig_a_known
,
1687 &hf_radiotap_he_mu_sig_b_compression_from_sig_a
,
1688 &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users
,
1689 &hf_radiotap_he_mu_preamble_puncturing
,
1690 &hf_radiotap_he_mu_preamble_puncturing_known
,
1691 &hf_radiotap_he_mu_chan2_center_26_tone_ru_value
,
1692 &hf_radiotap_he_mu_reserved_f2_b12_b15
,
1696 if (flags1
& IEEE80211_RADIOTAP_HE_MU_SIG_B_MCS_KNOWN
)
1697 sig_b_mcs_known
= true;
1698 if (flags1
& IEEE80211_RADIOTAP_HE_MU_SIG_B_DCM_KNOWN
)
1699 sig_b_dcm_known
= true;
1700 if (flags1
& IEEE80211_RADIOTAP_HE_MU_CHAN2_CENTER_26_TONE_RU_BIT_KNOWN
)
1701 mu_chan2_center_26_tone_ru_bit_known
= true;
1702 if (flags1
& IEEE80211_RADIOTAP_HE_MU_CHAN1_RUS_KNOWN
)
1703 mu_chan1_rus_known
= true;
1704 if (flags1
& IEEE80211_RADIOTAP_HE_MU_CHAN2_RUS_KNOWN
)
1705 mu_chan2_rus_known
= true;
1706 if (flags1
& IEEE80211_RADIOTAP_HE_MU_CHAN1_CENTER_26_TONE_RU_BIT_KNOWN
)
1707 mu_chan1_center_26_tone_ru_bit_known
= true;
1708 if (flags1
& IEEE80211_RADIOTAP_HE_MU_SIG_B_COMPRESSION_KNOWN
)
1709 mu_sig_b_compression_known
= true;
1710 if (flags1
& IEEE80211_RADIOTAP_HE_MU_SYMBOL_CNT_OR_USER_CNT_KNOWN
)
1711 mu_symbol_cnt_or_user_cnt_known
= true;
1713 if (!sig_b_mcs_known
) {
1714 flags1_headers
[1] = &hf_radiotap_he_mu_sig_b_mcs_unknown
;
1716 flags1_headers
[1] = &hf_radiotap_he_mu_sig_b_mcs_known
;
1718 if (!sig_b_dcm_known
) {
1719 flags1_headers
[3] = &hf_radiotap_he_mu_sig_b_dcm_unknown
;
1721 flags1_headers
[3] = &hf_radiotap_he_mu_sig_b_dcm_known
;
1723 if (!mu_chan2_center_26_tone_ru_bit_known
) {
1724 flags1_headers
[4] = &hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_unknown
;
1726 flags1_headers
[4] = &hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_known
;
1728 if (!mu_chan1_rus_known
) {
1729 flags1_headers
[5] = &hf_radiotap_he_mu_chan1_rus_unknown
;
1731 flags1_headers
[5] = &hf_radiotap_he_mu_chan1_rus_known
;
1733 if (!mu_chan2_rus_known
) {
1734 flags1_headers
[6] = &hf_radiotap_he_mu_chan2_rus_unknown
;
1736 flags1_headers
[6] = &hf_radiotap_he_mu_chan2_rus_known
;
1738 if (!mu_chan1_center_26_tone_ru_bit_known
) {
1739 flags1_headers
[8] = &hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_unknown
;
1741 flags1_headers
[8] = &hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_known
;
1743 if (!mu_symbol_cnt_or_user_cnt_known
) {
1744 flags1_headers
[11] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_unknown
;
1746 flags1_headers
[11] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_known
;
1749 if (!mu_chan1_center_26_tone_ru_bit_known
) {
1750 flags1_headers
[9] = &hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_unknown
;
1752 flags1_headers
[9] = &hf_radiotap_he_mu_chan1_center_26_tone_ru_value
;
1754 if (!mu_symbol_cnt_or_user_cnt_known
) {
1755 flags1_headers
[11] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_unknown
;
1757 flags1_headers
[11] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_known
;
1760 flags2
= tvb_get_letohs(tvb
, offset
+ 2);
1761 if (flags2
& IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_KNOWN
)
1762 mu_bw_from_bw_sig_a_known
= true;
1763 if (flags2
& IEEE80211_RADIOTAP_HE_MU_PREAMBLE_PUNCTURING_KNOWN
)
1764 mu_preamble_puncturing_known
= true;
1766 if (!mu_bw_from_bw_sig_a_known
) {
1767 flags2_headers
[0] = &hf_radiotap_he_mu_bw_from_bw_in_sig_a_unknown
;
1769 flags2_headers
[0] = &hf_radiotap_he_mu_bw_from_bw_in_sig_a
;
1771 if (!mu_sig_b_compression_known
) {
1772 flags2_headers
[2] = &hf_radiotap_he_mu_sig_b_compression_unknown
;
1774 flags2_headers
[2] = &hf_radiotap_he_mu_sig_b_compression_from_sig_a
;
1776 if (!mu_symbol_cnt_or_user_cnt_known
) {
1777 flags2_headers
[3] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_unknown
;
1779 flags2_headers
[3] = &hf_radiotap_he_mu_sig_b_syms_mu_mimo_users
;
1781 if (!mu_preamble_puncturing_known
) {
1782 flags2_headers
[4] = &hf_radiotap_he_mu_preamble_puncturing_unknown
;
1784 flags2_headers
[4] = &hf_radiotap_he_mu_preamble_puncturing
;
1786 if (!mu_chan2_center_26_tone_ru_bit_known
) {
1787 flags2_headers
[6] = &hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_unknown
;
1789 flags2_headers
[6] = &hf_radiotap_he_mu_chan2_center_26_tone_ru_value
;
1792 bw_from_sig_a
= flags2
& IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_MASK
;
1795 * We have to hold of on displaying stuff until we have figured
1796 * everything out because the display of fields in flags1 depends
1797 * on bandwidth from flags2.
1800 /* Set the header fields depending on the bw and known fields */
1801 if (bw_from_sig_a
< 3) {
1802 if (mu_chan1_rus_known
) {
1803 mu_rus_chan1_rus_0
= hf_radiotap_he_mu_chan1_rus_0
;
1804 mu_rus_chan1_rus_1
= hf_radiotap_he_mu_chan1_rus_1
;
1805 mu_rus_chan1_rus_2
= hf_radiotap_he_mu_chan1_rus_2
;
1806 mu_rus_chan1_rus_3
= hf_radiotap_he_mu_chan1_rus_3
;
1808 mu_rus_chan1_rus_0
= hf_radiotap_he_mu_chan1_rus_0_unknown
;
1809 mu_rus_chan1_rus_1
= hf_radiotap_he_mu_chan1_rus_1_unknown
;
1810 mu_rus_chan1_rus_2
= hf_radiotap_he_mu_chan1_rus_2_unknown
;
1811 mu_rus_chan1_rus_3
= hf_radiotap_he_mu_chan1_rus_3_unknown
;
1813 if (mu_chan2_rus_known
) {
1814 mu_rus_chan2_rus_0
= hf_radiotap_he_mu_chan2_rus_0
;
1815 mu_rus_chan2_rus_1
= hf_radiotap_he_mu_chan2_rus_1
;
1816 mu_rus_chan2_rus_2
= hf_radiotap_he_mu_chan2_rus_2
;
1817 mu_rus_chan2_rus_3
= hf_radiotap_he_mu_chan2_rus_3
;
1819 mu_rus_chan2_rus_0
= hf_radiotap_he_mu_chan2_rus_0_unknown
;
1820 mu_rus_chan2_rus_1
= hf_radiotap_he_mu_chan2_rus_1_unknown
;
1821 mu_rus_chan2_rus_2
= hf_radiotap_he_mu_chan2_rus_2_unknown
;
1822 mu_rus_chan2_rus_3
= hf_radiotap_he_mu_chan2_rus_3_unknown
;
1825 mu_rus_chan1_rus_0
= hf_radiotap_he_mu_chan1_rus_0
;
1826 mu_rus_chan1_rus_1
= hf_radiotap_he_mu_chan1_rus_1
;
1827 mu_rus_chan1_rus_2
= hf_radiotap_he_mu_chan1_rus_2
;
1828 mu_rus_chan1_rus_3
= hf_radiotap_he_mu_chan1_rus_3
;
1829 mu_rus_chan2_rus_0
= hf_radiotap_he_mu_chan2_rus_0
;
1830 mu_rus_chan2_rus_1
= hf_radiotap_he_mu_chan2_rus_1
;
1831 mu_rus_chan2_rus_2
= hf_radiotap_he_mu_chan2_rus_2
;
1832 mu_rus_chan2_rus_3
= hf_radiotap_he_mu_chan2_rus_3
;
1835 he_mu_info_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 12,
1836 ett_radiotap_he_mu_info
, NULL
, "HE-MU information");
1839 add_tlv_items(he_mu_info_tree
, tvb
, offset
);
1842 proto_tree_add_bitmask(he_mu_info_tree
, tvb
, offset
,
1843 hf_radiotap_he_mu_info_flags_1
,
1844 ett_radiotap_he_mu_info_flags_1
,
1845 flags1_headers
, ENC_LITTLE_ENDIAN
);
1848 proto_tree_add_bitmask(he_mu_info_tree
, tvb
, offset
,
1849 hf_radiotap_he_mu_info_flags_2
,
1850 ett_radiotap_he_mu_info_flags_2
,
1851 flags2_headers
, ENC_LITTLE_ENDIAN
);
1854 mu_chan1_rus
= proto_tree_add_subtree(he_mu_info_tree
, tvb
, offset
, 4,
1855 ett_radiotap_he_mu_chan_rus
, NULL
,
1858 proto_tree_add_item(mu_chan1_rus
, mu_rus_chan1_rus_0
, tvb
, offset
, 1,
1862 proto_tree_add_item(mu_chan1_rus
, mu_rus_chan1_rus_1
, tvb
, offset
, 1,
1866 proto_tree_add_item(mu_chan1_rus
, mu_rus_chan1_rus_2
, tvb
, offset
, 1,
1870 proto_tree_add_item(mu_chan1_rus
, mu_rus_chan1_rus_3
, tvb
, offset
, 1,
1874 mu_chan2_rus
= proto_tree_add_subtree(he_mu_info_tree
, tvb
, offset
, 4,
1875 ett_radiotap_he_mu_chan_rus
, NULL
,
1878 proto_tree_add_item(mu_chan2_rus
, mu_rus_chan2_rus_0
, tvb
, offset
, 1,
1882 proto_tree_add_item(mu_chan2_rus
, mu_rus_chan2_rus_1
, tvb
, offset
, 1,
1886 proto_tree_add_item(mu_chan2_rus
, mu_rus_chan2_rus_2
, tvb
, offset
, 1,
1890 proto_tree_add_item(mu_chan2_rus
, mu_rus_chan2_rus_3
, tvb
, offset
, 1,
1894 static const range_string zero_length_psdu_rsvals
[] = {
1895 { 0, 0, "sounding PPDU" },
1896 { 1, 1, "reserved" },
1897 { 2, 254, "reserved" },
1898 { 255, 255, "vendor-specific" },
1903 dissect_radiotap_0_length_psdu(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
1904 int offset
, struct ieee_802_11_phdr
*phdr
)
1906 proto_tree
*zero_len_tree
= NULL
;
1909 zero_len_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 1,
1910 ett_radiotap_0_length_psdu
, NULL
, "0-length PSDU");
1912 proto_tree_add_item_ret_uint(zero_len_tree
, hf_radiotap_0_length_psdu_type
,
1913 tvb
, offset
, 1, ENC_NA
, &psdu_type
);
1915 switch (psdu_type
) {
1918 phdr
->has_zero_length_psdu_type
= true;
1919 phdr
->zero_length_psdu_type
= PHDR_802_11_SOUNDING_PSDU
;
1923 phdr
->has_zero_length_psdu_type
= true;
1924 phdr
->zero_length_psdu_type
= PHDR_802_11_DATA_NOT_CAPTURED
;
1928 phdr
->has_zero_length_psdu_type
= true;
1929 phdr
->zero_length_psdu_type
= PHDR_802_11_0_LENGTH_PSDU_VENDOR_SPECIFIC
;
1934 static int * const l_sig_data1_headers
[] = {
1935 &hf_radiotap_l_sig_rate_known
,
1936 &hf_radiotap_l_sig_length_known
,
1937 &hf_radiotap_l_sig_reserved
,
1941 static int * const l_sig_data2_headers
[] = {
1942 &hf_radiotap_l_sig_rate
,
1943 &hf_radiotap_l_sig_length
,
1948 dissect_radiotap_l_sig(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
1951 proto_tree
*l_sig_tree
= NULL
;
1953 l_sig_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 4,
1954 ett_radiotap_l_sig
, NULL
, "L-SIG");
1956 proto_tree_add_bitmask(l_sig_tree
, tvb
, offset
,
1957 hf_radiotap_l_sig_data_1
, ett_radiotap_l_sig_data_1
,
1958 l_sig_data1_headers
, ENC_LITTLE_ENDIAN
);
1961 proto_tree_add_bitmask(l_sig_tree
, tvb
, offset
,
1962 hf_radiotap_l_sig_data_2
, ett_radiotap_l_sig_data_2
,
1963 l_sig_data2_headers
, ENC_LITTLE_ENDIAN
);
1966 static int * const usig_common_headers
[] = {
1967 &hf_radiotap_usig_phy_version_identifier_known
,
1968 &hf_radiotap_usig_bw_known
,
1969 &hf_radiotap_usig_ul_dl_known
,
1970 &hf_radiotap_usig_bss_color_known
,
1971 &hf_radiotap_usig_txop_known
,
1972 &hf_radiotap_usig_bad_u_sig_crc
,
1973 &hf_radiotap_usig_validate_bits_checked
,
1974 &hf_radiotap_usig_validate_bits_ok
,
1975 &hf_radiotap_usig_reserved
,
1976 &hf_radiotap_usig_phy_version_id
,
1977 &hf_radiotap_usig_bw
,
1978 &hf_radiotap_usig_ul_dl
,
1979 &hf_radiotap_usig_bss_color
,
1980 &hf_radiotap_usig_txop
,
1984 static const value_string eht_u_sig_bw_vals
[] = {
1996 static int * usig_eht_mu_ppdu_headers
[] = {
1997 &hf_radiotap_usig_eht_mu_b20_b24
,
1998 &hf_radiotap_usig_eht_mu_b25
,
1999 &hf_radiotap_usig_ppdu_type_and_comp_mode
,
2000 &hf_radiotap_usig_validate1
,
2001 &hf_radiotap_usig_punctured_channel_info
,
2002 &hf_radiotap_usig_validate2
,
2003 &hf_radiotap_usig_eht_sig_mcs
,
2004 &hf_radiotap_usig_number_eht_sig_symbols
,
2005 &hf_radiotap_usig_crc
,
2006 &hf_radiotap_usig_tail
,
2010 static int * usig_eht_tb_ppdu_headers
[] = {
2011 &hf_radiotap_usig_eht_tb_b20_b25
,
2012 &hf_radiotap_usig_ppdu_type_and_comp_mode
,
2013 &hf_radiotap_usig_eht_tb_validate1
,
2014 &hf_radiotap_usig_eht_tb_spatial_reuse_1
,
2015 &hf_radiotap_usig_eht_tb_spatial_reuse_2
,
2016 &hf_radiotap_usig_eht_tb_disregard
,
2017 &hf_radiotap_usig_eht_tb_crc
,
2018 &hf_radiotap_usig_eht_tb_tail
,
2022 /* U-SIG mask definition */
2024 #define U_SIG_U_SIG_1_B20_B24 0x0000001f
2025 #define U_SIG_U_SIG_1_B25 0x00000020
2026 #define U_SIG_U_SIG_2_B3_B7 0x00003e00
2027 #define U_SIG_U_SIG_2_B8 0x00004000
2028 #define U_SIG_U_SIG_2_B9_B10 0x00018000
2031 #define U_SIG_U_SIG_1_B20_B25 0x0000003f
2032 #define U_SIG_U_SIG_2_B3_B6 0x00001e00
2033 #define U_SIG_U_SIG_2_B7_B10 0x0001e000
2035 #define U_SIG_U_SIG_2_B0_B1 0x000000c0
2036 #define U_SIG_U_SIG_2_B2 0x00000100
2037 #define U_SIG_U_SIG_2_B11_B15 0x003e0000
2038 #define U_SIG_U_SIG_2_B16_B19 0x03c00000
2039 #define U_SIG_U_SIG_2_B20_B25 0xfc000000
2042 * Will never be called via old style bits
2045 dissect_radiotap_u_sig(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2046 int offset
, struct ieee_802_11_phdr
*phdr _U_
,
2049 proto_tree
*u_sig_tree
= NULL
;
2051 uint8_t type_and_comp
= 0;
2053 bool bw_known
= false;
2054 struct ieee_802_11be
*info_11be
= &phdr
->phy_info
.info_11be
;
2055 uint32_t usig_common
= tvb_get_letohl(tvb
, offset
);
2057 phdr
->phy
= PHDR_802_11_PHY_11BE
;
2059 u_sig_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 12,
2060 ett_radiotap_u_sig
, NULL
,
2063 add_tlv_items(u_sig_tree
, tvb
, offset
);
2065 ul_dl
= (tvb_get_uint8(tvb
, offset
+ 2) & 0x04) >> 2;
2066 proto_tree_add_bitmask(u_sig_tree
, tvb
, offset
,
2067 hf_radiotap_u_sig_common
,
2068 ett_radiotap_u_sig_common
,
2069 usig_common_headers
, ENC_LITTLE_ENDIAN
);
2071 bw_known
= usig_common
& IEEE80211_RADIOTAP_USIG_BW_KNOWN
;
2073 info_11be
->has_bandwidth
= true;
2074 info_11be
->bandwidth
= (usig_common
& IEEE80211_RADIOTAP_USIG_BW
) >> IEEE80211_RADIOTAP_USIG_BW_SHIFT
;
2079 * Now handle the Value and Mask ...
2081 mask
= tvb_get_letohl(tvb
, offset
+ 4);
2082 type_and_comp
= (tvb_get_uint8(tvb
, offset
) & 0xc0) >> 6;
2084 if ((ul_dl
== 0 && (type_and_comp
== 0 || type_and_comp
== 1 ||
2085 type_and_comp
== 2)) ||
2086 (ul_dl
== 1 && type_and_comp
== 1)) {
2087 if ((mask
& U_SIG_U_SIG_1_B20_B24
) != U_SIG_U_SIG_1_B20_B24
) {
2088 usig_eht_mu_ppdu_headers
[0] =
2089 &hf_radiotap_usig_eht_mu_b20_b24_not_known
;
2091 if ((mask
& U_SIG_U_SIG_1_B25
) != U_SIG_U_SIG_1_B25
) {
2092 usig_eht_mu_ppdu_headers
[1] =
2093 &hf_radiotap_usig_eht_mu_b25_not_known
;
2095 if ((mask
& U_SIG_U_SIG_2_B2
) != U_SIG_U_SIG_2_B2
) {
2096 usig_eht_mu_ppdu_headers
[3] =
2097 &hf_radiotap_usig_validate1_not_known
;
2099 if ((mask
& U_SIG_U_SIG_2_B3_B7
) != U_SIG_U_SIG_2_B3_B7
) {
2100 usig_eht_mu_ppdu_headers
[4] =
2101 &hf_radiotap_usig_punctured_channel_info_not_known
;
2103 if ((mask
& U_SIG_U_SIG_2_B8
) != U_SIG_U_SIG_2_B8
) {
2104 usig_eht_mu_ppdu_headers
[5] =
2105 &hf_radiotap_usig_validate2_not_known
;
2107 if ((mask
& U_SIG_U_SIG_2_B9_B10
) != U_SIG_U_SIG_2_B9_B10
) {
2108 usig_eht_mu_ppdu_headers
[6] =
2109 &hf_radiotap_usig_eht_sig_mcs_not_known
;
2111 if ((mask
& U_SIG_U_SIG_2_B11_B15
) != U_SIG_U_SIG_2_B11_B15
) {
2112 usig_eht_mu_ppdu_headers
[7] =
2113 &hf_radiotap_usig_number_eht_sig_symbols_not_known
;
2115 if ((mask
& U_SIG_U_SIG_2_B16_B19
) != U_SIG_U_SIG_2_B16_B19
) {
2116 usig_eht_mu_ppdu_headers
[8] =
2117 &hf_radiotap_usig_crc_not_known
;
2119 if ((mask
& U_SIG_U_SIG_2_B20_B25
) != U_SIG_U_SIG_2_B20_B25
) {
2120 usig_eht_mu_ppdu_headers
[9] =
2121 &hf_radiotap_usig_tail_not_known
;
2123 proto_tree_add_bitmask(u_sig_tree
, tvb
, offset
,
2124 hf_radiotap_usig_value_mu_ppdu
,
2125 ett_radiotap_u_sig_value
,
2126 usig_eht_mu_ppdu_headers
,
2129 if ((mask
& U_SIG_U_SIG_1_B20_B25
) != U_SIG_U_SIG_1_B20_B25
) {
2130 usig_eht_tb_ppdu_headers
[0] =
2131 &hf_radiotap_usig_eht_tb_b20_b25_not_known
;
2133 if ((mask
& U_SIG_U_SIG_2_B2
) != U_SIG_U_SIG_2_B2
) {
2134 usig_eht_tb_ppdu_headers
[2] =
2135 &hf_radiotap_usig_eht_tb_validate1_not_known
;
2137 if ((mask
& U_SIG_U_SIG_2_B3_B6
) != U_SIG_U_SIG_2_B3_B6
) {
2138 usig_eht_tb_ppdu_headers
[3] =
2139 &hf_radiotap_usig_eht_tb_spatial_reuse_1_not_known
;
2141 if ((mask
& U_SIG_U_SIG_2_B7_B10
) != U_SIG_U_SIG_2_B7_B10
) {
2142 usig_eht_tb_ppdu_headers
[4] =
2143 &hf_radiotap_usig_eht_tb_spatial_reuse_2_not_known
;
2145 if ((mask
& U_SIG_U_SIG_2_B11_B15
) != U_SIG_U_SIG_2_B11_B15
) {
2146 usig_eht_tb_ppdu_headers
[5] =
2147 &hf_radiotap_usig_eht_tb_disregard_not_known
;
2149 if ((mask
& U_SIG_U_SIG_2_B16_B19
) != U_SIG_U_SIG_2_B16_B19
) {
2150 usig_eht_tb_ppdu_headers
[6] =
2151 &hf_radiotap_usig_eht_tb_crc_not_known
;
2153 if ((mask
& U_SIG_U_SIG_2_B20_B25
) != U_SIG_U_SIG_2_B20_B25
) {
2154 usig_eht_tb_ppdu_headers
[7] =
2155 &hf_radiotap_usig_eht_tb_tail_not_known
;
2157 proto_tree_add_bitmask(u_sig_tree
, tvb
, offset
,
2158 hf_radiotap_usig_value_tb_ppdu
,
2159 ett_radiotap_u_sig_value
,
2160 usig_eht_tb_ppdu_headers
,
2165 proto_tree_add_item(u_sig_tree
, hf_radiotap_u_sig_mask
, tvb
, offset
, 4,
2170 * Will never be called via old style bits
2172 static int * const eht_known_headers
[] = {
2173 &hf_radiotap_eht_reserved_1
,
2174 &hf_radiotap_eht_spatial_reuse_known
,
2175 &hf_radiotap_eht_guard_interval_known
,
2176 &hf_radiotap_eht_reserved_8
,
2177 &hf_radiotap_eht_number_ltf_symbols_known
,
2178 &hf_radiotap_eht_ldpc_extra_symbol_segment_known
,
2179 &hf_radiotap_eht_pre_fec_padding_factor_known
,
2180 &hf_radiotap_eht_pe_disambiguity_known
,
2181 &hf_radiotap_eht_disregard_known
,
2182 &hf_radiotap_eht_reserved1
,
2183 &hf_radiotap_eht_reserved_2
,
2184 &hf_radiotap_eht_crc1_known
,
2185 &hf_radiotap_eht_tail1_known
,
2186 &hf_radiotap_eht_crc2_known
,
2187 &hf_radiotap_eht_tail2_known
,
2188 &hf_radiotap_eht_nss_known
,
2189 &hf_radiotap_eht_beamformed_known
,
2190 &hf_radiotap_eht_number_non_ofdma_users_known
,
2191 &hf_radiotap_eht_user_encoding_block_crc_known
,
2192 &hf_radiotap_eht_user_encoding_block_tail_known
,
2193 &hf_radiotap_eht_ru_mru_size_known
,
2194 &hf_radiotap_eht_ru_mru_index_known
,
2195 &hf_radiotap_eht_tb_ru_allocation_known
,
2196 &hf_radiotap_eht_primary_80mhz_channel_pos_known
,
2197 &hf_radiotap_eht_reserved_fc
,
2201 #define EHT_USER_INFO_STA_ID_KNOWN 0x01
2202 #define EHT_USER_INFO_MCS_KNOWN 0x02
2203 #define EHT_USER_INFO_CODING_KNOWN 0x04
2204 #define EHT_USER_INFO_RESERVED_KNOWN 0x08
2205 #define EHT_USER_INFO_NSS_KNOWN 0x10
2206 #define EHT_USER_INFO_BEAMFORMING_KNOWN 0x20
2207 #define EHT_USER_INFO_SPATIAL_CONFIGURATION_KNOWN 0x40
2209 #define EHT_USER_INFO_STA_ID_MASK 0x0007FF00
2210 #define EHT_USER_INFO_STA_ID_SHIFT 8
2212 #define EHT_USER_INFO_MCS_MASK 0x00F00000
2213 #define EHT_USER_INFO_MCS_SHIFT 20
2215 #define EHT_USER_INFO_NSS_MASK 0x0F000000
2216 #define EHT_USER_INFO_NSS_SHIFT 24
2219 dissect_eht_user_info(proto_tree
*tree
, tvbuff_t
*tvb
, int offset
, struct ieee_802_11be
*info_11be
)
2221 proto_item
*item
= NULL
;
2222 proto_tree
*sub_tree
= NULL
;
2223 uint32_t known
= tvb_get_letohl(tvb
, offset
);
2225 item
= proto_tree_add_item(tree
, hf_radiotap_eht_user_info
,
2226 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2227 sub_tree
= proto_item_add_subtree(item
, ett_radiotap_eht_user_info_i
);
2229 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_sta_id_known
, tvb
,
2230 offset
, 4, ENC_LITTLE_ENDIAN
);
2231 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_mcs_known
, tvb
, offset
,
2232 4, ENC_LITTLE_ENDIAN
);
2233 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_coding_known
, tvb
,
2234 offset
, 4, ENC_LITTLE_ENDIAN
);
2235 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_rsvd_known
, tvb
,
2236 offset
, 4, ENC_LITTLE_ENDIAN
);
2237 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_nss_known
, tvb
, offset
,
2238 4, ENC_LITTLE_ENDIAN
);
2239 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_beamforming_known
, tvb
,
2240 offset
, 4, ENC_LITTLE_ENDIAN
);
2241 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_spatial_config_known
,
2242 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2243 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_data_captured
, tvb
,
2244 offset
, 4, ENC_LITTLE_ENDIAN
);
2245 if (known
& EHT_USER_INFO_STA_ID_KNOWN
) {
2246 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_sta_id
, tvb
,
2247 offset
, 4, ENC_LITTLE_ENDIAN
);
2248 if (info_11be
->num_users
< 4) {
2249 info_11be
->user
[info_11be
->num_users
].sta_id_known
= true;
2250 info_11be
->user
[info_11be
->num_users
].sta_id
=
2251 (known
& EHT_USER_INFO_STA_ID_MASK
) >> EHT_USER_INFO_STA_ID_SHIFT
;
2254 item
= proto_tree_add_item(sub_tree
,
2255 hf_radiotap_eht_ui_sta_id_not_known
, tvb
,
2256 offset
, 4, ENC_LITTLE_ENDIAN
);
2257 proto_item_append_text(item
, " (Not known)");
2259 if (known
& EHT_USER_INFO_CODING_KNOWN
) {
2260 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_coding
, tvb
,
2261 offset
, 4, ENC_LITTLE_ENDIAN
);
2263 item
= proto_tree_add_item(sub_tree
,
2264 hf_radiotap_eht_ui_coding_not_known
, tvb
,
2265 offset
, 4, ENC_LITTLE_ENDIAN
);
2266 proto_item_append_text(item
, " (Not known)");
2268 if (known
& EHT_USER_INFO_MCS_KNOWN
) {
2269 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_mcs
, tvb
,
2270 offset
, 4, ENC_LITTLE_ENDIAN
);
2271 if (info_11be
->num_users
< 4) {
2272 info_11be
->user
[info_11be
->num_users
].mcs_known
= true;
2273 info_11be
->user
[info_11be
->num_users
].mcs
=
2274 (known
& EHT_USER_INFO_MCS_MASK
) >> EHT_USER_INFO_MCS_SHIFT
;
2277 item
= proto_tree_add_item(sub_tree
,
2278 hf_radiotap_eht_ui_mcs_not_known
, tvb
,
2279 offset
, 4, ENC_LITTLE_ENDIAN
);
2280 proto_item_append_text(item
, " (Not known)");
2284 if (known
& EHT_USER_INFO_NSS_KNOWN
) {
2285 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_nss
, tvb
,
2286 offset
, 4, ENC_LITTLE_ENDIAN
);
2287 if (info_11be
->num_users
< 4) {
2288 info_11be
->user
[info_11be
->num_users
].nsts_known
= true;
2289 info_11be
->user
[info_11be
->num_users
].nsts
=
2290 ((known
& EHT_USER_INFO_NSS_MASK
) >> EHT_USER_INFO_NSS_SHIFT
) + 1;
2293 item
= proto_tree_add_item(sub_tree
,
2294 hf_radiotap_eht_ui_nss_not_known
, tvb
,
2295 offset
, 4, ENC_LITTLE_ENDIAN
);
2296 proto_item_append_text(item
, " (Not known)");
2298 if (known
& EHT_USER_INFO_RESERVED_KNOWN
) {
2299 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_reserved
, tvb
,
2300 offset
, 4, ENC_LITTLE_ENDIAN
);
2302 item
= proto_tree_add_item(sub_tree
,
2303 hf_radiotap_eht_ui_reserved_not_known
, tvb
,
2304 offset
, 4, ENC_LITTLE_ENDIAN
);
2305 proto_item_append_text(item
, " (Not known)");
2307 if (known
& EHT_USER_INFO_BEAMFORMING_KNOWN
) {
2308 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_beamforming
,
2309 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2311 item
= proto_tree_add_item(sub_tree
,
2312 hf_radiotap_eht_ui_beamforming_not_known
, tvb
,
2313 offset
, 4, ENC_LITTLE_ENDIAN
);
2314 proto_item_append_text(item
, " (Not known)");
2316 if (known
& EHT_USER_INFO_SPATIAL_CONFIGURATION_KNOWN
) {
2317 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_spatial_config
,
2318 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2320 /* Overlap field, don't add in not known case */
2324 proto_tree_add_item(sub_tree
, hf_radiotap_eht_ui_rsvd1
, tvb
,
2325 offset
, 4, ENC_LITTLE_ENDIAN
);
2326 info_11be
->num_users
++;
2330 dissect_radiotap_eht(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2331 int offset
, struct ieee_802_11_phdr
*phdr _U_
,
2334 proto_tree
*eht_tree
= NULL
;
2336 uint32_t ru_alloc_1_known
;
2337 uint32_t ru_x_alloc
;
2338 uint16_t len
= tvb_get_uint16(tvb
, offset
- 2, ENC_LITTLE_ENDIAN
);
2339 proto_item
*data
= NULL
, *item
= NULL
;
2340 proto_tree
*sub_tree
= NULL
, *user_info_tree
= NULL
;
2341 bool data_ru_mru_size_known
= false;
2342 bool gi_known
= false;
2346 phdr
->phy
= PHDR_802_11_PHY_11BE
;
2347 struct ieee_802_11be
*info_11be
= &phdr
->phy_info
.info_11be
;
2349 eht_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, len
,
2350 ett_radiotap_eht
, NULL
,
2353 add_tlv_items(eht_tree
, tvb
, offset
);
2355 known
= tvb_get_uint32(tvb
, offset
, ENC_LITTLE_ENDIAN
);
2356 proto_tree_add_bitmask(eht_tree
, tvb
, offset
,
2357 hf_radiotap_eht_known
,
2358 ett_radiotap_eht_known
,
2359 eht_known_headers
, ENC_LITTLE_ENDIAN
);
2362 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data0
, tvb
, offset
,
2363 4, ENC_LITTLE_ENDIAN
);
2365 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2367 proto_tree_add_item(sub_tree
,
2368 hf_radiotap_eht_data0_reserved1
,
2369 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2371 if (known
& IEEE80211_RADIOTAP_EHT_SPATIAL_REUSE_KNOWN
) {
2372 proto_tree_add_item(sub_tree
,
2373 hf_radiotap_eht_data0_spatial_reuse
,
2374 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2376 item
= proto_tree_add_item(sub_tree
,
2377 hf_radiotap_eht_data0_spatial_reuse_not_known
,
2378 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2379 proto_item_append_text(item
, " (Not known)");
2382 if (known
& IEEE80211_RADIOTAP_EHT_GUARD_INTERVAL_KNOWN
) {
2383 proto_tree_add_item(sub_tree
,
2384 hf_radiotap_eht_data0_gi
,
2385 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2388 item
= proto_tree_add_item(sub_tree
,
2389 hf_radiotap_eht_data0_gi_not_known
,
2390 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2391 proto_item_append_text(item
, " (Not known)");
2394 proto_tree_add_item(sub_tree
,
2395 hf_radiotap_eht_data0_ltf_symbol_size
,
2396 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2398 if (known
& IEEE80211_RADIOTAP_EHT_NUMBER_LTF_SYMBOLS_KNOWN
) {
2399 proto_tree_add_item(sub_tree
,
2400 hf_radiotap_eht_data0_number_ltf_symbols
,
2401 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2403 item
= proto_tree_add_item(sub_tree
,
2404 hf_radiotap_eht_data0_number_ltf_symbols_not_known
,
2405 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2406 proto_item_append_text(item
, " (Not known)");
2409 if (known
& IEEE80211_RADIOTAP_EHT_LDPC_EXTRA_SYMBOL_SEGMENT_KNOWN
) {
2410 proto_tree_add_item(sub_tree
,
2411 hf_radiotap_eht_data0_ldpc_extra_symbol_segment
,
2412 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2414 item
= proto_tree_add_item(sub_tree
,
2415 hf_radiotap_eht_data0_ldpc_extra_symbol_segment_not_known
,
2416 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2417 proto_item_append_text(item
, " (Not known)");
2420 if (known
& IEEE80211_RADIOTAP_EHT_PRE_FEC_PADDING_FACTOR_KNOWN
) {
2421 proto_tree_add_item(sub_tree
,
2422 hf_radiotap_eht_data0_pre_fec_padding_factor
,
2423 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2425 item
= proto_tree_add_item(sub_tree
,
2426 hf_radiotap_eht_data0_pre_fec_padding_factor_not_known
,
2427 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2428 proto_item_append_text(item
, " (Not known)");
2431 if (known
& IEEE80211_RADIOTAP_EHT_PE_DISAMBIGUITY_KNOWN
) {
2432 proto_tree_add_item(sub_tree
,
2433 hf_radiotap_eht_data0_pe_disambiguity
,
2434 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2436 item
= proto_tree_add_item(sub_tree
,
2437 hf_radiotap_eht_data0_pe_disambiguity_not_known
,
2438 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2439 proto_item_append_text(item
, " (Not known)");
2442 if (known
& IEEE80211_RADIOTAP_EHT_DISREGARD_KNOWN
) {
2443 proto_tree_add_item(sub_tree
,
2444 hf_radiotap_eht_data0_disregard
,
2445 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2447 item
= proto_tree_add_item(sub_tree
,
2448 hf_radiotap_eht_data0_disregard_not_known
,
2449 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2450 proto_item_append_text(item
, " (Not known)");
2453 if (known
& IEEE80211_RADIOTAP_EHT_CRC1_KNOWN
) {
2454 proto_tree_add_item(sub_tree
,
2455 hf_radiotap_eht_data0_crc1
,
2456 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2458 item
= proto_tree_add_item(sub_tree
,
2459 hf_radiotap_eht_data0_crc1_not_known
,
2460 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2461 proto_item_append_text(item
, " (Not known)");
2464 if (known
& IEEE80211_RADIOTAP_EHT_TAIL1_KNOWN
) {
2465 proto_tree_add_item(sub_tree
,
2466 hf_radiotap_eht_data0_tail1
,
2467 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2469 item
= proto_tree_add_item(sub_tree
,
2470 hf_radiotap_eht_data0_tail1_not_known
,
2471 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2472 proto_item_append_text(item
, " (Not known)");
2475 data0
= tvb_get_letohs(tvb
, offset
);
2477 info_11be
->has_gi
= true;
2478 info_11be
->gi
= (data0
& IEEE80211_RADIOTAP_EHT_GI_MASK
) >> IEEE80211_RADIOTAP_EHT_GI_SHIFT
;
2483 ru_alloc_1_known
= (tvb_get_letohl(tvb
, offset
) >> 22) & 0x01;
2485 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data1
, tvb
, offset
,
2486 4, ENC_LITTLE_ENDIAN
);
2488 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2490 if (known
& IEEE80211_RADIOTAP_EHT_RU_MRU_SIZE_KNOWN
) {
2491 proto_tree_add_item(sub_tree
,
2492 hf_radiotap_eht_data1_ru_mru_size
,
2493 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2494 data_ru_mru_size_known
= true;
2496 item
= proto_tree_add_item(sub_tree
,
2497 hf_radiotap_eht_data1_ru_mru_size_not_known
,
2498 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2499 proto_item_append_text(item
, " (Not known)");
2502 if (known
& IEEE80211_RADIOTAP_EHT_RU_MRU_INDEX_KNOWN
) {
2503 proto_tree_add_item(sub_tree
,
2504 hf_radiotap_eht_data1_ru_mru_index
,
2505 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2507 item
= proto_tree_add_item(sub_tree
,
2508 hf_radiotap_eht_data1_ru_mru_index_not_known
,
2509 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2510 proto_item_append_text(item
, " (Not known)");
2513 if (ru_alloc_1_known
) {
2514 proto_tree_add_item(sub_tree
,
2515 hf_radiotap_eht_data1_ru_alloc_c1_1_1
,
2516 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2518 item
= proto_tree_add_item(sub_tree
,
2519 hf_radiotap_eht_data1_ru_alloc_c1_1_1_not_known
,
2520 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2521 proto_item_append_text(item
, " (Not known)");
2524 proto_tree_add_item(sub_tree
,
2525 hf_radiotap_eht_data1_ru_alloc_c1_1_1_known
,
2526 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2528 proto_tree_add_item(sub_tree
,
2529 hf_radiotap_eht_data1_reserved
,
2530 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2532 if (known
& IEEE80211_RADIOTAP_EHT_PRIMARY_80MHZ_CHANNEL_POS_KNOWN
) {
2533 proto_tree_add_item(sub_tree
,
2534 hf_radiotap_eht_data1_primary_80_mhz_chan_pos
,
2535 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2537 item
= proto_tree_add_item(sub_tree
,
2538 hf_radiotap_eht_data1_primary_80_mhz_chan_pos_not_known
,
2539 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2540 proto_item_append_text(item
, " (Not known)");
2542 data1
= tvb_get_letohs(tvb
, offset
);
2543 if (data_ru_mru_size_known
) {
2544 info_11be
->has_ru_mru_size
= true;
2545 info_11be
->ru_mru_size
= (data1
& IEEE80211_RADIOTAP_EHT_RU_MRU_SIZE_MASK
);
2550 #define RU_ALLOC_X_KNOWN 0x00000200
2551 #define RU_ALLOC_X_PLUS_1_KNOWN 0x00080000
2552 #define RU_ALLOC_X_PLUS_2_KNOWN 0x20000000
2554 ru_x_alloc
= tvb_get_letohl(tvb
, offset
);
2555 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data2
, tvb
, offset
,
2556 4, ENC_LITTLE_ENDIAN
);
2557 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2559 if (ru_x_alloc
& RU_ALLOC_X_KNOWN
) {
2560 proto_tree_add_item(sub_tree
,
2561 hf_radiotap_eht_data2_ru_alloc_c2_1_1
,
2562 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2564 item
= proto_tree_add_item(sub_tree
,
2565 hf_radiotap_eht_data2_ru_alloc_c2_1_1_not_known
,
2566 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2567 proto_item_append_text(item
, " (Not known)");
2570 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data2_ru_alloc_c2_1_1_known
,
2571 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2573 if (ru_x_alloc
& RU_ALLOC_X_PLUS_1_KNOWN
) {
2574 proto_tree_add_item(sub_tree
,
2575 hf_radiotap_eht_data2_ru_alloc_c1_1_2
,
2576 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2578 item
= proto_tree_add_item(sub_tree
,
2579 hf_radiotap_eht_data2_ru_alloc_c1_1_2_not_known
,
2580 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2581 proto_item_append_text(item
, " (Not known)");
2584 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data2_ru_alloc_c1_1_2_known
,
2585 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2587 if (ru_x_alloc
& RU_ALLOC_X_PLUS_2_KNOWN
) {
2588 proto_tree_add_item(sub_tree
,
2589 hf_radiotap_eht_data2_ru_alloc_c2_1_2
,
2590 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2592 item
= proto_tree_add_item(sub_tree
,
2593 hf_radiotap_eht_data2_ru_alloc_c2_1_2_not_known
,
2594 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2595 proto_item_append_text(item
, " (Not known)");
2598 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data2_ru_alloc_c2_1_2_known
,
2599 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2601 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data2_reserved
, tvb
,
2602 offset
, 4, ENC_LITTLE_ENDIAN
);
2605 ru_x_alloc
= tvb_get_letohl(tvb
, offset
);
2606 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data3
, tvb
, offset
,
2607 4, ENC_LITTLE_ENDIAN
);
2609 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2611 if (ru_x_alloc
& RU_ALLOC_X_KNOWN
) {
2612 proto_tree_add_item(sub_tree
,
2613 hf_radiotap_eht_data3_ru_alloc_c1_2_1
,
2614 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2616 item
= proto_tree_add_item(sub_tree
,
2617 hf_radiotap_eht_data3_ru_alloc_c1_2_1_not_known
,
2618 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2619 proto_item_append_text(item
, " (Not known)");
2622 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data3_ru_alloc_c1_2_1_known
,
2623 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2625 if (ru_x_alloc
& RU_ALLOC_X_PLUS_1_KNOWN
) {
2626 proto_tree_add_item(sub_tree
,
2627 hf_radiotap_eht_data3_ru_alloc_c2_2_1
,
2628 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2630 item
= proto_tree_add_item(sub_tree
,
2631 hf_radiotap_eht_data3_ru_alloc_c2_2_1_not_known
,
2632 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2633 proto_item_append_text(item
, " (Not known)");
2636 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data3_ru_alloc_c2_2_1_known
,
2637 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2639 if (ru_x_alloc
& RU_ALLOC_X_PLUS_2_KNOWN
) {
2640 proto_tree_add_item(sub_tree
,
2641 hf_radiotap_eht_data3_ru_alloc_c1_2_2
,
2642 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2644 item
= proto_tree_add_item(sub_tree
,
2645 hf_radiotap_eht_data3_ru_alloc_c1_2_2_not_known
,
2646 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2647 proto_item_append_text(item
, " (Not known)");
2650 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data3_ru_alloc_c1_2_2_known
,
2651 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2653 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data3_reserved
, tvb
,
2654 offset
, 4, ENC_LITTLE_ENDIAN
);
2658 ru_x_alloc
= tvb_get_letohl(tvb
, offset
);
2659 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data4
, tvb
, offset
,
2660 4, ENC_LITTLE_ENDIAN
);
2662 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2664 if (ru_x_alloc
& RU_ALLOC_X_KNOWN
) {
2665 proto_tree_add_item(sub_tree
,
2666 hf_radiotap_eht_data4_ru_alloc_c2_2_2
,
2667 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2669 item
= proto_tree_add_item(sub_tree
,
2670 hf_radiotap_eht_data4_ru_alloc_c2_2_2_not_known
,
2671 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2672 proto_item_append_text(item
, " (Not known)");
2675 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data4_ru_alloc_c2_2_2_known
,
2676 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2678 if (ru_x_alloc
& RU_ALLOC_X_PLUS_1_KNOWN
) {
2679 proto_tree_add_item(sub_tree
,
2680 hf_radiotap_eht_data4_ru_alloc_c1_2_3
,
2681 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2683 item
= proto_tree_add_item(sub_tree
,
2684 hf_radiotap_eht_data4_ru_alloc_c1_2_3_not_known
,
2685 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2686 proto_item_append_text(item
, " (Not known)");
2689 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data4_ru_alloc_c1_2_3_known
,
2690 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2692 if (ru_x_alloc
& RU_ALLOC_X_PLUS_2_KNOWN
) {
2693 proto_tree_add_item(sub_tree
,
2694 hf_radiotap_eht_data4_ru_alloc_c2_2_3
,
2695 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2697 item
= proto_tree_add_item(sub_tree
,
2698 hf_radiotap_eht_data4_ru_alloc_c2_2_3_not_known
,
2699 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2700 proto_item_append_text(item
, " (Not known)");
2703 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data4_ru_alloc_c2_2_3_known
,
2704 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2706 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data4_reserved
, tvb
,
2707 offset
, 4, ENC_LITTLE_ENDIAN
);
2711 ru_x_alloc
= tvb_get_letohl(tvb
, offset
);
2712 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data5
, tvb
, offset
,
2713 4, ENC_LITTLE_ENDIAN
);
2715 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2717 if (ru_x_alloc
& RU_ALLOC_X_KNOWN
) {
2718 proto_tree_add_item(sub_tree
,
2719 hf_radiotap_eht_data5_ru_alloc_c1_2_4
,
2720 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2722 item
= proto_tree_add_item(sub_tree
,
2723 hf_radiotap_eht_data5_ru_alloc_c1_2_4_not_known
,
2724 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2725 proto_item_append_text(item
, " (Not known)");
2728 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data5_ru_alloc_c1_2_4_known
,
2729 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2731 if (ru_x_alloc
& RU_ALLOC_X_PLUS_1_KNOWN
) {
2732 proto_tree_add_item(sub_tree
,
2733 hf_radiotap_eht_data5_ru_alloc_c2_2_4
,
2734 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2736 item
= proto_tree_add_item(sub_tree
,
2737 hf_radiotap_eht_data5_ru_alloc_c2_2_4_not_known
,
2738 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2739 proto_item_append_text(item
, " (Not known)");
2742 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data5_ru_alloc_c2_2_4_known
,
2743 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2745 if (ru_x_alloc
& RU_ALLOC_X_PLUS_2_KNOWN
) {
2746 proto_tree_add_item(sub_tree
,
2747 hf_radiotap_eht_data5_ru_alloc_c1_2_5
,
2748 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2750 item
= proto_tree_add_item(sub_tree
,
2751 hf_radiotap_eht_data5_ru_alloc_c1_2_5_not_known
,
2752 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2753 proto_item_append_text(item
, " (Not known)");
2756 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data5_ru_alloc_c1_2_5_known
,
2757 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2759 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data5_reserved
, tvb
,
2760 offset
, 4, ENC_LITTLE_ENDIAN
);
2764 ru_x_alloc
= tvb_get_letohl(tvb
, offset
);
2765 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data6
, tvb
, offset
,
2766 4, ENC_LITTLE_ENDIAN
);
2768 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2770 if (ru_x_alloc
& RU_ALLOC_X_KNOWN
) {
2771 proto_tree_add_item(sub_tree
,
2772 hf_radiotap_eht_data6_ru_alloc_c2_2_5
,
2773 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2775 item
= proto_tree_add_item(sub_tree
,
2776 hf_radiotap_eht_data6_ru_alloc_c2_2_5_not_known
,
2777 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2778 proto_item_append_text(item
, " (Not known)");
2781 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data6_ru_alloc_c2_2_5_known
,
2782 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2784 if (ru_x_alloc
& RU_ALLOC_X_PLUS_1_KNOWN
) {
2785 proto_tree_add_item(sub_tree
,
2786 hf_radiotap_eht_data6_ru_alloc_c1_2_6
,
2787 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2789 item
= proto_tree_add_item(sub_tree
,
2790 hf_radiotap_eht_data6_ru_alloc_c1_2_6_not_known
,
2791 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2792 proto_item_append_text(item
, " (Not known)");
2795 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data6_ru_alloc_c1_2_6_known
,
2796 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2798 if (ru_x_alloc
& RU_ALLOC_X_PLUS_2_KNOWN
) {
2799 proto_tree_add_item(sub_tree
,
2800 hf_radiotap_eht_data6_ru_alloc_c2_2_6
,
2801 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2803 item
= proto_tree_add_item(sub_tree
,
2804 hf_radiotap_eht_data6_ru_alloc_c2_2_6_not_known
,
2805 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2806 proto_item_append_text(item
, " (Not known)");
2809 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data6_ru_alloc_c2_2_6_known
,
2810 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2812 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data6_reserved
, tvb
,
2813 offset
, 4, ENC_LITTLE_ENDIAN
);
2817 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data7
, tvb
, offset
,
2818 4, ENC_LITTLE_ENDIAN
);
2819 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2821 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_crc2
, tvb
, offset
,
2822 4, ENC_LITTLE_ENDIAN
);
2823 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_tail2
, tvb
, offset
,
2824 4, ENC_LITTLE_ENDIAN
);
2825 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_rsvd
, tvb
, offset
,
2826 4, ENC_LITTLE_ENDIAN
);
2827 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_nss
, tvb
, offset
,
2828 4, ENC_LITTLE_ENDIAN
);
2829 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_beamformed
, tvb
,
2830 offset
, 4, ENC_LITTLE_ENDIAN
);
2831 if (known
& IEEE80211_RADIOTAP_EHT_NUMBER_NON_OFDMA_USERS_KNOWN
) {
2832 proto_tree_add_item(sub_tree
,
2833 hf_radiotap_eht_data7_number_non_ofdma_users
,
2834 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2836 item
= proto_tree_add_item(sub_tree
,
2837 hf_radiotap_eht_data7_number_non_ofdma_users_not_known
,
2838 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2839 proto_item_append_text(item
, " (Not known)");
2841 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_user_encode_crc
,
2842 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2843 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_user_encode_tail
,
2844 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2845 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data7_rsvd2
, tvb
,
2846 offset
, 4, ENC_LITTLE_ENDIAN
);
2849 data
= proto_tree_add_item(eht_tree
, hf_radiotap_eht_data8
, tvb
, offset
,
2850 4, ENC_LITTLE_ENDIAN
);
2851 sub_tree
= proto_item_add_subtree(data
, ett_radiotap_eht_data
);
2853 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data8_ru_alloc_ps_160
,
2854 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2855 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data8_ru_alloc_b0
,
2856 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2857 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data8_ru_alloc_b7_b1
,
2858 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
2859 proto_tree_add_item(sub_tree
, hf_radiotap_eht_data8_rsvd
, tvb
,
2860 offset
, 4, ENC_LITTLE_ENDIAN
);
2863 /* known + data[9] */
2867 * Now, are there any user-info entries?
2869 info_11be
->num_users
= 0;
2870 if (tvb_captured_length_remaining(tvb
, offset
) && len
> 0) {
2871 user_info_tree
= proto_tree_add_subtree(eht_tree
, tvb
, offset
,
2872 4, ett_radiotap_eht_user_info
, NULL
,
2874 while (tvb_captured_length_remaining(tvb
, offset
) && len
> 0) {
2875 dissect_eht_user_info(user_info_tree
, tvb
, offset
, info_11be
);
2882 static int * const s1g_known_headers
[] = {
2883 &hf_radiotap_s1g_s1g_ppdu_format_known
,
2884 &hf_radiotap_s1g_response_indication_known
,
2885 &hf_radiotap_s1g_guard_interval_known
,
2886 &hf_radiotap_s1g_nss_known
,
2887 &hf_radiotap_s1g_bandwidth_known
,
2888 &hf_radiotap_s1g_mcs_known
,
2889 &hf_radiotap_s1g_color_known
,
2890 &hf_radiotap_s1g_uplink_indication_known
,
2891 &hf_radiotap_s1g_reserved_1
,
2895 static int * const s1g_data1_headers
[] = {
2896 &hf_radiotap_s1g_s1g_ppdu_format
,
2897 &hf_radiotap_s1g_response_indication
,
2898 &hf_radiotap_s1g_reserved_2
,
2899 &hf_radiotap_s1g_guard_interval
,
2900 &hf_radiotap_s1g_nss
,
2901 &hf_radiotap_s1g_bandwidth
,
2902 &hf_radiotap_s1g_mcs
,
2906 static int * const s1g_data2_headers
[] = {
2907 &hf_radiotap_s1g_color
,
2908 &hf_radiotap_s1g_uplink_indication
,
2909 &hf_radiotap_s1g_reserved_3
,
2910 &hf_radiotap_s1g_rssi
,
2915 dissect_radiotap_s1g(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2916 int offset
, struct ieee_802_11_phdr
*phdr
, bool is_tlv _U_
)
2918 proto_tree
*s1g_tree
= NULL
;
2920 phdr
->phy
= PHDR_802_11_PHY_11AH
;
2921 s1g_tree
= proto_tree_add_subtree(tree
, tvb
, offset
, 6,
2922 ett_radiotap_s1g
, NULL
, "S1G");
2924 add_tlv_items(s1g_tree
, tvb
, offset
);
2926 proto_tree_add_bitmask(s1g_tree
, tvb
, offset
,
2927 hf_radiotap_s1g_known
, ett_radiotap_s1g_known
,
2928 s1g_known_headers
, ENC_LITTLE_ENDIAN
);
2931 proto_tree_add_bitmask(s1g_tree
, tvb
, offset
,
2932 hf_radiotap_s1g_data_1
, ett_radiotap_s1g_data_1
,
2933 s1g_data1_headers
, ENC_LITTLE_ENDIAN
);
2936 proto_tree_add_bitmask(s1g_tree
, tvb
, offset
,
2937 hf_radiotap_s1g_data_2
, ett_radiotap_s1g_data_2
,
2938 s1g_data2_headers
, ENC_LITTLE_ENDIAN
);
2942 dissect_radiotap_tsft(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2943 int offset
, struct ieee_802_11_phdr
*phdr
)
2945 phdr
->tsf_timestamp
= tvb_get_letoh64(tvb
, offset
);
2946 phdr
->has_tsf_timestamp
= true;
2947 proto_tree_add_uint64(tree
, hf_radiotap_mactime
, tvb
, offset
, 8,
2948 phdr
->tsf_timestamp
);
2952 dissect_radiotap_flags(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2953 int offset
, uint8_t *rflags
, struct ieee_802_11_phdr
*phdr
)
2956 proto_tree
*flags_tree
;
2958 *rflags
= tvb_get_uint8(tvb
, offset
);
2959 if (*rflags
& IEEE80211_RADIOTAP_F_DATAPAD
)
2960 phdr
->datapad
= true;
2961 switch (radiotap_fcs_handling
) {
2964 if (*rflags
& IEEE80211_RADIOTAP_F_FCS
)
2970 case ASSUME_FCS_PRESENT
:
2974 case ASSUME_FCS_ABSENT
:
2978 ft
= proto_tree_add_item(tree
, hf_radiotap_flags
, tvb
, offset
,
2979 1, ENC_LITTLE_ENDIAN
);
2980 flags_tree
= proto_item_add_subtree(ft
, ett_radiotap_flags
);
2982 proto_tree_add_item(flags_tree
, hf_radiotap_flags_cfp
, tvb
, offset
,
2983 1, ENC_LITTLE_ENDIAN
);
2984 proto_tree_add_item(flags_tree
, hf_radiotap_flags_preamble
, tvb
, offset
,
2985 1, ENC_LITTLE_ENDIAN
);
2986 proto_tree_add_item(flags_tree
, hf_radiotap_flags_wep
, tvb
, offset
, 1,
2988 proto_tree_add_item(flags_tree
, hf_radiotap_flags_frag
, tvb
, offset
, 1,
2990 proto_tree_add_item(flags_tree
, hf_radiotap_flags_fcs
, tvb
, offset
, 1,
2992 proto_tree_add_item(flags_tree
, hf_radiotap_flags_datapad
, tvb
, offset
,
2993 1, ENC_LITTLE_ENDIAN
);
2994 proto_tree_add_item(flags_tree
, hf_radiotap_flags_badfcs
, tvb
, offset
,
2995 1, ENC_LITTLE_ENDIAN
);
2996 proto_tree_add_item(flags_tree
, hf_radiotap_flags_shortgi
, tvb
, offset
,
2997 1, ENC_LITTLE_ENDIAN
);
3001 dissect_radiotap_rate(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
3002 int offset
, struct ieee_802_11_phdr
*phdr
)
3006 rate
= tvb_get_uint8(tvb
, offset
);
3008 * XXX On FreeBSD rate & 0x80 means we have an MCS. On
3009 * Linux and AirPcap it does not. (What about
3010 * macOS, NetBSD, OpenBSD, and DragonFly BSD?)
3012 * This is an issue either for proprietary extensions
3013 * to 11a or 11g, which do exist, or for 11n
3014 * implementations that stuff a rate value into
3015 * this field, which also appear to exist.
3017 if (radiotap_interpret_high_rates_as_mcs
&&
3018 rate
>= 0x80 && rate
<= (0x80+76)) {
3020 * XXX - we don't know the channel width
3021 * or guard interval length, so we can't
3022 * convert this to a data rate.
3024 * If you want us to show a data rate,
3025 * use the MCS field, not the Rate field;
3026 * the MCS field includes not only the
3027 * MCS index, it also includes bandwidth
3028 * and guard interval information.
3030 * XXX - can we get the channel width
3031 * from XChannel and the guard interval
3032 * information from Flags, at least on
3035 proto_tree_add_uint(tree
, hf_radiotap_mcs_index
, tvb
, offset
,
3038 col_add_fstr(pinfo
->cinfo
, COL_TX_RATE
, "%d.%d",
3039 rate
/ 2, rate
& 1 ? 5 : 0);
3040 proto_tree_add_float_format(tree
, hf_radiotap_datarate
,
3041 tvb
, offset
, 1, (float)rate
/ 2,
3042 "Data Rate: %.1f Mb/s",
3044 phdr
->has_data_rate
= true;
3045 phdr
->data_rate
= rate
;
3050 dissect_radiotap_channel(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
3051 int offset
, struct ieee_802_11_phdr
*phdr
)
3056 freq
= tvb_get_letohs(tvb
, offset
);
3059 * XXX - some captures have 0, which is
3064 phdr
->has_frequency
= true;
3065 phdr
->frequency
= freq
;
3066 calc_channel
= ieee80211_mhz_to_chan(freq
);
3067 if (calc_channel
!= -1) {
3068 phdr
->has_channel
= true;
3069 phdr
->channel
= calc_channel
;
3072 memset(&phdr
->phy_info
, 0, sizeof(phdr
->phy_info
));
3073 cflags
= tvb_get_letohs(tvb
, offset
+ 2);
3074 switch (cflags
& IEEE80211_CHAN_ALLTURBO
) {
3076 case IEEE80211_CHAN_FHSS
:
3077 phdr
->phy
= PHDR_802_11_PHY_11_FHSS
;
3080 case IEEE80211_CHAN_DSSS
:
3081 phdr
->phy
= PHDR_802_11_PHY_11_DSSS
;
3084 case IEEE80211_CHAN_A
:
3085 phdr
->phy
= PHDR_802_11_PHY_11A
;
3086 phdr
->phy_info
.info_11a
.has_turbo_type
= true;
3087 phdr
->phy_info
.info_11a
.turbo_type
= PHDR_802_11A_TURBO_TYPE_NORMAL
;
3090 case IEEE80211_CHAN_B
:
3091 phdr
->phy
= PHDR_802_11_PHY_11B
;
3094 case IEEE80211_CHAN_PUREG
:
3095 case IEEE80211_CHAN_G
:
3097 * One of those means, in theory, that there should
3098 * only be ERP-OFDM traffic, and the other means that
3099 * there could be both ERP-DSSS and ERP-OFDM traffic.
3101 * For now, we treat it as 11g; later, we'll check
3102 * the rate and, if it's a DSSS rate, mark it as 11b,
3105 phdr
->phy
= PHDR_802_11_PHY_11G
;
3106 phdr
->phy_info
.info_11g
.has_mode
= true;
3107 phdr
->phy_info
.info_11g
.mode
= PHDR_802_11G_MODE_NORMAL
;
3110 case IEEE80211_CHAN_108A
:
3111 phdr
->phy
= PHDR_802_11_PHY_11A
;
3112 phdr
->phy_info
.info_11a
.has_turbo_type
= true;
3113 /* We assume non-STURBO is dynamic turbo */
3114 phdr
->phy_info
.info_11a
.turbo_type
= PHDR_802_11A_TURBO_TYPE_DYNAMIC_TURBO
;
3117 case IEEE80211_CHAN_108PUREG
:
3118 phdr
->phy
= PHDR_802_11_PHY_11G
;
3119 phdr
->phy_info
.info_11g
.has_mode
= true;
3120 phdr
->phy_info
.info_11g
.mode
= PHDR_802_11G_MODE_SUPER_G
;
3125 * XXX - special-case 11ad; there's no field to explicitly indicate
3126 * an 11ad packet. Anything with a frequency in the 802.11ad range
3127 * is treated as 11ad.
3129 if (IS_80211AD(freq
)) {
3130 phdr
->phy
= PHDR_802_11_PHY_11AD
;
3133 /* XXX - Control frames are transmitted in legacy mode using the basic
3134 * rate, and in the 6 GHz band will get called PHY_11A (assuming the
3135 * 5 GHz bit is set), even though that the use of that band indicates
3136 * 802.11ax or 802.11be certified devices, which is confusing for some
3142 static int * const channel_flags
[] = {
3143 &hf_radiotap_channel_flags_700mhz
,
3144 &hf_radiotap_channel_flags_800mhz
,
3145 &hf_radiotap_channel_flags_900mhz
,
3146 &hf_radiotap_channel_flags_turbo
,
3147 &hf_radiotap_channel_flags_cck
,
3148 &hf_radiotap_channel_flags_ofdm
,
3149 &hf_radiotap_channel_flags_2ghz
,
3150 &hf_radiotap_channel_flags_5ghz
,
3151 &hf_radiotap_channel_flags_passive
,
3152 &hf_radiotap_channel_flags_dynamic
,
3153 &hf_radiotap_channel_flags_gfsk
,
3154 &hf_radiotap_channel_flags_gsm
,
3155 &hf_radiotap_channel_flags_sturbo
,
3156 &hf_radiotap_channel_flags_half
,
3157 &hf_radiotap_channel_flags_quarter
,
3161 chan_str
= ieee80211_mhz_to_str(freq
);
3162 col_add_str(pinfo
->cinfo
,
3163 COL_FREQ_CHAN
, chan_str
);
3164 proto_tree_add_uint_format_value(tree
,
3165 hf_radiotap_channel_frequency
,
3166 tvb
, offset
, 2, freq
,
3171 /* We're already 2-byte aligned. */
3172 proto_tree_add_bitmask(tree
, tvb
, offset
+ 2,
3173 hf_radiotap_channel_flags
,
3174 ett_radiotap_channel_flags
,
3175 channel_flags
, ENC_LITTLE_ENDIAN
);
3180 dissect_radiotap_fhss(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
3181 int offset
, struct ieee_802_11_phdr
*phdr
)
3184 * Just in case we didn't have a Channel field or
3185 * it said this was something other than 11 legacy
3188 phdr
->phy
= PHDR_802_11_PHY_11_FHSS
;
3189 phdr
->phy_info
.info_11_fhss
.has_hop_set
= true;
3190 phdr
->phy_info
.info_11_fhss
.hop_set
= tvb_get_uint8(tvb
, offset
);
3191 phdr
->phy_info
.info_11_fhss
.has_hop_pattern
= true;
3192 phdr
->phy_info
.info_11_fhss
.hop_pattern
= tvb_get_uint8(tvb
, offset
+ 1);
3193 proto_tree_add_item(tree
, hf_radiotap_fhss_hopset
, tvb
, offset
, 1,
3195 proto_tree_add_item(tree
, hf_radiotap_fhss_pattern
, tvb
, offset
+ 1, 1,
3200 dissect_radiotap_dbm_antsignal(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3201 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr
)
3203 int8_t dbm
= tvb_get_int8(tvb
, offset
);
3205 phdr
->has_signal_dbm
= true;
3206 phdr
->signal_dbm
= dbm
;
3207 col_add_fstr(pinfo
->cinfo
, COL_RSSI
, "%d dBm", dbm
);
3208 proto_tree_add_int(tree
, hf_radiotap_dbm_antsignal
, tvb
, offset
, 1, dbm
);
3213 dissect_radiotap_dbm_antnoise(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3214 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr
)
3216 int dbm
= tvb_get_int8(tvb
, offset
);
3218 phdr
->has_noise_dbm
= true;
3219 phdr
->noise_dbm
= dbm
;
3221 proto_tree_add_int(tree
, hf_radiotap_dbm_antnoise
, tvb
, offset
,
3227 dissect_radiotap_db_antsignal(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3228 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr
)
3230 uint8_t db
= tvb_get_uint8(tvb
, offset
);
3232 phdr
->has_signal_db
= true;
3233 phdr
->signal_db
= db
;
3234 col_add_fstr(pinfo
->cinfo
, COL_RSSI
, "%u dB", db
);
3235 proto_tree_add_uint(tree
, hf_radiotap_db_antsignal
, tvb
, offset
, 1, db
);
3239 dissect_radiotap_db_antnoise(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3240 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr
)
3242 unsigned db
= tvb_get_uint8(tvb
, offset
);
3244 phdr
->has_noise_db
= true;
3245 phdr
->noise_db
= db
;
3247 proto_tree_add_uint(tree
, hf_radiotap_db_antnoise
, tvb
, offset
,
3253 dissect_radiotap_rx_flags(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3254 proto_tree
*tree
, int offset
, proto_item
**hdr_fcs_ti
,
3255 int *hdr_fcs_offset
, int *sent_fcs
)
3257 if (radiotap_bit14_fcs
) {
3259 *sent_fcs
= tvb_get_ntohl(tvb
, offset
);
3260 *hdr_fcs_ti
= proto_tree_add_uint(tree
,
3261 hf_radiotap_fcs
, tvb
,
3262 offset
, 4, *sent_fcs
);
3263 *hdr_fcs_offset
= offset
;
3266 static int * const rxflags
[] = {
3267 &hf_radiotap_rxflags_badplcp
,
3271 proto_tree_add_bitmask(tree
, tvb
, offset
,
3272 hf_radiotap_rxflags
, ett_radiotap_rxflags
,
3273 rxflags
, ENC_LITTLE_ENDIAN
);
3279 dissect_radiotap_tx_flags(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3280 proto_tree
*tree
, int offset
)
3282 static int * const txflags
[] = {
3283 &hf_radiotap_txflags_fail
,
3284 &hf_radiotap_txflags_cts
,
3285 &hf_radiotap_txflags_rts
,
3286 &hf_radiotap_txflags_noack
,
3287 &hf_radiotap_txflags_noseqno
,
3288 &hf_radiotap_txflags_order
,
3292 proto_tree_add_bitmask(tree
, tvb
, offset
,
3293 hf_radiotap_txflags
, ett_radiotap_txflags
,
3294 txflags
, ENC_LITTLE_ENDIAN
);
3298 dissect_radiotap_xchannel(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3299 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr
)
3301 uint32_t xcflags
= tvb_get_letohl(tvb
, offset
);
3304 switch (xcflags
& IEEE80211_CHAN_ALLTURBO
) {
3306 case IEEE80211_CHAN_FHSS
:
3307 phdr
->phy
= PHDR_802_11_PHY_11_FHSS
;
3310 case IEEE80211_CHAN_DSSS
:
3311 phdr
->phy
= PHDR_802_11_PHY_11_DSSS
;
3314 case IEEE80211_CHAN_A
:
3315 phdr
->phy
= PHDR_802_11_PHY_11A
;
3316 phdr
->phy_info
.info_11a
.has_turbo_type
= true;
3317 phdr
->phy_info
.info_11a
.turbo_type
= PHDR_802_11A_TURBO_TYPE_NORMAL
;
3320 case IEEE80211_CHAN_B
:
3321 phdr
->phy
= PHDR_802_11_PHY_11B
;
3324 case IEEE80211_CHAN_PUREG
:
3325 case IEEE80211_CHAN_G
:
3326 phdr
->phy
= PHDR_802_11_PHY_11G
;
3327 phdr
->phy_info
.info_11g
.has_mode
= true;
3328 phdr
->phy_info
.info_11g
.mode
= PHDR_802_11G_MODE_NORMAL
;
3331 case IEEE80211_CHAN_108A
:
3332 phdr
->phy
= PHDR_802_11_PHY_11A
;
3333 phdr
->phy_info
.info_11a
.has_turbo_type
= true;
3334 /* We assume non-STURBO is dynamic turbo */
3335 phdr
->phy_info
.info_11a
.turbo_type
= PHDR_802_11A_TURBO_TYPE_DYNAMIC_TURBO
;
3338 case IEEE80211_CHAN_108PUREG
:
3339 phdr
->phy
= PHDR_802_11_PHY_11G
;
3340 phdr
->phy_info
.info_11g
.has_mode
= true;
3341 phdr
->phy_info
.info_11g
.mode
= PHDR_802_11G_MODE_SUPER_G
;
3344 case IEEE80211_CHAN_ST
:
3345 phdr
->phy
= PHDR_802_11_PHY_11A
;
3346 phdr
->phy_info
.info_11a
.has_turbo_type
= true;
3347 phdr
->phy_info
.info_11a
.turbo_type
= PHDR_802_11A_TURBO_TYPE_STATIC_TURBO
;
3350 case IEEE80211_CHAN_A
|IEEE80211_CHAN_HT20
:
3351 case IEEE80211_CHAN_A
|IEEE80211_CHAN_HT40D
:
3352 case IEEE80211_CHAN_A
|IEEE80211_CHAN_HT40U
:
3353 case IEEE80211_CHAN_G
|IEEE80211_CHAN_HT20
:
3354 case IEEE80211_CHAN_G
|IEEE80211_CHAN_HT40U
:
3355 case IEEE80211_CHAN_G
|IEEE80211_CHAN_HT40D
:
3356 phdr
->phy
= PHDR_802_11_PHY_11N
;
3359 freq
= tvb_get_letohs(tvb
, offset
+ 4);
3362 * XXX - some captures have 0, which is
3365 phdr
->has_frequency
= true;
3366 phdr
->frequency
= freq
;
3369 * XXX - special-case 11ad; there's no field to explicitly
3370 * indicate an 11ad packet. Anything with a frequency in
3371 * the 802.11ad range is treated as 11ad.
3373 if (IS_80211AD(freq
))
3374 phdr
->phy
= PHDR_802_11_PHY_11AD
;
3376 phdr
->has_channel
= true;
3377 phdr
->channel
= tvb_get_uint8(tvb
, offset
+ 6);
3379 static int * const xchannel_flags
[] = {
3380 &hf_radiotap_xchannel_flags_turbo
,
3381 &hf_radiotap_xchannel_flags_cck
,
3382 &hf_radiotap_xchannel_flags_ofdm
,
3383 &hf_radiotap_xchannel_flags_2ghz
,
3384 &hf_radiotap_xchannel_flags_5ghz
,
3385 &hf_radiotap_xchannel_flags_passive
,
3386 &hf_radiotap_xchannel_flags_dynamic
,
3387 &hf_radiotap_xchannel_flags_gfsk
,
3388 &hf_radiotap_xchannel_flags_gsm
,
3389 &hf_radiotap_xchannel_flags_sturbo
,
3390 &hf_radiotap_xchannel_flags_half
,
3391 &hf_radiotap_xchannel_flags_quarter
,
3392 &hf_radiotap_xchannel_flags_ht20
,
3393 &hf_radiotap_xchannel_flags_ht40u
,
3394 &hf_radiotap_xchannel_flags_ht40d
,
3398 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_radiotap_xchannel_flags
,
3399 ett_radiotap_xchannel_flags
,
3400 xchannel_flags
, ENC_LITTLE_ENDIAN
);
3401 proto_tree_add_item(tree
, hf_radiotap_xchannel_frequency
,
3402 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
3403 proto_tree_add_item(tree
, hf_radiotap_xchannel_channel
,
3404 tvb
, offset
+ 6, 1, ENC_LITTLE_ENDIAN
);
3405 proto_tree_add_item(tree
, hf_radiotap_xchannel_maxpower
,
3406 tvb
, offset
+ 7, 1, ENC_LITTLE_ENDIAN
);
3411 dissect_radiotap_timestamp(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3412 proto_tree
*tree
, int offset
, struct ieee_802_11_phdr
*phdr _U_
)
3414 proto_item
*it_root
;
3415 proto_tree
*ts_tree
, *flg_tree
;
3417 it_root
= proto_tree_add_item(tree
, hf_radiotap_timestamp
, tvb
, offset
,
3419 ts_tree
= proto_item_add_subtree(it_root
, ett_radiotap_timestamp
);
3421 proto_tree_add_item(ts_tree
, hf_radiotap_timestamp_ts
, tvb
, offset
, 8,
3423 if (tvb_get_letohs(tvb
, offset
+ 11) & IEEE80211_RADIOTAP_TS_FLG_ACCURACY
)
3424 proto_tree_add_item(ts_tree
, hf_radiotap_timestamp_accuracy
,
3425 tvb
, offset
+ 8, 2, ENC_LITTLE_ENDIAN
);
3426 proto_tree_add_item(ts_tree
, hf_radiotap_timestamp_unit
, tvb
,
3427 offset
+ 10, 1, ENC_LITTLE_ENDIAN
);
3428 proto_tree_add_item(ts_tree
, hf_radiotap_timestamp_spos
, tvb
,
3429 offset
+ 10, 1, ENC_LITTLE_ENDIAN
);
3430 flg_tree
= proto_item_add_subtree(ts_tree
, ett_radiotap_timestamp_flags
);
3431 proto_tree_add_item(flg_tree
, hf_radiotap_timestamp_flags_32bit
, tvb
,
3432 offset
+ 11, 1, ENC_LITTLE_ENDIAN
);
3433 proto_tree_add_item(flg_tree
, hf_radiotap_timestamp_flags_accuracy
, tvb
,
3434 offset
+ 11, 1, ENC_LITTLE_ENDIAN
);
3438 dissect_radiotap(tvbuff_t
* tvb
, packet_info
* pinfo
, proto_tree
* tree
, void* unused_data _U_
)
3440 proto_tree
*radiotap_tree
= NULL
;
3441 proto_item
*length_item
= NULL
;
3442 proto_item
*present_item
= NULL
;
3443 proto_tree
*present_tree
= NULL
;
3444 proto_item
*present_word_item
= NULL
;
3445 proto_tree
*present_word_tree
= NULL
;
3446 proto_item
*ti
= NULL
;
3447 proto_item
*hidden_item
;
3452 proto_item
*rate_ti
;
3453 bool have_rflags
= false;
3455 /* backward compat with bit 14 == fcs in header */
3456 proto_item
*hdr_fcs_ti
= NULL
;
3457 int hdr_fcs_offset
= 0;
3458 uint32_t sent_fcs
= 0;
3462 struct ieee80211_radiotap_iterator iter
;
3463 struct ieee_802_11_phdr phdr
;
3464 unsigned char *bmap_start
;
3469 unsigned rtap_ns_offset
;
3470 unsigned rtap_ns_offset_next
;
3471 bool zero_length_psdu
= false;
3473 tvbuff_t
*ven_data_tvb
;
3475 /* our non-standard overrides */
3476 static struct radiotap_override overrides
[] = {
3477 {IEEE80211_RADIOTAP_XCHANNEL
, 4, 8}, /* xchannel */
3480 {14, 4, 4}, /* FCS in header */
3482 unsigned n_overrides
= array_length(overrides
);
3484 if (!radiotap_bit14_fcs
)
3487 /* We don't have any 802.11 metadata yet. */
3488 memset(&phdr
, 0, sizeof(phdr
));
3490 phdr
.decrypted
= false;
3491 phdr
.datapad
= false;
3492 phdr
.phy
= PHDR_802_11_PHY_UNKNOWN
;
3494 col_set_str(pinfo
->cinfo
, COL_PROTOCOL
, "WLAN");
3495 col_clear(pinfo
->cinfo
, COL_INFO
);
3497 version
= tvb_get_uint8(tvb
, 0);
3498 length
= tvb_get_letohs(tvb
, 2);
3500 col_add_fstr(pinfo
->cinfo
, COL_INFO
, "Radiotap Capture v%u, Length %u",
3503 /* Dissect the packet */
3505 ti
= proto_tree_add_protocol_format(tree
, proto_radiotap
,
3507 "Radiotap Header v%u, Length %u",
3509 radiotap_tree
= proto_item_add_subtree(ti
, ett_radiotap
);
3510 proto_tree_add_uint(radiotap_tree
, hf_radiotap_version
,
3511 tvb
, 0, 1, version
);
3512 proto_tree_add_item(radiotap_tree
, hf_radiotap_pad
,
3513 tvb
, 1, 1, ENC_LITTLE_ENDIAN
);
3514 length_item
= proto_tree_add_uint(radiotap_tree
, hf_radiotap_length
,
3519 * The length is the length of the entire radiotap header, so it
3520 * must be at least 8, for the version, padding, length, and first
3521 * presence flags word.
3524 expert_add_info(pinfo
, length_item
,
3525 &ei_radiotap_invalid_header_length
);
3526 return tvb_captured_length(tvb
);
3529 data
= tvb_memdup(pinfo
->pool
, tvb
, 0, length
);
3531 if (ieee80211_radiotap_iterator_init(&iter
, (struct ieee80211_radiotap_header
*)data
, length
, NULL
)) {
3533 proto_item_append_text(ti
, " (invalid)");
3534 /* maybe the length was correct anyway ... */
3535 goto hand_off_to_80211
;
3538 iter
.overrides
= overrides
;
3539 iter
.n_overrides
= n_overrides
;
3542 * Check the "present flags" bitmaps, and add them if we're
3545 bmap_start
= (unsigned char *)data
+ 4;
3546 n_bitmaps
= (unsigned)(iter
.this_arg
- bmap_start
) / 4;
3547 rtap_ns_next
= true;
3548 rtap_ns_offset_next
= 0;
3549 present_item
= proto_tree_add_item(radiotap_tree
,
3550 hf_radiotap_present
, tvb
, 4, n_bitmaps
* 4, ENC_NA
);
3551 present_tree
= proto_item_add_subtree(present_item
,
3552 ett_radiotap_present
);
3554 for (i
= 0; i
< n_bitmaps
; i
++) {
3555 uint32_t bmap
= pletoh32(bmap_start
+ 4 * i
);
3557 rtap_ns_offset
= rtap_ns_offset_next
;
3558 rtap_ns_offset_next
+= 32;
3563 proto_tree_add_item(present_tree
,
3564 hf_radiotap_present_word
,
3565 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3568 proto_item_add_subtree(present_word_item
,
3569 ett_radiotap_present_word
);
3571 rtap_ns
= rtap_ns_next
;
3573 /* Evaluate what kind of namespaces will come next */
3574 if (bmap
& BIT(IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE
)) {
3575 rtap_ns_next
= true;
3576 rtap_ns_offset_next
= 0;
3578 if (bmap
& BIT(IEEE80211_RADIOTAP_VENDOR_NAMESPACE
))
3579 rtap_ns_next
= false;
3580 if ((bmap
& (BIT(IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE
) |
3581 BIT(IEEE80211_RADIOTAP_VENDOR_NAMESPACE
)))
3582 == (BIT(IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE
) |
3583 BIT(IEEE80211_RADIOTAP_VENDOR_NAMESPACE
))) {
3584 expert_add_info_format(pinfo
, present_word_item
,
3585 &ei_radiotap_present
,
3586 "Both radiotap and vendor namespace specified in bitmask word %u",
3594 /* Currently, we don't know anything about bits >= 32 */
3599 proto_tree_add_item(present_word_tree
,
3600 hf_radiotap_present_tsft
, tvb
,
3601 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3602 proto_tree_add_item(present_word_tree
,
3603 hf_radiotap_present_flags
, tvb
,
3604 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3605 proto_tree_add_item(present_word_tree
,
3606 hf_radiotap_present_rate
, tvb
,
3607 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3608 proto_tree_add_item(present_word_tree
,
3609 hf_radiotap_present_channel
, tvb
,
3610 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3611 proto_tree_add_item(present_word_tree
,
3612 hf_radiotap_present_fhss
, tvb
,
3613 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3614 proto_tree_add_item(present_word_tree
,
3615 hf_radiotap_present_dbm_antsignal
,
3616 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3617 proto_tree_add_item(present_word_tree
,
3618 hf_radiotap_present_dbm_antnoise
,
3619 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3620 proto_tree_add_item(present_word_tree
,
3621 hf_radiotap_present_lock_quality
,
3622 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3623 proto_tree_add_item(present_word_tree
,
3624 hf_radiotap_present_tx_attenuation
,
3625 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3626 proto_tree_add_item(present_word_tree
,
3627 hf_radiotap_present_db_tx_attenuation
,
3628 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3629 proto_tree_add_item(present_word_tree
,
3630 hf_radiotap_present_dbm_tx_power
,
3631 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3632 proto_tree_add_item(present_word_tree
,
3633 hf_radiotap_present_antenna
, tvb
,
3634 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3635 proto_tree_add_item(present_word_tree
,
3636 hf_radiotap_present_db_antsignal
,
3637 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3638 proto_tree_add_item(present_word_tree
,
3639 hf_radiotap_present_db_antnoise
,
3640 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3641 if (radiotap_bit14_fcs
) {
3642 proto_tree_add_item(present_word_tree
,
3643 hf_radiotap_present_hdrfcs
,
3644 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3646 proto_tree_add_item(present_word_tree
,
3647 hf_radiotap_present_rxflags
,
3648 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3650 proto_tree_add_item(present_word_tree
,
3651 hf_radiotap_present_txflags
, tvb
,
3652 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3653 proto_tree_add_item(present_word_tree
,
3654 hf_radiotap_present_reserved16
, tvb
,
3655 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3656 proto_tree_add_item(present_word_tree
,
3657 hf_radiotap_present_data_retries
, tvb
,
3658 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3659 proto_tree_add_item(present_word_tree
,
3660 hf_radiotap_present_xchannel
, tvb
,
3661 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3663 proto_tree_add_item(present_word_tree
,
3664 hf_radiotap_present_mcs
, tvb
,
3665 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3666 proto_tree_add_item(present_word_tree
,
3667 hf_radiotap_present_ampdu
, tvb
,
3668 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3669 proto_tree_add_item(present_word_tree
,
3670 hf_radiotap_present_vht
, tvb
,
3671 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3672 proto_tree_add_item(present_word_tree
,
3673 hf_radiotap_present_timestamp
, tvb
,
3674 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3675 proto_tree_add_item(present_word_tree
,
3676 hf_radiotap_present_he
, tvb
,
3677 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3678 proto_tree_add_item(present_word_tree
,
3679 hf_radiotap_present_he_mu
, tvb
,
3680 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3681 proto_tree_add_item(present_word_tree
,
3682 hf_radiotap_present_reserved25
, tvb
,
3683 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3684 proto_tree_add_item(present_word_tree
,
3685 hf_radiotap_present_0_length_psdu
,
3686 tvb
, offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3687 proto_tree_add_item(present_word_tree
,
3688 hf_radiotap_present_l_sig
, tvb
,
3689 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3690 proto_tree_add_item(present_word_tree
,
3691 hf_radiotap_present_tlv
, tvb
,
3692 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3696 proto_tree_add_item(present_word_tree
,
3697 hf_radiotap_present_rtap_ns
, tvb
,
3698 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3699 proto_tree_add_item(present_word_tree
,
3700 hf_radiotap_present_vendor_ns
, tvb
,
3701 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3702 proto_tree_add_item(present_word_tree
,
3703 hf_radiotap_present_ext
, tvb
,
3704 offset
+ 4, 4, ENC_LITTLE_ENDIAN
);
3708 while (!(err
= ieee80211_radiotap_iterator_next(&iter
))) {
3709 proto_tree
*item_tree
= radiotap_tree
;
3711 offset
= (int)((unsigned char *) iter
.this_arg
- (unsigned char *) data
);
3713 if (iter
.this_arg_index
== IEEE80211_RADIOTAP_VENDOR_NAMESPACE
3714 && tree
&& !iter
.tlv_mode
) {
3715 proto_tree
*ven_tree
;
3717 const char *manuf_name
;
3720 manuf_name
= tvb_get_manuf_name(tvb
, offset
);
3721 subns
= tvb_get_uint8(tvb
, offset
+3);
3723 vt
= proto_tree_add_bytes_format_value(item_tree
,
3724 hf_radiotap_vendor_ns
,
3730 ven_tree
= proto_item_add_subtree(vt
, ett_radiotap_vendor
);
3732 * This is defined on the Radiotap site as an array
3733 * of 3 octets, containing an OUI, but we show fields
3734 * of that sort as a 24-bit big-endian field, so
3735 * ENC_BIG_ENDIAN is correct here.
3737 proto_tree_add_item(ven_tree
, hf_radiotap_ven_oui
,
3738 tvb
, offset
, 3, ENC_BIG_ENDIAN
);
3739 proto_tree_add_item(ven_tree
, hf_radiotap_ven_subns
,
3740 tvb
, offset
+ 3, 1, ENC_LITTLE_ENDIAN
);
3741 /* Get OUI and sub namespace as UINT32 */
3742 ven_ns_id
= tvb_get_uint32(tvb
, offset
, ENC_BIG_ENDIAN
);
3743 if (iter
.tlv_mode
) {
3744 proto_tree_add_item(ven_tree
, hf_radiotap_ven_item
, tvb
,
3745 offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
3746 ven_data_tvb
= tvb_new_subset_length(tvb
, offset
+ 8, iter
.this_arg_size
- 8);
3748 proto_tree_add_item(ven_tree
, hf_radiotap_ven_skip
, tvb
,
3749 offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
3750 ven_data_tvb
= tvb_new_subset_length(tvb
, offset
+ 6, iter
.this_arg_size
- 6);
3752 if (!dissector_try_uint_with_data(vendor_dissector_table
, ven_ns_id
, ven_data_tvb
, pinfo
, ven_tree
, true, NULL
)) {
3753 proto_tree_add_item(ven_tree
, hf_radiotap_ven_data
, ven_data_tvb
, 0, -1, ENC_NA
);
3757 if (!iter
.is_radiotap_ns
)
3760 switch (iter
.this_arg_index
) {
3762 case IEEE80211_RADIOTAP_TSFT
:
3763 dissect_radiotap_tsft(tvb
, pinfo
, item_tree
, offset
,
3767 case IEEE80211_RADIOTAP_FLAGS
:
3769 dissect_radiotap_flags(tvb
, pinfo
, item_tree
, offset
,
3773 case IEEE80211_RADIOTAP_RATE
:
3774 dissect_radiotap_rate(tvb
, pinfo
, item_tree
, offset
,
3778 case IEEE80211_RADIOTAP_CHANNEL
:
3779 dissect_radiotap_channel(tvb
, pinfo
, item_tree
, offset
,
3783 case IEEE80211_RADIOTAP_FHSS
:
3784 dissect_radiotap_fhss(tvb
, pinfo
, item_tree
, offset
,
3788 case IEEE80211_RADIOTAP_DBM_ANTSIGNAL
:
3789 dissect_radiotap_dbm_antsignal(tvb
, pinfo
, item_tree
,
3793 case IEEE80211_RADIOTAP_DBM_ANTNOISE
:
3794 dissect_radiotap_dbm_antnoise(tvb
, pinfo
, item_tree
,
3798 case IEEE80211_RADIOTAP_LOCK_QUALITY
:
3799 proto_tree_add_item(item_tree
,
3800 hf_radiotap_quality
, tvb
,
3801 offset
, 2, ENC_LITTLE_ENDIAN
);
3804 case IEEE80211_RADIOTAP_TX_ATTENUATION
:
3805 proto_tree_add_item(item_tree
,
3806 hf_radiotap_tx_attenuation
, tvb
,
3807 offset
, 2, ENC_LITTLE_ENDIAN
);
3810 case IEEE80211_RADIOTAP_DB_TX_ATTENUATION
:
3811 proto_tree_add_item(item_tree
,
3812 hf_radiotap_db_tx_attenuation
, tvb
,
3813 offset
, 2, ENC_LITTLE_ENDIAN
);
3816 case IEEE80211_RADIOTAP_DBM_TX_POWER
:
3817 proto_tree_add_item(item_tree
,
3818 hf_radiotap_txpower
, tvb
,
3822 case IEEE80211_RADIOTAP_ANTENNA
:
3823 proto_tree_add_item(item_tree
,
3824 hf_radiotap_antenna
, tvb
,
3828 case IEEE80211_RADIOTAP_DB_ANTSIGNAL
:
3829 dissect_radiotap_db_antsignal(tvb
, pinfo
, item_tree
,
3833 case IEEE80211_RADIOTAP_DB_ANTNOISE
:
3834 dissect_radiotap_db_antnoise(tvb
, pinfo
, item_tree
,
3838 case IEEE80211_RADIOTAP_RX_FLAGS
:
3839 dissect_radiotap_rx_flags(tvb
, pinfo
, item_tree
,
3840 offset
, &hdr_fcs_ti
,
3841 &hdr_fcs_offset
, &sent_fcs
);
3844 case IEEE80211_RADIOTAP_TX_FLAGS
:
3845 dissect_radiotap_tx_flags(tvb
, pinfo
, item_tree
,
3849 case IEEE80211_RADIOTAP_DATA_RETRIES
:
3850 proto_tree_add_item(item_tree
,
3851 hf_radiotap_data_retries
, tvb
,
3852 offset
, 1, ENC_LITTLE_ENDIAN
);
3855 case IEEE80211_RADIOTAP_XCHANNEL
:
3856 dissect_radiotap_xchannel(tvb
, pinfo
, item_tree
,
3860 case IEEE80211_RADIOTAP_MCS
: {
3861 proto_tree
*mcs_tree
= NULL
;
3862 uint8_t mcs_known
, mcs_flags
;
3866 bool can_calculate_rate
;
3869 * Start out assuming that we can calculate the rate;
3870 * if we are missing any of the MCS index, channel
3871 * width, or guard interval length, we can't.
3873 can_calculate_rate
= true;
3875 mcs_known
= tvb_get_uint8(tvb
, offset
);
3877 * If there's actually any data here, not an
3878 * empty field, this is 802.11n - unless we've
3879 * seen a frequency >= 60 GHz and already set
3882 if (mcs_known
!= 0 &&
3883 phdr
.phy
!= PHDR_802_11_PHY_11AD
) {
3884 phdr
.phy
= PHDR_802_11_PHY_11N
;
3885 memset(&phdr
.phy_info
.info_11n
, 0, sizeof(phdr
.phy_info
.info_11n
));
3888 mcs_flags
= tvb_get_uint8(tvb
, offset
+ 1);
3889 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_MCS
) {
3890 mcs
= tvb_get_uint8(tvb
, offset
+ 2);
3891 phdr
.phy_info
.info_11n
.has_mcs_index
= true;
3892 phdr
.phy_info
.info_11n
.mcs_index
= mcs
;
3895 can_calculate_rate
= false; /* no MCS index */
3897 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_BW
) {
3898 phdr
.phy_info
.info_11n
.has_bandwidth
= true;
3899 phdr
.phy_info
.info_11n
.bandwidth
= (mcs_flags
& IEEE80211_RADIOTAP_MCS_BW_MASK
);
3901 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_GI
) {
3902 gi_length
= (mcs_flags
& IEEE80211_RADIOTAP_MCS_SGI
) ?
3904 phdr
.phy_info
.info_11n
.has_short_gi
= true;
3905 phdr
.phy_info
.info_11n
.short_gi
= gi_length
;
3908 can_calculate_rate
= false; /* no GI width */
3910 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_FMT
) {
3911 phdr
.phy_info
.info_11n
.has_greenfield
= true;
3912 phdr
.phy_info
.info_11n
.greenfield
= (mcs_flags
& IEEE80211_RADIOTAP_MCS_FMT_GF
) != 0;
3914 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_FEC
) {
3915 phdr
.phy_info
.info_11n
.has_fec
= true;
3916 phdr
.phy_info
.info_11n
.fec
= (mcs_flags
& IEEE80211_RADIOTAP_MCS_FEC_LDPC
) ? 1 : 0;
3918 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_STBC
) {
3919 phdr
.phy_info
.info_11n
.has_stbc_streams
= true;
3920 phdr
.phy_info
.info_11n
.stbc_streams
= (mcs_flags
& IEEE80211_RADIOTAP_MCS_STBC_MASK
) >> IEEE80211_RADIOTAP_MCS_STBC_SHIFT
;
3922 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_NESS
) {
3923 phdr
.phy_info
.info_11n
.has_ness
= true;
3924 /* This is stored a bit weirdly */
3925 phdr
.phy_info
.info_11n
.ness
=
3926 ((mcs_known
& IEEE80211_RADIOTAP_MCS_NESS_BIT1
) >> 6) |
3927 ((mcs_flags
& IEEE80211_RADIOTAP_MCS_NESS_BIT0
) >> 7);
3932 static int * const mcs_haves_with_ness_bit1
[] = {
3933 &hf_radiotap_mcs_have_bw
,
3934 &hf_radiotap_mcs_have_index
,
3935 &hf_radiotap_mcs_have_gi
,
3936 &hf_radiotap_mcs_have_format
,
3937 &hf_radiotap_mcs_have_fec
,
3938 &hf_radiotap_mcs_have_stbc
,
3939 &hf_radiotap_mcs_have_ness
,
3940 &hf_radiotap_mcs_ness_bit1
,
3943 static int * const mcs_haves_without_ness_bit1
[] = {
3944 &hf_radiotap_mcs_have_bw
,
3945 &hf_radiotap_mcs_have_index
,
3946 &hf_radiotap_mcs_have_gi
,
3947 &hf_radiotap_mcs_have_format
,
3948 &hf_radiotap_mcs_have_fec
,
3949 &hf_radiotap_mcs_have_stbc
,
3950 &hf_radiotap_mcs_have_ness
,
3954 it
= proto_tree_add_item(item_tree
, hf_radiotap_mcs
,
3955 tvb
, offset
, 3, ENC_NA
);
3956 mcs_tree
= proto_item_add_subtree(it
, ett_radiotap_mcs
);
3958 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_NESS
)
3959 proto_tree_add_bitmask(mcs_tree
, tvb
, offset
, hf_radiotap_mcs_known
, ett_radiotap_mcs_known
, mcs_haves_with_ness_bit1
, ENC_LITTLE_ENDIAN
);
3961 proto_tree_add_bitmask(mcs_tree
, tvb
, offset
, hf_radiotap_mcs_known
, ett_radiotap_mcs_known
, mcs_haves_without_ness_bit1
, ENC_LITTLE_ENDIAN
);
3963 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_BW
) {
3964 bandwidth
= ((mcs_flags
& IEEE80211_RADIOTAP_MCS_BW_MASK
) == IEEE80211_RADIOTAP_MCS_BW_40
) ?
3966 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_bw
,
3967 tvb
, offset
+ 1, 1, mcs_flags
);
3970 can_calculate_rate
= false; /* no bandwidth */
3972 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_GI
) {
3973 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_gi
,
3974 tvb
, offset
+ 1, 1, mcs_flags
);
3976 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_FMT
) {
3977 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_format
,
3978 tvb
, offset
+ 1, 1, mcs_flags
);
3980 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_FEC
) {
3981 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_fec
,
3982 tvb
, offset
+ 1, 1, mcs_flags
);
3984 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_STBC
) {
3985 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_stbc
,
3986 tvb
, offset
+ 1, 1, mcs_flags
);
3988 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_NESS
) {
3989 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_ness_bit0
,
3990 tvb
, offset
+ 1, 1, mcs_flags
);
3992 if (mcs_known
& IEEE80211_RADIOTAP_MCS_HAVE_MCS
) {
3993 proto_tree_add_uint(mcs_tree
, hf_radiotap_mcs_index
,
3994 tvb
, offset
+ 2, 1, mcs
);
3998 * If we have the MCS index, channel width, and
3999 * guard interval length, and the MCS index is
4000 * valid, we can compute the rate. If the resulting
4001 * rate is non-zero, report it. (If it's zero,
4002 * it's an MCS/channel width/GI combination that
4003 * 802.11n doesn't support.)
4005 if (can_calculate_rate
&& mcs
<= MAX_MCS_INDEX
4006 && ieee80211_ht_Dbps
[mcs
] != 0) {
4007 float rate
= ieee80211_htrate(mcs
, bandwidth
, gi_length
);
4008 col_add_fstr(pinfo
->cinfo
, COL_TX_RATE
, "%.1f", rate
);
4010 rate_ti
= proto_tree_add_float_format(item_tree
,
4011 hf_radiotap_datarate
,
4012 tvb
, offset
, 3, rate
,
4013 "Data Rate: %.1f Mb/s", rate
);
4014 proto_item_set_generated(rate_ti
);
4019 case IEEE80211_RADIOTAP_AMPDU_STATUS
: {
4021 proto_tree
*ampdu_tree
= NULL
, *ampdu_flags_tree
;
4022 uint16_t ampdu_flags
;
4024 phdr
.has_aggregate_info
= 1;
4025 phdr
.aggregate_flags
= 0;
4026 phdr
.aggregate_id
= tvb_get_letohl(tvb
, offset
);
4028 ampdu_flags
= tvb_get_letohs(tvb
, offset
+ 4);
4029 if (ampdu_flags
& IEEE80211_RADIOTAP_AMPDU_IS_LAST
)
4030 phdr
.aggregate_flags
|= PHDR_802_11_LAST_PART_OF_A_MPDU
;
4031 if (ampdu_flags
& IEEE80211_RADIOTAP_AMPDU_DELIM_CRC_ERR
)
4032 phdr
.aggregate_flags
|= PHDR_802_11_A_MPDU_DELIM_CRC_ERROR
;
4035 it
= proto_tree_add_item(item_tree
, hf_radiotap_ampdu
,
4036 tvb
, offset
, 8, ENC_NA
);
4037 ampdu_tree
= proto_item_add_subtree(it
, ett_radiotap_ampdu
);
4039 proto_tree_add_item(ampdu_tree
, hf_radiotap_ampdu_ref
,
4040 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
4042 it
= proto_tree_add_item(ampdu_tree
, hf_radiotap_ampdu_flags
,
4043 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4044 ampdu_flags_tree
= proto_item_add_subtree(it
, ett_radiotap_ampdu_flags
);
4045 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_report_zerolen
,
4046 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4047 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_is_zerolen
,
4048 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4049 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_last_known
,
4050 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4051 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_is_last
,
4052 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4053 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_delim_crc_error
,
4054 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4055 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_eof
,
4056 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4057 proto_tree_add_item(ampdu_flags_tree
, hf_radiotap_ampdu_flags_eof_known
,
4058 tvb
, offset
+ 4, 2, ENC_LITTLE_ENDIAN
);
4060 if (ampdu_flags
& IEEE80211_RADIOTAP_AMPDU_DELIM_CRC_KNOWN
) {
4062 proto_tree_add_item(ampdu_tree
, hf_radiotap_ampdu_delim_crc
,
4063 tvb
, offset
+ 6, 1, ENC_NA
);
4067 case IEEE80211_RADIOTAP_VHT
: {
4068 proto_item
*it
, *it_root
= NULL
;
4069 proto_tree
*vht_tree
= NULL
, *vht_known_tree
= NULL
, *user_tree
= NULL
;
4071 uint8_t vht_flags
, bw
, mcs_nss
;
4072 unsigned bandwidth
= 0;
4073 unsigned gi_length
= 0;
4076 bool can_calculate_rate
;
4080 * Start out assuming that we can calculate the rate;
4081 * if we are missing any of the MCS index, channel
4082 * width, or guard interval length, we can't.
4084 can_calculate_rate
= true;
4086 known
= tvb_get_letohs(tvb
, offset
);
4088 * If there's actually any data here, not an
4089 * empty field, this is 802.11ac.
4092 phdr
.phy
= PHDR_802_11_PHY_11AC
;
4094 vht_flags
= tvb_get_uint8(tvb
, offset
+ 2);
4096 it_root
= proto_tree_add_item(item_tree
, hf_radiotap_vht
,
4097 tvb
, offset
, 12, ENC_NA
);
4098 vht_tree
= proto_item_add_subtree(it_root
, ett_radiotap_vht
);
4099 it
= proto_tree_add_item(vht_tree
, hf_radiotap_vht_known
,
4100 tvb
, offset
, 2, ENC_NA
);
4101 vht_known_tree
= proto_item_add_subtree(it
, ett_radiotap_vht_known
);
4103 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_stbc
,
4104 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4105 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_txop_ps
,
4106 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4107 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_gi
,
4108 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4109 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_sgi_nsym_da
,
4110 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4111 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_ldpc_extra
,
4112 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4113 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_bf
,
4114 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4115 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_bw
,
4116 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4117 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_gid
,
4118 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4119 proto_tree_add_item(vht_known_tree
, hf_radiotap_vht_have_p_aid
,
4120 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
4123 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_STBC
) {
4124 phdr
.phy_info
.info_11ac
.has_stbc
= true;
4125 phdr
.phy_info
.info_11ac
.stbc
= (vht_flags
& IEEE80211_RADIOTAP_VHT_STBC
) != 0;
4127 proto_tree_add_item(vht_tree
, hf_radiotap_vht_stbc
,
4128 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4131 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_TXOP_PS
) {
4132 phdr
.phy_info
.info_11ac
.has_txop_ps_not_allowed
= true;
4133 phdr
.phy_info
.info_11ac
.txop_ps_not_allowed
= (vht_flags
& IEEE80211_RADIOTAP_VHT_TXOP_PS
) != 0;
4135 proto_tree_add_item(vht_tree
, hf_radiotap_vht_txop_ps
,
4136 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4139 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_GI
) {
4140 gi_length
= (vht_flags
& IEEE80211_RADIOTAP_VHT_SGI
) ? 1 : 0;
4141 phdr
.phy_info
.info_11ac
.has_short_gi
= true;
4142 phdr
.phy_info
.info_11ac
.short_gi
= gi_length
;
4144 proto_tree_add_item(vht_tree
, hf_radiotap_vht_gi
,
4145 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4148 can_calculate_rate
= false; /* no GI width */
4151 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_SGI_NSYM_DA
) {
4152 phdr
.phy_info
.info_11ac
.has_short_gi_nsym_disambig
= true;
4153 phdr
.phy_info
.info_11ac
.short_gi_nsym_disambig
= (vht_flags
& IEEE80211_RADIOTAP_VHT_SGI_NSYM_DA
) != 0;
4155 it
= proto_tree_add_item(vht_tree
, hf_radiotap_vht_sgi_nsym_da
,
4156 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4157 if ((vht_flags
& IEEE80211_RADIOTAP_VHT_SGI_NSYM_DA
) &&
4158 (known
& IEEE80211_RADIOTAP_VHT_HAVE_GI
) &&
4159 !(vht_flags
& IEEE80211_RADIOTAP_VHT_SGI
))
4160 proto_item_append_text(it
, " (invalid)");
4164 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_LDPC_EXTRA
) {
4165 phdr
.phy_info
.info_11ac
.has_ldpc_extra_ofdm_symbol
= true;
4166 phdr
.phy_info
.info_11ac
.ldpc_extra_ofdm_symbol
= (vht_flags
& IEEE80211_RADIOTAP_VHT_LDPC_EXTRA
) != 0;
4168 proto_tree_add_item(vht_tree
, hf_radiotap_vht_ldpc_extra
,
4169 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4173 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_BF
) {
4174 phdr
.phy_info
.info_11ac
.has_beamformed
= true;
4175 phdr
.phy_info
.info_11ac
.beamformed
= (vht_flags
& IEEE80211_RADIOTAP_VHT_BF
) != 0;
4177 proto_tree_add_item(vht_tree
, hf_radiotap_vht_bf
,
4178 tvb
, offset
+ 2, 1, ENC_LITTLE_ENDIAN
);
4181 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_BW
) {
4182 bw
= tvb_get_uint8(tvb
, offset
+ 3) & IEEE80211_RADIOTAP_VHT_BW_MASK
;
4183 phdr
.phy_info
.info_11ac
.has_bandwidth
= true;
4184 phdr
.phy_info
.info_11ac
.bandwidth
= bw
;
4185 if (bw
< array_length(ieee80211_vht_bw2rate_index
))
4186 bandwidth
= ieee80211_vht_bw2rate_index
[bw
];
4188 can_calculate_rate
= false; /* unknown bandwidth */
4191 proto_tree_add_item(vht_tree
, hf_radiotap_vht_bw
,
4192 tvb
, offset
+ 3, 1, ENC_LITTLE_ENDIAN
);
4194 can_calculate_rate
= false; /* no bandwidth */
4197 phdr
.phy_info
.info_11ac
.has_fec
= true;
4198 phdr
.phy_info
.info_11ac
.fec
= tvb_get_uint8(tvb
, offset
+ 8);
4200 for (user
= 0; user
< 4; user
++) {
4201 mcs_nss
= tvb_get_uint8(tvb
, offset
+ 4 + user
);
4202 nss
= (mcs_nss
& IEEE80211_RADIOTAP_VHT_NSS
);
4203 mcs
= (mcs_nss
& IEEE80211_RADIOTAP_VHT_MCS
) >> 4;
4204 phdr
.phy_info
.info_11ac
.mcs
[user
] = mcs
;
4205 phdr
.phy_info
.info_11ac
.nss
[user
] = nss
;
4209 * OK, there's some data here.
4210 * If we haven't already flagged this
4213 if (phdr
.phy
!= PHDR_802_11_PHY_11AC
) {
4214 phdr
.phy
= PHDR_802_11_PHY_11AC
;
4217 it
= proto_tree_add_item(vht_tree
, hf_radiotap_vht_user
,
4218 tvb
, offset
+ 4, 5, ENC_NA
);
4219 proto_item_append_text(it
, " %d: MCS %u", user
, mcs
);
4220 user_tree
= proto_item_add_subtree(it
, ett_radiotap_vht_user
);
4222 it
= proto_tree_add_item(user_tree
, hf_radiotap_vht_mcs
[user
],
4223 tvb
, offset
+ 4 + user
, 1,
4225 if (mcs
> MAX_MCS_VHT_INDEX
) {
4226 proto_item_append_text(it
, " (invalid)");
4228 proto_item_append_text(it
, " (%s %s)",
4229 ieee80211_vhtinfo
[mcs
].modulation
,
4230 ieee80211_vhtinfo
[mcs
].coding_rate
);
4233 proto_tree_add_item(user_tree
, hf_radiotap_vht_nss
[user
],
4234 tvb
, offset
+ 4 + user
, 1, ENC_LITTLE_ENDIAN
);
4235 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_STBC
) {
4237 proto_item
*nsts_ti
;
4239 if (vht_flags
& IEEE80211_RADIOTAP_VHT_STBC
)
4243 nsts_ti
= proto_tree_add_uint(user_tree
, hf_radiotap_vht_nsts
[user
],
4244 tvb
, offset
+ 4 + user
, 1, nsts
);
4245 proto_item_set_generated(nsts_ti
);
4247 proto_tree_add_item(user_tree
, hf_radiotap_vht_coding
[user
],
4248 tvb
, offset
+ 8, 1,ENC_LITTLE_ENDIAN
);
4251 if (can_calculate_rate
&& mcs
<= MAX_MCS_VHT_INDEX
&&
4252 nss
<= MAX_VHT_NSS
) {
4253 float rate
= ieee80211_vhtinfo
[mcs
].rates
[bandwidth
][gi_length
] * nss
;
4254 if (rate
!= 0.0f
) {
4255 rate_ti
= proto_tree_add_float_format(user_tree
,
4256 hf_radiotap_vht_datarate
[user
],
4257 tvb
, offset
, 12, rate
,
4258 "Data Rate: %.1f Mb/s", rate
);
4259 proto_item_set_generated(rate_ti
);
4260 if (ieee80211_vhtvalid
[mcs
].valid
[bandwidth
][nss
-1] == false)
4261 expert_add_info(pinfo
, rate_ti
, &ei_radiotap_invalid_data_rate
);
4268 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_GID
) {
4269 phdr
.phy_info
.info_11ac
.has_group_id
= true;
4270 phdr
.phy_info
.info_11ac
.group_id
= tvb_get_uint8(tvb
, offset
+ 9);
4272 proto_tree_add_item(vht_tree
, hf_radiotap_vht_gid
,
4273 tvb
, offset
+9, 1, ENC_LITTLE_ENDIAN
);
4276 if (known
& IEEE80211_RADIOTAP_VHT_HAVE_PAID
) {
4277 phdr
.phy_info
.info_11ac
.has_partial_aid
= true;
4278 phdr
.phy_info
.info_11ac
.partial_aid
= tvb_get_letohs(tvb
, offset
+ 10);
4280 proto_tree_add_item(vht_tree
, hf_radiotap_vht_p_aid
,
4281 tvb
, offset
+10, 2, ENC_LITTLE_ENDIAN
);
4287 case IEEE80211_RADIOTAP_TIMESTAMP
: {
4288 dissect_radiotap_timestamp(tvb
, pinfo
, item_tree
,
4292 case IEEE80211_RADIOTAP_HE
:
4294 * Presumably this is (whatever draft of) 802.11ax.
4295 * Also, presumably, you won't get the HE_MU field
4296 * without this field.
4298 phdr
.phy
= PHDR_802_11_PHY_11AX
;
4299 dissect_radiotap_he_info(tvb
, pinfo
, radiotap_tree
,
4300 offset
, &phdr
.phy_info
.info_11ax
,
4303 case IEEE80211_RADIOTAP_HE_MU
:
4304 dissect_radiotap_he_mu_info(tvb
, pinfo
, item_tree
,
4305 offset
, iter
.tlv_mode
);
4307 case IEEE80211_RADIOTAP_0_LENGTH_PSDU
:
4308 dissect_radiotap_0_length_psdu(tvb
, pinfo
, item_tree
, offset
, &phdr
);
4309 zero_length_psdu
= true;
4311 case IEEE80211_RADIOTAP_L_SIG
:
4312 dissect_radiotap_l_sig(tvb
, pinfo
, item_tree
, offset
);
4314 case IEEE80211_RADIOTAP_TLVS
:
4315 /* used for padding */
4317 case IEEE80211_RADIOTAP_TLV_S1G
:
4318 dissect_radiotap_s1g(tvb
, pinfo
, item_tree
, offset
,
4319 &phdr
, iter
.tlv_mode
);
4321 case IEEE80211_RADIOTAP_TLV_U_SIG
:
4322 dissect_radiotap_u_sig(tvb
, pinfo
, item_tree
, offset
,
4323 &phdr
, iter
.tlv_mode
);
4325 case IEEE80211_RADIOTAP_TLV_EHT
:
4326 dissect_radiotap_eht(tvb
, pinfo
, item_tree
, offset
,
4327 &phdr
, iter
.tlv_mode
);
4330 if (iter
.tlv_mode
) {
4331 proto_tree
*unknown_tlv
;
4333 unknown_tlv
= proto_tree_add_subtree(tree
, tvb
,
4336 ett_radiotap_unknown_tlv
,
4337 NULL
, "Unknown TLV");
4338 proto_tree_add_item(unknown_tlv
,
4339 hf_radiotap_tlv_type
, tvb
,
4340 offset
, 2, ENC_LITTLE_ENDIAN
);
4343 proto_tree_add_item(unknown_tlv
,
4344 hf_radiotap_tlv_datalen
, tvb
,
4345 offset
, 2, ENC_LITTLE_ENDIAN
);
4348 proto_tree_add_item(unknown_tlv
,
4349 hf_radiotap_unknown_tlv_data
,
4350 tvb
, offset
, length
, ENC_NA
);
4352 proto_tree_add_item(item_tree
,
4353 hf_radiotap_unknown_tlv_data
,
4355 iter
.this_arg_size
, ENC_NA
);
4361 if (err
!= -ENOENT
) {
4362 expert_add_info(pinfo
, present_item
,
4363 &ei_radiotap_data_past_header
);
4365 proto_item_append_text(ti
, " (malformed)");
4369 * Is there any more there?
4371 if (zero_length_psdu
) {
4372 return tvb_captured_length(tvb
);
4377 * The comment in the radiotap.org page about the suggested
4378 * xchannel field says:
4380 * As used, this field conflates channel properties (which
4381 * need not be stored per packet but are more or less fixed)
4382 * with packet properties (like the modulation).
4384 * The channel field, in practice, seems to be used, in some
4385 * cases, to indicate channel properties (from which the packet
4386 * modulation cannot be inferred) and, in other cases, to
4387 * indicate the packet's modulation.
4389 * There is even a capture in which the channel field indicates
4390 * that the channel is an OFDM channel with a center frequency
4391 * of 2452 MHz, and the data rate field indicates a 1 Mb/s rate,
4392 * which means you can't rely on the CCK/OFDM/dynamic CCK/OFDM
4393 * bits in the channel field to indicate anything. (There are
4394 * also captures in which a 1 Mb/s packet has the CCK flag set,
4395 * so it clearly doesn't indicate how the packet was transmitted.)
4397 * That makes the channel field unusable either for determining
4398 * the channel type or for determining the packet modulation,
4399 * as it cannot be determined how it's being used. The xchannel
4400 * field might well be used inconsistently as well.
4402 * Fortunately, there are other ways to determine the packet
4405 * if there's an FHSS flag, the packet was transmitted
4406 * using the 802.11 legacy FHSS modulation;
4410 * if there's an HE field, the packet was transmitted
4411 * using one of the 11ax HE PHY's specified modulations;
4413 * otherwise, if there's a VHT field, the packet was
4414 * transmitted using one of the 11ac VHT PHY's specified
4417 * otherwise, if there's an MCS field, the packet was
4418 * transmitted using one of the 11n HT PHY's specified
4423 * if the data rate is 1 Mb/s or 2 Mb/s, the packet was
4424 * transmitted using the 802.11 legacy DSSS modulation
4425 * (we ignore the IR PHY - was it ever implemented?);
4427 * if the data rate is 5 Mb/s or 11 Mb/s, the packet
4428 * was transmitted using the 802.11b DSSS/CCK modulation
4429 * (or the now-obsolete DSSS/PBCC modulation; *if* we can
4430 * rely on the channel/xchannel field's "CCK channel" and
4431 * "Dynamic CCK-OFDM channel" flags, the absence of either
4432 * flag would presumably indicate DSSS/PBCC);
4434 * if the data rate is 22 Mb/s or 33 Mb/s, the packet was
4435 * transmitted using the 802.11b DSSS/PBCC modulation (as
4436 * those speeds aren't supported by DSSS/CCK);
4438 * if the data rate is one of the OFDM rates for the 11a
4439 * OFDM PHY and the OFDM part of the 11g ERP PHY, the
4440 * packet was transmitted with the 11g/11a OFDM modulation.
4442 * We've already handled the HE, VHT, and MCS fields, and may
4443 * have attempted to use the channel and xchannel fields to
4444 * guess the modulation. That guess might get the wrong answer
4445 * for 11g "Dynamic CCK-OFDM" channels.
4447 * If we have the data rate, we use it to:
4449 * fix up the 11g channels;
4451 * determine the modulation if we haven't been able to
4452 * determine it any other way.
4454 if (phdr
.has_data_rate
) {
4455 if (phdr
.phy
== PHDR_802_11_PHY_UNKNOWN
) {
4457 * We don't know they PHY, but we do have the
4458 * data rate; try to guess it based on the
4459 * data rate and center frequency.
4461 if (RATE_IS_DSSS(phdr
.data_rate
)) {
4463 phdr
.phy
= PHDR_802_11_PHY_11B
;
4464 } else if (RATE_IS_OFDM(phdr
.data_rate
)) {
4465 /* 11a or 11g, depending on the band. */
4466 if (phdr
.has_frequency
) {
4467 if (FREQ_IS_BG(phdr
.frequency
)) {
4469 phdr
.phy
= PHDR_802_11_PHY_11G
;
4472 phdr
.phy
= PHDR_802_11_PHY_11A
;
4476 } else if (phdr
.phy
== PHDR_802_11_PHY_11G
) {
4477 if (RATE_IS_DSSS(phdr
.data_rate
)) {
4479 phdr
.phy
= PHDR_802_11_PHY_11B
;
4486 case PHDR_802_11_PHY_11B
:
4488 * We now know it's 11b, so set the "short preamble"
4492 phdr
.phy_info
.info_11b
.has_short_preamble
= true;
4493 phdr
.phy_info
.info_11b
.short_preamble
=
4494 (rflags
& IEEE80211_RADIOTAP_F_SHORTPRE
) ? true : false;
4496 phdr
.phy_info
.info_11b
.has_short_preamble
= false;
4499 case PHDR_802_11_PHY_11N
:
4501 * This doesn't supply "short GI" information,
4502 * so use the 0x80 bit in the Flags field,
4503 * if we have it; it's "Currently unspecified
4504 * but used" for that purpose, according to
4505 * the radiotap.org page for that field.
4507 if (!phdr
.phy_info
.info_11n
.has_short_gi
&& have_rflags
) {
4508 phdr
.phy_info
.info_11n
.has_short_gi
= true;
4510 phdr
.phy_info
.info_11n
.short_gi
= 1;
4512 phdr
.phy_info
.info_11n
.short_gi
= 0;
4517 /* Grab the rest of the frame. */
4518 next_tvb
= tvb_new_subset_remaining(tvb
, length
);
4520 /* If we had an in-header FCS, check it.
4521 * This can only happen if the backward-compat configuration option
4522 * is chosen by the user. */
4524 unsigned captured_length
= tvb_captured_length(next_tvb
);
4525 unsigned reported_length
= tvb_reported_length(next_tvb
);
4526 unsigned fcs_len
= (phdr
.fcs_len
> 0) ? phdr
.fcs_len
: 0;
4528 /* It would be very strange for the header to have an FCS for the
4529 * frame *and* the frame to have the FCS at the end, but it's possible, so
4530 * take that into account by using the FCS length recorded in pinfo. */
4532 /* Watch out for [erroneously] short frames */
4533 if (captured_length
>= reported_length
&&
4534 captured_length
> fcs_len
) {
4536 crc32_802_tvb(next_tvb
, tvb_captured_length(next_tvb
) - fcs_len
);
4538 /* By virtue of hdr_fcs_ti being set, we know that 'tree' is set,
4539 * so there's no need to check it here. */
4540 if (calc_fcs
== sent_fcs
) {
4541 proto_item_append_text(hdr_fcs_ti
,
4544 proto_item_append_text(hdr_fcs_ti
,
4545 " [incorrect, should be 0x%08x]",
4548 proto_tree_add_boolean(radiotap_tree
,
4549 hf_radiotap_fcs_bad
,
4550 tvb
, hdr_fcs_offset
,
4552 proto_item_set_hidden(hidden_item
);
4555 proto_item_append_text(hdr_fcs_ti
,
4556 " [cannot verify - not enough data]");
4560 /* dissect the 802.11 packet next */
4561 call_dissector_with_data(ieee80211_radio_handle
, next_tvb
, pinfo
,
4564 return tvb_captured_length(tvb
);
4567 void proto_register_radiotap(void)
4570 static hf_register_info hf
[] = {
4571 {&hf_radiotap_version
,
4572 {"Header revision", "radiotap.version",
4573 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
4574 "Version of radiotap header format", HFILL
}},
4577 {"Header pad", "radiotap.pad",
4578 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
4581 {&hf_radiotap_length
,
4582 {"Header length", "radiotap.length",
4583 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
4584 "Length of header including version, pad, length and data fields", HFILL
}},
4586 {&hf_radiotap_present
,
4587 {"Present flags", "radiotap.present",
4588 FT_NONE
, BASE_NONE
, NULL
, 0x0,
4589 "Bitmask indicating which fields are present", HFILL
}},
4591 {&hf_radiotap_present_word
,
4592 {"Present flags word", "radiotap.present.word",
4593 FT_UINT32
, BASE_HEX
, NULL
, 0x0,
4594 "Word from present flags bitmask", HFILL
}},
4596 {&hf_radiotap_tlv_type
,
4597 {"TLV type", "radiotap.tlv.type",
4598 FT_UINT32
, BASE_DEC
|BASE_RANGE_STRING
, RVALS(tlv_type_rvals
),
4601 {&hf_radiotap_tlv_datalen
,
4602 {"TLV datalen", "radiotap.tlv.datalen",
4603 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4606 {&hf_radiotap_unknown_tlv_data
,
4607 {"unknown TLV data", "radiotap.tlv.unknown_data",
4608 FT_BYTES
, BASE_NONE
, NULL
, 0x0,
4611 #define RADIOTAP_MASK(name) BIT(IEEE80211_RADIOTAP_ ##name)
4613 /* Boolean 'present' flags */
4614 {&hf_radiotap_present_tsft
,
4615 {"TSFT", "radiotap.present.tsft",
4616 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(TSFT
),
4617 "Specifies if the Time Synchronization Function Timer field is present", HFILL
}},
4619 {&hf_radiotap_present_flags
,
4620 {"Flags", "radiotap.present.flags",
4621 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(FLAGS
),
4622 "Specifies if the channel flags field is present", HFILL
}},
4624 {&hf_radiotap_present_rate
,
4625 {"Rate", "radiotap.present.rate",
4626 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(RATE
),
4627 "Specifies if the transmit/receive rate field is present", HFILL
}},
4629 {&hf_radiotap_present_channel
,
4630 {"Channel", "radiotap.present.channel",
4631 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(CHANNEL
),
4632 "Specifies if the transmit/receive frequency field is present", HFILL
}},
4634 {&hf_radiotap_present_fhss
,
4635 {"FHSS", "radiotap.present.fhss",
4636 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(FHSS
),
4637 "Specifies if the hop set and pattern is present for frequency hopping radios", HFILL
}},
4639 {&hf_radiotap_present_dbm_antsignal
,
4640 {"dBm Antenna Signal", "radiotap.present.dbm_antsignal",
4641 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DBM_ANTSIGNAL
),
4642 "Specifies if the antenna signal strength in dBm is present", HFILL
}},
4644 {&hf_radiotap_present_dbm_antnoise
,
4645 {"dBm Antenna Noise", "radiotap.present.dbm_antnoise",
4646 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DBM_ANTNOISE
),
4647 "Specifies if the RF noise power at antenna field is present", HFILL
}},
4649 {&hf_radiotap_present_lock_quality
,
4650 {"Lock Quality", "radiotap.present.lock_quality",
4651 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(LOCK_QUALITY
),
4652 "Specifies if the signal quality field is present", HFILL
}},
4654 {&hf_radiotap_present_tx_attenuation
,
4655 {"TX Attenuation", "radiotap.present.tx_attenuation",
4656 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(TX_ATTENUATION
),
4657 "Specifies if the transmit power distance from max power field is present", HFILL
}},
4659 {&hf_radiotap_present_db_tx_attenuation
,
4660 {"dB TX Attenuation", "radiotap.present.db_tx_attenuation",
4661 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DB_TX_ATTENUATION
),
4662 "Specifies if the transmit power distance from max power (in dB) field is present", HFILL
}},
4664 {&hf_radiotap_present_dbm_tx_power
,
4665 {"dBm TX Power", "radiotap.present.dbm_tx_power",
4666 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DBM_TX_POWER
),
4667 "Specifies if the transmit power (in dBm) field is present", HFILL
}},
4669 {&hf_radiotap_present_antenna
,
4670 {"Antenna", "radiotap.present.antenna",
4671 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(ANTENNA
),
4672 "Specifies if the antenna number field is present", HFILL
}},
4674 {&hf_radiotap_present_db_antsignal
,
4675 {"dB Antenna Signal", "radiotap.present.db_antsignal",
4676 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DB_ANTSIGNAL
),
4677 "Specifies if the RF signal power at antenna in dB field is present", HFILL
}},
4679 {&hf_radiotap_present_db_antnoise
,
4680 {"dB Antenna Noise", "radiotap.present.db_antnoise",
4681 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DB_ANTNOISE
),
4682 "Specifies if the RF signal power at antenna in dBm field is present", HFILL
}},
4684 {&hf_radiotap_present_rxflags
,
4685 {"RX flags", "radiotap.present.rxflags",
4686 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(RX_FLAGS
),
4687 "Specifies if the RX flags field is present", HFILL
}},
4689 {&hf_radiotap_present_txflags
,
4690 {"TX flags", "radiotap.present.txflags",
4691 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(TX_FLAGS
),
4692 "Specifies if the TX flags field is present", HFILL
}},
4694 {&hf_radiotap_present_reserved16
,
4695 {"Reserved bit16", "radiotap.present.reserved16",
4696 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_RESERVED16
,
4697 "Reserved present flag (Must be zero)", HFILL
}},
4699 {&hf_radiotap_present_hdrfcs
,
4700 {"FCS in header", "radiotap.present.fcs",
4701 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(RX_FLAGS
),
4702 "Specifies if the FCS field is present", HFILL
}},
4704 { &hf_radiotap_present_data_retries
,
4705 {"data retries", "radiotap.present.data_retries",
4706 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(DATA_RETRIES
),
4707 "Specifies if the data retries field is present", HFILL
}},
4709 {&hf_radiotap_present_xchannel
,
4710 {"XChannel", "radiotap.present.xchannel",
4711 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(XCHANNEL
),
4712 "Specifies if the extended channel info field is present", HFILL
}},
4714 {&hf_radiotap_present_mcs
,
4715 {"MCS information", "radiotap.present.mcs",
4716 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(MCS
),
4717 "Specifies if the MCS field is present", HFILL
}},
4719 {&hf_radiotap_present_ampdu
,
4720 {"A-MPDU Status", "radiotap.present.ampdu",
4721 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(AMPDU_STATUS
),
4722 "Specifies if the A-MPDU status field is present", HFILL
}},
4724 {&hf_radiotap_present_vht
,
4725 {"VHT information", "radiotap.present.vht",
4726 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(VHT
),
4727 "Specifies if the VHT field is present", HFILL
}},
4729 {&hf_radiotap_present_timestamp
,
4730 {"frame timestamp", "radiotap.present.timestamp",
4731 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(TIMESTAMP
),
4732 "Specifies if the timestamp field is present", HFILL
}},
4734 {&hf_radiotap_present_he
,
4735 {"HE information", "radiotap.present.he",
4736 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(HE
),
4737 "Specifies if the HE field is present", HFILL
}},
4739 {&hf_radiotap_present_he_mu
,
4740 {"HE-MU information", "radiotap.present.he_mu",
4741 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(HE_MU
),
4742 "Specifies if the HE field is present", HFILL
}},
4744 {&hf_radiotap_present_reserved25
,
4745 {"Reserved bit25", "radiotap.present.reserved25",
4746 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_RESERVED25
,
4747 "Reserved present flag (Must be zero)", HFILL
}},
4749 {&hf_radiotap_present_0_length_psdu
,
4750 {"0 Length PSDU", "radiotap.present.0_length.psdu",
4751 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(0_LENGTH_PSDU
),
4752 "Specifies whether or not the 0-Length PSDU field is present", HFILL
}},
4754 {&hf_radiotap_present_l_sig
,
4755 {"L-SIG", "radiotap.present.l_sig",
4756 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(L_SIG
),
4757 "Specifies whether or not the L-SIG field is present", HFILL
}},
4759 {&hf_radiotap_present_tlv
,
4760 {"TLVs", "radiotap.present.tlv",
4761 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(TLVS
),
4762 "Specifies switch to TLV fields", HFILL
}},
4764 {&hf_radiotap_present_rtap_ns
,
4765 {"Radiotap NS next", "radiotap.present.rtap_ns",
4766 FT_BOOLEAN
, 32, NULL
, RADIOTAP_MASK(RADIOTAP_NAMESPACE
),
4767 "Specifies a reset to the radiotap namespace", HFILL
}},
4769 {&hf_radiotap_present_vendor_ns
,
4770 {"Vendor NS next", "radiotap.present.vendor_ns",
4771 FT_BOOLEAN
, 32, NULL
, RADIOTAP_MASK(VENDOR_NAMESPACE
),
4772 "Specifies that the next bitmap is in a vendor namespace", HFILL
}},
4774 {&hf_radiotap_present_ext
,
4775 {"Ext", "radiotap.present.ext",
4776 FT_BOOLEAN
, 32, TFS(&tfs_present_absent
), RADIOTAP_MASK(EXT
),
4777 "Specifies if there are any extensions to the header present", HFILL
}},
4779 /* Boolean 'present.flags' flags */
4780 {&hf_radiotap_flags
,
4781 {"Flags", "radiotap.flags",
4782 FT_UINT8
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
4784 {&hf_radiotap_flags_cfp
,
4785 {"CFP", "radiotap.flags.cfp",
4786 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_CFP
,
4787 "Sent/Received during CFP", HFILL
}},
4789 {&hf_radiotap_flags_preamble
,
4790 {"Preamble", "radiotap.flags.preamble",
4791 FT_BOOLEAN
, 8, TFS(&preamble_type
),
4792 IEEE80211_RADIOTAP_F_SHORTPRE
,
4793 "Sent/Received with short preamble", HFILL
}},
4795 {&hf_radiotap_flags_wep
,
4796 {"WEP", "radiotap.flags.wep",
4797 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_WEP
,
4798 "Sent/Received with WEP encryption", HFILL
}},
4800 {&hf_radiotap_flags_frag
,
4801 {"Fragmentation", "radiotap.flags.frag",
4802 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_FRAG
,
4803 "Sent/Received with fragmentation", HFILL
}},
4805 {&hf_radiotap_flags_fcs
,
4806 {"FCS at end", "radiotap.flags.fcs",
4807 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_FCS
,
4808 "Frame includes FCS at end", HFILL
}},
4810 {&hf_radiotap_flags_datapad
,
4811 {"Data Pad", "radiotap.flags.datapad",
4812 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_DATAPAD
,
4813 "Frame has padding between 802.11 header and payload", HFILL
}},
4815 {&hf_radiotap_flags_badfcs
,
4816 {"Bad FCS", "radiotap.flags.badfcs",
4817 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_BADFCS
,
4818 "Frame received with bad FCS", HFILL
}},
4820 {&hf_radiotap_flags_shortgi
,
4821 {"Short GI", "radiotap.flags.shortgi",
4822 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_F_SHORTGI
,
4823 "Frame Sent/Received with HT short Guard Interval", HFILL
}},
4825 {&hf_radiotap_mactime
,
4826 {"MAC timestamp", "radiotap.mactime",
4827 FT_UINT64
, BASE_DEC
, NULL
, 0x0,
4828 "Value in microseconds of the MAC's Time Synchronization Function timer"
4829 " when the first bit of the MPDU arrived at the MAC.",
4832 {&hf_radiotap_quality
,
4833 {"Signal Quality", "radiotap.quality",
4834 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
4835 "Signal quality (unitless measure)", HFILL
}},
4838 {"802.11 FCS", "radiotap.fcs",
4839 FT_UINT32
, BASE_HEX
, NULL
, 0x0,
4840 "Frame check sequence of this frame", HFILL
}},
4843 {&hf_radiotap_channel
,
4844 {"Channel", "radiotap.channel",
4845 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4846 "802.11 channel number that this frame was sent/received on", HFILL
}},
4849 {&hf_radiotap_channel_frequency
,
4850 {"Channel frequency", "radiotap.channel.freq",
4851 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4852 "Channel frequency in megahertz that this frame was sent/received on", HFILL
}},
4854 {&hf_radiotap_channel_flags
,
4855 {"Channel flags", "radiotap.channel.flags",
4856 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
4859 {&hf_radiotap_channel_flags_turbo
,
4860 {"Turbo", "radiotap.channel.flags.turbo",
4861 FT_BOOLEAN
, 16, NULL
, 0x0010, "Channel Flags Turbo", HFILL
}},
4863 {&hf_radiotap_channel_flags_700mhz
,
4864 {"700 MHz spectrum", "radiotap.channel.flags.700mhz",
4865 FT_BOOLEAN
, 16, NULL
, 0x0001, "Channel Flags Turbo", HFILL
}},
4867 {&hf_radiotap_channel_flags_800mhz
,
4868 {"800 MHz spectrum", "radiotap.channel.flags.800mhz",
4869 FT_BOOLEAN
, 16, NULL
, 0x0002, "Channel Flags Turbo", HFILL
}},
4871 {&hf_radiotap_channel_flags_900mhz
,
4872 {"900 MHz spectrum", "radiotap.channel.flags.900mhz",
4873 FT_BOOLEAN
, 16, NULL
, 0x0004, "Channel Flags Turbo", HFILL
}},
4875 {&hf_radiotap_channel_flags_cck
,
4876 {"Complementary Code Keying (CCK)", "radiotap.channel.flags.cck",
4877 FT_BOOLEAN
, 16, NULL
, 0x0020,
4878 "Channel Flags Complementary Code Keying (CCK) Modulation", HFILL
}},
4880 {&hf_radiotap_channel_flags_ofdm
,
4881 {"Orthogonal Frequency-Division Multiplexing (OFDM)", "radiotap.channel.flags.ofdm",
4882 FT_BOOLEAN
, 16, NULL
, 0x0040,
4883 "Channel Flags Orthogonal Frequency-Division Multiplexing (OFDM)", HFILL
}},
4885 {&hf_radiotap_channel_flags_2ghz
,
4886 {"2 GHz spectrum", "radiotap.channel.flags.2ghz",
4887 FT_BOOLEAN
, 16, NULL
, 0x0080, "Channel Flags 2 GHz spectrum", HFILL
}},
4889 {&hf_radiotap_channel_flags_5ghz
,
4890 {"5 GHz spectrum", "radiotap.channel.flags.5ghz",
4891 FT_BOOLEAN
, 16, NULL
, 0x0100, "Channel Flags 5 GHz spectrum", HFILL
}},
4893 {&hf_radiotap_channel_flags_passive
,
4894 {"Passive", "radiotap.channel.flags.passive",
4895 FT_BOOLEAN
, 16, NULL
, 0x0200,
4896 "Channel Flags Passive", HFILL
}},
4898 {&hf_radiotap_channel_flags_dynamic
,
4899 {"Dynamic CCK-OFDM", "radiotap.channel.flags.dynamic",
4900 FT_BOOLEAN
, 16, NULL
, 0x0400,
4901 "Channel Flags Dynamic CCK-OFDM Channel", HFILL
}},
4903 {&hf_radiotap_channel_flags_gfsk
,
4904 {"Gaussian Frequency Shift Keying (GFSK)", "radiotap.channel.flags.gfsk",
4905 FT_BOOLEAN
, 16, NULL
, 0x0800,
4906 "Channel Flags Gaussian Frequency Shift Keying (GFSK) Modulation", HFILL
}},
4908 {&hf_radiotap_channel_flags_gsm
,
4909 {"GSM (900MHz)", "radiotap.channel.flags.gsm",
4910 FT_BOOLEAN
, 16, NULL
, 0x1000,
4911 "Channel Flags GSM", HFILL
}},
4913 {&hf_radiotap_channel_flags_sturbo
,
4914 {"Static Turbo", "radiotap.channel.flags.sturbo",
4915 FT_BOOLEAN
, 16, NULL
, 0x2000,
4916 "Channel Flags Status Turbo", HFILL
}},
4918 {&hf_radiotap_channel_flags_half
,
4919 {"Half Rate Channel (10MHz Channel Width)", "radiotap.channel.flags.half",
4920 FT_BOOLEAN
, 16, NULL
, 0x4000,
4921 "Channel Flags Half Rate", HFILL
}},
4923 {&hf_radiotap_channel_flags_quarter
,
4924 {"Quarter Rate Channel (5MHz Channel Width)", "radiotap.channel.flags.quarter",
4925 FT_BOOLEAN
, 16, NULL
, 0x8000,
4926 "Channel Flags Quarter Rate", HFILL
}},
4928 {&hf_radiotap_rxflags
,
4929 {"RX flags", "radiotap.rxflags",
4930 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
4933 {&hf_radiotap_rxflags_badplcp
,
4934 {"Bad PLCP", "radiotap.rxflags.badplcp",
4935 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_RX_BADPLCP
,
4936 "Frame with bad PLCP", HFILL
}},
4938 {&hf_radiotap_txflags
,
4939 {"TX flags", "radiotap.txflags",
4940 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
4943 {&hf_radiotap_txflags_fail
,
4944 {"Fail", "radiotap.rxflags.fail",
4945 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_FAIL
,
4946 "Transmission failed due to excessive retries", HFILL
}},
4948 {&hf_radiotap_txflags_cts
,
4949 {"CTS", "radiotap.rxflags.cts",
4950 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_CTS
,
4951 "Transmission used CTS-to-self protection", HFILL
}},
4953 {&hf_radiotap_txflags_rts
,
4954 {"RTS/CTS", "radiotap.rxflags.rts",
4955 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_RTS
,
4956 "Transmission used RTS/CTS handshake", HFILL
}},
4958 {&hf_radiotap_txflags_noack
,
4959 {"No ACK", "radiotap.rxflags.noack",
4960 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_NOACK
,
4961 "Transmission shall not expect an ACK frame", HFILL
}},
4963 {&hf_radiotap_txflags_noseqno
,
4964 {"Has Seqnum", "radiotap.rxflags.noseqno",
4965 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_NOSEQNO
,
4966 "Frame includes a pre-configured sequence number", HFILL
}},
4968 {&hf_radiotap_txflags_order
,
4969 {"Order", "radiotap.rxflags.order",
4970 FT_BOOLEAN
, 24, NULL
, IEEE80211_RADIOTAP_F_TX_ORDER
,
4971 "Frame must not be reordered relative to others with this flag", HFILL
}},
4973 {&hf_radiotap_xchannel_flags
,
4974 {"XChannel flags", "radiotap.xchannel.flags",
4975 FT_UINT32
, BASE_HEX
, NULL
, 0x0,
4978 {&hf_radiotap_xchannel_frequency
,
4979 {"XChannel frequency", "radiotap.xchannel.freq",
4980 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4983 {&hf_radiotap_xchannel_channel
,
4984 {"XChannel number", "radiotap.xchannel.channel",
4985 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4988 {&hf_radiotap_xchannel_maxpower
,
4989 {"XChannel Max transmit power", "radiotap.xchannel.maxpower",
4990 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
4993 {&hf_radiotap_xchannel_flags_turbo
,
4994 {"Turbo", "radiotap.xchannel.flags.turbo",
4995 FT_BOOLEAN
, 24, NULL
, 0x000010,
4996 "Channel Flags Turbo", HFILL
}},
4998 {&hf_radiotap_xchannel_flags_cck
,
4999 {"Complementary Code Keying (CCK)", "radiotap.xchannel.flags.cck",
5000 FT_BOOLEAN
, 24, NULL
, 0x000020,
5001 "Channel Flags Complementary Code Keying (CCK) Modulation", HFILL
}},
5003 {&hf_radiotap_xchannel_flags_ofdm
,
5004 {"Orthogonal Frequency-Division Multiplexing (OFDM)", "radiotap.xchannel.flags.ofdm",
5005 FT_BOOLEAN
, 24, NULL
, 0x000040,
5006 "Channel Flags Orthogonal Frequency-Division Multiplexing (OFDM)", HFILL
}},
5008 {&hf_radiotap_xchannel_flags_2ghz
,
5009 {"2 GHz spectrum", "radiotap.xchannel.flags.2ghz",
5010 FT_BOOLEAN
, 24, NULL
, 0x000080,
5011 "Channel Flags 2 GHz spectrum", HFILL
}},
5013 {&hf_radiotap_xchannel_flags_5ghz
,
5014 {"5 GHz spectrum", "radiotap.xchannel.flags.5ghz",
5015 FT_BOOLEAN
, 24, NULL
, 0x000100,
5016 "Channel Flags 5 GHz spectrum", HFILL
}},
5018 {&hf_radiotap_xchannel_flags_passive
,
5019 {"Passive", "radiotap.channel.xtype.passive",
5020 FT_BOOLEAN
, 24, NULL
, 0x000200,
5021 "Channel Flags Passive", HFILL
}},
5023 {&hf_radiotap_xchannel_flags_dynamic
,
5024 {"Dynamic CCK-OFDM", "radiotap.xchannel.flags.dynamic",
5025 FT_BOOLEAN
, 24, NULL
, 0x000400,
5026 "Channel Flags Dynamic CCK-OFDM Channel", HFILL
}},
5028 {&hf_radiotap_xchannel_flags_gfsk
,
5029 {"Gaussian Frequency Shift Keying (GFSK)",
5030 "radiotap.xchannel.flags.gfsk",
5031 FT_BOOLEAN
, 24, NULL
, 0x000800,
5032 "Channel Flags Gaussian Frequency Shift Keying (GFSK) Modulation",
5035 {&hf_radiotap_xchannel_flags_gsm
,
5036 {"GSM (900MHz)", "radiotap.xchannel.flags.gsm",
5037 FT_BOOLEAN
, 24, NULL
, 0x001000,
5038 "Channel Flags GSM", HFILL
}},
5040 {&hf_radiotap_xchannel_flags_sturbo
,
5041 {"Static Turbo", "radiotap.xchannel.flags.sturbo",
5042 FT_BOOLEAN
, 24, NULL
, 0x002000,
5043 "Channel Flags Status Turbo", HFILL
}},
5045 {&hf_radiotap_xchannel_flags_half
,
5046 {"Half Rate Channel (10MHz Channel Width)", "radiotap.xchannel.flags.half",
5047 FT_BOOLEAN
, 24, NULL
, 0x004000,
5048 "Channel Flags Half Rate", HFILL
}},
5050 {&hf_radiotap_xchannel_flags_quarter
,
5051 {"Quarter Rate Channel (5MHz Channel Width)", "radiotap.xchannel.flags.quarter",
5052 FT_BOOLEAN
, 24, NULL
, 0x008000,
5053 "Channel Flags Quarter Rate", HFILL
}},
5055 {&hf_radiotap_xchannel_flags_ht20
,
5056 {"HT Channel (20MHz Channel Width)", "radiotap.xchannel.flags.ht20",
5057 FT_BOOLEAN
, 24, NULL
, 0x010000,
5058 "Channel Flags HT/20", HFILL
}},
5060 {&hf_radiotap_xchannel_flags_ht40u
,
5061 {"HT Channel (40MHz Channel Width with Extension channel above)", "radiotap.xchannel.flags.ht40u",
5062 FT_BOOLEAN
, 24, NULL
, 0x020000,
5063 "Channel Flags HT/40+", HFILL
}},
5065 {&hf_radiotap_xchannel_flags_ht40d
,
5066 {"HT Channel (40MHz Channel Width with Extension channel below)", "radiotap.xchannel.flags.ht40d",
5067 FT_BOOLEAN
, 24, NULL
, 0x040000,
5068 "Channel Flags HT/40-", HFILL
}},
5070 {&hf_radiotap_fhss_hopset
,
5071 {"FHSS Hop Set", "radiotap.fhss.hopset",
5072 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5073 "Frequency Hopping Spread Spectrum hopset", HFILL
}},
5075 {&hf_radiotap_fhss_pattern
,
5076 {"FHSS Pattern", "radiotap.fhss.pattern",
5077 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5078 "Frequency Hopping Spread Spectrum hop pattern", HFILL
}},
5080 {&hf_radiotap_datarate
,
5081 {"Data rate (Mb/s)", "radiotap.datarate",
5082 FT_FLOAT
, BASE_NONE
, NULL
, 0x0,
5083 "Speed this frame was sent/received at", HFILL
}},
5085 {&hf_radiotap_antenna
,
5086 {"Antenna", "radiotap.antenna",
5087 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
5088 "Antenna number this frame was sent/received over (starting at 0)", HFILL
}},
5090 {&hf_radiotap_dbm_antsignal
,
5091 {"Antenna signal", "radiotap.dbm_antsignal",
5092 FT_INT8
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_dbm
), 0x0,
5093 "RF signal power at the antenna expressed as decibels"
5094 " from one milliwatt", HFILL
}},
5096 {&hf_radiotap_db_antsignal
,
5097 {"dB antenna signal", "radiotap.db_antsignal",
5098 FT_UINT8
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_decibels
), 0x0,
5099 "RF signal power at the antenna expressed as decibels"
5100 " from a fixed, arbitrary value", HFILL
}},
5102 {&hf_radiotap_dbm_antnoise
,
5103 {"Antenna noise", "radiotap.dbm_antnoise",
5104 FT_INT8
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_dbm
), 0x0,
5105 "RF noise power at the antenna expressed as decibels"
5106 " from one milliwatt", HFILL
}},
5108 {&hf_radiotap_db_antnoise
,
5109 {"dB antenna noise", "radiotap.db_antnoise",
5110 FT_UINT8
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_decibels
), 0x0,
5111 "RF noise power at the antenna expressed as decibels"
5112 " from a fixed, arbitrary value", HFILL
}},
5114 {&hf_radiotap_tx_attenuation
,
5115 {"TX attenuation", "radiotap.txattenuation",
5116 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
5117 "Transmit power expressed as unitless distance from max power"
5118 " set at factory calibration (0 is max power)", HFILL
}},
5120 {&hf_radiotap_db_tx_attenuation
,
5121 {"dB TX attenuation", "radiotap.db_txattenuation",
5122 FT_UINT16
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_decibels
), 0x0,
5123 "Transmit power expressed as decibels from max power"
5124 " set at factory calibration (0 is max power)", HFILL
}},
5126 {&hf_radiotap_txpower
,
5127 {"Transmit power", "radiotap.txpower",
5128 FT_INT8
, BASE_DEC
|BASE_UNIT_STRING
, UNS(&units_dbm
), 0x0,
5129 "Transmit power at the antenna port expressed as decibels"
5130 " from one milliwatt", HFILL
}},
5132 { &hf_radiotap_data_retries
,
5133 {"data retries", "radiotap.data_retries",
5134 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5135 "Number of data retries a transmitted frame used", HFILL
} },
5138 {"MCS information", "radiotap.mcs",
5139 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5142 {&hf_radiotap_mcs_known
,
5143 {"Known MCS information", "radiotap.mcs.known",
5144 FT_UINT8
, BASE_HEX
, NULL
, 0x0,
5145 "Bit mask indicating what MCS information is present", HFILL
}},
5147 {&hf_radiotap_mcs_have_bw
,
5148 {"Bandwidth", "radiotap.mcs.have_bw",
5149 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_BW
,
5150 "Bandwidth information present", HFILL
}},
5152 {&hf_radiotap_mcs_have_index
,
5153 {"MCS index", "radiotap.mcs.have_index",
5154 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_MCS
,
5155 "MCS index information present", HFILL
}},
5157 {&hf_radiotap_mcs_have_gi
,
5158 {"Guard interval", "radiotap.mcs.have_gi",
5159 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_GI
,
5160 "Sent/Received guard interval information present", HFILL
}},
5162 {&hf_radiotap_mcs_have_format
,
5163 {"Format", "radiotap.mcs.have_format",
5164 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_FMT
,
5165 "Format information present", HFILL
}},
5167 {&hf_radiotap_mcs_have_fec
,
5168 {"FEC type", "radiotap.mcs.have_fec",
5169 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_FEC
,
5170 "Forward error correction type information present", HFILL
}},
5172 {&hf_radiotap_mcs_have_stbc
,
5173 {"STBC streams", "radiotap.mcs.have_stbc",
5174 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_STBC
,
5175 "Space Time Block Coding streams information present", HFILL
}},
5177 {&hf_radiotap_mcs_have_ness
,
5178 {"Number of extension spatial streams", "radiotap.mcs.have_ness",
5179 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_MCS_HAVE_NESS
,
5180 "Number of extension spatial streams information present", HFILL
}},
5182 {&hf_radiotap_mcs_ness_bit1
,
5183 {"Number of extension spatial streams bit 1", "radiotap.mcs.ness_bit1",
5184 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_MCS_NESS_BIT1
,
5185 "Bit 1 of number of extension spatial streams information", HFILL
}},
5187 {&hf_radiotap_mcs_bw
,
5188 {"Bandwidth", "radiotap.mcs.bw",
5189 FT_UINT8
, BASE_DEC
, VALS(mcs_bandwidth
),
5190 IEEE80211_RADIOTAP_MCS_BW_MASK
, NULL
, HFILL
}},
5192 {&hf_radiotap_mcs_gi
,
5193 {"Guard interval", "radiotap.mcs.gi",
5194 FT_UINT8
, BASE_DEC
, VALS(mcs_gi
), IEEE80211_RADIOTAP_MCS_SGI
,
5195 "Sent/Received guard interval", HFILL
}},
5197 {&hf_radiotap_mcs_format
,
5198 {"Format", "radiotap.mcs.format",
5199 FT_UINT8
, BASE_DEC
, VALS(mcs_format
), IEEE80211_RADIOTAP_MCS_FMT_GF
,
5202 {&hf_radiotap_mcs_fec
,
5203 {"FEC type", "radiotap.mcs.fec",
5204 FT_UINT8
, BASE_DEC
, VALS(mcs_fec
), IEEE80211_RADIOTAP_MCS_FEC_LDPC
,
5205 "Forward error correction type", HFILL
}},
5207 {&hf_radiotap_mcs_stbc
,
5208 {"STBC streams", "radiotap.mcs.stbc",
5209 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_MCS_STBC_MASK
,
5210 "Number of Space Time Block Code streams", HFILL
}},
5212 {&hf_radiotap_mcs_ness_bit0
,
5213 {"Number of extension spatial streams bit 0", "radiotap.mcs.ness_bit0",
5214 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_MCS_NESS_BIT0
,
5215 "Bit 0 of number of extension spatial streams information", HFILL
}},
5217 {&hf_radiotap_mcs_index
,
5218 {"MCS index", "radiotap.mcs.index",
5219 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5222 {&hf_radiotap_ampdu
,
5223 {"A-MPDU status", "radiotap.ampdu",
5224 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5227 {&hf_radiotap_ampdu_ref
,
5228 {"A-MPDU reference number", "radiotap.ampdu.reference",
5229 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
5232 {&hf_radiotap_ampdu_flags
,
5233 {"A-MPDU flags", "radiotap.ampdu.flags",
5234 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5235 "A-MPDU status flags", HFILL
}},
5237 {&hf_radiotap_ampdu_flags_report_zerolen
,
5238 {"Driver reports 0-length subframes in this A-MPDU", "radiotap.ampdu.flags.report_zerolen",
5239 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_REPORT_ZEROLEN
,
5242 {&hf_radiotap_ampdu_flags_is_zerolen
,
5243 {"This is a 0-length subframe", "radiotap.ampdu.flags.is_zerolen",
5244 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_IS_ZEROLEN
,
5247 {&hf_radiotap_ampdu_flags_last_known
,
5248 {"Last subframe of this A-MPDU is known", "radiotap.ampdu.flags.lastknown",
5249 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_LAST_KNOWN
,
5252 {&hf_radiotap_ampdu_flags_is_last
,
5253 {"This is the last subframe of this A-MPDU", "radiotap.ampdu.flags.last",
5254 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_IS_LAST
,
5257 {&hf_radiotap_ampdu_flags_delim_crc_error
,
5258 {"Delimiter CRC error on this subframe", "radiotap.ampdu.flags.delim_crc_error",
5259 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_DELIM_CRC_ERR
,
5262 {&hf_radiotap_ampdu_flags_eof
,
5263 {"EOF on this subframe", "radiotap.ampdu.flags.eof",
5264 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_EOF
,
5267 {&hf_radiotap_ampdu_flags_eof_known
,
5268 {"EOF of this A-MPDU is known", "radiotap.ampdu.flags.eof_known",
5269 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_AMPDU_EOF_KNOWN
,
5272 {&hf_radiotap_ampdu_delim_crc
,
5273 {"A-MPDU subframe delimiter CRC", "radiotap.ampdu.delim_crc",
5274 FT_UINT8
, BASE_HEX
, NULL
, 0x0,
5278 {"VHT information", "radiotap.vht",
5279 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5282 {&hf_radiotap_vht_known
,
5283 {"Known VHT information", "radiotap.vht.known",
5284 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5285 "Bit mask indicating what VHT information is present", HFILL
}},
5287 {&hf_radiotap_vht_user
,
5288 {"User", "radiotap.vht.user",
5289 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5292 {&hf_radiotap_vht_have_stbc
,
5293 {"STBC", "radiotap.vht.have_stbc",
5294 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_STBC
,
5295 "Space Time Block Coding information present", HFILL
}},
5297 {&hf_radiotap_vht_have_txop_ps
,
5298 {"TXOP_PS_NOT_ALLOWED", "radiotap.vht.have_txop_ps",
5299 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_TXOP_PS
,
5300 "TXOP_PS_NOT_ALLOWED information present", HFILL
}},
5302 {&hf_radiotap_vht_have_gi
,
5303 {"Guard interval", "radiotap.vht.have_gi",
5304 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_GI
,
5305 "Short/Long guard interval information present", HFILL
}},
5307 {&hf_radiotap_vht_have_sgi_nsym_da
,
5308 {"SGI Nsym disambiguation", "radiotap.vht.have_sgi_nsym_da",
5309 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_SGI_NSYM_DA
,
5310 "Short guard interval Nsym disambiguation information present", HFILL
}},
5312 {&hf_radiotap_vht_have_ldpc_extra
,
5313 {"LDPC extra OFDM symbol", "radiotap.vht.ldpc_extra",
5314 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_LDPC_EXTRA
,
5317 {&hf_radiotap_vht_have_bf
,
5318 {"Beamformed", "radiotap.vht.have_beamformed",
5319 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_BF
,
5322 {&hf_radiotap_vht_have_bw
,
5323 {"Bandwidth", "radiotap.mcs.have_bw",
5324 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_BW
,
5327 {&hf_radiotap_vht_have_gid
,
5328 {"Group ID", "radiotap.mcs.have_gid",
5329 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_GID
,
5332 {&hf_radiotap_vht_have_p_aid
,
5333 {"Partial AID", "radiotap.mcs.have_paid",
5334 FT_BOOLEAN
, 16, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_VHT_HAVE_PAID
,
5337 {&hf_radiotap_vht_stbc
,
5338 {"STBC", "radiotap.vht.stbc",
5339 FT_BOOLEAN
, 8, TFS(&tfs_on_off
), IEEE80211_RADIOTAP_VHT_STBC
,
5340 "Space Time Block Coding flag", HFILL
}},
5342 {&hf_radiotap_vht_txop_ps
,
5343 {"TXOP_PS_NOT_ALLOWED", "radiotap.vht.txop_ps",
5344 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_VHT_TXOP_PS
,
5345 "Flag indicating whether STAs may doze during TXOP", HFILL
}},
5347 {&hf_radiotap_vht_gi
,
5348 {"Guard interval", "radiotap.vht.gi",
5349 FT_UINT8
, BASE_DEC
, VALS(mcs_gi
), IEEE80211_RADIOTAP_VHT_SGI
,
5350 "Short/Long guard interval", HFILL
}},
5352 {&hf_radiotap_vht_sgi_nsym_da
,
5353 {"SGI Nsym disambiguation", "radiotap.vht.sgi_nsym_da",
5354 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_VHT_SGI_NSYM_DA
,
5355 "Short Guard Interval Nsym disambiguation", HFILL
}},
5357 {&hf_radiotap_vht_ldpc_extra
,
5358 {"LDPC extra OFDM symbol", "radiotap.vht.ldpc_extra",
5359 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_VHT_LDPC_EXTRA
,
5362 {&hf_radiotap_vht_bf
,
5363 {"Beamformed", "radiotap.vht.beamformed",
5364 FT_BOOLEAN
, 8, NULL
, IEEE80211_RADIOTAP_VHT_BF
,
5367 {&hf_radiotap_vht_bw
,
5368 {"Bandwidth", "radiotap.vht.bw",
5369 FT_UINT8
, BASE_DEC
| BASE_EXT_STRING
, &vht_bandwidth_ext
, 0x0,
5372 {&hf_radiotap_vht_nsts
[0],
5373 {"Space-time streams 0", "radiotap.vht.nsts.0",
5374 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5375 "Number of Space-time streams", HFILL
}},
5377 {&hf_radiotap_vht_nsts
[1],
5378 {"Space-time streams 1", "radiotap.vht.nsts.1",
5379 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5380 "Number of Space-time streams", HFILL
}},
5382 {&hf_radiotap_vht_nsts
[2],
5383 {"Space-time streams 2", "radiotap.vht.nsts.2",
5384 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5385 "Number of Space-time streams", HFILL
}},
5387 {&hf_radiotap_vht_nsts
[3],
5388 {"Space-time streams 3", "radiotap.vht.nsts.3",
5389 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5390 "Number of Space-time streams", HFILL
}},
5392 {&hf_radiotap_vht_mcs
[0],
5393 {"MCS index 0", "radiotap.vht.mcs.0",
5394 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_MCS
,
5395 "MCS index", HFILL
}},
5397 {&hf_radiotap_vht_mcs
[1],
5398 {"MCS index 1", "radiotap.vht.mcs.1",
5399 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_MCS
,
5400 "MCS index", HFILL
}},
5402 {&hf_radiotap_vht_mcs
[2],
5403 {"MCS index 2", "radiotap.vht.mcs.2",
5404 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_MCS
,
5405 "MCS index", HFILL
}},
5407 {&hf_radiotap_vht_mcs
[3],
5408 {"MCS index 3", "radiotap.vht.mcs.3",
5409 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_MCS
,
5410 "MCS index", HFILL
}},
5412 {&hf_radiotap_vht_nss
[0],
5413 {"Spatial streams 0", "radiotap.vht.nss.0",
5414 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_NSS
,
5415 "Number of spatial streams", HFILL
}},
5417 {&hf_radiotap_vht_nss
[1],
5418 {"Spatial streams 1", "radiotap.vht.nss.1",
5419 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_NSS
,
5420 "Number of spatial streams", HFILL
}},
5422 {&hf_radiotap_vht_nss
[2],
5423 {"Spatial streams 2", "radiotap.vht.nss.2",
5424 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_NSS
,
5425 "Number of spatial streams", HFILL
}},
5427 {&hf_radiotap_vht_nss
[3],
5428 {"Spatial streams 3", "radiotap.vht.nss.3",
5429 FT_UINT8
, BASE_DEC
, NULL
, IEEE80211_RADIOTAP_VHT_NSS
,
5430 "Number of spatial streams", HFILL
}},
5432 {&hf_radiotap_vht_coding
[0],
5433 {"Coding 0", "radiotap.vht.coding.0",
5434 FT_UINT8
, BASE_DEC
, VALS(mcs_fec
), 0x01,
5437 {&hf_radiotap_vht_coding
[1],
5438 {"Coding 1", "radiotap.vht.coding.1",
5439 FT_UINT8
, BASE_DEC
, VALS(mcs_fec
), 0x02,
5442 {&hf_radiotap_vht_coding
[2],
5443 {"Coding 2", "radiotap.vht.coding.2",
5444 FT_UINT8
, BASE_DEC
, VALS(mcs_fec
), 0x04,
5447 {&hf_radiotap_vht_coding
[3],
5448 {"Coding 3", "radiotap.vht.coding.3",
5449 FT_UINT8
, BASE_DEC
, VALS(mcs_fec
), 0x08,
5452 {&hf_radiotap_vht_datarate
[0],
5453 {"Data rate (Mb/s) 0", "radiotap.vht.datarate.0",
5454 FT_FLOAT
, BASE_NONE
, NULL
, 0x0,
5455 "Speed this frame was sent/received at", HFILL
}},
5457 {&hf_radiotap_vht_datarate
[1],
5458 {"Data rate (Mb/s) 1", "radiotap.vht.datarate.1",
5459 FT_FLOAT
, BASE_NONE
, NULL
, 0x0,
5460 "Speed this frame was sent/received at", HFILL
}},
5462 {&hf_radiotap_vht_datarate
[2],
5463 {"Data rate (Mb/s) 2", "radiotap.vht.datarate.2",
5464 FT_FLOAT
, BASE_NONE
, NULL
, 0x0,
5465 "Speed this frame was sent/received at", HFILL
}},
5467 {&hf_radiotap_vht_datarate
[3],
5468 {"Data rate (Mb/s) 3", "radiotap.vht.datarate.3",
5469 FT_FLOAT
, BASE_NONE
, NULL
, 0x0,
5470 "Speed this frame was sent/received at", HFILL
}},
5472 {&hf_radiotap_vht_gid
,
5473 {"Group Id", "radiotap.vht.gid",
5474 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5477 {&hf_radiotap_vht_p_aid
,
5478 {"Partial AID", "radiotap.vht.paid",
5479 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
5482 {&hf_radiotap_timestamp
,
5483 {"timestamp information", "radiotap.timestamp",
5484 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5487 {&hf_radiotap_timestamp_ts
,
5488 {"timestamp", "radiotap.timestamp.ts",
5489 FT_UINT64
, BASE_DEC
, NULL
, 0x0,
5492 {&hf_radiotap_timestamp_accuracy
,
5493 {"accuracy", "radiotap.timestamp.accuracy",
5494 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
5497 {&hf_radiotap_timestamp_unit
,
5498 {"time unit", "radiotap.timestamp.unit",
5499 FT_UINT8
, BASE_DEC
, VALS(timestamp_unit
),
5500 IEEE80211_RADIOTAP_TS_UNIT_MASK
,
5503 {&hf_radiotap_timestamp_spos
,
5504 {"sampling position", "radiotap.timestamp.samplingpos",
5505 FT_UINT8
, BASE_DEC
, VALS(timestamp_spos
),
5506 IEEE80211_RADIOTAP_TS_SPOS_MASK
,
5509 {&hf_radiotap_timestamp_flags_32bit
,
5510 {"32-bit counter", "radiotap.timestamp.flags.32bit",
5511 FT_BOOLEAN
, 8, TFS(&tfs_yes_no
), IEEE80211_RADIOTAP_TS_FLG_32BIT
,
5514 {&hf_radiotap_timestamp_flags_accuracy
,
5515 {"accuracy field", "radiotap.timestamp.flags.accuracy",
5516 FT_BOOLEAN
, 8, TFS(&tfs_present_absent
), IEEE80211_RADIOTAP_TS_FLG_ACCURACY
,
5519 {&hf_radiotap_vendor_ns
,
5520 {"Vendor namespace", "radiotap.vendor_namespace",
5521 FT_BYTES
, BASE_NONE
, NULL
, 0x0,
5524 {&hf_radiotap_ven_oui
,
5525 {"Vendor OUI", "radiotap.vendor_oui",
5526 FT_UINT24
, BASE_OUI
, NULL
, 0x0,
5529 {&hf_radiotap_ven_subns
,
5530 {"Vendor sub namespace", "radiotap.vendor_subns",
5531 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
5532 "Vendor-specified sub namespace", HFILL
}},
5534 {&hf_radiotap_ven_skip
,
5535 {"Vendor data length", "radiotap.vendor_data_len",
5536 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
5537 "Length of vendor-specified data", HFILL
}},
5539 {&hf_radiotap_ven_item
,
5540 {"Vendor data item type", "radiotap.vendor_data_item_type",
5541 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
5542 "Item type of vendor-specific data", HFILL
}},
5544 {&hf_radiotap_ven_data
,
5545 {"Vendor data", "radiotap.vendor_data",
5546 FT_NONE
, BASE_NONE
, NULL
, 0x0,
5547 "Vendor-specified data", HFILL
}},
5549 /* Special variables */
5550 {&hf_radiotap_fcs_bad
,
5551 {"Bad FCS", "radiotap.fcs_bad",
5552 FT_BOOLEAN
, BASE_NONE
, NULL
, 0x0,
5553 "Specifies if this frame has a bad frame check sequence", HFILL
}},
5555 {&hf_radiotap_he_info_data_1
,
5556 {"HE Data 1", "radiotap.he.data_1",
5557 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5558 "Data 1 of the HE Info field", HFILL
}},
5560 {&hf_radiotap_he_ppdu_format
,
5561 {"PPDU Format", "radiotap.he.data_1.ppdu_format",
5562 FT_UINT16
, BASE_HEX
, VALS(he_pdu_format_vals
),
5563 IEEE80211_RADIOTAP_HE_PPDU_FORMAT_MASK
, NULL
, HFILL
}},
5565 {&hf_radiotap_he_bss_color_known
,
5566 {"BSS Color known", "radiotap.he.data_1.bss_color_known",
5567 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5568 IEEE80211_RADIOTAP_HE_BSS_COLOR_KNOWN
, NULL
, HFILL
}},
5570 {&hf_radiotap_he_beam_change_known
,
5571 {"Beam Change known", "radiotap.he.data_1.beam_change_known",
5572 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5573 IEEE80211_RADIOTAP_HE_BEAM_CHANGE_KNOWN
, NULL
, HFILL
}},
5575 {&hf_radiotap_he_ul_dl_known
,
5576 {"UL/DL known", "radiotap.he.data_1.ul_dl_known",
5577 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5578 IEEE80211_RADIOTAP_HE_UL_DL_KNOWN
, NULL
, HFILL
}},
5580 {&hf_radiotap_he_data_mcs_known
,
5581 {"data MCS known", "radiotap.he.data_1.data_mcs_known",
5582 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5583 IEEE80211_RADIOTAP_HE_DATA_MCS_KNOWN
, NULL
, HFILL
}},
5585 {&hf_radiotap_he_data_dcm_known
,
5586 {"data DCM known", "radiotap.he.data_1.data_dcm_known",
5587 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5588 IEEE80211_RADIOTAP_HE_DATA_DCM_KNOWN
, NULL
, HFILL
}},
5590 {&hf_radiotap_he_coding_known
,
5591 {"Coding known", "radiotap.he.data_1.coding_known",
5592 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5593 IEEE80211_RADIOTAP_HE_CODING_KNOWN
, NULL
, HFILL
}},
5595 {&hf_radiotap_he_ldpc_extra_symbol_segment_known
,
5596 {"LDPC extra symbol segment known", "radiotap.he.data_1.ldpc_extra_symbol_segment_known",
5597 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5598 IEEE80211_RADIOTAP_HE_LDPC_EXTRA_SYMBOL_SEGMENT_KNOWN
, NULL
, HFILL
}},
5600 {&hf_radiotap_he_stbc_known
,
5601 {"STBC known", "radiotap.he.data_1.stbc_known",
5602 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5603 IEEE80211_RADIOTAP_HE_STBC_KNOWN
, NULL
, HFILL
}},
5605 {&hf_radiotap_he_spatial_reuse_1_known
,
5606 {"Spatial Reuse 1 known", "radiotap.he.data_1.spatial_reuse_1_known",
5607 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5608 IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_KNOWN
, NULL
, HFILL
}},
5610 {&hf_radiotap_he_spatial_reuse_2_known
,
5611 {"Spatial Reuse 2 known", "radiotap.he.data_1.spatial_reuse_2_known",
5612 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5613 IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_2_KNOWN
, NULL
, HFILL
}},
5615 {&hf_radiotap_he_spatial_reuse_3_known
,
5616 {"Spatial Reuse 3 known", "radiotap.he.data_1.spatial_reuse_3_known",
5617 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5618 IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_3_KNOWN
, NULL
, HFILL
}},
5620 {&hf_radiotap_he_spatial_reuse_4_known
,
5621 {"Spatial Reuse 4 known", "radiotap.he.data_1.spatial_reuse_4_known",
5622 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5623 IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_4_KNOWN
, NULL
, HFILL
}},
5625 {&hf_radiotap_he_data_bw_ru_allocation_known
,
5626 {"data BW/RU allocation known", "radiotap.he.data_1.data_bw_ru_allocation_known",
5627 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5628 IEEE80211_RADIOTAP_HE_DATA_BW_RU_ALLOCATION_KNOWN
, NULL
, HFILL
}},
5630 {&hf_radiotap_he_doppler_known
,
5631 {"Doppler known", "radiotap.he.data_1.doppler_known",
5632 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5633 IEEE80211_RADIOTAP_HE_DOPPLER_KNOWN
, NULL
, HFILL
}},
5635 {&hf_radiotap_he_info_data_2
,
5636 {"HE Data 2", "radiotap.he.data_2",
5637 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5638 "Data 1 of the HE Info field", HFILL
}},
5640 {&hf_radiotap_he_pri_sec_80_mhz_known
,
5641 {"pri/sec 80 MHz known", "radiotap.he.data_2.pri_sec_80_mhz_known",
5642 FT_BOOLEAN
, 16, NULL
, IEEE80211_RADIOTAP_HE_PRI_SEC_80_MHZ_KNOWN
,
5645 {&hf_radiotap_he_gi_known
,
5646 {"GI known", "radiotap.he.data_2.gi_known",
5647 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_GI_KNOWN
,
5650 {&hf_radiotap_he_num_ltf_symbols_known
,
5651 {"LTF symbols known", "radiotap.he.data_2.num_ltf_symbols_known",
5652 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_NUM_LTF_SYMBOLS_KNOWN
,
5655 {&hf_radiotap_he_pre_fec_padding_factor_known
,
5656 {"Pre-FEC Padding Factor known", "radiotap.he.data_2.pre_fec_padding_factor_known",
5657 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_PRE_FEC_PADDING_FACTOR_KNOWN
,
5660 {&hf_radiotap_he_txbf_known
,
5661 {"TxBF known", "radiotap.he.data_2.txbf_known",
5662 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_TXBF_KNOWN
,
5665 {&hf_radiotap_he_pe_disambiguity_known
,
5666 {"PE Disambiguity known", "radiotap.he.data_2.pe_disambiguity_known",
5667 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_PE_DISAMBIGUITY_KNOWN
,
5670 {&hf_radiotap_he_txop_known
,
5671 {"TXOP known", "radiotap.he.data_2.txop_known",
5672 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_TXOP_KNOWN
,
5675 {&hf_radiotap_he_midamble_periodicity_known
,
5676 {"midamble periodicity known", "radiotap.he.data_2.midamble_periodicity_known",
5677 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
), IEEE80211_RADIOTAP_HE_MIDAMBLE_PERIODICITY_KNOWN
,
5680 {&hf_radiotap_he_ru_allocation_offset
,
5681 {"RU allocation offset", "radiotap.he.data_2.ru_allocation_offset",
5682 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_RU_ALLOCATION_OFFSET
,
5685 {&hf_radiotap_he_ru_allocation_offset_known
,
5686 {"RU allocation offset known", "radiotap.he.data_2.ru_allocation_offset_known",
5687 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5688 IEEE80211_RADIOTAP_HE_RU_ALLOCATION_OFFSET_KNOWN
,
5691 {&hf_radiotap_he_pri_sec_80_mhz
,
5692 {"pri/sec 80 MHz", "radiotap.he.data_2.pri_sec_80_mhz",
5693 FT_BOOLEAN
, 16, TFS(&tfs_pri_sec_80_mhz
),
5694 IEEE80211_RADIOTAP_HE_PRI_SEC_80_MHZ
,
5697 {&hf_radiotap_he_bss_color
,
5698 {"BSS Color", "radiotap.he.data_3.bss_color",
5699 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_BSS_COLOR_MASK
,
5702 {&hf_radiotap_he_bss_color_unknown
,
5703 {"BSS Color unknown", "radiotap.he.data_3.bss_color_unknown",
5704 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_BSS_COLOR_MASK
,
5707 {&hf_radiotap_he_beam_change
,
5708 {"Beam Change", "radiotap.he.data_3.beam_change",
5709 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_BEAM_CHANGE
,
5712 {&hf_radiotap_he_beam_change_unknown
,
5713 {"Beam Change unknown", "radiotap.he.data_3.beam_change_unknown",
5714 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_BEAM_CHANGE
,
5717 {&hf_radiotap_he_ul_dl
,
5718 {"UL/DL", "radiotap.he.data_3.ul_dl",
5719 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_UL_DL
,
5722 {&hf_radiotap_he_ul_dl_unknown
,
5723 {"UL/DL unknown", "radiotap.he.data_3.ul_dl_unknown",
5724 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_UL_DL
,
5727 {&hf_radiotap_he_data_mcs
,
5728 {"data MCS", "radiotap.he.data_3.data_mcs",
5729 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DATA_MCS_MASK
,
5732 {&hf_radiotap_he_data_mcs_unknown
,
5733 {"data MCS unknown", "radiotap.he.data_3.data_mcs_unknown",
5734 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DATA_MCS_MASK
,
5737 {&hf_radiotap_he_data_dcm
,
5738 {"data DCM", "radiotap.he.data_3.data_dcm",
5739 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DATA_DCM
,
5742 {&hf_radiotap_he_data_dcm_unknown
,
5743 {"data DCM unknown", "radiotap.he.data_3.data_dcm_unknown",
5744 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DATA_DCM
,
5747 {&hf_radiotap_he_coding
,
5748 {"Coding", "radiotap.he.data_3.coding",
5749 FT_UINT16
, BASE_HEX
, VALS(he_coding_vals
),
5750 IEEE80211_RADIOTAP_HE_CODING
, NULL
, HFILL
}},
5752 {&hf_radiotap_he_coding_unknown
,
5753 {"Coding unknown", "radiotap.he.data_3.coding_unknown",
5754 FT_UINT16
, BASE_HEX
, NULL
,
5755 IEEE80211_RADIOTAP_HE_CODING
, NULL
, HFILL
}},
5757 {&hf_radiotap_he_ldpc_extra_symbol_segment
,
5758 {"LDPC extra symbol segment", "radiotap.he.data_3.ldpc_extra_symbol_segment",
5759 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_LDPC_EXTRA_SYMBOL_SEGMENT
,
5762 {&hf_radiotap_he_ldpc_extra_symbol_segment_unknown
,
5763 {"LDPC extra symbol segment unknown",
5764 "radiotap.he.data_3.ldpc_extra_symbol_segment_unknown",
5765 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_LDPC_EXTRA_SYMBOL_SEGMENT
,
5768 {&hf_radiotap_he_stbc
,
5769 {"STBC", "radiotap.he.data_3.stbc",
5770 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_STBC
,
5773 {&hf_radiotap_he_stbc_unknown
,
5774 {"STBC unknown", "radiotap.he.data_3.stbc_unknown",
5775 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_STBC
,
5778 {&hf_radiotap_he_info_data_3
,
5779 {"HE Data 3", "radiotap.he.data_3",
5780 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5781 "Data 1 of the HE Info field", HFILL
}},
5783 {&hf_radiotap_spatial_reuse
,
5784 {"Spatial Reuse", "radiotap.he.data_4.spatial_reuse",
5785 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_MASK
,
5788 {&hf_radiotap_spatial_reuse_unknown
,
5789 {"Spatial Reuse unknown", "radiotap.he.data_4.spatial_reuse_unknown",
5790 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_MASK
,
5793 {&hf_radiotap_he_su_reserved
,
5794 {"Reserved", "radiotap.he.data_4.reserved_d4_fff0",
5795 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_D4_FFF0
,
5798 {&hf_radiotap_spatial_reuse_1
,
5799 {"Spatial Reuse 1", "radiotap.he.data_4.spatial_reuse_1",
5800 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_1_MASK
,
5803 {&hf_radiotap_spatial_reuse_1_unknown
,
5804 {"Spatial Reuse 1 unknown", "radiotap.he.data_4.spatial_reuse_1_unknown",
5805 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_1_MASK
,
5808 {&hf_radiotap_spatial_reuse_2
,
5809 {"Spatial Reuse 2", "radiotap.he.data_4.spatial_reuse_2",
5810 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_2_MASK
,
5813 {&hf_radiotap_spatial_reuse_2_unknown
,
5814 {"Spatial Reuse 2 unknown", "radiotap.he.data_4.spatial_reuse_2_unknown",
5815 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_2_MASK
,
5818 {&hf_radiotap_spatial_reuse_3
,
5819 {"Spatial Reuse 3", "radiotap.he.data_4.spatial_reuse_3",
5820 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_3_MASK
,
5823 {&hf_radiotap_spatial_reuse_3_unknown
,
5824 {"Spatial Reuse 3 unknown", "radiotap.he.data_4.spatial_reuse_3_unknown",
5825 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_3_MASK
,
5828 {&hf_radiotap_spatial_reuse_4
,
5829 {"Spatial Reuse 4", "radiotap.he.data_4.spatial_reuse_4",
5830 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_4_MASK
,
5833 {&hf_radiotap_spatial_reuse_4_unknown
,
5834 {"Spatial Reuse 4 unknown", "radiotap.he.data_4.spatial_reuse_4_unknown",
5835 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_SPATIAL_REUSE_4_MASK
,
5838 {&hf_radiotap_sta_id_user_captured
,
5839 {"STA-ID of user data captured for", "radiotap.he.data_4.sta_id_user",
5840 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_STA_ID_MASK
,
5843 {&hf_radiotap_he_mu_reserved
,
5844 {"Reserved", "radiotap.he.data_4.reserved_d4_b15",
5845 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_RESERVED_D4_B15
,
5848 {&hf_radiotap_he_info_data_4
,
5849 {"HE Data 4", "radiotap.he.data_4",
5850 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5851 "Data 1 of the HE Info field", HFILL
}},
5853 {&hf_radiotap_data_bandwidth_ru_allocation
,
5854 {"data Bandwidth/RU allocation", "radiotap.he.data_5.data_bw_ru_allocation",
5855 FT_UINT16
, BASE_HEX
, VALS(he_data_bw_ru_alloc_vals
),
5856 IEEE80211_RADIOTAP_HE_DATA_BANDWIDTH_RU_ALLOC_MASK
, NULL
, HFILL
}},
5858 {&hf_radiotap_data_bandwidth_ru_allocation_unknown
,
5859 {"data Bandwidth/RU allocation unknown",
5860 "radiotap.he.data_5.data_bw_ru_allocation_unknown",
5861 FT_UINT16
, BASE_HEX
, NULL
,
5862 IEEE80211_RADIOTAP_HE_DATA_BANDWIDTH_RU_ALLOC_MASK
, NULL
, HFILL
}},
5865 {"GI", "radiotap.he.data_5.gi",
5866 FT_UINT16
, BASE_HEX
, VALS(he_gi_vals
), IEEE80211_RADIOTAP_HE_GI_MASK
,
5869 {&hf_radiotap_gi_unknown
,
5870 {"GI unknown", "radiotap.he.data_5.gi_unknown",
5871 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_GI_MASK
,
5874 {&hf_radiotap_ltf_symbol_size
,
5875 {"LTF symbol size", "radiotap.he.data_5.ltf_symbol_size",
5876 FT_UINT16
, BASE_HEX
, VALS(he_ltf_symbol_size_vals
),
5877 IEEE80211_RADIOTAP_HE_LTF_SYMBOL_SIZE
, NULL
, HFILL
}},
5879 {&hf_radiotap_ltf_symbol_size_unknown
,
5880 {"LTF symbol size unknown", "radiotap.he.data_5.ltf_symbol_size_unknown",
5881 FT_UINT16
, BASE_HEX
, NULL
,
5882 IEEE80211_RADIOTAP_HE_LTF_SYMBOL_SIZE
, NULL
, HFILL
}},
5884 {&hf_radiotap_num_ltf_symbols
,
5885 {"LTF symbols", "radiotap.he.num_ltf_symbols",
5886 FT_UINT16
, BASE_HEX
, VALS(he_num_ltf_symbols_vals
),
5887 IEEE80211_RADIOTAP_HE_NUM_LTF_SYMBOLS_MASK
, NULL
, HFILL
}},
5889 {&hf_radiotap_num_ltf_symbols_unknown
,
5890 {"LTF symbols unknown", "radiotap.he.num_ltf_symbols_unknown",
5891 FT_UINT16
, BASE_HEX
, NULL
,
5892 IEEE80211_RADIOTAP_HE_NUM_LTF_SYMBOLS_MASK
, NULL
, HFILL
}},
5894 {&hf_radiotap_d5_reserved_b11
,
5895 {"reserved", "radiotap.he.data_5.reserved_d5_b11",
5896 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_RESERVED_D5_B11
,
5899 {&hf_radiotap_pre_fec_padding_factor
,
5900 {"Pre-FEC Padding Factor", "radiotap.he.pre_fec_padding_factor",
5901 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_PRE_FEC_PADDING_FACTOR_MASK
,
5904 {&hf_radiotap_pre_fec_padding_factor_unknown
,
5905 {"Pre-FEC Padding Factor unknown", "radiotap.he.pre_fec_padding_factor_unknown",
5906 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_PRE_FEC_PADDING_FACTOR_MASK
,
5910 {"TxBF", "radiotap.he.txbf",
5911 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_TXBF
,
5914 {&hf_radiotap_txbf_unknown
,
5915 {"TxBF unknown", "radiotap.he.txbf_unknown",
5916 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_TXBF
,
5919 {&hf_radiotap_pe_disambiguity
,
5920 {"PE Disambiguity", "radiotap.he.pe_disambiguity",
5921 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_PE_DISAMBIGUITY
,
5924 {&hf_radiotap_pe_disambiguity_unknown
,
5925 {"PE Disambiguity unknown", "radiotap.he.pe_disambiguity_unknown",
5926 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_PE_DISAMBIGUITY
,
5929 {&hf_radiotap_he_info_data_5
,
5930 {"HE Data 5", "radiotap.he.data_5",
5931 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5932 "Data 1 of the HE Info field", HFILL
}},
5934 {&hf_radiotap_he_nsts
,
5935 {"NSTS", "radiotap.he.data_6.nsts",
5936 FT_UINT16
, BASE_HEX
, VALS(he_nsts_vals
),IEEE80211_RADIOTAP_HE_NSTS_MASK
,
5939 {&hf_radiotap_he_doppler_value
,
5940 {"Doppler value", "radiotap.he.data_6.doppler_value",
5941 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DOPLER_VALUE
,
5944 {&hf_radiotap_he_doppler_value_unknown
,
5945 {"Doppler value unknown", "radiotap.he.data_6.doppler_value_unknown",
5946 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_DOPLER_VALUE
,
5949 {&hf_radiotap_he_d6_reserved_00e0
,
5950 {"Reserved", "radiotap.he.data_6.reserved_d6_00e0",
5951 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_RESERVED_D6_00E0
,
5954 {&hf_radiotap_he_txop_value
,
5955 {"TXOP value", "radiotap.he.data_6.txop_value",
5956 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_TXOP_VALUE_MASK
,
5959 {&hf_radiotap_he_txop_value_unknown
,
5960 {"TXOP value unknown", "radiotap.he.data_6.txop_value_unknown",
5961 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_TXOP_VALUE_MASK
,
5964 {&hf_radiotap_midamble_periodicity
,
5965 {"midamble periodicity", "radiotap.he.data_6.midamble_periodicity",
5966 FT_UINT16
, BASE_HEX
, VALS(he_midamble_periodicity_vals
),
5967 IEEE80211_RADIOTAP_HE_MIDAMBLE_PERIODICITY
, NULL
, HFILL
}},
5969 {&hf_radiotap_midamble_periodicity_unknown
,
5970 {"midamble periodicity unknown",
5971 "radiotap.he.data_6.midamble_periodicity_unknown",
5972 FT_UINT16
, BASE_HEX
, NULL
,
5973 IEEE80211_RADIOTAP_HE_MIDAMBLE_PERIODICITY
, NULL
, HFILL
}},
5975 {&hf_radiotap_he_info_data_6
,
5976 {"HE Data 6", "radiotap.he.data_6",
5977 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
5978 "Data 1 of the HE Info field", HFILL
}},
5980 {&hf_radiotap_he_mu_sig_b_mcs
,
5981 {"SIG-B MCS (from SIG-A)", "radiotap.he_mu.sig_b_mcs",
5982 FT_UINT16
, BASE_HEX
, NULL
,
5983 IEEE80211_RADIOTAP_HE_MU_SIG_B_MCS_MASK
, NULL
, HFILL
}},
5985 {&hf_radiotap_he_mu_sig_b_mcs_unknown
,
5986 {"SIG-B MCS (from SIG-A) unknown",
5987 "radiotap.he_mu.sig_b_mcs_unknown",
5988 FT_UINT16
, BASE_HEX
, NULL
,
5989 IEEE80211_RADIOTAP_HE_MU_SIG_B_MCS_MASK
, NULL
, HFILL
}},
5991 {&hf_radiotap_he_mu_sig_b_mcs_known
,
5992 {"SIG-B MCS known", "radiotap.he_mu.sig_b_mcs_known",
5993 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
5994 IEEE80211_RADIOTAP_HE_MU_SIG_B_MCS_KNOWN
, NULL
, HFILL
}},
5996 {&hf_radiotap_he_mu_sig_b_dcm
,
5997 {"SIG-B DCM (from SIG-A)", "radiotap.he_mu.sig_b_dcm",
5998 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_MU_SIG_B_DCM
,
6001 {&hf_radiotap_he_mu_sig_b_dcm_unknown
,
6002 {"SIG-B DCM (from SIG-A) unknown",
6003 "radiotap.he_mu.sig_b_dcm_unknown",
6004 FT_UINT16
, BASE_HEX
, NULL
, IEEE80211_RADIOTAP_HE_MU_SIG_B_DCM
,
6007 {&hf_radiotap_he_mu_sig_b_dcm_known
,
6008 {"SIG-B DCM known", "radiotap.he_mu.sig_b_dmc_known",
6009 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6010 IEEE80211_RADIOTAP_HE_MU_SIG_B_DCM_KNOWN
, NULL
, HFILL
}},
6012 {&hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_known
,
6013 {"Channel2 center 26-tone RU bit known", "radiotap.he_mu.chan2_center_26_tone_ru_bit_known",
6014 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6015 IEEE80211_RADIOTAP_HE_MU_CHAN2_CENTER_26_TONE_RU_BIT_KNOWN
, NULL
, HFILL
}},
6017 {&hf_radiotap_he_mu_chan2_center_26_tone_ru_bit_unknown
,
6018 {"Channel2 center 26-tone RU bit known", "radiotap.he_mu.chan2_center_26_tone_ru_bit_unknown",
6019 FT_UINT16
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6020 IEEE80211_RADIOTAP_HE_MU_CHAN2_CENTER_26_TONE_RU_BIT_KNOWN
, NULL
, HFILL
}},
6022 {&hf_radiotap_he_mu_chan1_rus_known
,
6023 {"Channel 1 RUs known", "radiotap.he_mu.chan1_rus_known",
6024 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6025 IEEE80211_RADIOTAP_HE_MU_CHAN1_RUS_KNOWN
, NULL
, HFILL
}},
6027 {&hf_radiotap_he_mu_chan1_rus_unknown
,
6028 {"Channel 1 RUs unknown", "radiotap.he_mu.chan1_rus_unknown",
6029 FT_UINT16
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6030 IEEE80211_RADIOTAP_HE_MU_CHAN1_RUS_KNOWN
, NULL
, HFILL
}},
6032 {&hf_radiotap_he_mu_chan2_rus_known
,
6033 {"Channel 2 RUs known", "radiotap.he_mu.chan2_rus_known",
6034 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6035 IEEE80211_RADIOTAP_HE_MU_CHAN2_RUS_KNOWN
, NULL
, HFILL
}},
6037 {&hf_radiotap_he_mu_chan2_rus_unknown
,
6038 {"Channel 2 RUs unknown", "radiotap.he_mu.chan2_rus_unknown",
6039 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6040 IEEE80211_RADIOTAP_HE_MU_CHAN2_RUS_KNOWN
, NULL
, HFILL
}},
6042 {&hf_radiotap_he_mu_reserved_f1_b10_b11
,
6043 {"Reserved", "radiotap.he_mu.reserved_f1_b10_b11",
6044 FT_UINT16
, BASE_HEX
, NULL
,
6045 IEEE80211_RADIOTAP_HE_MU_RESERVED_F1_B10_B11
, NULL
, HFILL
}},
6047 {&hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_known
,
6048 {"Channel1 center 26-tone RU bit known", "radiotap.he_mu.chan1_center_26_tone_ru_bit_known",
6049 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6050 IEEE80211_RADIOTAP_HE_MU_CHAN1_CENTER_26_TONE_RU_BIT_KNOWN
, NULL
, HFILL
}},
6052 {&hf_radiotap_he_mu_chan1_center_26_tone_ru_bit_unknown
,
6053 {"Channel1 center 26-tone RU bit known", "radiotap.he_mu.chan1_center_26_tone_ru_bit_unknown",
6054 FT_UINT16
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6055 IEEE80211_RADIOTAP_HE_MU_CHAN1_CENTER_26_TONE_RU_BIT_KNOWN
, NULL
, HFILL
}},
6057 {&hf_radiotap_he_mu_chan1_center_26_tone_ru_value
,
6058 {"Channel1 center 26-tone RU value", "radiotap.he_mu.chan1_center_26_tone_ru_value",
6059 FT_UINT16
, BASE_HEX
, NULL
,
6060 IEEE80211_RADIOTAP_HE_MU_CHAN1_CENTER_26_TONE_RU_VALUE
, NULL
, HFILL
}},
6062 {&hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_known
,
6063 {"# of HE-SIG-B Symbols/MU-MINO users known",
6064 "radiotap.he_mu.symbol_cnt_or_user_cnt_known",
6065 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6066 IEEE80211_RADIOTAP_HE_MU_SYMBOL_CNT_OR_USER_CNT_KNOWN
,
6069 {&hf_radiotap_he_mu_info_flags_1
,
6070 {"HE-MU Flags 1", "radiotap.he_mu.flags_1",
6071 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
6072 "Flags 1 of the HE-MU Info field", HFILL
}},
6074 {&hf_radiotap_he_mu_bw_from_bw_in_sig_a
,
6075 {"bandwidth from Bandwidth field in SIG-A",
6076 "radiotap.he_mu.bw_from_sig_a",
6077 FT_UINT16
, BASE_DEC
, NULL
,
6078 IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_MASK
, NULL
, HFILL
}},
6080 {&hf_radiotap_he_mu_bw_from_bw_in_sig_a_unknown
,
6081 {"bandwidth from Bandwidth field in SIG-A unknown",
6082 "radiotap.he_mu.bw_from_sig_a_unknown",
6083 FT_UINT16
, BASE_DEC
, NULL
,
6084 IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_MASK
, NULL
, HFILL
}},
6086 {&hf_radiotap_he_mu_bw_from_bw_in_sig_a_known
,
6087 {"bandwidth from Bandwidth field in SIG-A known",
6088 "radiotap.he_mu.bw_from_sig_a_known",
6089 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6090 IEEE80211_RADIOTAP_HE_MU_BW_FROM_BW_IN_SIG_A_KNOWN
, NULL
, HFILL
}},
6092 {&hf_radiotap_he_mu_sig_b_compression_from_sig_a
,
6093 {"SIG-B compression from SIG-A", "radiotap.he_mu.sig_b_compression",
6094 FT_BOOLEAN
, 16, NULL
,
6095 IEEE80211_RADIOTAP_HE_MU_SIG_B_COMPRESSION_FROM_SIG_A
,
6098 {&hf_radiotap_he_mu_sig_b_compression_known
,
6099 {"SIG-B compression known", "radiotap.he_mu.sig_b_compression_known",
6100 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6101 IEEE80211_RADIOTAP_HE_MU_SIG_B_COMPRESSION_KNOWN
, NULL
, HFILL
}},
6103 {&hf_radiotap_he_mu_sig_b_compression_unknown
,
6104 {"SIG-B compression unknown", "radiotap.he_mu.sig_b_compression_unknown",
6105 FT_UINT16
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6106 IEEE80211_RADIOTAP_HE_MU_SIG_B_COMPRESSION_FROM_SIG_A
, NULL
, HFILL
}},
6108 {&hf_radiotap_he_mu_sig_b_syms_mu_mimo_users
,
6109 {"# of HE-SIG-B Symbols or # of MU-MIMO Users",
6110 "radiotap.he_mu.sig_b_syms_or_mu_mimo_users",
6111 FT_UINT16
, BASE_CUSTOM
, CF_FUNC(he_sig_b_symbols_custom
),
6112 IEEE80211_RADIOTAP_HE_MU_SYMBOL_CNT_OR_USER_CNT
, NULL
, HFILL
}},
6114 {&hf_radiotap_he_mu_sig_b_syms_mu_mimo_users_unknown
,
6115 {"# of HE-SIG-B Symbols or # of MU-MIMO Users unknown",
6116 "radiotap.he_mu.sig_b_syms_or_mu_mimo_users_unknown",
6117 FT_UINT16
, BASE_DEC
, NULL
,
6118 IEEE80211_RADIOTAP_HE_MU_SYMBOL_CNT_OR_USER_CNT
, NULL
, HFILL
}},
6120 {&hf_radiotap_he_mu_preamble_puncturing
,
6121 {"preamble puncturing from Bandwidth field in HE-SIG-A",
6122 "radiotap.he_mu.preamble_puncturing",
6123 FT_UINT16
, BASE_HEX
, NULL
,
6124 IEEE80211_RADIOTAP_HE_MU_PREAMBLE_PUNCTURING_MASK
, NULL
, HFILL
}},
6126 {&hf_radiotap_he_mu_preamble_puncturing_unknown
,
6127 {"preamble puncturing from Bandwidth field in HE-SIG-A unknown",
6128 "radiotap.he_mu.preamble_puncturing",
6129 FT_UINT16
, BASE_HEX
, NULL
,
6130 IEEE80211_RADIOTAP_HE_MU_PREAMBLE_PUNCTURING_MASK
, NULL
, HFILL
}},
6132 {&hf_radiotap_he_mu_preamble_puncturing_known
,
6133 {"preamble puncturing from Bandwidth field in HE-SIG-A known",
6134 "radiotap.he_mu.preamble_puncturing_known",
6135 FT_BOOLEAN
, 16, TFS(&tfs_known_unknown
),
6136 IEEE80211_RADIOTAP_HE_MU_PREAMBLE_PUNCTURING_KNOWN
, NULL
, HFILL
}},
6138 {&hf_radiotap_he_mu_chan2_center_26_tone_ru_value
,
6139 {"Chan2 Center 26 Tone RU Value",
6140 "radiotap.he_mu.chan2_center_26_tone_ru_value",
6141 FT_UINT16
, BASE_HEX
, NULL
,
6142 IEEE80211_RADIOTAP_HE_MU_CHAN2_CENTER_26_TONE_RU_VALUE
,
6145 {&hf_radiotap_he_mu_reserved_f2_b12_b15
,
6146 {"Reserved", "radiotap.he_mu.reserved_f2_b12_b15",
6147 FT_UINT16
, BASE_HEX
, NULL
,
6148 IEEE80211_RADIOTAP_HE_MU_RESERVED_F2_B12_B15
, NULL
, HFILL
}},
6150 {&hf_radiotap_he_mu_info_flags_2
,
6151 {"HE-MU Flags 2", "radiotap.he_mu.flags_2",
6152 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
6153 "Flags 2 of the HE-MU Info field", HFILL
}},
6155 {&hf_radiotap_he_mu_chan1_rus_0
,
6156 {"Chan1 RU[0] index", "radiotap.he_mu.chan1_rus_0_index",
6157 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6159 {&hf_radiotap_he_mu_chan1_rus_0_unknown
,
6160 {"Chan1 RU[0] index unknown",
6161 "radiotap.he_mu.chan1_rus_0_index_unknown",
6162 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6165 {&hf_radiotap_he_mu_chan1_rus_1
,
6166 {"Chan1 RU[1] index", "radiotap.he_mu.chan1_rus_1_index",
6167 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6169 {&hf_radiotap_he_mu_chan1_rus_1_unknown
,
6170 {"Chan1 RU[1] index unknown",
6171 "radiotap.he_mu.chan1_rus_1_index_unknown",
6172 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6175 {&hf_radiotap_he_mu_chan1_rus_2
,
6176 {"Chan1 RU[2] index", "radiotap.he_mu.chan1_rus_2_index",
6177 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6179 {&hf_radiotap_he_mu_chan1_rus_2_unknown
,
6180 {"Chan1 RU[2] index unknown",
6181 "radiotap.he_mu.chan1_rus_2_index_unknown",
6182 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6185 {&hf_radiotap_he_mu_chan1_rus_3
,
6186 {"Chan1 RU[3] index", "radiotap.he_mu.chan1_rus_3_index",
6187 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6189 {&hf_radiotap_he_mu_chan1_rus_3_unknown
,
6190 {"Chan1 RU[3] index unknown",
6191 "radiotap.he_mu.chan1_rus_3_index_unknown",
6192 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(not_captured_custom
),
6195 {&hf_radiotap_he_mu_chan2_rus_0
,
6196 {"Chan2 RU[0] index", "radiotap.he_mu.chan2_rus_0_index",
6197 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6199 {&hf_radiotap_he_mu_chan2_rus_0_unknown
,
6200 {"Chan2 RU[0] index unknown",
6201 "radiotap.he_mu.chan2_rus_0_index_unknown",
6202 FT_UINT8
, BASE_CUSTOM
,
6203 CF_FUNC(not_captured_custom
), 0x0, NULL
, HFILL
}},
6205 {&hf_radiotap_he_mu_chan2_rus_1
,
6206 {"Chan2 RU[1] index", "radiotap.he_mu.chan2_rus_1_index",
6207 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6209 {&hf_radiotap_he_mu_chan2_rus_1_unknown
,
6210 {"Chan2 RU[1] index unknown",
6211 "radiotap.he_mu.chan2_rus_1_index_unknown",
6212 FT_UINT8
, BASE_CUSTOM
,
6213 CF_FUNC(not_captured_custom
), 0x0, NULL
, HFILL
}},
6215 {&hf_radiotap_he_mu_chan2_rus_2
,
6216 {"Chan2 RU[2] index", "radiotap.he_mu.chan2_rus_2_index",
6217 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6219 {&hf_radiotap_he_mu_chan2_rus_2_unknown
,
6220 {"Chan2 RU[2] index unknown",
6221 "radiotap.he_mu.chan2_rus_2_index_unknown",
6222 FT_UINT8
, BASE_CUSTOM
,
6223 CF_FUNC(not_captured_custom
), 0x0, NULL
, HFILL
}},
6225 {&hf_radiotap_he_mu_chan2_rus_3
,
6226 {"Chan2 RU[3] index", "radiotap.he_mu.chan2_rus_3_index",
6227 FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6229 {&hf_radiotap_he_mu_chan2_rus_3_unknown
,
6230 {"Chan2 RU[3] index unknown",
6231 "radiotap.he_mu.chan2_rus_3_index_unknown",
6232 FT_UINT8
, BASE_CUSTOM
,
6233 CF_FUNC(not_captured_custom
), 0x0, NULL
, HFILL
}},
6235 {&hf_radiotap_0_length_psdu_type
,
6236 {"Type", "radiotap.0_len_psdu.type",
6237 FT_UINT8
, BASE_HEX
|BASE_RANGE_STRING
,
6238 RVALS(zero_length_psdu_rsvals
), 0x0, NULL
, HFILL
}},
6240 {&hf_radiotap_l_sig_data_1
,
6241 {"Data1", "radiotap.l_sig.data1",
6242 FT_UINT16
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
6244 {&hf_radiotap_l_sig_rate_known
,
6245 {"rate known", "radiotap.l_sig.rate_known",
6246 FT_BOOLEAN
, 16, NULL
,
6247 IEEE80211_RADIOTAP_L_SIG_RATE_KNOWN
, NULL
, HFILL
}},
6249 {&hf_radiotap_l_sig_length_known
,
6250 {"length known", "radiotap.l_sig.length_known",
6251 FT_BOOLEAN
, 16, NULL
,
6252 IEEE80211_RADIOTAP_L_SIG_LENGTH_KNOWN
, NULL
, HFILL
}},
6254 {&hf_radiotap_l_sig_reserved
,
6255 {"reserved", "radiotap.l_sig.reserved",
6256 FT_UINT16
, BASE_HEX
, NULL
,
6257 IEEE80211_RADIOTAP_L_SIG_RESERVED_MASK
, NULL
, HFILL
}},
6259 {&hf_radiotap_l_sig_data_2
,
6260 {"Data2", "radiotap.l_sig.data2",
6261 FT_UINT16
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6263 {&hf_radiotap_l_sig_rate
,
6264 {"rate", "radiotap.l_sig.rate",
6265 FT_UINT16
, BASE_DEC
, NULL
,
6266 IEEE80211_RADIOTAP_L_SIG_RATE_MASK
, NULL
, HFILL
}},
6268 {&hf_radiotap_l_sig_length
,
6269 {"length", "radiotap.l_sig.length",
6270 FT_UINT16
, BASE_DEC
, NULL
,
6271 IEEE80211_RADIOTAP_L_SIG_LENGTH_MASK
, NULL
, HFILL
}},
6273 {&hf_radiotap_u_sig_common
,
6274 {"U-SIG common", "radiotap.u_sig.common",
6275 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6277 {&hf_radiotap_usig_phy_version_identifier_known
,
6278 {"PHY version identifier known",
6279 "radiotap.u_sig.common.phy_version_identifier_known",
6280 FT_BOOLEAN
, 32, NULL
, 0x00000001, NULL
, HFILL
}},
6282 {&hf_radiotap_usig_bw_known
,
6283 {"BW known", "radiotap.u_sig.common.bw_known",
6284 FT_BOOLEAN
, 32, NULL
, 0x00000002, NULL
, HFILL
}},
6286 {&hf_radiotap_usig_ul_dl_known
,
6287 {"UL/DL known", "radiotap.u_sig.common.ul_dl_known",
6288 FT_BOOLEAN
, 32, NULL
, 0x00000004, NULL
, HFILL
}},
6290 {&hf_radiotap_usig_bss_color_known
,
6291 {"BSS Color known", "radiotap.u_sig.common.bss_color_known",
6292 FT_BOOLEAN
, 32, NULL
, 0x00000008, NULL
, HFILL
}},
6294 {&hf_radiotap_usig_txop_known
,
6295 {"TXOP known", "radiotap.u_sig.common.txop_known",
6296 FT_BOOLEAN
, 32, NULL
, 0x00000010, NULL
, HFILL
}},
6298 {&hf_radiotap_usig_bad_u_sig_crc
,
6299 {"Bad U-SIG CRC", "radiotap.u_sig.common.bad_u_sig_crc",
6300 FT_BOOLEAN
, 32, NULL
, 0x00000020, NULL
, HFILL
}},
6302 {&hf_radiotap_usig_validate_bits_checked
,
6303 {"Validate bits checked", "radiotap.u_sig.common.validate_bits_checked",
6304 FT_BOOLEAN
, 32, NULL
, 0x00000040, NULL
, HFILL
}},
6306 {&hf_radiotap_usig_validate_bits_ok
,
6307 {"Validate bits OK", "radiotap.u_sig.common.validate_bits_ok",
6308 FT_BOOLEAN
, 32, NULL
, 0x00000080, NULL
, HFILL
}},
6310 {&hf_radiotap_usig_reserved
,
6311 {"Reserved", "radiotap.u_sig.common.reserved",
6312 FT_UINT32
, BASE_HEX
, NULL
, 0x00000f00, NULL
, HFILL
}},
6314 {&hf_radiotap_usig_phy_version_id
,
6315 {"Phy version identifier",
6316 "radiotap.u_sig.common.phy_version_identifier",
6317 FT_UINT32
, BASE_DEC
, NULL
, 0x00007000, NULL
, HFILL
}},
6319 {&hf_radiotap_usig_bw
,
6320 {"BW", "radiotap.u_sig.common.bw",
6321 FT_UINT32
, BASE_HEX
, VALS(eht_u_sig_bw_vals
), 0x00038000,
6324 {&hf_radiotap_usig_ul_dl
,
6325 {"UL/DL", "radiotap.u_sig.common.ul_dl",
6326 FT_BOOLEAN
, 32, NULL
, 0x00040000, NULL
, HFILL
}},
6328 {&hf_radiotap_usig_bss_color
,
6329 {"BSS Color", "radiotap.u_sig.common.bss_color",
6330 FT_UINT32
, BASE_DEC
, NULL
, 0x01f80000, NULL
, HFILL
}},
6332 {&hf_radiotap_usig_txop
,
6333 {"TXOP", "radiotap.u_sig.common.txop",
6334 FT_UINT32
, BASE_DEC
, NULL
, 0xfe000000, NULL
, HFILL
}},
6336 {&hf_radiotap_u_sig_mask
,
6337 {"mask", "radiotap.u_sig.mask",
6338 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6340 {&hf_radiotap_usig_value_mu_ppdu
,
6341 {"EHT MU PPDU", "radiotap.u_sig.value.mu_ppdu",
6342 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6344 {&hf_radiotap_usig_eht_mu_b20_b24
,
6346 "radiotap.u_sig.value.mu_ppdu.u_sig_1_b20_b24",
6347 FT_UINT32
, BASE_HEX
, NULL
, 0x0000001f, NULL
, HFILL
}},
6349 {&hf_radiotap_usig_eht_mu_b20_b24_not_known
,
6350 {"U-SIG-1 B20-B24 not known",
6351 "radiotap.u_sig.value.mu_ppdu.u_sig_1_b20_b24_not_known",
6352 FT_UINT32
, BASE_HEX
, NULL
, 0x0000001f, NULL
, HFILL
}},
6354 {&hf_radiotap_usig_eht_mu_b25
,
6355 {"U-SIG-1 B25", "radiotap.u_sig.value.mu_ppdu.u_sig_1_b25",
6356 FT_UINT32
, BASE_HEX
, NULL
, 0x00000020, NULL
, HFILL
}},
6358 {&hf_radiotap_usig_eht_mu_b25_not_known
,
6359 {"U-SIG-1 B25 not known",
6360 "radiotap.u_sig.value.mu_ppdu.u_sig_1_b25_not_known",
6361 FT_UINT32
, BASE_HEX
, NULL
, 0x00000020, NULL
, HFILL
}},
6363 {&hf_radiotap_usig_ppdu_type_and_comp_mode
,
6364 {"PPDU Type and Compression Mode",
6365 "radiotap.u_sig.value.ppdu_type_and_compression_mode",
6366 FT_UINT32
, BASE_HEX
, NULL
, 0x000000c0, NULL
, HFILL
}},
6368 {&hf_radiotap_usig_validate1
,
6369 {"Validate", "radiotap.u_sig.value.mu_ppdu.validate1",
6370 FT_UINT32
, BASE_HEX
, NULL
, 0x00000100, NULL
, HFILL
}},
6372 {&hf_radiotap_usig_validate1_not_known
,
6373 {"Validate not known",
6374 "radiotap.u_sig.value.mu_ppdu.validate1_not_known",
6375 FT_UINT32
, BASE_HEX
, NULL
, 0x00000100, NULL
, HFILL
}},
6377 {&hf_radiotap_usig_punctured_channel_info
,
6378 {"Punctured Channel Information",
6379 "radiotap.u_sig.value.mu_ppdu.punctured_channel_information",
6380 FT_UINT32
, BASE_HEX
, NULL
, 0x00003e00, NULL
, HFILL
}},
6382 {&hf_radiotap_usig_punctured_channel_info_not_known
,
6383 {"Punctured Channel Information not known",
6384 "radiotap.u_sig.value.mu_ppdu.punctured_channel_information_not_known",
6385 FT_UINT32
, BASE_HEX
, NULL
, 0x00003e00, NULL
, HFILL
}},
6387 {&hf_radiotap_usig_validate2
,
6388 {"Validate", "radiotap.u_sig.value.mu_ppdu.validate2",
6389 FT_UINT32
, BASE_HEX
, NULL
, 0x00004000, NULL
, HFILL
}},
6391 {&hf_radiotap_usig_validate2_not_known
,
6392 {"Validate not known",
6393 "radiotap.u_sig.value.mu_ppdu.validate2_not_known",
6394 FT_UINT32
, BASE_HEX
, NULL
, 0x00004000, NULL
, HFILL
}},
6396 {&hf_radiotap_usig_eht_sig_mcs
,
6397 {"EHT-SIG MCS", "radiotap.u_sig.value.mu_ppdu.eht_sig_mcs",
6398 FT_UINT32
, BASE_HEX
, NULL
, 0x00018000, NULL
, HFILL
}},
6400 {&hf_radiotap_usig_eht_sig_mcs_not_known
,
6401 {"EHT-SIG MCS not known",
6402 "radiotap.u_sig.value.mu_ppdu.eht_sig_mcs_not_known",
6403 FT_UINT32
, BASE_HEX
, NULL
, 0x00018000, NULL
, HFILL
}},
6405 {&hf_radiotap_usig_number_eht_sig_symbols
,
6406 {"Number of EHT-SIG Symbols",
6407 "radiotap.u_sig.value.mu_ppdu.number_of_eht_sig_symbols",
6408 FT_UINT32
, BASE_HEX
, NULL
, 0x003e0000, NULL
, HFILL
}},
6410 {&hf_radiotap_usig_number_eht_sig_symbols_not_known
,
6411 {"Number of EHT-SIG Symbols not known",
6412 "radiotap.u_sig.value.mu_ppdu.number_of_eht_sig_symbols_not_known",
6413 FT_UINT32
, BASE_HEX
, NULL
, 0x003e0000, NULL
, HFILL
}},
6415 {&hf_radiotap_usig_crc
,
6416 {"CRC", "radiotap.u_sig.value.mu_ppdu.crc",
6417 FT_UINT32
, BASE_HEX
, NULL
, 0x03c00000, NULL
, HFILL
}},
6419 {&hf_radiotap_usig_crc_not_known
,
6420 {"CRC not known", "radiotap.u_sig.value.mu_ppdu.crc_not_known",
6421 FT_UINT32
, BASE_HEX
, NULL
, 0x03c00000, NULL
, HFILL
}},
6423 {&hf_radiotap_usig_tail
,
6424 {"Tail", "radiotap.u_sig.value.mu_ppdu.tail",
6425 FT_UINT32
, BASE_HEX
, NULL
, 0xfc000000, NULL
, HFILL
}},
6427 {&hf_radiotap_usig_tail_not_known
,
6428 {"Tail not known", "radiotap.u_sig.value.mu_ppdu.tail_not_known",
6429 FT_UINT32
, BASE_HEX
, NULL
, 0xfc000000, NULL
, HFILL
}},
6431 {&hf_radiotap_usig_value_tb_ppdu
,
6432 {"EHT TB PPDU", "radiotap.u_sig.value.tb_ppdu",
6433 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6435 {&hf_radiotap_usig_eht_tb_b20_b25
,
6436 {"Disregard", "radiotap.u_sig.value.tb_ppdu.disregard",
6437 FT_UINT32
, BASE_HEX
, NULL
, 0x0000003f, NULL
, HFILL
}},
6439 {&hf_radiotap_usig_eht_tb_b20_b25_not_known
,
6440 {"Disregard not known",
6441 "radiotap.u_sig.value.tb_ppdu.disregard_not_known",
6442 FT_UINT32
, BASE_HEX
, NULL
, 0x0000003f, NULL
, HFILL
}},
6444 {&hf_radiotap_usig_eht_tb_validate1
,
6445 {"Validate", "radiotap.u_sig.value.tb_ppdu.validate1",
6446 FT_UINT32
, BASE_HEX
, NULL
, 0x00000100, NULL
, HFILL
}},
6448 {&hf_radiotap_usig_eht_tb_validate1_not_known
,
6449 {"Validate not known",
6450 "radiotap.u_sig.value.tb_ppdu.validate1_not_known",
6451 FT_UINT32
, BASE_HEX
, NULL
, 0x00000100, NULL
, HFILL
}},
6453 {&hf_radiotap_usig_eht_tb_spatial_reuse_1
,
6455 "radiotap.u_sig.value.tb_ppdu.spatial_reuse_1",
6456 FT_UINT32
, BASE_HEX
, NULL
, 0x00001e00, NULL
, HFILL
}},
6458 {&hf_radiotap_usig_eht_tb_spatial_reuse_1_not_known
,
6459 {"Spatial Reuse 1 not known",
6460 "radiotap.u_sig.value.tb_ppdu.spatial_reuse_1_not_known",
6461 FT_UINT32
, BASE_HEX
, NULL
, 0x00001e00, NULL
, HFILL
}},
6463 {&hf_radiotap_usig_eht_tb_spatial_reuse_2
,
6465 "radiotap.u_sig.value.tb_ppdu.spatial_reuse_2",
6466 FT_UINT32
, BASE_HEX
, NULL
, 0x0001e000, NULL
, HFILL
}},
6468 {&hf_radiotap_usig_eht_tb_spatial_reuse_2_not_known
,
6469 {"Spatial Reuse 2 not known",
6470 "radiotap.u_sig.value.tb_ppdu.spatial_reuse_2_not_known",
6471 FT_UINT32
, BASE_HEX
, NULL
, 0x0001e000, NULL
, HFILL
}},
6473 {&hf_radiotap_usig_eht_tb_disregard
,
6474 {"Disregard", "radiotap.u_sig.value.tb_ppdu.disregard",
6475 FT_UINT32
, BASE_HEX
, NULL
, 0x003e0000, NULL
, HFILL
}},
6477 {&hf_radiotap_usig_eht_tb_disregard_not_known
,
6478 {"Disregard not known",
6479 "radiotap.u_sig.value.tb_ppdu.disregard_not_known",
6480 FT_UINT32
, BASE_HEX
, NULL
, 0x003e0000, NULL
, HFILL
}},
6482 {&hf_radiotap_usig_eht_tb_crc
,
6483 {"CRC", "radiotap.u_sig.value.tb_ppdu.crc",
6484 FT_UINT32
, BASE_HEX
, NULL
, 0x03c00000, NULL
, HFILL
}},
6486 {&hf_radiotap_usig_eht_tb_crc_not_known
,
6487 {"CRC not known", "radiotap.u_sig.value.tb_ppdu.crc_not_known",
6488 FT_UINT32
, BASE_HEX
, NULL
, 0x03c00000, NULL
, HFILL
}},
6490 {&hf_radiotap_usig_eht_tb_tail
,
6491 {"Tail", "radiotap.u_sig.value.tb_ppdu.tail",
6492 FT_UINT32
, BASE_HEX
, NULL
, 0xfc000000, NULL
, HFILL
}},
6494 {&hf_radiotap_usig_eht_tb_tail_not_known
,
6496 "radiotap.u_sig.value.tb_ppdu.tail_not_known",
6497 FT_UINT32
, BASE_HEX
, NULL
, 0xfc000000, NULL
, HFILL
}},
6499 {&hf_radiotap_eht_known
,
6500 {"known", "radiotap.eht.known",
6501 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6503 {&hf_radiotap_eht_reserved_1
,
6505 "radiotap.eht.known.reserved_1",
6506 FT_UINT32
, BASE_HEX
, NULL
, 0x00000001, NULL
, HFILL
}},
6508 {&hf_radiotap_eht_spatial_reuse_known
,
6509 {"Spatial Reuse Known",
6510 "radiotap.eht.known.spatial_reuse_known",
6511 FT_BOOLEAN
, 32, NULL
, 0x00000002, NULL
, HFILL
}},
6513 {&hf_radiotap_eht_guard_interval_known
,
6514 {"Guard Interval Known",
6515 "radiotap.eht.known.guard_interval_known",
6516 FT_BOOLEAN
, 32, NULL
, 0x00000004, NULL
, HFILL
}},
6518 {&hf_radiotap_eht_reserved_8
,
6520 "radiotap.eht.known.reserved_8",
6521 FT_BOOLEAN
, 32, NULL
, 0x00000008, NULL
, HFILL
}},
6523 {&hf_radiotap_eht_number_ltf_symbols_known
,
6524 {"Number of LTF symbols Known",
6525 "radiotap.eht.known.number_ltf_symbols_known",
6526 FT_BOOLEAN
, 32, NULL
, 0x00000010, NULL
, HFILL
}},
6528 {&hf_radiotap_eht_ldpc_extra_symbol_segment_known
,
6529 {"LDPC Extra Symbol Segment Known",
6530 "radiotap.eht.known.ldpc_extra_symbol_segment_known",
6531 FT_BOOLEAN
, 32, NULL
, 0x00000020, NULL
, HFILL
}},
6533 {&hf_radiotap_eht_pre_fec_padding_factor_known
,
6534 {"Pre-FEC Padding Factor Known",
6535 "radiotap.eht.known.pre_fec_padding_factor_known",
6536 FT_BOOLEAN
, 32, NULL
, 0x00000040, NULL
, HFILL
}},
6538 {&hf_radiotap_eht_pe_disambiguity_known
,
6539 {"PE Disambiguity Known",
6540 "radiotap.eht.known.pe_disambiguity_known",
6541 FT_BOOLEAN
, 32, NULL
, 0x00000080, NULL
, HFILL
}},
6543 {&hf_radiotap_eht_disregard_known
,
6544 {"EHT Disregard Known",
6545 "radiotap.eht.known.eht_disregard_known",
6546 FT_BOOLEAN
, 32, NULL
, 0x00000100, NULL
, HFILL
}},
6548 {&hf_radiotap_eht_reserved1
,
6550 "radiotap.eht.known.reserved1",
6551 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
6553 {&hf_radiotap_eht_reserved_2
,
6555 "radiotap.eht.known.reserved_2",
6556 FT_UINT32
, BASE_HEX
, NULL
, 0x00001c00, NULL
, HFILL
}},
6558 {&hf_radiotap_eht_crc1_known
,
6560 "radiotap.eht.known.crc1_known",
6561 FT_BOOLEAN
, 32, NULL
, 0x00002000, NULL
, HFILL
}},
6563 {&hf_radiotap_eht_tail1_known
,
6565 "radiotap.eht.known.tail1_known",
6566 FT_BOOLEAN
, 32, NULL
, 0x00004000, NULL
, HFILL
}},
6568 {&hf_radiotap_eht_crc2_known
,
6570 "radiotap.eht.known.crc2_known",
6571 FT_BOOLEAN
, 32, NULL
, 0x00008000, NULL
, HFILL
}},
6573 {&hf_radiotap_eht_tail2_known
,
6574 {"Tail2 known", "radiotap.eht.known.tail2_known",
6575 FT_BOOLEAN
, 32, NULL
, 0x00010000, NULL
, HFILL
}},
6577 {&hf_radiotap_eht_nss_known
,
6579 "radiotap.eht.known.nss_known",
6580 FT_BOOLEAN
, 32, NULL
, 0x00020000, NULL
, HFILL
}},
6582 {&hf_radiotap_eht_beamformed_known
,
6583 {"Beamformed Known",
6584 "radiotap.eht.known.beamformed_known",
6585 FT_BOOLEAN
, 32, NULL
, 0x00040000, NULL
, HFILL
}},
6587 {&hf_radiotap_eht_number_non_ofdma_users_known
,
6588 {"Number of Non-OFDMA Users Known",
6589 "radiotap.eht.known.number_of_non_ofdma_users_known",
6590 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
6592 {&hf_radiotap_eht_user_encoding_block_crc_known
,
6593 {"User Encoding Block CRC Known",
6594 "radiotap.eht.known.user_encoding_block_crc_known",
6595 FT_BOOLEAN
, 32, NULL
, 0x00100000, NULL
, HFILL
}},
6597 {&hf_radiotap_eht_user_encoding_block_tail_known
,
6598 {"User Encoding Block Tail Known",
6599 "radiotap.eht.known.user_encoding_block_tail_known",
6600 FT_BOOLEAN
, 32, NULL
, 0x00200000, NULL
, HFILL
}},
6602 {&hf_radiotap_eht_ru_mru_size_known
,
6603 {"RU/MRU Size Known",
6604 "radiotap.eht.known.ru_mru_size_known",
6605 FT_BOOLEAN
, 32, NULL
, 0x00400000, NULL
, HFILL
}},
6607 {&hf_radiotap_eht_ru_mru_index_known
,
6608 {"RU/MRU Index Known",
6609 "radiotap.eht.known.ru_mru_index_known",
6610 FT_BOOLEAN
, 32, NULL
, 0x00800000, NULL
, HFILL
}},
6612 {&hf_radiotap_eht_tb_ru_allocation_known
,
6613 {"TB RU Allocation Known",
6614 "radiotap.eht.known.tb_ru_known",
6615 FT_BOOLEAN
, 32, NULL
, 0x01000000, NULL
, HFILL
}},
6617 {&hf_radiotap_eht_primary_80mhz_channel_pos_known
,
6618 {"Primary 80MHz Channel Position Known",
6619 "radiotap.eht.know.primary_80mhz_channel_position_known",
6620 FT_BOOLEAN
, 32, NULL
, 0x02000000, NULL
, HFILL
}},
6622 {&hf_radiotap_eht_reserved_fc
,
6624 "radiotap.eht.known.reserved_fc",
6625 FT_UINT32
, BASE_HEX
, NULL
, 0xfc000000, NULL
, HFILL
}},
6627 {&hf_radiotap_eht_data0
,
6628 {"data[0]", "radiotap.eht.data_0",
6629 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6631 {&hf_radiotap_eht_data0_reserved1
,
6633 "radiotap.eht.data_0.reserved1",
6634 FT_UINT32
, BASE_HEX
, NULL
, 0x00000007, NULL
, HFILL
}},
6636 {&hf_radiotap_eht_data0_spatial_reuse
,
6638 "radiotap.eht.data_0.spatial_reuse",
6639 FT_UINT32
, BASE_DEC
, NULL
, 0x00000078, NULL
, HFILL
}},
6641 {&hf_radiotap_eht_data0_spatial_reuse_not_known
,
6643 "radiotap.eht.data_0.spatial_reuse_not_known",
6644 FT_UINT32
, BASE_DEC
, NULL
, 0x00000078, NULL
, HFILL
}},
6646 {&hf_radiotap_eht_data0_gi
,
6648 "radiotap.eht.data_0.gi",
6649 FT_UINT32
, BASE_DEC
, VALS(he_gi_vals
), 0x00000180, NULL
, HFILL
}},
6651 {&hf_radiotap_eht_data0_gi_not_known
,
6653 "radiotap.eht.data_0.gi_not_known",
6654 FT_UINT32
, BASE_DEC
, NULL
, 0x00000180, NULL
, HFILL
}},
6656 {&hf_radiotap_eht_data0_ltf_symbol_size
,
6658 "radiotap.eht.data_0.ltf_symbol_size",
6659 FT_UINT32
, BASE_DEC
, VALS(he_ltf_symbol_size_vals
), 0x00000600, NULL
, HFILL
}},
6661 {&hf_radiotap_eht_data0_number_ltf_symbols
,
6662 {"Number of LTF symbols",
6663 "radiotap.eht.data_0.number_ltf_symbols",
6664 FT_UINT32
, BASE_DEC
, VALS(he_num_ltf_symbols_vals
), 0x00003800, NULL
, HFILL
}},
6666 {&hf_radiotap_eht_data0_number_ltf_symbols_not_known
,
6667 {"Number of LTF symbols",
6668 "radiotap.eht.data_0.number_ltf_symbols_not_known",
6669 FT_UINT32
, BASE_DEC
, NULL
, 0x00003800, NULL
, HFILL
}},
6671 {&hf_radiotap_eht_data0_ldpc_extra_symbol_segment
,
6672 {"LDPC extra symbol segment",
6673 "radiotap.eht.data_0.ldpc_extra_symbol_segment",
6674 FT_BOOLEAN
, 32, NULL
, 0x00004000, NULL
, HFILL
}},
6676 {&hf_radiotap_eht_data0_ldpc_extra_symbol_segment_not_known
,
6677 {"LDPC extra symbol segment",
6678 "radiotap.eht.data_0.ldpc_extra_symbol_segment_not_known",
6679 FT_BOOLEAN
, 32, NULL
, 0x00004000, NULL
, HFILL
}},
6681 {&hf_radiotap_eht_data0_pre_fec_padding_factor
,
6682 {"Pre-FEC padding factor",
6683 "radiotap.eht.data_0.pre_fec_padding_factor",
6684 FT_UINT32
, BASE_DEC
, NULL
, 0x00018000, NULL
, HFILL
}},
6686 {&hf_radiotap_eht_data0_pre_fec_padding_factor_not_known
,
6687 {"Pre-FEC padding factor",
6688 "radiotap.eht.data_0.pre_fec_padding_factor_not_known",
6689 FT_UINT32
, BASE_DEC
, NULL
, 0x00018000, NULL
, HFILL
}},
6691 {&hf_radiotap_eht_data0_pe_disambiguity
,
6693 "radiotap.eht.data_0.pe_disambiguity",
6694 FT_UINT32
, BASE_DEC
, NULL
, 0x00020000, NULL
, HFILL
}},
6696 {&hf_radiotap_eht_data0_pe_disambiguity_not_known
,
6698 "radiotap.eht.data_0.pe_disambiguity_not_known",
6699 FT_UINT32
, BASE_DEC
, NULL
, 0x00020000, NULL
, HFILL
}},
6701 {&hf_radiotap_eht_data0_disregard
,
6703 "radiotap.eht.data_0.disregard",
6704 FT_UINT32
, BASE_DEC
, NULL
, 0x003C0000, NULL
, HFILL
}},
6706 {&hf_radiotap_eht_data0_disregard_not_known
,
6708 "radiotap.eht.data_0.disregard_not_known",
6709 FT_UINT32
, BASE_DEC
, NULL
, 0x003C0000, NULL
, HFILL
}},
6711 {&hf_radiotap_eht_data0_crc1
,
6713 "radiotap.eht.data_0.crc1",
6714 FT_UINT32
, BASE_DEC
, NULL
, 0x03C00000, NULL
, HFILL
}},
6716 {&hf_radiotap_eht_data0_crc1_not_known
,
6718 "radiotap.eht.data_0.crc1_not_known",
6719 FT_UINT32
, BASE_DEC
, NULL
, 0x03C00000, NULL
, HFILL
}},
6721 {&hf_radiotap_eht_data0_tail1
,
6723 "radiotap.eht.data_0.tail1",
6724 FT_UINT32
, BASE_DEC
, NULL
, 0xFC000000, NULL
, HFILL
}},
6726 {&hf_radiotap_eht_data0_tail1_not_known
,
6728 "radiotap.eht.data_0.tail1_not_known",
6729 FT_UINT32
, BASE_DEC
, NULL
, 0xFC000000, NULL
, HFILL
}},
6731 {&hf_radiotap_eht_data1
,
6732 {"data[1]", "radiotap.eht.data_1",
6733 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6735 {&hf_radiotap_eht_data1_ru_mru_size
,
6737 "radiotap.eht.data_1.ru_mru_size",
6738 FT_UINT32
, BASE_DEC
, VALS(eht_data_ru_mru_size_vals
), 0x0000001F, NULL
, HFILL
}},
6740 {&hf_radiotap_eht_data1_ru_mru_size_not_known
,
6742 "radiotap.eht.data_1.ru_mru_size_not_known",
6743 FT_UINT32
, BASE_DEC
, NULL
, 0x0000001F, NULL
, HFILL
}},
6745 {&hf_radiotap_eht_data1_ru_mru_index
,
6747 "radiotap.eht.data_1.ru_mru_index",
6748 FT_UINT32
, BASE_DEC
, NULL
, 0x00001FE0, NULL
, HFILL
}},
6750 {&hf_radiotap_eht_data1_ru_mru_index_not_known
,
6752 "radiotap.eht.data_1.ru_mru_index_not_known",
6753 FT_UINT32
, BASE_DEC
, NULL
, 0x00001FE0, NULL
, HFILL
}},
6755 {&hf_radiotap_eht_data1_ru_alloc_c1_1_1
,
6756 {"Content Channel 1 RU Allocation 1::1",
6757 "radiotap.eht.data_1.content_channel_1_ru_allocation_1_1",
6758 FT_UINT32
, BASE_HEX
, NULL
, 0x003FE000, NULL
, HFILL
}},
6760 {&hf_radiotap_eht_data1_ru_alloc_c1_1_1_not_known
,
6761 {"Content Channel 1 RU Allocation 1::1",
6762 "radiotap.eht.data_1.content_channel_1_ru_allocation_1_1_not_known",
6763 FT_UINT32
, BASE_HEX
, NULL
, 0x003FE000, NULL
, HFILL
}},
6765 {&hf_radiotap_eht_data1_ru_alloc_c1_1_1_known
,
6766 {"Content Channel 1 RU Allocation 1::1 known",
6767 "radiotap.eht.data_1.content_channel_1_ru_allocation_1_1_known",
6768 FT_BOOLEAN
, 32, NULL
, 0x00400000, NULL
, HFILL
}},
6770 {&hf_radiotap_eht_data1_reserved
,
6772 "radiotap.eht.data_1.reserved",
6773 FT_UINT32
, BASE_HEX
, NULL
, 0x3f000000, NULL
, HFILL
}},
6775 {&hf_radiotap_eht_data1_primary_80_mhz_chan_pos
,
6776 {"Primary 80 MHz Channel Position",
6777 "radiotap.eht.data_1.primary_80_mhz_channel_position",
6778 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6780 {&hf_radiotap_eht_data1_primary_80_mhz_chan_pos_not_known
,
6781 {"Primary 80 MHz Channel Position",
6782 "radiotap.eht.data_1.primary_80_mhz_channel_position_not_known",
6783 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6785 {&hf_radiotap_eht_data2
,
6786 {"data[2]", "radiotap.eht.data_2",
6787 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6789 {&hf_radiotap_eht_data2_ru_alloc_c2_1_1
,
6790 {"Content Channel 2 RU Allocation 1::1",
6791 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_1",
6792 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6794 {&hf_radiotap_eht_data2_ru_alloc_c2_1_1_not_known
,
6795 {"Content Channel 2 RU Allocation 1::1",
6796 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_1_not_known",
6797 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6799 {&hf_radiotap_eht_data2_ru_alloc_c2_1_1_known
,
6800 {"Content Channel 2 RU Allocation 1::1 known",
6801 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_1_known",
6802 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
6804 {&hf_radiotap_eht_data2_ru_alloc_c1_1_2
,
6805 {"Content Channel 1 RU Allocation 1::2",
6806 "radiotap.eht.data_2.content_channel_1_ru_allocation_1_2",
6807 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6809 {&hf_radiotap_eht_data2_ru_alloc_c1_1_2_not_known
,
6810 {"Content Channel 1 RU Allocation 1::2",
6811 "radiotap.eht.data_2.content_channel_1_ru_allocation_1_2_not_known",
6812 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6814 {&hf_radiotap_eht_data2_ru_alloc_c1_1_2_known
,
6815 {"Content Channel 1 RU Allocation 1::2 known",
6816 "radiotap.eht.data_2.content_channel_1_ru_allocation_1_2_known",
6817 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
6819 {&hf_radiotap_eht_data2_ru_alloc_c2_1_2
,
6820 {"Content Channel 2 RU Allocation 1::2",
6821 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_2",
6822 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6824 {&hf_radiotap_eht_data2_ru_alloc_c2_1_2_not_known
,
6825 {"Content Channel 2 RU Allocation 1::2",
6826 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_2_not_known",
6827 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6829 {&hf_radiotap_eht_data2_ru_alloc_c2_1_2_known
,
6830 {"Content Channel 2 RU Allocation 1::2 known",
6831 "radiotap.eht.data_2.content_channel_2_ru_allocation_1_2_known",
6832 FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
6834 {&hf_radiotap_eht_data2_reserved
,
6835 {"Reserved", "radiotap.eht.data_2.reserved",
6836 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6838 {&hf_radiotap_eht_data3
,
6839 {"data[3]", "radiotap.eht.data_3",
6840 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6842 {&hf_radiotap_eht_data3_ru_alloc_c1_2_1
,
6843 {"Content Channel 1 RU Allocation 2::1",
6844 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_1",
6845 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6847 {&hf_radiotap_eht_data3_ru_alloc_c1_2_1_not_known
,
6848 {"Content Channel 1 RU Allocation 2::1",
6849 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_1_not_known",
6850 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6852 {&hf_radiotap_eht_data3_ru_alloc_c1_2_1_known
,
6853 {"Content Channel 1 RU Allocation 2::1 known",
6854 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_1_known",
6855 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
6857 {&hf_radiotap_eht_data3_ru_alloc_c2_2_1
,
6858 {"Content Channel 2 RU Allocation 2::1",
6859 "radiotap.eht.data_3.content_channel_2_ru_allocation_2_1",
6860 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6862 {&hf_radiotap_eht_data3_ru_alloc_c2_2_1_not_known
,
6863 {"Content Channel 2 RU Allocation 2::1",
6864 "radiotap.eht.data_3.content_channel_2_ru_allocation_2_1_not_known",
6865 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6867 {&hf_radiotap_eht_data3_ru_alloc_c2_2_1_known
,
6868 {"Content Channel 2 RU Allocation 2::1 known",
6869 "radiotap.eht.data_3.content_channel_2_ru_allocation_2_1_known",
6870 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
6872 {&hf_radiotap_eht_data3_ru_alloc_c1_2_2
,
6873 {"Content Channel 1 RU Allocation 2::2",
6874 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_2",
6875 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6877 {&hf_radiotap_eht_data3_ru_alloc_c1_2_2_not_known
,
6878 {"Content Channel 1 RU Allocation 2::2",
6879 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_2_not_known",
6880 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6882 {&hf_radiotap_eht_data3_ru_alloc_c1_2_2_known
,
6883 {"Content Channel 1 RU Allocation 2::2 known",
6884 "radiotap.eht.data_3.content_channel_1_ru_allocation_2_2_known",
6885 FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
6887 {&hf_radiotap_eht_data3_reserved
,
6888 {"Reserved", "radiotap.eht.data_3.reserved",
6889 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6891 {&hf_radiotap_eht_data4
,
6892 {"data[4]", "radiotap.eht.data_4",
6893 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6895 {&hf_radiotap_eht_data4_ru_alloc_c2_2_2
,
6896 {"Content Channel 2 RU Allocation 2::2",
6897 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_2",
6898 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6900 {&hf_radiotap_eht_data4_ru_alloc_c2_2_2_not_known
,
6901 {"Content Channel 2 RU Allocation 2::2",
6902 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_2_not_known",
6903 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6905 {&hf_radiotap_eht_data4_ru_alloc_c2_2_2_known
,
6906 {"Content Channel 2 RU Allocation 2::2 known",
6907 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_2_known",
6908 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
6910 {&hf_radiotap_eht_data4_ru_alloc_c1_2_3
,
6911 {"Content Channel 1 RU Allocation 2::3",
6912 "radiotap.eht.data_4.content_channel_1_ru_allocation_2_3",
6913 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6915 {&hf_radiotap_eht_data4_ru_alloc_c1_2_3_not_known
,
6916 {"Content Channel 1 RU Allocation 2::3",
6917 "radiotap.eht.data_4.content_channel_1_ru_allocation_2_3_not_known",
6918 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6920 {&hf_radiotap_eht_data4_ru_alloc_c1_2_3_known
,
6921 {"Content Channel 1 RU Allocation 2::3 known",
6922 "radiotap.eht.data_4.content_channel_1_ru_allocation_2_3_known",
6923 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
6925 {&hf_radiotap_eht_data4_ru_alloc_c2_2_3
,
6926 {"Content Channel 2 RU Allocation 2::3",
6927 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_3",
6928 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6930 {&hf_radiotap_eht_data4_ru_alloc_c2_2_3_not_known
,
6931 {"Content Channel 2 RU Allocation 2::3",
6932 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_3_not_known",
6933 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6935 {&hf_radiotap_eht_data4_ru_alloc_c2_2_3_known
,
6936 {"Content Channel 2 RU Allocation 2::3 known",
6937 "radiotap.eht.data_4.content_channel_2_ru_allocation_2_3_known",
6938 FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
6940 {&hf_radiotap_eht_data4_reserved
,
6941 {"Reserved", "radiotap.eht.data_4.reserved",
6942 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6944 {&hf_radiotap_eht_data5
,
6945 {"data[5]", "radiotap.eht.data_5",
6946 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6948 {&hf_radiotap_eht_data5_ru_alloc_c1_2_4
,
6949 {"Content Channel 1 RU Allocation 2::4",
6950 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_4",
6951 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6953 {&hf_radiotap_eht_data5_ru_alloc_c1_2_4_not_known
,
6954 {"Content Channel 1 RU Allocation 2::4",
6955 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_4_not_known",
6956 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
6958 {&hf_radiotap_eht_data5_ru_alloc_c1_2_4_known
,
6959 {"Content Channel 1 RU Allocation 2::4 known",
6960 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_4_known",
6961 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
6963 {&hf_radiotap_eht_data5_ru_alloc_c2_2_4
,
6964 {"Content Channel 2 RU Allocation 2::4",
6965 "radiotap.eht.data_5.content_channel_2_ru_allocation_2_4",
6966 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6968 {&hf_radiotap_eht_data5_ru_alloc_c2_2_4_not_known
,
6969 {"Content Channel 2 RU Allocation 2::4",
6970 "radiotap.eht.data_5.content_channel_2_ru_allocation_2_4_not_known",
6971 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
6973 {&hf_radiotap_eht_data5_ru_alloc_c2_2_4_known
,
6974 {"Content Channel 2 RU Allocation 2::4 known",
6975 "radiotap.eht.data_5.content_channel_2_ru_allocation_2_4_known",
6976 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
6978 {&hf_radiotap_eht_data5_ru_alloc_c1_2_5
,
6979 {"Content Channel 1 RU Allocation 2::5",
6980 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_5",
6981 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6983 {&hf_radiotap_eht_data5_ru_alloc_c1_2_5_not_known
,
6984 {"Content Channel 1 RU Allocation 2::5",
6985 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_5_not_known",
6986 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
6988 {&hf_radiotap_eht_data5_ru_alloc_c1_2_5_known
,
6989 {"Content Channel 1 RU Allocation 2::5 known",
6990 "radiotap.eht.data_5.content_channel_1_ru_allocation_2_5_known",
6991 FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
6993 {&hf_radiotap_eht_data5_reserved
,
6994 {"Reserved", "radiotap.eht.data_5.reserved",
6995 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
6997 {&hf_radiotap_eht_data6
,
6998 {"data[6]", "radiotap.eht.data_6",
6999 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
7001 {&hf_radiotap_eht_data6_ru_alloc_c2_2_5
,
7002 {"Content Channel 2 RU Allocation 2::5",
7003 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_5",
7004 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
7006 {&hf_radiotap_eht_data6_ru_alloc_c2_2_5_not_known
,
7007 {"Content Channel 2 RU Allocation 2::5",
7008 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_5_not_known",
7009 FT_UINT32
, BASE_HEX
, NULL
, 0x000001ff, NULL
, HFILL
}},
7011 {&hf_radiotap_eht_data6_ru_alloc_c2_2_5_known
,
7012 {"Content Channel 2 RU Allocation 2::5 known",
7013 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_5_known",
7014 FT_BOOLEAN
, 32, NULL
, 0x00000200, NULL
, HFILL
}},
7016 {&hf_radiotap_eht_data6_ru_alloc_c1_2_6
,
7017 {"Content Channel 1 RU Allocation 2::6",
7018 "radiotap.eht.data_6.content_channel_1_ru_allocation_2_6",
7019 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
7021 {&hf_radiotap_eht_data6_ru_alloc_c1_2_6_not_known
,
7022 {"Content Channel 1 RU Allocation 2::6",
7023 "radiotap.eht.data_6.content_channel_1_ru_allocation_2_6_not_known",
7024 FT_UINT32
, BASE_HEX
, NULL
, 0x0007fc00, NULL
, HFILL
}},
7026 {&hf_radiotap_eht_data6_ru_alloc_c1_2_6_known
,
7027 {"Content Channel 1 RU Allocation 2::6 known",
7028 "radiotap.eht.data_6.content_channel_1_ru_allocation_2_6_known",
7029 FT_BOOLEAN
, 32, NULL
, 0x00080000, NULL
, HFILL
}},
7031 {&hf_radiotap_eht_data6_ru_alloc_c2_2_6
,
7032 {"Content Channel 2 RU Allocation 2::6",
7033 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_6",
7034 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
7036 {&hf_radiotap_eht_data6_ru_alloc_c2_2_6_not_known
,
7037 {"Content Channel 2 RU Allocation 2::6",
7038 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_6_not_known",
7039 FT_UINT32
, BASE_HEX
, NULL
, 0x1ff00000, NULL
, HFILL
}},
7041 {&hf_radiotap_eht_data6_ru_alloc_c2_2_6_known
,
7042 {"Content Channel 2 RU Allocation 2::6 known",
7043 "radiotap.eht.data_6.content_channel_2_ru_allocation_2_6_known",
7044 FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
7046 {&hf_radiotap_eht_data6_reserved
,
7047 {"Reserved", "radiotap.eht.data_6.reserved",
7048 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
7050 {&hf_radiotap_eht_data7
,
7051 {"data[7]", "radiotap.eht.data_7",
7052 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
7054 {&hf_radiotap_eht_data7_crc2
,
7055 {"CRC2 (OFDMA Only: For RU Allocation-2)",
7056 "radiotap.eht.data_7.crc2",
7057 FT_UINT32
, BASE_HEX
, NULL
, 0x0000000f, NULL
, HFILL
}},
7059 {&hf_radiotap_eht_data7_tail2
,
7060 {"Tail2 (OFDMA Only: after RU Allocation-2)",
7061 "radiotap.eht.data_7.tail2",
7062 FT_UINT32
, BASE_HEX
, NULL
, 0x000003f0, NULL
, HFILL
}},
7064 {&hf_radiotap_eht_data7_rsvd
,
7065 {"reserved", "radiotap.eht.data_7.reserved1",
7066 FT_UINT32
, BASE_HEX
, NULL
, 0x00000c00, NULL
, HFILL
}},
7068 {&hf_radiotap_eht_data7_nss
,
7069 {"NSS (EHT sounding)", "radiotap.eht.data_7.nss_eht_sounding",
7070 FT_UINT32
, BASE_HEX
, NULL
, 0x0000f000, NULL
, HFILL
}},
7072 {&hf_radiotap_eht_data7_beamformed
,
7073 {"Beamformed (EHT sounding)",
7074 "radiotap.eht.data_7.beamformed_eht_sounding",
7075 FT_BOOLEAN
, 32, NULL
, 0x00010000, NULL
, HFILL
}},
7077 {&hf_radiotap_eht_data7_number_non_ofdma_users
,
7078 {"Number Of Non-OFDMA Users",
7079 "radiotap.eht.data_7.number_of_non_ofdma_users",
7080 FT_UINT32
, BASE_DEC
, NULL
, 0x000e0000, NULL
, HFILL
}},
7082 {&hf_radiotap_eht_data7_number_non_ofdma_users_not_known
,
7083 {"Number Of Non-OFDMA Users",
7084 "radiotap.eht.data_7.number_of_non_ofdma_users_not_known",
7085 FT_UINT32
, BASE_DEC
, NULL
, 0x000e0000, NULL
, HFILL
}},
7087 {&hf_radiotap_eht_data7_user_encode_crc
,
7088 {"User Encoding Block CRC",
7089 "radiotap.eht.data_7.user_encoding_block_crc",
7090 FT_UINT32
, BASE_HEX
, NULL
, 0x00f00000, NULL
, HFILL
}},
7092 {&hf_radiotap_eht_data7_user_encode_tail
,
7093 {"User Encoding Block Tail",
7094 "radiotap.eht.data_7.user_encoding_block_tail",
7095 FT_UINT32
, BASE_HEX
, NULL
, 0x3f000000, NULL
, HFILL
}},
7097 {&hf_radiotap_eht_data7_rsvd2
,
7098 {"Reserved", "radiotap.eht.data_7.reserved2",
7099 FT_UINT32
, BASE_HEX
, NULL
, 0xC0000000, NULL
, HFILL
}},
7101 {&hf_radiotap_eht_data8
,
7102 {"data[8]", "radiotap.eht.data_8",
7103 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
7105 {&hf_radiotap_eht_data8_ru_alloc_ps_160
,
7106 {"RU Allocation (TB Format): PS 160",
7107 "radiotap.eht.data_8.ru_allocation_tb_format_ps_160",
7108 FT_UINT32
, BASE_HEX
, NULL
, 0x00000001, NULL
, HFILL
}},
7110 {&hf_radiotap_eht_data8_ru_alloc_b0
,
7111 {"RU Allocation (TB Format): B0",
7112 "radiotap.eht.data_8.ru_allocation_tb_format_b0",
7113 FT_UINT32
, BASE_HEX
, NULL
, 0x00000002, NULL
, HFILL
}},
7115 {&hf_radiotap_eht_data8_ru_alloc_b7_b1
,
7116 {"RU Allocation (TB Format): B7-B1",
7117 "radiotap.eht.data_8.ru_allocation_tb_format_b7_b1",
7118 FT_UINT32
, BASE_HEX
, NULL
, 0x000001fc, NULL
, HFILL
}},
7120 {&hf_radiotap_eht_data8_rsvd
,
7122 "radiotap.eht.data_8.reserved1",
7123 FT_UINT32
, BASE_HEX
, NULL
, 0xfffffe00, NULL
, HFILL
}},
7125 {&hf_radiotap_eht_user_info
,
7126 {"user_info", "radiotap.eht.user_info",
7127 FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
7129 {&hf_radiotap_eht_ui_sta_id_known
,
7130 {"STA-ID known", "radiotap.eht.user_info.sta_id_known",
7131 FT_BOOLEAN
, 32, NULL
, 0x00000001, NULL
, HFILL
}},
7133 {&hf_radiotap_eht_ui_mcs_known
,
7134 {"MCS known", "radiotap.eht.user_info.mcs_known",
7135 FT_BOOLEAN
, 32, NULL
, 0x00000002, NULL
, HFILL
}},
7137 {&hf_radiotap_eht_ui_coding_known
,
7138 {"Coding known", "radiotap.eht.user_info.coding_known",
7139 FT_BOOLEAN
, 32, NULL
, 0x00000004, NULL
, HFILL
}},
7141 {&hf_radiotap_eht_ui_rsvd_known
,
7142 {"Reserved known", "radiotap.eht.user_info.reserved_known",
7143 FT_BOOLEAN
, 32, NULL
, 0x00000008, NULL
, HFILL
}},
7145 {&hf_radiotap_eht_ui_nss_known
,
7146 {"NSS known", "radiotap.eht.user_info.nss_known",
7147 FT_BOOLEAN
, 32, NULL
, 0x00000010, NULL
, HFILL
}},
7149 {&hf_radiotap_eht_ui_beamforming_known
,
7150 {"Beamforming known",
7151 "radiotap.eht.user_info.beamforming_known",
7152 FT_BOOLEAN
, 32, NULL
, 0x00000020, NULL
, HFILL
}},
7154 {&hf_radiotap_eht_ui_spatial_config_known
,
7155 {"Spatial Configuration known",
7156 "radiotap.eht.user_info.spatial_configuration_known",
7157 FT_BOOLEAN
, 32, NULL
, 0x00000040, NULL
, HFILL
}},
7159 {&hf_radiotap_eht_ui_data_captured
,
7160 {"Data captured for this user",
7161 "radiotap.eht.user_info.data_captured_for_this_user",
7162 FT_BOOLEAN
, 32, NULL
, 0x00000080, NULL
, HFILL
}},
7164 {&hf_radiotap_eht_ui_sta_id
,
7165 {"STA-ID", "radiotap.eht.user_info.sta_id",
7166 FT_UINT32
, BASE_HEX
, NULL
, 0x0007ff00, NULL
, HFILL
}},
7168 {&hf_radiotap_eht_ui_sta_id_not_known
,
7169 {"STA-ID", "radiotap.eht.user_info.sta_id_not_known",
7170 FT_UINT32
, BASE_HEX
, NULL
, 0x0007ff00, NULL
, HFILL
}},
7172 {&hf_radiotap_eht_ui_coding
,
7173 {"Coding", "radiotap.eht.user_info.coding",
7174 FT_UINT32
, BASE_HEX
, VALS(he_coding_vals
), 0x00080000, NULL
, HFILL
}},
7176 {&hf_radiotap_eht_ui_coding_not_known
,
7177 {"Coding", "radiotap.eht.user_info.coding_not_known",
7178 FT_UINT32
, BASE_HEX
, NULL
, 0x00080000, NULL
, HFILL
}},
7180 {&hf_radiotap_eht_ui_mcs
,
7181 {"MCS", "radiotap.eht.user_info.mcs",
7182 FT_UINT32
, BASE_HEX
, NULL
, 0x00f00000, NULL
, HFILL
}},
7184 {&hf_radiotap_eht_ui_mcs_not_known
,
7185 {"MCS", "radiotap.eht.user_info.mcs_not_known",
7186 FT_UINT32
, BASE_HEX
, NULL
, 0x00f00000, NULL
, HFILL
}},
7188 {&hf_radiotap_eht_ui_nss
,
7189 {"NSS", "radiotap.eht.user_info.nss",
7190 FT_UINT32
, BASE_HEX
, NULL
, 0x0f000000, NULL
, HFILL
}},
7192 {&hf_radiotap_eht_ui_nss_not_known
,
7193 {"NSS", "radiotap.eht.user_info.nss_not_known",
7194 FT_UINT32
, BASE_HEX
, NULL
, 0x0f000000, NULL
, HFILL
}},
7196 {&hf_radiotap_eht_ui_reserved
,
7197 {"Reserved", "radiotap.eht.user_info.reserved",
7198 FT_UINT32
, BASE_HEX
, NULL
, 0x10000000, NULL
, HFILL
}},
7200 {&hf_radiotap_eht_ui_reserved_not_known
,
7201 {"Reserved", "radiotap.eht.user_info.reserved_not_known",
7202 FT_UINT32
, BASE_HEX
, NULL
, 0x10000000, NULL
, HFILL
}},
7204 {&hf_radiotap_eht_ui_beamforming
,
7205 {"Beamforming", "radiotap.eht.user_info.beamforming",
7206 FT_UINT32
, BASE_HEX
, NULL
, 0x20000000, NULL
, HFILL
}},
7208 {&hf_radiotap_eht_ui_beamforming_not_known
,
7209 {"Beamforming", "radiotap.eht.user_info.beamforming_not_known",
7210 FT_UINT32
, BASE_HEX
, NULL
, 0x20000000, NULL
, HFILL
}},
7212 {&hf_radiotap_eht_ui_spatial_config
,
7213 {"Spatial Configuration",
7214 "radiotap.eht.user_info.spatial_configuration",
7215 FT_UINT32
, BASE_HEX
, NULL
, 0x3f000000, NULL
, HFILL
}},
7217 {&hf_radiotap_eht_ui_rsvd1
,
7218 {"Reserved", "radiotap.eht.user_info.reserved1",
7219 FT_UINT32
, BASE_HEX
, NULL
, 0xc0000000, NULL
, HFILL
}},
7221 {&hf_radiotap_s1g_known
,
7222 {"Known", "radiotap.s1g.known",
7223 FT_UINT16
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
7225 {&hf_radiotap_s1g_s1g_ppdu_format_known
,
7226 {"S1G PPDU Format Known", "radiotap.s1g.s1g_ppdu_format_known",
7227 FT_BOOLEAN
, 16, NULL
,
7228 IEEE80211_RADIOTAP_TLV_S1G_S1G_PPDU_FORMAT_KNOWN
, NULL
, HFILL
}},
7230 {&hf_radiotap_s1g_response_indication_known
,
7231 {"Response Indication Known", "radiotap.s1g.response_indication_known",
7232 FT_BOOLEAN
, 16, NULL
,
7233 IEEE80211_RADIOTAP_TLV_S1G_RESPONSE_INDICATION_KNOWN
, NULL
, HFILL
}},
7235 {&hf_radiotap_s1g_guard_interval_known
,
7236 {"Guard Interval Known", "radiotap.s1g.guard_interval_known",
7237 FT_BOOLEAN
, 16, NULL
,
7238 IEEE80211_RADIOTAP_TLV_S1G_GUARD_INTERVAL_KNOWN
, NULL
, HFILL
}},
7240 {&hf_radiotap_s1g_nss_known
,
7241 {"NSS Known", "radiotap.s1g.nss_known",
7242 FT_BOOLEAN
, 16, NULL
,
7243 IEEE80211_RADIOTAP_TLV_S1G_NSS_KNOWN
, NULL
, HFILL
}},
7245 {&hf_radiotap_s1g_bandwidth_known
,
7246 {"Bandwidth Known", "radiotap.s1g.bandwidth_known",
7247 FT_BOOLEAN
, 16, NULL
,
7248 IEEE80211_RADIOTAP_TLV_S1G_BANDWIDTH_KNOWN
, NULL
, HFILL
}},
7250 {&hf_radiotap_s1g_mcs_known
,
7251 {"MCS Known", "radiotap.s1g.mcs_known",
7252 FT_BOOLEAN
, 16, NULL
,
7253 IEEE80211_RADIOTAP_TLV_S1G_MCS_KNOWN
, NULL
, HFILL
}},
7255 {&hf_radiotap_s1g_color_known
,
7256 {"Color Known", "radiotap.s1g.color_known",
7257 FT_BOOLEAN
, 16, NULL
,
7258 IEEE80211_RADIOTAP_TLV_S1G_COLOR_KNOWN
, NULL
, HFILL
}},
7260 {&hf_radiotap_s1g_uplink_indication_known
,
7261 {"Uplink Indication Known",
7262 "radiotap.s1g.uplink_indication_known",
7263 FT_BOOLEAN
, 16, NULL
,
7264 IEEE80211_RADIOTAP_TLV_S1G_UPLINK_INDICATION_KNOWN
,
7267 {&hf_radiotap_s1g_reserved_1
,
7268 {"Reserved 1", "radiotap.s1g.reserved_1",
7269 FT_UINT16
, BASE_HEX
, NULL
,
7270 IEEE80211_RADIOTAP_TLV_S1G_RESERVED_1
, NULL
, HFILL
}},
7272 {&hf_radiotap_s1g_data_1
,
7273 {"Data1", "radiotap.s1g.data_1",
7274 FT_UINT16
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
7276 {&hf_radiotap_s1g_s1g_ppdu_format
,
7277 {"S1G PPDU Format", "radiotap.s1g.s1g_ppdu_format",
7278 FT_UINT16
, BASE_DEC
, VALS(s1g_ppdu_format
),
7279 IEEE80211_RADIOTAP_TLV_S1G_S1G_PPDU_FORMAT
, NULL
, HFILL
}},
7281 {&hf_radiotap_s1g_response_indication
,
7282 {"Response Indication", "radiotap.s1g.response_indication",
7283 FT_UINT16
, BASE_DEC
, VALS(s1g_response_indication
),
7284 IEEE80211_RADIOTAP_TLV_S1G_RESPONSE_INDICATION
, NULL
, HFILL
}},
7286 {&hf_radiotap_s1g_reserved_2
,
7287 {"Reserved 2", "radiotap.s1g.reserved_2",
7288 FT_UINT16
, BASE_HEX
, NULL
,
7289 IEEE80211_RADIOTAP_TLV_S1G_RESERVED_2
, NULL
, HFILL
}},
7291 {&hf_radiotap_s1g_guard_interval
,
7292 {"Guard Interval", "radiotap.s1g.guard_interval",
7293 FT_UINT16
, BASE_DEC
, VALS(s1g_guard_interval
),
7294 IEEE80211_RADIOTAP_TLV_S1G_GUARD_INTERVAL
, NULL
, HFILL
}},
7296 {&hf_radiotap_s1g_nss
,
7297 {"NSS", "radiotap.s1g.nss",
7298 FT_UINT16
, BASE_DEC
, VALS(s1g_nss
),
7299 IEEE80211_RADIOTAP_TLV_S1G_NSS
, NULL
, HFILL
}},
7301 {&hf_radiotap_s1g_bandwidth
,
7302 {"Bandwidth", "radiotap.s1g.bandwidth",
7303 FT_UINT16
, BASE_DEC
, VALS(s1g_bandwidth
),
7304 IEEE80211_RADIOTAP_TLV_S1G_BANDWIDTH
, NULL
, HFILL
}},
7306 {&hf_radiotap_s1g_mcs
,
7307 {"MCS", "radiotap.s1g.mcs",
7308 FT_UINT16
, BASE_DEC
, VALS(s1g_mcs
),
7309 IEEE80211_RADIOTAP_TLV_S1G_MCS
, NULL
, HFILL
}},
7311 {&hf_radiotap_s1g_data_2
,
7312 {"Data2", "radiotap.s1g.data_2",
7313 FT_UINT16
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
7315 {&hf_radiotap_s1g_color
,
7316 {"Color", "radiotap.s1g.color",
7317 FT_UINT16
, BASE_DEC
, VALS(s1g_color
),
7318 IEEE80211_RADIOTAP_TLV_S1G_COLOR
, NULL
, HFILL
}},
7320 {&hf_radiotap_s1g_uplink_indication
,
7321 {"Uplink Indication", "radiotap.s1g.uplink_indication",
7322 FT_BOOLEAN
, 16, NULL
,
7323 IEEE80211_RADIOTAP_TLV_S1G_UPLINK_INDICATION
, NULL
, HFILL
}},
7325 {&hf_radiotap_s1g_reserved_3
,
7326 {"Reserved 3", "radiotap.s1g.reserved_3",
7327 FT_UINT16
, BASE_HEX
, NULL
,
7328 IEEE80211_RADIOTAP_TLV_S1G_RESERVED_3
, NULL
, HFILL
}},
7330 {&hf_radiotap_s1g_rssi
,
7331 {"RSSI", "radiotap.s1g.rssi",
7332 FT_INT16
, BASE_DEC
, NULL
,
7333 IEEE80211_RADIOTAP_TLV_S1G_RSSI
, NULL
, HFILL
}},
7335 static int *ett
[] = {
7338 &ett_radiotap_present
,
7339 &ett_radiotap_present_word
,
7340 &ett_radiotap_flags
,
7341 &ett_radiotap_rxflags
,
7342 &ett_radiotap_txflags
,
7343 &ett_radiotap_channel_flags
,
7344 &ett_radiotap_xchannel_flags
,
7345 &ett_radiotap_vendor
,
7347 &ett_radiotap_mcs_known
,
7348 &ett_radiotap_ampdu
,
7349 &ett_radiotap_ampdu_flags
,
7351 &ett_radiotap_vht_known
,
7352 &ett_radiotap_vht_user
,
7353 &ett_radiotap_timestamp
,
7354 &ett_radiotap_timestamp_flags
,
7355 &ett_radiotap_he_info
,
7356 &ett_radiotap_he_info_data_1
,
7357 &ett_radiotap_he_info_data_2
,
7358 &ett_radiotap_he_info_data_3
,
7359 &ett_radiotap_he_info_data_4
,
7360 &ett_radiotap_he_info_data_5
,
7361 &ett_radiotap_he_info_data_6
,
7362 &ett_radiotap_he_mu_info
,
7363 &ett_radiotap_he_mu_info_flags_1
,
7364 &ett_radiotap_he_mu_info_flags_2
,
7365 &ett_radiotap_he_mu_chan_rus
,
7366 &ett_radiotap_0_length_psdu
,
7367 &ett_radiotap_l_sig
,
7368 &ett_radiotap_l_sig_data_1
,
7369 &ett_radiotap_l_sig_data_2
,
7370 &ett_radiotap_u_sig
,
7371 &ett_radiotap_u_sig_common
,
7372 &ett_radiotap_u_sig_value
,
7374 &ett_radiotap_eht_known
,
7375 &ett_radiotap_eht_data
,
7376 &ett_radiotap_eht_user_info
,
7377 &ett_radiotap_eht_user_info_i
,
7379 &ett_radiotap_s1g_known
,
7380 &ett_radiotap_s1g_data_1
,
7381 &ett_radiotap_s1g_data_2
,
7382 &ett_radiotap_unknown_tlv
,
7384 static ei_register_info ei
[] = {
7385 { &ei_radiotap_invalid_header_length
, { "radiotap.length.invalid", PI_MALFORMED
, PI_ERROR
, "The radiotap header length is less than 8 bytes", EXPFILL
}},
7386 { &ei_radiotap_present
, { "radiotap.present.radiotap_and_vendor", PI_MALFORMED
, PI_ERROR
, "Both radiotap and vendor namespace specified in bitmask word", EXPFILL
}},
7387 { &ei_radiotap_data_past_header
, { "radiotap.data_past_header", PI_MALFORMED
, PI_ERROR
, "Radiotap data goes past the end of the radiotap header", EXPFILL
}},
7388 { &ei_radiotap_invalid_data_rate
, { "radiotap.vht.datarate.invalid", PI_PROTOCOL
, PI_WARN
, "Data rate invalid", EXPFILL
}},
7391 module_t
*radiotap_module
;
7392 expert_module_t
* expert_radiotap
;
7395 proto_register_protocol("IEEE 802.11 Radiotap Capture header", "802.11 Radiotap", "radiotap");
7396 proto_register_field_array(proto_radiotap
, hf
, array_length(hf
));
7397 proto_register_subtree_array(ett
, array_length(ett
));
7398 expert_radiotap
= expert_register_protocol(proto_radiotap
);
7399 expert_register_field_array(expert_radiotap
, ei
, array_length(ei
));
7400 register_dissector("radiotap", dissect_radiotap
, proto_radiotap
);
7402 /* Subdissector table for vendor namespace, the key is OUI with sub namespace (4 bytes) */
7403 vendor_dissector_table
= register_dissector_table("radiotap.vendor",
7404 "Vendor namespace", proto_radiotap
, FT_UINT32
, BASE_HEX
);
7406 radiotap_module
= prefs_register_protocol(proto_radiotap
, NULL
);
7407 prefs_register_bool_preference(radiotap_module
, "bit14_fcs_in_header",
7408 "Assume bit 14 means FCS in header",
7409 "Radiotap has a bit to indicate whether the FCS is still on the frame or not. "
7410 "Some generators (e.g. AirPcap) use a non-standard radiotap flag 14 to put "
7411 "the FCS into the header.",
7412 &radiotap_bit14_fcs
);
7414 prefs_register_bool_preference(radiotap_module
, "interpret_high_rates_as_mcs",
7415 "Interpret high rates as MCS",
7416 "Some generators use rates with bit 7 set to indicate an MCS, e.g. BSD. "
7417 "others (Linux, AirPcap) do not.",
7418 &radiotap_interpret_high_rates_as_mcs
);
7420 prefs_register_enum_preference(radiotap_module
, "fcs_handling",
7421 "Whether and how to override the FCS bit",
7422 "Whether to use the FCS bit, assume the FCS is always present, "
7423 "or assume the FCS is never present.",
7424 &radiotap_fcs_handling
,
7425 fcs_handling
, false);
7428 void proto_reg_handoff_radiotap(void)
7430 dissector_handle_t radiotap_handle
;
7431 capture_dissector_handle_t radiotap_cap_handle
;
7433 /* handle for 802.11+radio information dissector */
7434 ieee80211_radio_handle
= find_dissector_add_dependency("wlan_radio", proto_radiotap
);
7436 radiotap_handle
= find_dissector_add_dependency("radiotap", proto_radiotap
);
7438 dissector_add_uint("wtap_encap", WTAP_ENCAP_IEEE_802_11_RADIOTAP
,
7442 * The radiotap and 802.11 headers aren't stripped off for
7443 * monitor-mode packets in Linux cooked captures, so dissect
7446 dissector_add_uint("sll.hatype", ARPHRD_IEEE80211_RADIOTAP
,
7449 radiotap_cap_handle
= create_capture_dissector_handle(capture_radiotap
, proto_radiotap
);
7450 capture_dissector_add_uint("wtap_encap", WTAP_ENCAP_IEEE_802_11_RADIOTAP
, radiotap_cap_handle
);
7452 ieee80211_cap_handle
= find_capture_dissector("ieee80211");
7453 ieee80211_datapad_cap_handle
= find_capture_dissector("ieee80211_datapad");
7457 * Editor modelines - https://www.wireshark.org/tools/modelines.html
7462 * indent-tabs-mode: t
7465 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
7466 * :indentSize=8:tabSize=8:noTabs=false: