1 /* msg_ulmap.c
2  * WiMax MAC Management UL-MAP Message decoder
3  *
4  * Copyright (c) 2007 by Intel Corporation.
5  *
6  * Author: Mike Harvey <michael.harvey@intel.com>
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1999 Gerald Combs
11  *
12  * SPDX-License-Identifier: GPL-2.0-or-later
13  */
14 
15 /* Include files */
16 
17 #include "config.h"
18 
19 #include <epan/packet.h>
20 #include <epan/expert.h>
21 #include "wimax_mac.h"
22 #include "wimax_bits.h"
23 #include "wimax_utils.h"
24 
25 extern	gboolean include_cor2_changes;
26 
27 void proto_register_mac_mgmt_msg_ulmap(void);
28 void proto_reg_handoff_mac_mgmt_msg_ulmap(void);
29 
30 #define MAC_MGMT_MSG_ULMAP 3
31 
32 #define XBIT_HF(bits, hf) \
33 	proto_tree_add_bits_item(tree, hf, tvb, bit, bits, ENC_BIG_ENDIAN); bit += bits;
34 
35 #define XBIT_HF_VALUE(var, bits, hf) \
36 	do { \
37 	var = TVB_BIT_BITS(bit, tvb, bits); \
38 	proto_tree_add_bits_item(tree, hf, tvb, bit, bits, ENC_BIG_ENDIAN); \
39 	bit += bits; \
40 	} while(0)
41 
42 #define VNIB(var, nibs, hf) \
43 	do { \
44 	var = TVB_NIB_NIBS(nib, tvb, nibs); \
45 	proto_tree_add_uint(tree, hf, tvb, NIBHI(nib, nibs), var); \
46 	nib += nibs; \
47 	} while(0)
48 
49 /* from msg_ucd.c */
50 extern guint cqich_id_size;		/* Set for CQICH_Alloc_IE */
51 
52 /* from msg_dlmap.c */
53 extern gint harq;
54 extern gint ir_type;
55 extern gint N_layer;
56 extern gint RCID_Type;
57 
58 static gint proto_mac_mgmt_msg_ulmap_decoder = -1;
59 
60 static gint ett_ulmap = -1;
61 static gint ett_ulmap_ie = -1;
62 static gint ett_ulmap_ffb = -1;
63 /* static gint ett_ulmap_c = -1;    */
64 /* static gint ett_ulmap_c_ie = -1; */
65 /* static gint ett_ulmap_s = -1;    */
66 /* static gint ett_ulmap_s_ie = -1; */
67 static gint ett_287_1 = -1;
68 static gint ett_287_2 = -1;
69 static gint ett_289 = -1;
70 static gint ett_290 = -1;
71 static gint ett_290b = -1;
72 static gint ett_291 = -1;
73 static gint ett_292 = -1;
74 static gint ett_293 = -1;
75 static gint ett_294 = -1;
76 static gint ett_295 = -1;
77 static gint ett_299 = -1;
78 static gint ett_300 = -1;
79 static gint ett_302 = -1;
80 static gint ett_302a = -1;
81 static gint ett_302b = -1;
82 static gint ett_302c = -1;
83 static gint ett_302d = -1;
84 static gint ett_302e = -1;
85 static gint ett_302f = -1;
86 static gint ett_302g = -1;
87 static gint ett_302h = -1;
88 static gint ett_302i = -1;
89 static gint ett_302j = -1;
90 static gint ett_302k = -1;
91 static gint ett_302l = -1;
92 static gint ett_302m = -1;
93 static gint ett_302n = -1;
94 static gint ett_302o = -1;
95 static gint ett_302p = -1;
96 static gint ett_302q = -1;
97 static gint ett_302r = -1;
98 static gint ett_302s = -1;
99 static gint ett_302t = -1;
100 static gint ett_302u = -1;
101 static gint ett_302v = -1;
102 static gint ett_306 = -1;
103 static gint ett_306_ul = -1;
104 static gint ett_308b = -1;
105 static gint ett_315d = -1;
106 
107 #define DCD_DOWNLINK_BURST_PROFILE        1
108 #define DCD_BS_EIRP                       2
109 #define DCD_FRAME_DURATION                3
110 #define DCD_PHY_TYPE                      4
111 #define DCD_POWER_ADJUSTMENT              5
112 #define DCD_CHANNEL_NR                    6
113 #define DCD_TTG                           7
114 #define DCD_RTG                           8
115 #define DCD_RSS                           9
116 #define DCD_CHANNEL_SWITCH_FRAME_NR      10
117 #define DCD_FREQUENCY                    12
118 #define DCD_BS_ID                        13
119 #define DCD_FRAME_DURATION_CODE          14
120 #define DCD_FRAME_NR                     15
121 #define DCD_SIZE_CQICH_ID                16
122 #define DCD_H_ARQ_ACK_DELAY              17
123 #define DCD_MAC_VERSION                 148
124 #define DCD_RESTART_COUNT               154
125 
126 #define DCD_BURST_FREQUENCY               1
127 #define DCD_BURST_FEC_CODE_TYPE         150
128 #define DCD_BURST_DIUC_EXIT_THRESHOLD   151
129 #define DCD_BURST_DIUC_ENTRY_THRESHOLD  152
130 #define DCD_BURST_TCS_ENABLE            153
131 
132 #define DCD_TLV_T_541_TYPE_FUNCTION_ACTION                                1
133 #define DCD_TLV_T542_TRIGGER_VALUE                                        2
134 #define DCD_TLV_T_543_TRIGGER_AVERAGING_DURATION                          3
135 #define DCD_TLV_T_19_PERMUTATION_TYPE_FOR_BROADCAST_REGION_IN_HARQ_ZONE  19
136 #define DCD_TLV_T_20_MAXIMUM_RETRANSMISSION                              20
137 #define DCD_TLV_T_21_DEFAULT_RSSI_AND_CINR_AVERAGING_PARAMETER           21
138 #define DCD_TLV_T_22_DL_AMC_ALLOCATED_PHYSICAL_BANDS_BITMAP              22
139 #define DCD_TLV_T_31_H_ADD_THRESHOLD                                     31
140 #define DCD_TLV_T_32_H_DELETE_THRESHOLD                                  32
141 #define DCD_TLV_T_33_ASR                                                 33
142 #define DCD_TLV_T_34_DL_REGION_DEFINITION                                34
143 #define DCD_TLV_T_35_PAGING_GROUP_ID                                     35
144 #define DCD_TLV_T_36_TUSC1_PERMUTATION_ACTIVE_SUBCHANNELS_BITMAP         36
145 #define DCD_TLV_T_37_TUSC2_PERMUTATION_ACTIVE_SUBCHANNELS_BITMAP         37
146 #define DCD_TLV_T_45_PAGING_INTERVAL_LENGTH                              45
147 #define DCD_TLV_T_50_HO_TYPE_SUPPORT                                     50
148 #define DCD_TLV_T_51_HYSTERSIS_MARGIN                                    51
149 #define DCD_TLV_T_52_TIME_TO_TRIGGER_DURATION                            52
150 #define DCD_TLV_T_54_TRIGGER                                             54
151 #define DCD_TLV_T_153_DOWNLINK_BURST_PROFILE_FOR_MULTIPLE_FEC_TYPES     153
152 
153 #define UL_MAP_NCT_PMP  0
154 #define UL_MAP_NCT_DM   1
155 #define UL_MAP_NCT_PTP  2
156 
157 #if 0
158 /* NCT messages */
159 static const value_string nct_msgs[] =
160 {
161     { UL_MAP_NCT_PMP, "PMP" },
162     { UL_MAP_NCT_PMP, "DM" },
163     { UL_MAP_NCT_PMP, "PTP" },
164     { 0,  NULL }
165 };
166 #endif
167 
168 #if 0
169 /* Repetition Coding Indications */
170 static const value_string rep_msgs[] =
171 {
172     { 0, "No Repetition Coding" },
173     { 1, "Repetition Coding of 2 Used" },
174     { 2, "Repetition Coding of 4 Used" },
175     { 3, "Repetition Coding of 6 Used" },
176     { 0,  NULL }
177 };
178 #endif
179 
180 #if 0
181 /* DL Frame Prefix Coding Indications */
182 static const value_string boost_msgs[] =
183 {
184     { 0, "Normal (not boosted)" },
185     { 1, "+6dB" },
186     { 2, "-6dB" },
187     { 3, "+9dB" },
188     { 4, "+3dB" },
189     { 5, "-3dB" },
190     { 6, "-9dB" },
191     { 7, "-12dB" },
192     { 0,  NULL }
193 };
194 #endif
195 
196 /* ul-map fields */
197 static gint hf_ulmap_reserved = -1;
198 static gint hf_ulmap_ucd_count = -1;
199 static gint hf_ulmap_alloc_start_time = -1;
200 static gint hf_ulmap_ofdma_sym = -1;
201 static gint hf_ulmap_ie_diuc_ext = -1;
202 static gint hf_ulmap_ie_diuc_ext2 = -1;
203 static gint hf_ulmap_ie_length = -1;
204 static gint hf_ulmap_ie_reserved_extended2_duic = -1;
205 static gint hf_ulmap_ie_reserved_extended_duic = -1;
206 /* static gint hf_ulmap_fch_expected = -1; */
207 
208 /* static gint hf_ulmap_ie = -1; */
209 
210 static gint hf_ulmap_ie_cid      = -1;
211 static gint hf_ulmap_ie_uiuc     = -1;
212 static gint hf_ulmap_uiuc12_symofs = -1;
213 static gint hf_ulmap_uiuc12_subofs = -1;
214 static gint hf_ulmap_uiuc12_numsym = -1;
215 static gint hf_ulmap_uiuc12_numsub = -1;
216 static gint hf_ulmap_uiuc12_method = -1;
217 static gint hf_ulmap_uiuc12_dri    = -1;
218 static gint hf_ulmap_uiuc10_dur    = -1;
219 static gint hf_ulmap_uiuc10_rep    = -1;
220 static gint hf_ulmap_uiuc10_slot_offset = -1;
221 
222 static gint hf_ulmap_uiuc14_dur  = -1;
223 static gint hf_ulmap_uiuc14_uiuc = -1;
224 static gint hf_ulmap_uiuc14_rep  = -1;
225 static gint hf_ulmap_uiuc14_idx  = -1;
226 static gint hf_ulmap_uiuc14_code = -1;
227 static gint hf_ulmap_uiuc14_sym  = -1;
228 static gint hf_ulmap_uiuc14_sub  = -1;
229 static gint hf_ulmap_uiuc14_bwr  = -1;
230 
231 /* static gint hf_ulmap_uiuc11_ext = -1; */
232 /* static gint hf_ulmap_uiuc11_len = -1; */
233 /* static gint hf_ulmap_uiuc11_data = -1; */
234 /* static gint hf_ulmap_uiuc15_ext = -1; */
235 /* static gint hf_ulmap_uiuc15_len = -1; */
236 /* static gint hf_ulmap_uiuc15_data = -1; */
237 
238 static gint hf_ulmap_uiuc0_symofs = -1;
239 static gint hf_ulmap_uiuc0_subofs = -1;
240 static gint hf_ulmap_uiuc0_numsym = -1;
241 static gint hf_ulmap_uiuc0_numsub = -1;
242 static gint hf_ulmap_uiuc0_rsv    = -1;
243 
244 static gint hf_ulmap_uiuc13_symofs = -1;
245 static gint hf_ulmap_uiuc13_subofs = -1;
246 static gint hf_ulmap_uiuc13_numsym = -1;
247 static gint hf_ulmap_uiuc13_numsub = -1;
248 static gint hf_ulmap_uiuc13_papr   = -1;
249 static gint hf_ulmap_uiuc13_zone   = -1;
250 static gint hf_ulmap_uiuc13_rsv    = -1;
251 /* static gint hf_ulmap_crc16         = -1; */
252 /* static gint hf_ulmap_crc16_status = -1; */
253 static gint hf_ulmap_padding       = -1;
254 
255 /* Generated via "one time" script to help create filterable fields */
256 static int hf_ulmap_dedicated_ul_control_length = -1;
257 static int hf_ulmap_dedicated_ul_control_control_header = -1;
258 static int hf_ulmap_dedicated_ul_control_num_sdma_layers = -1;
259 static int hf_ulmap_dedicated_ul_control_pilot_pattern = -1;
260 static int hf_ulmap_dedicated_mimo_ul_control_matrix = -1;
261 static int hf_ulmap_dedicated_mimo_ul_control_n_layer = -1;
262 static int hf_ulmap_harq_chase_dedicated_ul_control_indicator = -1;
263 static int hf_ulmap_harq_chase_uiuc = -1;
264 static int hf_ulmap_harq_chase_repetition_coding_indication = -1;
265 static int hf_ulmap_harq_chase_duration = -1;
266 static int hf_ulmap_harq_chase_acid = -1;
267 static int hf_ulmap_harq_chase_ai_sn = -1;
268 static int hf_ulmap_harq_chase_ack_disable = -1;
269 static int hf_ulmap_reserved_uint = -1;
270 static int hf_ulmap_harq_ir_ctc_dedicated_ul_control_indicator = -1;
271 static int hf_ulmap_harq_ir_ctc_nep = -1;
272 static int hf_ulmap_harq_ir_ctc_nsch = -1;
273 static int hf_ulmap_harq_ir_ctc_spid = -1;
274 static int hf_ulmap_harq_ir_ctc_acin = -1;
275 static int hf_ulmap_harq_ir_ctc_ai_sn = -1;
276 static int hf_ulmap_harq_ir_ctc_ack_disable = -1;
277 static int hf_ulmap_harq_ir_cc_dedicated_ul_control_indicator = -1;
278 static int hf_ulmap_harq_ir_cc_uiuc = -1;
279 static int hf_ulmap_harq_ir_cc_repetition_coding_indication = -1;
280 static int hf_ulmap_harq_ir_cc_duration = -1;
281 static int hf_ulmap_harq_ir_cc_spid = -1;
282 static int hf_ulmap_harq_ir_cc_acid = -1;
283 static int hf_ulmap_harq_ir_cc_ai_sn = -1;
284 static int hf_ulmap_harq_ir_cc_ack_disable = -1;
285 static int hf_ulmap_mimo_ul_chase_harq_mu_indicator = -1;
286 static int hf_ulmap_mimo_ul_chase_harq_dedicated_mimo_ulcontrol_indicator = -1;
287 static int hf_ulmap_mimo_ul_chase_harq_ack_disable = -1;
288 static int hf_ulmap_mimo_ul_chase_harq_matrix = -1;
289 static int hf_ulmap_mimo_ul_chase_harq_duration = -1;
290 static int hf_ulmap_mimo_ul_chase_harq_uiuc = -1;
291 static int hf_ulmap_mimo_ul_chase_harq_repetition_coding_indication = -1;
292 static int hf_ulmap_mimo_ul_chase_harq_acid = -1;
293 static int hf_ulmap_mimo_ul_chase_harq_ai_sn = -1;
294 static int hf_ulmap_mimo_ul_ir_harq_mu_indicator = -1;
295 static int hf_ulmap_mimo_ul_ir_harq_dedicated_mimo_ul_control_indicator = -1;
296 static int hf_ulmap_mimo_ul_ir_harq_ack_disable = -1;
297 static int hf_ulmap_mimo_ul_ir_harq_matrix = -1;
298 static int hf_ulmap_mimo_ul_ir_harq_nsch = -1;
299 static int hf_ulmap_mimo_ul_ir_harq_nep = -1;
300 static int hf_ulmap_mimo_ul_ir_harq_spid = -1;
301 static int hf_ulmap_mimo_ul_ir_harq_acid = -1;
302 static int hf_ulmap_mimo_ul_ir_harq_ai_sn = -1;
303 static int hf_ulmap_mimo_ul_ir_harq_cc_mu_indicator = -1;
304 static int hf_ulmap_mimo_ul_ir_harq_cc_dedicated_mimo_ul_control_indicator = -1;
305 static int hf_ulmap_mimo_ul_ir_harq_cc_ack_disable = -1;
306 static int hf_ulmap_mimo_ul_ir_harq_cc_matrix = -1;
307 static int hf_ulmap_mimo_ul_ir_harq_cc_duration = -1;
308 static int hf_ulmap_mimo_ul_ir_harq_cc_uiuc = -1;
309 static int hf_ulmap_mimo_ul_ir_harq_cc_repetition_coding_indication = -1;
310 static int hf_ulmap_mimo_ul_ir_harq_cc_acid = -1;
311 static int hf_ulmap_mimo_ul_ir_harq_cc_ai_sn = -1;
312 static int hf_ulmap_mimo_ul_ir_harq_cc_spid = -1;
313 static int hf_ulmap_mimo_ul_stc_harq_tx_count = -1;
314 static int hf_ulmap_mimo_ul_stc_harq_duration = -1;
315 static int hf_ulmap_mimo_ul_stc_harq_sub_burst_offset_indication = -1;
316 static int hf_ulmap_mimo_ul_stc_harq_sub_burst_offset = -1;
317 static int hf_ulmap_mimo_ul_stc_harq_ack_disable = -1;
318 static int hf_ulmap_mimo_ul_stc_harq_uiuc = -1;
319 static int hf_ulmap_mimo_ul_stc_harq_repetition_coding_indication = -1;
320 static int hf_ulmap_mimo_ul_stc_harq_acid = -1;
321 static int hf_ulmap_power_control = -1;
322 static int hf_ulmap_power_measurement_frame = -1;
323 static int hf_ulmap_mini_subcha_alloc_extended_2_uiuc = -1;
324 static int hf_ulmap_mini_subcha_alloc_length = -1;
325 static int hf_ulmap_mini_subcha_alloc_ctype = -1;
326 static int hf_ulmap_mini_subcha_alloc_duration = -1;
327 static int hf_ulmap_mini_subcha_alloc_cid = -1;
328 static int hf_ulmap_mini_subcha_alloc_uiuc = -1;
329 static int hf_ulmap_mini_subcha_alloc_repetition = -1;
330 static int hf_ulmap_mini_subcha_alloc_padding = -1;
331 static int hf_ulmap_aas_ul_extended_uiuc = -1;
332 static int hf_ulmap_aas_ul_length = -1;
333 static int hf_ulmap_aas_ul_permutation = -1;
334 static int hf_ulmap_aas_ul_ul_permbase = -1;
335 static int hf_ulmap_aas_ul_ofdma_symbol_offset = -1;
336 static int hf_ulmap_aas_ul_aas_zone_length = -1;
337 static int hf_ulmap_aas_ul_uplink_preamble_config = -1;
338 static int hf_ulmap_aas_ul_preamble_type = -1;
339 static int hf_ulmap_cqich_alloc_extended_uiuc = -1;
340 static int hf_ulmap_cqich_alloc_length = -1;
341 static int hf_ulmap_cqich_alloc_cqich_id = -1;
342 static int hf_ulmap_cqich_alloc_allocation_offset = -1;
343 static int hf_ulmap_cqich_alloc_period = -1;
344 static int hf_ulmap_cqich_alloc_frame_offset = -1;
345 static int hf_ulmap_cqich_alloc_duration = -1;
346 static int hf_ulmap_cqich_alloc_report_configuration_included = -1;
347 static int hf_ulmap_cqich_alloc_feedback_type = -1;
348 static int hf_ulmap_cqich_alloc_report_type = -1;
349 static int hf_ulmap_cqich_alloc_cinr_preamble_report_type = -1;
350 static int hf_ulmap_cqich_alloc_zone_permutation = -1;
351 static int hf_ulmap_cqich_alloc_zone_type = -1;
352 static int hf_ulmap_cqich_alloc_zone_prbs_id = -1;
353 static int hf_ulmap_cqich_alloc_major_group_indication = -1;
354 static int hf_ulmap_cqich_alloc_pusc_major_group_bitmap = -1;
355 static int hf_ulmap_cqich_alloc_cinr_zone_measurement_type = -1;
356 static int hf_ulmap_cqich_alloc_averaging_parameter_included = -1;
357 static int hf_ulmap_cqich_alloc_averaging_parameter = -1;
358 static int hf_ulmap_cqich_alloc_mimo_permutation_feedback_cycle = -1;
359 static int hf_ulmap_zone_extended_uiuc = -1;
360 static int hf_ulmap_zone_length = -1;
361 static int hf_ulmap_zone_ofdma_symbol_offset = -1;
362 static int hf_ulmap_zone_permutation = -1;
363 static int hf_ulmap_zone_ul_permbase = -1;
364 static int hf_ulmap_zone_amc_type = -1;
365 static int hf_ulmap_zone_use_all_sc_indicator = -1;
366 static int hf_ulmap_zone_disable_subchannel_rotation = -1;
367 static int hf_ulmap_phymod_ul_extended_uiuc = -1;
368 static int hf_ulmap_phymod_ul_length = -1;
369 static int hf_ulmap_phymod_ul_preamble_modifier_type = -1;
370 static int hf_ulmap_phymod_ul_preamble_frequency_shift_index = -1;
371 static int hf_ulmap_phymod_ul_preamble_time_shift_index = -1;
372 static int hf_ulmap_phymod_ul_pilot_pattern_modifier = -1;
373 static int hf_ulmap_phymod_ul_pilot_pattern_index = -1;
374 static int hf_ulmap_fast_tracking_extended_uiuc = -1;
375 static int hf_ulmap_fast_tracking_length = -1;
376 static int hf_ulmap_fast_tracking_map_index = -1;
377 static int hf_ulmap_fast_tracking_power_correction = -1;
378 static int hf_ulmap_fast_tracking_frequency_correction = -1;
379 static int hf_ulmap_fast_tracking_time_correction = -1;
380 static int hf_ulmap_pusc_burst_allocation_extended_uiuc = -1;
381 static int hf_ulmap_pusc_burst_allocation_length = -1;
382 static int hf_ulmap_pusc_burst_allocation_uiuc = -1;
383 static int hf_ulmap_pusc_burst_allocation_segment = -1;
384 static int hf_ulmap_pusc_burst_allocation_ul_permbase = -1;
385 static int hf_ulmap_pusc_burst_allocation_ofdma_symbol_offset = -1;
386 static int hf_ulmap_pusc_burst_allocation_subchannel_offset = -1;
387 static int hf_ulmap_pusc_burst_allocation_duration = -1;
388 static int hf_ulmap_pusc_burst_allocation_repetition_coding_indication = -1;
389 static int hf_ulmap_fast_ranging_extended_uiuc = -1;
390 static int hf_ulmap_fast_ranging_length = -1;
391 static int hf_ulmap_fast_ranging_ho_id_indicator = -1;
392 static int hf_ulmap_fast_ranging_ho_id = -1;
393 static int hf_ulmap_fast_ranging_mac_address = -1;
394 static int hf_ulmap_fast_ranging_uiuc = -1;
395 static int hf_ulmap_fast_ranging_duration = -1;
396 static int hf_ulmap_fast_ranging_repetition_coding_indication = -1;
397 static int hf_ulmap_allocation_start_extended_uiuc = -1;
398 static int hf_ulmap_allocation_start_length = -1;
399 static int hf_ulmap_allocation_start_ofdma_symbol_offset = -1;
400 static int hf_ulmap_allocation_start_subchannel_offset = -1;
401 static int hf_ulmap_cqich_enhanced_alloc_extended_2_uiuc = -1;
402 static int hf_ulmap_cqich_enhanced_alloc_length = -1;
403 static int hf_ulmap_cqich_enhanced_alloc_cqich_id = -1;
404 static int hf_ulmap_cqich_enhanced_alloc_period = -1;
405 static int hf_ulmap_cqich_enhanced_alloc_frame_offset = -1;
406 static int hf_ulmap_cqich_enhanced_alloc_duration = -1;
407 static int hf_ulmap_cqich_enhanced_alloc_cqich_num = -1;
408 static int hf_ulmap_cqich_enhanced_alloc_feedback_type = -1;
409 static int hf_ulmap_cqich_enhanced_alloc_allocation_index = -1;
410 static int hf_ulmap_cqich_enhanced_alloc_cqich_type = -1;
411 static int hf_ulmap_cqich_enhanced_alloc_sttd_indication = -1;
412 static int hf_ulmap_cqich_enhanced_alloc_band_amc_precoding_mode = -1;
413 static int hf_ulmap_cqich_enhanced_alloc_nr_precoders_feedback = -1;
414 static int hf_ulmap_anchor_bs_switch_extended_2_uiuc = -1;
415 static int hf_ulmap_anchor_bs_switch_length = -1;
416 static int hf_ulmap_anchor_bs_switch_n_anchor_bs_switch = -1;
417 static int hf_ulmap_anchor_bs_switch_reduced_cid = -1;
418 static int hf_ulmap_anchor_bs_switch_action_code = -1;
419 static int hf_ulmap_anchor_bs_switch_action_time = -1;
420 static int hf_ulmap_anchor_bs_switch_temp_bs_id = -1;
421 static int hf_ulmap_anchor_bs_switch_ak_change_indicator = -1;
422 static int hf_ulmap_anchor_bs_switch_cqich_allocation_indicator = -1;
423 static int hf_ulmap_anchor_bs_switch_cqich_id = -1;
424 static int hf_ulmap_anchor_bs_switch_feedback_channel_offset = -1;
425 static int hf_ulmap_anchor_bs_switch_period = -1;
426 static int hf_ulmap_anchor_bs_switch_frame_offset = -1;
427 static int hf_ulmap_anchor_bs_switch_duration = -1;
428 static int hf_ulmap_anchor_bs_switch_mimo_permutation_feedback_code = -1;
429 static int hf_ulmap_sounding_command_extended_2_uiuc = -1;
430 static int hf_ulmap_sounding_command_length = -1;
431 static int hf_ulmap_sounding_command_type = -1;
432 static int hf_ulmap_sounding_command_send_sounding_report_flag = -1;
433 static int hf_ulmap_sounding_command_relevance_flag = -1;
434 static int hf_ulmap_sounding_command_relevance = -1;
435 static int hf_ulmap_sounding_command_include_additional_feedback = -1;
436 static int hf_ulmap_sounding_command_num_sounding_symbols = -1;
437 static int hf_ulmap_sounding_command_separability_type = -1;
438 static int hf_ulmap_sounding_command_max_cyclic_shift_index_p = -1;
439 static int hf_ulmap_sounding_command_decimation_value = -1;
440 static int hf_ulmap_sounding_command_decimation_offset_randomization = -1;
441 static int hf_ulmap_sounding_command_symbol_index = -1;
442 static int hf_ulmap_sounding_command_number_of_cids = -1;
443 static int hf_ulmap_sounding_command_shorted_basic_cid = -1;
444 static int hf_ulmap_sounding_command_power_assignment_method = -1;
445 static int hf_ulmap_sounding_command_power_boost = -1;
446 static int hf_ulmap_sounding_command_multi_antenna_flag = -1;
447 static int hf_ulmap_sounding_command_allocation_mode = -1;
448 static int hf_ulmap_sounding_command_band_bit_map = -1;
449 static int hf_ulmap_sounding_command_starting_frequency_band = -1;
450 static int hf_ulmap_sounding_command_number_of_frequency_bands = -1;
451 static int hf_ulmap_sounding_command_cyclic_time_shift_index = -1;
452 static int hf_ulmap_sounding_command_decimation_offset = -1;
453 static int hf_ulmap_sounding_command_use_same_symbol_for_additional_feedback = -1;
454 static int hf_ulmap_sounding_command_periodicity = -1;
455 static int hf_ulmap_sounding_command_permutation = -1;
456 static int hf_ulmap_sounding_command_dl_permbase = -1;
457 static int hf_ulmap_sounding_command_shortened_basic_cid = -1;
458 static int hf_ulmap_sounding_command_subchannel_offset = -1;
459 static int hf_ulmap_sounding_command_number_of_subchannels = -1;
460 static int hf_ulmap_harq_ulmap_extended_2_uiuc = -1;
461 static int hf_ulmap_harq_ulmap_length = -1;
462 static int hf_ulmap_harq_ulmap_rcid_type = -1;
463 static int hf_ulmap_harq_ulmap_mode = -1;
464 static int hf_ulmap_harq_ulmap_allocation_start_indication = -1;
465 static int hf_ulmap_harq_ulmap_ofdma_symbol_offset = -1;
466 static int hf_ulmap_harq_ulmap_subchannel_offset = -1;
467 static int hf_ulmap_harq_ulmap_n_sub_burst = -1;
468 static int hf_ulmap_harq_ackch_region_alloc_extended_2_uiuc = -1;
469 static int hf_ulmap_harq_ackch_region_alloc_length = -1;
470 static int hf_ulmap_harq_ackch_region_alloc_ofdma_symbol_offset = -1;
471 static int hf_ulmap_harq_ackch_region_alloc_subchannel_offset = -1;
472 static int hf_ulmap_harq_ackch_region_alloc_num_ofdma_symbols = -1;
473 static int hf_ulmap_harq_ackch_region_alloc_num_subchannels = -1;
474 static int hf_ulmap_aas_sdma_extended_2_uiuc = -1;
475 static int hf_ulmap_aas_sdma_length = -1;
476 static int hf_ulmap_aas_sdma_rcid_type = -1;
477 static int hf_ulmap_aas_sdma_num_burst_region = -1;
478 static int hf_ulmap_aas_sdma_slot_offset = -1;
479 static int hf_ulmap_aas_sdma_slot_duration = -1;
480 static int hf_ulmap_aas_sdma_number_of_users = -1;
481 static int hf_ulmap_aas_sdma_encoding_mode = -1;
482 static int hf_ulmap_aas_sdma_power_adjust = -1;
483 static int hf_ulmap_aas_sdma_pilot_pattern_modifier = -1;
484 static int hf_ulmap_aas_sdma_preamble_modifier_index = -1;
485 static int hf_ulmap_aas_sdma_pilot_pattern = -1;
486 static int hf_ulmap_aas_sdma_diuc = -1;
487 static int hf_ulmap_aas_sdma_repetition_coding_indication = -1;
488 static int hf_ulmap_aas_sdma_acid = -1;
489 static int hf_ulmap_aas_sdma_ai_sn = -1;
490 static int hf_ulmap_aas_sdma_nep = -1;
491 static int hf_ulmap_aas_sdma_nsch = -1;
492 static int hf_ulmap_aas_sdma_spid = -1;
493 static int hf_ulmap_aas_sdma_power_adjustment = -1;
494 static int hf_ulmap_feedback_polling_extended_2_uiuc = -1;
495 static int hf_ulmap_feedback_polling_length = -1;
496 static int hf_ulmap_feedback_polling_num_allocation = -1;
497 static int hf_ulmap_feedback_polling_dedicated_ul_allocation_included = -1;
498 static int hf_ulmap_feedback_polling_basic_cid = -1;
499 static int hf_ulmap_feedback_polling_allocation_duration = -1;
500 static int hf_ulmap_feedback_polling_type = -1;
501 static int hf_ulmap_feedback_polling_frame_offset = -1;
502 static int hf_ulmap_feedback_polling_period = -1;
503 static int hf_ulmap_feedback_polling_uiuc = -1;
504 static int hf_ulmap_feedback_polling_ofdma_symbol_offset = -1;
505 static int hf_ulmap_feedback_polling_subchannel_offset = -1;
506 static int hf_ulmap_feedback_polling_duration = -1;
507 static int hf_ulmap_feedback_polling_repetition_coding_indication = -1;
508 static int hf_ulmap_reduced_aas_aas_zone_configuration_included = -1;
509 static int hf_ulmap_reduced_aas_aas_zone_position_included = -1;
510 static int hf_ulmap_reduced_aas_ul_map_information_included = -1;
511 static int hf_ulmap_reduced_aas_phy_modification_included = -1;
512 static int hf_ulmap_reduced_aas_power_control_included = -1;
513 static int hf_ulmap_reduced_aas_include_feedback_header = -1;
514 static int hf_ulmap_reduced_aas_encoding_mode = -1;
515 static int hf_ulmap_reduced_aas_permutation = -1;
516 static int hf_ulmap_reduced_aas_ul_permbase = -1;
517 static int hf_ulmap_reduced_aas_preamble_indication = -1;
518 static int hf_ulmap_reduced_aas_padding = -1;
519 static int hf_ulmap_reduced_aas_zone_symbol_offset = -1;
520 static int hf_ulmap_reduced_aas_zone_length = -1;
521 static int hf_ulmap_reduced_aas_ucd_count = -1;
522 static int hf_ulmap_reduced_aas_private_map_alloc_start_time = -1;
523 static int hf_ulmap_reduced_aas_pilot_pattern_index = -1;
524 static int hf_ulmap_reduced_aas_preamble_select = -1;
525 static int hf_ulmap_reduced_aas_preamble_shift_index = -1;
526 static int hf_ulmap_reduced_aas_pilot_pattern_modifier = -1;
527 static int hf_ulmap_reduced_aas_power_control = -1;
528 static int hf_ulmap_reduced_aas_ul_frame_offset = -1;
529 static int hf_ulmap_reduced_aas_slot_offset = -1;
530 static int hf_ulmap_reduced_aas_slot_duration = -1;
531 static int hf_ulmap_reduced_aas_uiuc_nep = -1;
532 static int hf_ulmap_reduced_aas_acid = -1;
533 static int hf_ulmap_reduced_aas_ai_sn = -1;
534 static int hf_ulmap_reduced_aas_nsch = -1;
535 static int hf_ulmap_reduced_aas_spid = -1;
536 static int hf_ulmap_reduced_aas_repetition_coding_indication = -1;
537 
538 static expert_field ei_ulmap_not_implemented = EI_INIT;
539 
540 /*  This gets called each time a capture file is loaded. */
init_wimax_globals(void)541 void init_wimax_globals(void)
542 {
543     cqich_id_size = 0;
544     harq = 0;
545     ir_type = 0;
546     N_layer = 0;
547     RCID_Type = 0;
548 }
549 
550 /********************************************************************
551  * UL-MAP HARQ Sub-Burst IEs
552  * 8.4.5.4.24 table 302j
553  * these functions take offset/length in bits
554  *******************************************************************/
555 
Dedicated_UL_Control_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)556 static gint Dedicated_UL_Control_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
557 {
558     /* 8.4.5.4.24.1 Dedicated_UL_Control_IE -- table 302r */
559     /* UL-MAP HARQ Sub-Burst IE * offset/length are in bits */
560     gint bit;
561     proto_item *tree;
562     gint sdma;
563 
564     bit = offset;
565 
566     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302r, NULL, "Dedicated_UL_Control_IE");
567 
568     XBIT_HF(4, hf_ulmap_dedicated_ul_control_length);
569     XBIT_HF_VALUE(sdma, 4, hf_ulmap_dedicated_ul_control_control_header);
570     if ((sdma & 1) == 1) {
571         XBIT_HF(2, hf_ulmap_dedicated_ul_control_num_sdma_layers);
572         XBIT_HF(2, hf_ulmap_dedicated_ul_control_pilot_pattern);
573     }
574     return (bit - offset); /* length in bits */
575 }
576 
Dedicated_MIMO_UL_Control_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)577 static gint Dedicated_MIMO_UL_Control_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
578 {
579     /* 8.4.5.4.24.2 Dedicated_MIMO_UL_Control_IE -- table 302s */
580     /* UL-MAP HARQ Sub-Burst IE * offset/length are in bits */
581     gint bit;
582     proto_item *tree;
583 
584     bit = offset;
585 
586     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302s, NULL, "Dedicated_MIMO_UL_Control_IE");
587 
588     XBIT_HF(2, hf_ulmap_dedicated_mimo_ul_control_matrix);
589     XBIT_HF_VALUE(N_layer, 2, hf_ulmap_dedicated_mimo_ul_control_n_layer);
590 
591     return (bit - offset); /* length in bits */
592 }
593 
594 /* begin Sub-Burst IEs */
595 
UL_HARQ_Chase_Sub_Burst_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)596 static gint UL_HARQ_Chase_Sub_Burst_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
597 {
598     /* 8.4.5.4.24 UL_HARQ_Chase_sub_burst_IE -- table 302k */
599     /* UL-MAP HARQ Sub-Burst IE * offset/length are in bits */
600     gint bit;
601     proto_item *tree;
602     /*proto_item *generic_item = NULL;*/
603     gint duci;
604     /*guint16 calculated_crc;*/
605 
606     bit = offset;
607 
608     tree = proto_tree_add_subtree(uiuc_tree, tvb, BITHI(offset,length), ett_302k, NULL, "UL_HARQ_Chase_Sub_Burst_IE");
609 
610     bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
611     XBIT_HF_VALUE(duci, 1, hf_ulmap_harq_chase_dedicated_ul_control_indicator);
612     if (duci == 1) {
613         bit += Dedicated_UL_Control_IE(tree, bit, length, tvb);
614     }
615     XBIT_HF(4, hf_ulmap_harq_chase_uiuc);
616     XBIT_HF(2, hf_ulmap_harq_chase_repetition_coding_indication);
617     XBIT_HF(10, hf_ulmap_harq_chase_duration);
618     XBIT_HF(4, hf_ulmap_harq_chase_acid);
619     XBIT_HF(1, hf_ulmap_harq_chase_ai_sn);
620     XBIT_HF(1, hf_ulmap_harq_chase_ack_disable);
621     XBIT_HF(1, hf_ulmap_reserved_uint);
622 
623 #if 0
624     if (include_cor2_changes)
625     {
626 		calculated_crc = wimax_mac_calc_crc16((guint8 *)tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
627 		proto_tree_add_checksum(tree, tvb, BITHI(bit,16), hf_ulmap_crc16, hf_ulmap_crc16_status, &ei_ulmap_crc16, pinfo, calculated_crc,
628 									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
629 		bit += 16;
630     }
631 #endif
632 
633     return (bit - offset); /* length in bits */
634 }
635 
UL_HARQ_IR_CTC_Sub_Burst_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)636 static gint UL_HARQ_IR_CTC_Sub_Burst_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
637 {
638     /* 8.4.5.4.24 UL_HARQ_IR_CTC_sub_burst_IE -- table 302l */
639     /* UL-MAP HARQ Sub-Burst IE * offset/length are in bits */
640     gint bit;
641     proto_item *tree;
642     /*proto_item *generic_item = NULL;*/
643     gint duci;
644     /*guint16 calculated_crc;*/
645 
646     bit = offset;
647 
648     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302l, NULL, "UL_HARQ_IR_CTC_Sub_Burst_IE");
649 
650     bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
651     XBIT_HF_VALUE(duci, 1, hf_ulmap_harq_ir_ctc_dedicated_ul_control_indicator);
652     if (duci == 1) {
653         bit += Dedicated_UL_Control_IE(tree, bit, length, tvb);
654     }
655     XBIT_HF(4, hf_ulmap_harq_ir_ctc_nep);
656     XBIT_HF(4, hf_ulmap_harq_ir_ctc_nsch);
657     XBIT_HF(2, hf_ulmap_harq_ir_ctc_spid);
658     XBIT_HF(4, hf_ulmap_harq_ir_ctc_acin);
659     XBIT_HF(1, hf_ulmap_harq_ir_ctc_ai_sn);
660     XBIT_HF(1, hf_ulmap_harq_ir_ctc_ack_disable);
661     XBIT_HF(3, hf_ulmap_reserved_uint);
662 
663 #if 0
664     if (include_cor2_changes)
665     {
666 		/* CRC-16 is always appended */
667 		calculated_crc = wimax_mac_calc_crc16((guint8 *)tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
668 		proto_tree_add_checksum(tree, tvb, BITHI(bit,16), hf_ulmap_crc16, hf_ulmap_crc16_status, &ei_ulmap_crc16, pinfo, calculated_crc,
669 									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
670 		bit += 16;
671     }
672 #endif
673 
674     return (bit - offset); /* length in bits */
675 }
676 
UL_HARQ_IR_CC_Sub_Burst_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)677 static gint UL_HARQ_IR_CC_Sub_Burst_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
678 {
679     /* 8.4.5.4.24 UL_HARQ_IR_CC_sub_burst_IE -- table 302m */
680     /* UL-MAP HARQ Sub-Burst IE * offset/length are in bits */
681     gint bit;
682     proto_item *tree;
683     /*proto_item *generic_item = NULL;*/
684     gint duci;
685     /*guint16 calculated_crc;*/
686 
687     bit = offset;
688 
689     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302m, NULL, "UL_HARQ_IR_CC_Sub_Burst_IE");
690 
691     bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
692     XBIT_HF_VALUE(duci, 1, hf_ulmap_harq_ir_cc_dedicated_ul_control_indicator);
693     if (duci == 1) {
694         bit += Dedicated_UL_Control_IE(tree, bit, length, tvb);
695     }
696     XBIT_HF(4, hf_ulmap_harq_ir_cc_uiuc);
697     XBIT_HF(2, hf_ulmap_harq_ir_cc_repetition_coding_indication);
698     XBIT_HF(10, hf_ulmap_harq_ir_cc_duration);
699     XBIT_HF(2, hf_ulmap_harq_ir_cc_spid);
700     XBIT_HF(4, hf_ulmap_harq_ir_cc_acid);
701     XBIT_HF(1, hf_ulmap_harq_ir_cc_ai_sn);
702     XBIT_HF(1, hf_ulmap_harq_ir_cc_ack_disable);
703     XBIT_HF(3, hf_ulmap_reserved_uint);
704 
705 #if 0
706     if (include_cor2_changes)
707     {
708 		/* CRC-16 is always appended */
709 		calculated_crc = wimax_mac_calc_crc16((guint8 *)tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
710 		proto_tree_add_checksum(tree, tvb, BITHI(bit,16), hf_ulmap_crc16, hf_ulmap_crc16_status, &ei_ulmap_crc16, pinfo, calculated_crc,
711 									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
712 
713 		bit += 16;
714     }
715 #endif
716 
717     return (bit - offset); /* length in bits */
718 }
719 
MIMO_UL_Chase_HARQ_Sub_Burst_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)720 static gint MIMO_UL_Chase_HARQ_Sub_Burst_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
721 {
722     /* 8.4.5.4.24 MIMO_UL_Chase_HARQ_Sub_Burst_IE -- table 302n */
723     /* UL-MAP HARQ Sub-Burst IE * offset/length are in bits */
724     gint bit;
725     proto_item *tree;
726     /*proto_item *generic_item = NULL;*/
727     gint muin,dmci,ackd,i;
728     /*guint16 calculated_crc;*/
729 
730     bit = offset;
731 
732     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302n, NULL, "MIMO_UL_Chase_HARQ_Sub_Burst_IE");
733 
734     XBIT_HF_VALUE(muin, 1, hf_ulmap_mimo_ul_chase_harq_mu_indicator);
735     XBIT_HF_VALUE(dmci, 1, hf_ulmap_mimo_ul_chase_harq_dedicated_mimo_ulcontrol_indicator);
736     XBIT_HF_VALUE(ackd, 1, hf_ulmap_mimo_ul_chase_harq_ack_disable);
737     if (muin == 0) {
738         bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
739         if (dmci) {
740             bit += Dedicated_MIMO_UL_Control_IE(tree, bit, length, tvb);
741         }
742     } else {
743         XBIT_HF(1, hf_ulmap_mimo_ul_chase_harq_matrix);
744     }
745     XBIT_HF(10, hf_ulmap_mimo_ul_chase_harq_duration);
746     for (i = 0; i < N_layer; i++) {
747         if (muin == 1) {
748             bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
749         }
750         XBIT_HF(4, hf_ulmap_mimo_ul_chase_harq_uiuc);
751         XBIT_HF(2, hf_ulmap_mimo_ul_chase_harq_repetition_coding_indication);
752         if (ackd == 0) {
753             XBIT_HF(4, hf_ulmap_mimo_ul_chase_harq_acid);
754             XBIT_HF(1, hf_ulmap_mimo_ul_chase_harq_ai_sn);
755         }
756     }
757 
758 #if 0
759     if (include_cor2_changes)
760     {
761 		/* CRC-16 is always appended */
762 		calculated_crc = wimax_mac_calc_crc16((guint8 *)tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
763 		proto_tree_add_checksum(tree, tvb, BITHI(bit,16), hf_ulmap_crc16, hf_ulmap_crc16_status, &ei_ulmap_crc16, pinfo, calculated_crc,
764 									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
765 
766 		bit += 16;
767     }
768 #endif
769 
770     return (bit - offset); /* length in bits */
771 }
772 
MIMO_UL_IR_HARQ__Sub_Burst_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)773 static gint MIMO_UL_IR_HARQ__Sub_Burst_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
774 {
775     /* 8.4.5.4.24 MIMO_UL_IR_HARQ__Sub_Burst_IE -- table 302o */
776     /* UL-MAP HARQ Sub-Burst IE * offset/length are in bits */
777     gint bit;
778     proto_item *tree;
779     /*proto_item *generic_item = NULL;*/
780     gint muin,dmci,ackd,i;
781     /*guint16 calculated_crc;*/
782 
783     bit = offset;
784 
785     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302o, NULL, "MIMO_UL_IR_HARQ__Sub_Burst_IE");
786 
787     XBIT_HF_VALUE(muin, 1, hf_ulmap_mimo_ul_ir_harq_mu_indicator);
788     XBIT_HF_VALUE(dmci, 1, hf_ulmap_mimo_ul_ir_harq_dedicated_mimo_ul_control_indicator);
789     XBIT_HF_VALUE(ackd, 1, hf_ulmap_mimo_ul_ir_harq_ack_disable);
790     if (muin == 0) {
791         bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
792         if (dmci) {
793             bit += Dedicated_MIMO_UL_Control_IE(tree, bit, length, tvb);
794         }
795     } else {
796         XBIT_HF(1, hf_ulmap_mimo_ul_ir_harq_matrix);
797     }
798     XBIT_HF(4, hf_ulmap_mimo_ul_ir_harq_nsch);
799     for (i = 0; i < N_layer; i++) {
800         if (muin == 1) {
801             bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
802         }
803         XBIT_HF(4, hf_ulmap_mimo_ul_ir_harq_nep);
804         if (ackd == 0) {
805             XBIT_HF(2, hf_ulmap_mimo_ul_ir_harq_spid);
806             XBIT_HF(4, hf_ulmap_mimo_ul_ir_harq_acid);
807             XBIT_HF(1, hf_ulmap_mimo_ul_ir_harq_ai_sn);
808         }
809     }
810 
811 #if 0
812     if (include_cor2_changes)
813     {
814 		/* CRC-16 is always appended */
815 		calculated_crc = wimax_mac_calc_crc16((guint8 *)tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
816 		proto_tree_add_checksum(tree, tvb, BITHI(bit,16), hf_ulmap_crc16, hf_ulmap_crc16_status, &ei_ulmap_crc16, pinfo, calculated_crc,
817 									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
818 
819 		bit += 16;
820     }
821 #endif
822 
823     return (bit - offset); /* length in bits */
824 }
825 
MIMO_UL_IR_HARQ_for_CC_Sub_Burst_UIE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)826 static gint MIMO_UL_IR_HARQ_for_CC_Sub_Burst_UIE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
827 {
828     /* 8.4.5.4.24 MIMO_UL_IR_HARQ_for_CC_Sub_Burst_UIE -- table 302p */
829     /* UL-MAP HARQ Sub-Burst IE * offset/length are in bits */
830     gint bit;
831     proto_item *tree;
832     /*proto_item *generic_item = NULL;*/
833     gint muin,dmci,ackd,i;
834     /*guint16 calculated_crc;*/
835 
836     bit = offset;
837 
838     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302p, NULL, "MIMO_UL_IR_HARQ_for_CC_Sub_Burst_UIE");
839 
840     XBIT_HF_VALUE(muin, 1, hf_ulmap_mimo_ul_ir_harq_cc_mu_indicator);
841     XBIT_HF_VALUE(dmci, 1, hf_ulmap_mimo_ul_ir_harq_cc_dedicated_mimo_ul_control_indicator);
842     XBIT_HF_VALUE(ackd, 1, hf_ulmap_mimo_ul_ir_harq_cc_ack_disable);
843     if (muin == 0) {
844         bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
845         if (dmci) {
846             bit += Dedicated_MIMO_UL_Control_IE(tree, bit, length, tvb);
847         }
848     } else {
849         XBIT_HF(1, hf_ulmap_mimo_ul_ir_harq_cc_matrix);
850     }
851     XBIT_HF(10, hf_ulmap_mimo_ul_ir_harq_cc_duration);
852     for (i = 0; i < N_layer; i++) {
853         if (muin == 1) {
854             bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
855         }
856         XBIT_HF(4, hf_ulmap_mimo_ul_ir_harq_cc_uiuc);
857         XBIT_HF(2, hf_ulmap_mimo_ul_ir_harq_cc_repetition_coding_indication);
858         if (ackd == 0) {
859             XBIT_HF(4, hf_ulmap_mimo_ul_ir_harq_cc_acid);
860             XBIT_HF(1, hf_ulmap_mimo_ul_ir_harq_cc_ai_sn);
861             XBIT_HF(2, hf_ulmap_mimo_ul_ir_harq_cc_spid);
862         }
863     }
864 
865 #if 0
866     if (include_cor2_changes)
867     {
868 		/* CRC-16 is always appended */
869 		calculated_crc = wimax_mac_calc_crc16((guint8 *)tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
870 		proto_tree_add_checksum(tree, tvb, BITHI(bit,16), hf_ulmap_crc16, hf_ulmap_crc16_status, &ei_ulmap_crc16, pinfo, calculated_crc,
871 									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
872 
873 		bit += 16;
874     }
875 #endif
876 
877     return (bit - offset); /* length in bits */
878 }
879 
MIMO_UL_STC_HARQ_Sub_Burst_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)880 static gint MIMO_UL_STC_HARQ_Sub_Burst_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
881 {
882     /* 8.4.5.4.24 MIMO_UL_STC_HARQ_Sub_Burst_IE -- table 302q */
883     /* UL-MAP HARQ Sub-Burst IE * offset/length are in bits */
884     gint bit;
885     proto_item *tree;
886     /*proto_item *generic_item = NULL;*/
887     gint ackd,txct,sboi;
888     /*guint16 calculated_crc;*/
889 
890     bit = offset;
891 
892     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302q, NULL, "MIMO_UL_STC_HARQ_Sub_Burst_IE");
893 
894     XBIT_HF_VALUE(txct, 2, hf_ulmap_mimo_ul_stc_harq_tx_count);
895     XBIT_HF(10, hf_ulmap_mimo_ul_stc_harq_duration);
896     XBIT_HF_VALUE(sboi, 1, hf_ulmap_mimo_ul_stc_harq_sub_burst_offset_indication);
897     /*XBIT_HF_VALUE(muin, 1, hf_ulmap_reserved_uint);*/
898     if (sboi == 1) {
899         XBIT_HF(8, hf_ulmap_mimo_ul_stc_harq_sub_burst_offset);
900     }
901     bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
902     XBIT_HF_VALUE(ackd, 1, hf_ulmap_mimo_ul_stc_harq_ack_disable);
903     if (txct == 0) {
904         XBIT_HF(4, hf_ulmap_mimo_ul_stc_harq_uiuc);
905         XBIT_HF(2, hf_ulmap_mimo_ul_stc_harq_repetition_coding_indication);
906     }
907     if (ackd == 0) {
908         XBIT_HF(4, hf_ulmap_mimo_ul_stc_harq_acid);
909     }
910 
911 #if 0
912     if (include_cor2_changes)
913     {
914 		/* CRC-16 is always appended */
915 		calculated_crc = wimax_mac_calc_crc16((guint8 *)tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
916 		proto_tree_add_checksum(tree, tvb, BITHI(bit,16), hf_ulmap_crc16, hf_ulmap_crc16_status, &ei_ulmap_crc16, pinfo, calculated_crc,
917 									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
918 
919 		bit += 16;
920     }
921 #endif
922 
923     return (bit - offset); /* length in bits */
924 }
925 
926 /********************************************************************
927  * UL-MAP Extended IEs
928  * table 290a
929  *******************************************************************/
930 
Power_Control_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)931 static gint Power_Control_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
932 {
933     /* UL-MAP Extended IE = 0 */
934     /* 8.4.5.4.5 Power_Control_IE */
935     /* offset of TLV in nibbles, length of TLV in nibbles */
936     gint nib;
937     gint data;
938     proto_item *tree;
939 
940     nib = offset;
941 
942     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_292, NULL, "Power_Control_IE");
943 
944     VNIB(data, 1, hf_ulmap_ie_diuc_ext);
945     VNIB(data, 1, hf_ulmap_ie_length);
946 
947     VNIB(data, 2, hf_ulmap_power_control);
948     VNIB(data, 2, hf_ulmap_power_measurement_frame);
949     return nib;
950 }
951 
Mini_Subchannel_allocation_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)952 static gint Mini_Subchannel_allocation_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
953 {
954     /* UL-MAP Extended IE = 1 */
955     /* 8.4.5.4.8 [2] Mini-Subchannel_allocation_IE */
956     /* offset of TLV in nibbles, length of TLV in nibbles */
957     gint bit;
958     gint data;
959     guint idx;
960     proto_item *tree;
961     gint j, M;
962     const gint m_table[4] = { 2, 2, 3, 6 };
963 
964     bit = NIB_TO_BIT(offset);
965 
966     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_295, NULL, "Mini_subchannel_allocation_IE");
967 
968     XBIT_HF(4, hf_ulmap_mini_subcha_alloc_extended_2_uiuc);
969     XBIT_HF(8, hf_ulmap_mini_subcha_alloc_length);
970 
971     XBIT_HF_VALUE(idx, 2, hf_ulmap_mini_subcha_alloc_ctype);
972     M = m_table[idx];
973     XBIT_HF(6, hf_ulmap_mini_subcha_alloc_duration);
974 
975     for (j = 0; j < M; j++) {
976         data = TVB_BIT_BITS(bit, tvb, 16);
977         proto_tree_add_uint_format(tree, hf_ulmap_mini_subcha_alloc_cid, tvb, BITHI(bit, 16), data, "CID(%d): %d", j, data);
978         bit += 16;
979         data = TVB_BIT_BITS(bit, tvb, 4);
980         proto_tree_add_uint_format(tree, hf_ulmap_mini_subcha_alloc_uiuc, tvb, BITHI(bit, 4), data, "UIUC(%d): %d", j, data);
981         bit += 4;
982         data = TVB_BIT_BITS(bit, tvb, 2);
983         proto_tree_add_uint_format(tree, hf_ulmap_mini_subcha_alloc_repetition, tvb, BITHI(bit, 2), data, "Repetition(%d): %d", j, data);
984         bit += 2;
985     }
986     if (M == 3) {
987         XBIT_HF(4, hf_ulmap_mini_subcha_alloc_padding);
988     }
989     return BIT_TO_NIB(bit);
990 }
991 
AAS_UL_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)992 static gint AAS_UL_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
993 {
994     /* UL-MAP Extended IE = 2 */
995     /* 8.4.5.4.6 [2] AAS_UL_IE*/
996     /* offset of TLV in nibbles, length of TLV in nibbles */
997     gint bit;
998     proto_item *tree;
999 
1000     bit = NIB_TO_BIT(offset);
1001 
1002     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_293, NULL, "AAS_UL_IE");
1003 
1004     XBIT_HF(4, hf_ulmap_aas_ul_extended_uiuc);
1005     XBIT_HF(4, hf_ulmap_aas_ul_length);
1006 
1007     XBIT_HF(2, hf_ulmap_aas_ul_permutation);
1008     XBIT_HF(7, hf_ulmap_aas_ul_ul_permbase);
1009     XBIT_HF(8, hf_ulmap_aas_ul_ofdma_symbol_offset);
1010     XBIT_HF(8, hf_ulmap_aas_ul_aas_zone_length);
1011     XBIT_HF(2, hf_ulmap_aas_ul_uplink_preamble_config);
1012     XBIT_HF(1, hf_ulmap_aas_ul_preamble_type);
1013     XBIT_HF(4, hf_ulmap_reserved_uint);
1014     return BIT_TO_NIB(bit);
1015 }
1016 
CQICH_Alloc_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1017 static gint CQICH_Alloc_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1018 {
1019     /* UL-MAP Extended IE = 3 */
1020     /* 8.4.5.4.12 [2] CQICH_Alloc_IE */
1021     /* offset of TLV in nibbles, length of TLV in nibbles */
1022     gint bit;
1023     gint data;
1024     gint target;
1025     proto_item *tree;
1026     gint rci, rtype, ftype, zperm, mgi, api, pad;
1027 
1028     bit = NIB_TO_BIT(offset);
1029 
1030     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_300, NULL, "CQICH_Alloc_IE");
1031 
1032     XBIT_HF(4, hf_ulmap_cqich_alloc_extended_uiuc);
1033     XBIT_HF_VALUE(data, 4, hf_ulmap_cqich_alloc_length);
1034     target = bit + BYTE_TO_BIT(data);
1035 
1036     if (cqich_id_size == 0) {
1037         proto_tree_add_uint_format_value(tree, hf_ulmap_cqich_alloc_cqich_id, tvb, BITHI(bit, 1), cqich_id_size, "n/a (size == 0 bits)");
1038     } else {
1039         /* variable from 0-9 bits */
1040         data = TVB_BIT_BITS16(bit, tvb, cqich_id_size);
1041         proto_tree_add_uint_format_value(tree, hf_ulmap_cqich_alloc_cqich_id, tvb, BITHI(bit, cqich_id_size), data, "%d (%d bits)", data, cqich_id_size);
1042         bit += cqich_id_size;
1043     }
1044 
1045     XBIT_HF(6, hf_ulmap_cqich_alloc_allocation_offset);
1046     XBIT_HF(2, hf_ulmap_cqich_alloc_period);
1047     XBIT_HF(3, hf_ulmap_cqich_alloc_frame_offset);
1048     XBIT_HF(3, hf_ulmap_cqich_alloc_duration);
1049     XBIT_HF_VALUE(rci, 1, hf_ulmap_cqich_alloc_report_configuration_included);
1050     if (rci)
1051     {
1052         XBIT_HF_VALUE(ftype, 2, hf_ulmap_cqich_alloc_feedback_type);
1053         XBIT_HF_VALUE(rtype, 1, hf_ulmap_cqich_alloc_report_type);
1054         if (rtype == 0) {
1055             XBIT_HF(1, hf_ulmap_cqich_alloc_cinr_preamble_report_type);
1056         }
1057         else {
1058             XBIT_HF_VALUE(zperm, 3, hf_ulmap_cqich_alloc_zone_permutation);
1059             XBIT_HF(2, hf_ulmap_cqich_alloc_zone_type);
1060             XBIT_HF(2, hf_ulmap_cqich_alloc_zone_prbs_id);
1061             if (zperm == 0 || zperm == 1) {
1062                 XBIT_HF_VALUE(mgi, 1, hf_ulmap_cqich_alloc_major_group_indication);
1063                 if (mgi == 1) {
1064                     /* PUSC major group bitmap*/
1065                     XBIT_HF(6, hf_ulmap_cqich_alloc_pusc_major_group_bitmap);
1066                 }
1067             }
1068             XBIT_HF(1, hf_ulmap_cqich_alloc_cinr_zone_measurement_type);
1069         }
1070         if (ftype == 0) {
1071             XBIT_HF_VALUE(api, 1, hf_ulmap_cqich_alloc_averaging_parameter_included);
1072             if (api == 1) {
1073                 XBIT_HF(4, hf_ulmap_cqich_alloc_averaging_parameter);
1074             }
1075         }
1076     }
1077     XBIT_HF(2, hf_ulmap_cqich_alloc_mimo_permutation_feedback_cycle);
1078 
1079     pad = target - bit;
1080     if (pad) {
1081         proto_tree_add_bytes_format_value(tree, hf_ulmap_padding, tvb, BITHI(bit, pad), NULL, "%d bits", pad);
1082         bit += pad;
1083     }
1084     return BIT_TO_NIB(bit);	/* Return position in nibbles. */
1085 }
1086 
UL_Zone_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1087 static gint UL_Zone_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1088 {
1089     /* UL-MAP Extended IE = 4 */
1090     /* 8.4.5.4.7 [2] UL_Zone_IE */
1091     /* offset of TLV in nibbles, length of TLV in nibbles */
1092     gint bit;
1093     proto_item *tree;
1094 
1095     bit = NIB_TO_BIT(offset);
1096 
1097     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_294, NULL, "UL_Zone_IE");
1098 
1099     XBIT_HF(4, hf_ulmap_zone_extended_uiuc);
1100     XBIT_HF(4, hf_ulmap_zone_length);
1101 
1102     XBIT_HF(7, hf_ulmap_zone_ofdma_symbol_offset);
1103     XBIT_HF(2, hf_ulmap_zone_permutation);
1104     XBIT_HF(7, hf_ulmap_zone_ul_permbase);
1105     XBIT_HF(2, hf_ulmap_zone_amc_type);
1106     XBIT_HF(1, hf_ulmap_zone_use_all_sc_indicator);
1107     XBIT_HF(1, hf_ulmap_zone_disable_subchannel_rotation);
1108     XBIT_HF(4, hf_ulmap_reserved_uint);
1109     return BIT_TO_NIB(bit);
1110 }
1111 
PHYMOD_UL_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1112 static gint PHYMOD_UL_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1113 {
1114     /* UL-MAP Extended IE = 5 */
1115     /* 8.4.5.4.14 [2] PHYMOD_UL_IE */
1116     /* offset of TLV in nibbles, length of TLV in nibbles */
1117     gint bit;
1118     proto_item *tree;
1119     gint pmt;
1120 
1121     bit = NIB_TO_BIT(offset);
1122 
1123     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302, NULL, "PHYMOD_UL_IE");
1124 
1125     XBIT_HF(4, hf_ulmap_phymod_ul_extended_uiuc);
1126     XBIT_HF(4, hf_ulmap_phymod_ul_length);
1127 
1128     XBIT_HF_VALUE(pmt, 1, hf_ulmap_phymod_ul_preamble_modifier_type);
1129     if (pmt == 0) {
1130         XBIT_HF(4, hf_ulmap_phymod_ul_preamble_frequency_shift_index);
1131     } else {
1132         XBIT_HF(4, hf_ulmap_phymod_ul_preamble_time_shift_index);
1133     }
1134     XBIT_HF(1, hf_ulmap_phymod_ul_pilot_pattern_modifier);
1135     XBIT_HF(2, hf_ulmap_phymod_ul_pilot_pattern_index);
1136     return BIT_TO_NIB(bit);
1137 }
1138 
MIMO_UL_IE(proto_tree * uiuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1139 static gint MIMO_UL_IE(proto_tree *uiuc_tree, packet_info* pinfo, gint offset, gint length, tvbuff_t *tvb)
1140 {
1141     /* UL-MAP Extended IE = 6 */
1142     /* 8.4.5.4.11 MIMO_UL_Basic_IE (not implemented) */
1143     /* offset of TLV in nibbles, length of TLV in nibbles */
1144     gint nib;
1145     gint data;
1146     proto_item *tree;
1147 
1148     nib = offset;
1149 
1150     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_299, NULL, "MIMO_UL_Basic_IE");
1151 
1152     VNIB(data, 1, hf_ulmap_ie_diuc_ext);
1153     VNIB(data, 1, hf_ulmap_ie_length);
1154     proto_tree_add_expert(tree, pinfo, &ei_ulmap_not_implemented, tvb, NIBHI(nib,length-2));
1155     return nib;
1156 }
1157 
ULMAP_Fast_Tracking_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1158 static gint ULMAP_Fast_Tracking_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1159 {
1160     /* UL-MAP Extended IE = 7 */
1161     /* 8.4.5.4.22 [2] ULMAP_Fast_Tracking_IE */
1162     /* offset of TLV in nibbles, length of TLV in nibbles */
1163     gint bit;
1164     proto_item *tree;
1165 
1166     bit = NIB_TO_BIT(offset);
1167 
1168     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302h, NULL, "Fast_Tracking_IE");
1169 
1170     length = NIB_TO_BIT(length);
1171 
1172     XBIT_HF(4, hf_ulmap_fast_tracking_extended_uiuc);
1173     XBIT_HF(4, hf_ulmap_fast_tracking_length);
1174 
1175     XBIT_HF(2, hf_ulmap_fast_tracking_map_index);
1176     XBIT_HF(6, hf_ulmap_reserved_uint);
1177     while (bit < (length-7)) {
1178         XBIT_HF(3, hf_ulmap_fast_tracking_power_correction);
1179         XBIT_HF(3, hf_ulmap_fast_tracking_frequency_correction);
1180         XBIT_HF(2, hf_ulmap_fast_tracking_time_correction);
1181     }
1182     return BIT_TO_NIB(bit);
1183 }
1184 
UL_PUSC_Burst_Allocation_in_other_segment_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1185 static gint UL_PUSC_Burst_Allocation_in_other_segment_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1186 {
1187     /* UL-MAP Extended IE = 8 */
1188     /* 8.4.5.4.17 [2] UL_PUSC_Burst_Allocation_in_other_segment_IE */
1189     /* offset of TLV in nibbles, length of TLV in nibbles */
1190     gint bit;
1191     proto_item *tree;
1192 
1193     bit = NIB_TO_BIT(offset);
1194 
1195     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302c, NULL, "UL_PUSC_Burst_Allocation_in_Other_Segment_IE");
1196 
1197     XBIT_HF(4, hf_ulmap_pusc_burst_allocation_extended_uiuc);
1198     XBIT_HF(4, hf_ulmap_pusc_burst_allocation_length);
1199 
1200     XBIT_HF(4, hf_ulmap_pusc_burst_allocation_uiuc);
1201     XBIT_HF(2, hf_ulmap_pusc_burst_allocation_segment);
1202     XBIT_HF(7, hf_ulmap_pusc_burst_allocation_ul_permbase);
1203     XBIT_HF(8, hf_ulmap_pusc_burst_allocation_ofdma_symbol_offset);
1204     XBIT_HF(6, hf_ulmap_pusc_burst_allocation_subchannel_offset);
1205     XBIT_HF(10, hf_ulmap_pusc_burst_allocation_duration);
1206     XBIT_HF(2, hf_ulmap_pusc_burst_allocation_repetition_coding_indication);
1207     XBIT_HF(1, hf_ulmap_reserved_uint);
1208     return BIT_TO_NIB(bit);
1209 }
1210 
Fast_Ranging_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1211 static gint Fast_Ranging_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1212 {
1213     /* UL-MAP Extended IE = 9 */
1214     /* 8.4.5.4.21 [2] Fast_Ranging_IE */
1215     /* offset of TLV in nibbles, length of TLV in nibbles */
1216     gint bit;
1217     proto_item *tree;
1218     gint hidi;
1219 
1220     bit = NIB_TO_BIT(offset);
1221 
1222     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302g, NULL, "Fast_Ranging_IE");
1223 
1224     XBIT_HF(4, hf_ulmap_fast_ranging_extended_uiuc);
1225     XBIT_HF(4, hf_ulmap_fast_ranging_length);
1226 
1227     XBIT_HF_VALUE(hidi, 1, hf_ulmap_fast_ranging_ho_id_indicator);
1228     XBIT_HF(7, hf_ulmap_reserved_uint);
1229     if (hidi == 1) {
1230         XBIT_HF(8, hf_ulmap_fast_ranging_ho_id);
1231         /* XBIT_HF(40, hf_ulmap_reserved_uint); TODO */
1232     } else {
1233         proto_tree_add_item(tree, hf_ulmap_fast_ranging_mac_address, tvb, BITHI(bit, 48), ENC_NA);
1234         bit += 48;
1235     }
1236     XBIT_HF(4, hf_ulmap_fast_ranging_uiuc);
1237     XBIT_HF(10, hf_ulmap_fast_ranging_duration);
1238     XBIT_HF(2, hf_ulmap_fast_ranging_repetition_coding_indication);
1239     return BIT_TO_NIB(bit);
1240 }
1241 
UL_Allocation_Start_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1242 static gint UL_Allocation_Start_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1243 {
1244     /* UL-MAP Extended IE = 0xA */
1245     /* 8.4.5.4.15 [2] UL_Allocation_Start_IE */
1246     /* offset of TLV in nibbles, length of TLV in nibbles */
1247     gint bit;
1248     proto_item *tree;
1249 
1250     bit = NIB_TO_BIT(offset);
1251 
1252     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302a, NULL, "UL_Allocation_start_IE");
1253 
1254     XBIT_HF(4, hf_ulmap_allocation_start_extended_uiuc);
1255     XBIT_HF(4, hf_ulmap_allocation_start_length);
1256 
1257     XBIT_HF(8, hf_ulmap_allocation_start_ofdma_symbol_offset);
1258     XBIT_HF(7, hf_ulmap_allocation_start_subchannel_offset);
1259     XBIT_HF(1, hf_ulmap_reserved_uint);
1260     return BIT_TO_NIB(bit);
1261 }
1262 
1263 
1264 /********************************************************************
1265  * UL-MAP Extended-2 IEs
1266  * table 290c
1267  *******************************************************************/
1268 
CQICH_Enhanced_Allocation_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1269 static gint CQICH_Enhanced_Allocation_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1270 {
1271     /* UL-MAP Extended-2 IE = 0 */
1272     /* 8.4.5.4.16 [2] CQICH_Enhanced_Allocation_IE */
1273     /* offset of TLV in nibbles, length of TLV in nibbles */
1274     gint bit;
1275     gint data;
1276     proto_item *tree;
1277     gint i, cnum, bapm;
1278     guint pad;
1279 
1280     bit = NIB_TO_BIT(offset);
1281 
1282     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302b, NULL, "CQICH_Enhanced_Alloc_IE");
1283 
1284     XBIT_HF(4, hf_ulmap_cqich_enhanced_alloc_extended_2_uiuc);
1285     XBIT_HF(8, hf_ulmap_cqich_enhanced_alloc_length);
1286 
1287     if (cqich_id_size == 0) {
1288         proto_tree_add_uint_format_value(tree, hf_ulmap_cqich_enhanced_alloc_cqich_id, tvb, BITHI(bit, 1), cqich_id_size, "n/a (size == 0 bits)");
1289     } else {
1290         /* variable from 0-9 bits */
1291         data = TVB_BIT_BITS16(bit, tvb, cqich_id_size);
1292         proto_tree_add_uint_format_value(tree, hf_ulmap_cqich_enhanced_alloc_cqich_id, tvb, BITHI(bit, cqich_id_size), data, "%d (%d bits)", data, cqich_id_size);
1293         bit += cqich_id_size;
1294     }
1295 
1296     XBIT_HF(3, hf_ulmap_cqich_enhanced_alloc_period);
1297     XBIT_HF(3, hf_ulmap_cqich_enhanced_alloc_frame_offset);
1298     XBIT_HF(3, hf_ulmap_cqich_enhanced_alloc_duration);
1299     XBIT_HF_VALUE(cnum, 4, hf_ulmap_cqich_enhanced_alloc_cqich_num);
1300     cnum += 1;
1301     for (i = 0; i < cnum; i++) {
1302         XBIT_HF(3, hf_ulmap_cqich_enhanced_alloc_feedback_type);
1303         XBIT_HF(6, hf_ulmap_cqich_enhanced_alloc_allocation_index);
1304         XBIT_HF(3, hf_ulmap_cqich_enhanced_alloc_cqich_type);
1305         XBIT_HF(1, hf_ulmap_cqich_enhanced_alloc_sttd_indication);
1306     }
1307     XBIT_HF_VALUE(bapm, 1, hf_ulmap_cqich_enhanced_alloc_band_amc_precoding_mode);
1308     if (bapm == 1) {
1309         XBIT_HF(3, hf_ulmap_cqich_enhanced_alloc_nr_precoders_feedback);
1310     }
1311 
1312     pad = BIT_PADDING(bit,8);
1313     if (pad) {
1314         proto_tree_add_bytes_format_value(tree, hf_ulmap_padding, tvb, BITHI(bit, pad), NULL, "%d bits", pad);
1315         bit += pad;
1316     }
1317     return BIT_TO_NIB(bit);
1318 }
1319 
HO_Anchor_Active_UL_MAP_IE(proto_tree * uiuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1320 static gint HO_Anchor_Active_UL_MAP_IE(proto_tree *uiuc_tree, packet_info* pinfo, gint offset, gint length, tvbuff_t *tvb)
1321 {
1322     /* UL-MAP Extended-2 IE = 1 */
1323     /* 8.4.5.4.18 [2] HO_Anchor_Active_UL_MAP_IE (not implemented) */
1324     /* offset of TLV in nibbles, length of TLV in nibbles */
1325     gint nib;
1326     gint data;
1327     proto_item *tree;
1328 
1329     nib = offset;
1330 
1331     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302d, NULL, "HO_Anchor_Active_UL_MAP_IE");
1332 
1333     VNIB(data, 1, hf_ulmap_ie_diuc_ext2);
1334     VNIB(data, 2, hf_ulmap_ie_length);
1335     proto_tree_add_expert(tree, pinfo, &ei_ulmap_not_implemented, tvb, NIBHI(nib,length-3));
1336     return nib;
1337 }
1338 
HO_Active_Anchor_UL_MAP_IE(proto_tree * uiuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1339 static gint HO_Active_Anchor_UL_MAP_IE(proto_tree *uiuc_tree, packet_info* pinfo, gint offset, gint length, tvbuff_t *tvb)
1340 {
1341     /* UL-MAP Extended-2 IE = 2 */
1342     /* 8.4.5.4.19 [2] HO_Active_Anchor_UL_MAP_IE (not implemented) */
1343     /* offset of TLV in nibbles, length of TLV in nibbles */
1344     gint nib;
1345     gint data;
1346     proto_item *tree;
1347 
1348     nib = offset;
1349 
1350     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302e, NULL, "HO_Active_Anchor_UL_MAP_IE");
1351 
1352     VNIB(data, 1, hf_ulmap_ie_diuc_ext2);
1353     VNIB(data, 2, hf_ulmap_ie_length);
1354     proto_tree_add_expert(tree, pinfo, &ei_ulmap_not_implemented, tvb, NIBHI(nib,length-3));
1355     return nib;
1356 }
1357 
Anchor_BS_switch_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1358 static gint Anchor_BS_switch_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1359 {
1360     /* UL-MAP Extended-2 IE = 3 */
1361     /* 8.4.5.4.23 [2] Anchor_BS_switch_IE */
1362     /* offset of TLV in nibbles, length of TLV in nibbles */
1363     gint bit;
1364     gint data;
1365     proto_item *tree;
1366     gint nbss, acod, cqai, pad;
1367     gint i;
1368 
1369     bit = NIB_TO_BIT(offset);
1370 
1371     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302i, NULL, "Anchor_BS_switch_IE");
1372 
1373     XBIT_HF(4, hf_ulmap_anchor_bs_switch_extended_2_uiuc);
1374     XBIT_HF(8, hf_ulmap_anchor_bs_switch_length);
1375 
1376     XBIT_HF_VALUE(nbss, 4, hf_ulmap_anchor_bs_switch_n_anchor_bs_switch);
1377     for (i = 0; i < nbss; i++) {
1378         XBIT_HF(12, hf_ulmap_anchor_bs_switch_reduced_cid);
1379         XBIT_HF_VALUE(acod, 2, hf_ulmap_anchor_bs_switch_action_code);
1380         if (acod == 1) {
1381             XBIT_HF(3, hf_ulmap_anchor_bs_switch_action_time);
1382             XBIT_HF(3, hf_ulmap_anchor_bs_switch_temp_bs_id);
1383             XBIT_HF(2, hf_ulmap_reserved_uint);
1384         }
1385         if (acod == 0 || acod == 1) {
1386 	    XBIT_HF(1, hf_ulmap_anchor_bs_switch_ak_change_indicator);
1387             XBIT_HF_VALUE(cqai, 1, hf_ulmap_anchor_bs_switch_cqich_allocation_indicator);
1388             if (cqai == 1) {
1389                 /* variable bits from 0-9 */
1390                 if (cqich_id_size == 0) {
1391                     proto_tree_add_uint_format_value(tree, hf_ulmap_anchor_bs_switch_cqich_id, tvb, BITHI(bit, 1), cqich_id_size, "n/a (size == 0 bits)");
1392                 } else {
1393                     data = TVB_BIT_BITS16(bit, tvb, cqich_id_size);
1394                     proto_tree_add_uint_format_value(tree, hf_ulmap_anchor_bs_switch_cqich_id, tvb, BITHI(bit, cqich_id_size),
1395                         data, "%d (%d bits)", data, cqich_id_size);
1396                     bit += cqich_id_size;
1397                 }
1398                 XBIT_HF(6, hf_ulmap_anchor_bs_switch_feedback_channel_offset);
1399                 XBIT_HF(2, hf_ulmap_anchor_bs_switch_period);
1400                 XBIT_HF(3, hf_ulmap_anchor_bs_switch_frame_offset);
1401                 XBIT_HF(3, hf_ulmap_anchor_bs_switch_duration);
1402                 XBIT_HF(2, hf_ulmap_anchor_bs_switch_mimo_permutation_feedback_code);
1403                 pad = BIT_PADDING(bit,8);
1404                 if (pad) {
1405                     proto_tree_add_uint_format_value(tree, hf_ulmap_reserved, tvb, BITHI(bit,pad), 0, "%d bits", pad);
1406                 }
1407             }
1408         } else {
1409             XBIT_HF(2, hf_ulmap_reserved_uint);
1410         }
1411     }
1412     XBIT_HF(4, hf_ulmap_reserved_uint);
1413     return BIT_TO_NIB(bit);
1414 }
1415 
UL_sounding_command_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1416 static gint UL_sounding_command_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1417 {
1418     /* UL-MAP Extended-2 IE = 4 */
1419     /* 8.4.5.4.26 [2] UL_sounding_command_IE */
1420     /* see 8.4.6.2.7.1 */
1421     /* offset of TLV in nibbles, length of TLV in nibbles */
1422     gint bit;
1423     proto_item *tree;
1424     gint stype, srlf, iafb, pad, sept, nssym, ncid, amod;
1425     gint i, j;
1426 
1427     bit = NIB_TO_BIT(offset);
1428 
1429     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_315d, NULL, "UL_Sounding_Command_IE");
1430 
1431     XBIT_HF(4, hf_ulmap_sounding_command_extended_2_uiuc);
1432     XBIT_HF(8, hf_ulmap_sounding_command_length);
1433 
1434     XBIT_HF_VALUE(stype, 1, hf_ulmap_sounding_command_type);
1435     XBIT_HF(1, hf_ulmap_sounding_command_send_sounding_report_flag);
1436     XBIT_HF_VALUE(srlf, 1, hf_ulmap_sounding_command_relevance_flag);
1437     if (srlf == 0) {
1438         XBIT_HF(1, hf_ulmap_sounding_command_relevance);
1439         XBIT_HF(2, hf_ulmap_reserved_uint);
1440     } else {
1441         XBIT_HF(3, hf_ulmap_reserved_uint);
1442     }
1443     XBIT_HF_VALUE(iafb, 2, hf_ulmap_sounding_command_include_additional_feedback);
1444     if (stype == 0) {
1445         XBIT_HF_VALUE(nssym, 3, hf_ulmap_sounding_command_num_sounding_symbols);
1446         XBIT_HF(1, hf_ulmap_reserved_uint);
1447         for (i = 0; i < nssym; i++) {
1448             XBIT_HF_VALUE(sept, 1, hf_ulmap_sounding_command_separability_type);
1449             if (sept == 0) {
1450                 XBIT_HF(3, hf_ulmap_sounding_command_max_cyclic_shift_index_p);
1451                 XBIT_HF(1, hf_ulmap_reserved_uint);
1452             } else {
1453                 XBIT_HF(3, hf_ulmap_sounding_command_decimation_value);
1454                 XBIT_HF(1, hf_ulmap_sounding_command_decimation_offset_randomization);
1455             }
1456             XBIT_HF(3, hf_ulmap_sounding_command_symbol_index);
1457             XBIT_HF_VALUE(ncid, 7, hf_ulmap_sounding_command_number_of_cids);
1458             XBIT_HF(1, hf_ulmap_reserved_uint);
1459             for (j = 0; j < ncid; j++) {
1460                 XBIT_HF(12, hf_ulmap_sounding_command_shorted_basic_cid);
1461                 XBIT_HF(2, hf_ulmap_sounding_command_power_assignment_method);
1462                 XBIT_HF(1, hf_ulmap_sounding_command_power_boost);
1463                 XBIT_HF(1, hf_ulmap_sounding_command_multi_antenna_flag);
1464                 XBIT_HF_VALUE(amod, 1, hf_ulmap_sounding_command_allocation_mode);
1465                 if (amod == 1) {
1466                     XBIT_HF(12, hf_ulmap_sounding_command_band_bit_map);
1467                     XBIT_HF(2, hf_ulmap_reserved_uint);
1468                 } else {
1469                     XBIT_HF(7, hf_ulmap_sounding_command_starting_frequency_band);
1470                     XBIT_HF(7, hf_ulmap_sounding_command_number_of_frequency_bands);
1471                 }
1472                 if (srlf == 1) {
1473                     XBIT_HF(1, hf_ulmap_sounding_command_relevance);
1474                 } else {
1475                     XBIT_HF(1, hf_ulmap_reserved_uint);
1476                 }
1477                 if (sept == 0) {
1478                     XBIT_HF(5, hf_ulmap_sounding_command_cyclic_time_shift_index);
1479                 } else {
1480                     XBIT_HF(6, hf_ulmap_sounding_command_decimation_offset);
1481                     if (iafb == 1) {
1482                         XBIT_HF(1, hf_ulmap_sounding_command_use_same_symbol_for_additional_feedback);
1483                         XBIT_HF(2, hf_ulmap_reserved_uint);
1484                     } else {
1485                         XBIT_HF(3, hf_ulmap_reserved_uint);
1486                     }
1487                 }
1488                 XBIT_HF(3, hf_ulmap_sounding_command_periodicity);
1489             }
1490         }
1491     } else {
1492         XBIT_HF(3, hf_ulmap_sounding_command_permutation);
1493         XBIT_HF(6, hf_ulmap_sounding_command_dl_permbase);
1494         XBIT_HF_VALUE(nssym, 3, hf_ulmap_sounding_command_num_sounding_symbols);
1495         for (i = 0; i < nssym; i++) {
1496             XBIT_HF_VALUE(ncid, 7, hf_ulmap_sounding_command_number_of_cids);
1497             XBIT_HF(1, hf_ulmap_reserved_uint);
1498             for (j = 0; j < ncid; j++) {
1499                 XBIT_HF(12, hf_ulmap_sounding_command_shortened_basic_cid);
1500                 if (srlf) {
1501                     XBIT_HF(1, hf_ulmap_sounding_command_relevance);
1502                     XBIT_HF(3, hf_ulmap_reserved_uint);
1503                 }
1504                 XBIT_HF(7, hf_ulmap_sounding_command_subchannel_offset);
1505                 XBIT_HF(1, hf_ulmap_sounding_command_power_boost);
1506                 XBIT_HF(3, hf_ulmap_sounding_command_number_of_subchannels);
1507                 XBIT_HF(3, hf_ulmap_sounding_command_periodicity);
1508                 XBIT_HF(2, hf_ulmap_sounding_command_power_assignment_method);
1509             }
1510         }
1511     }
1512     pad = BIT_PADDING(bit,8);
1513     if (pad) {
1514         proto_tree_add_bytes_format_value(tree, hf_ulmap_padding, tvb, BITHI(bit, pad), NULL, "%d bits", pad);
1515         bit += pad;
1516     }
1517     return BIT_TO_NIB(bit);
1518 }
1519 
MIMO_UL_Enhanced_IE(proto_tree * uiuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1520 static gint MIMO_UL_Enhanced_IE(proto_tree *uiuc_tree, packet_info* pinfo, gint offset, gint length, tvbuff_t *tvb)
1521 {
1522     /* UL-MAP Extended-2 IE = 6 */
1523     /* 8.4.5.4.20 [2] MIMO_UL_Enhanced_IE (not implemented) */
1524     /* offset of TLV in nibbles, length of TLV in nibbles */
1525     gint nib;
1526     gint data;
1527     proto_item *tree;
1528 
1529     nib = offset;
1530 
1531     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302f, NULL, "MIMO_UL_Enhanced_IE");
1532 
1533     VNIB(data, 1, hf_ulmap_ie_diuc_ext2);
1534     VNIB(data, 2, hf_ulmap_ie_length);
1535     proto_tree_add_expert(tree, pinfo, &ei_ulmap_not_implemented, tvb, NIBHI(nib,length-3));
1536     return nib;
1537 }
1538 
HARQ_ULMAP_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1539 static gint HARQ_ULMAP_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1540 {
1541     /* UL-MAP Extended-2 IE = 7 */
1542     /* 8.4.5.4.24 HARQ_ULMAP_IE */
1543     /* offset of TLV in nibbles, length of TLV in nibbles */
1544     gint bit;
1545     proto_item *tree;
1546     gint bitlength;
1547     gint lastbit;
1548     gint pad, mode, alsi, nsub;
1549     gint i;
1550 
1551     bit = NIB_TO_BIT(offset);
1552     bitlength = NIB_TO_BIT(length);
1553 
1554     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302j, NULL, "HARQ_ULMAP_IE");
1555 
1556     XBIT_HF(4, hf_ulmap_harq_ulmap_extended_2_uiuc);
1557     XBIT_HF(8, hf_ulmap_harq_ulmap_length);
1558 
1559     XBIT_HF_VALUE(RCID_Type, 2, hf_ulmap_harq_ulmap_rcid_type);
1560     XBIT_HF(2, hf_ulmap_reserved_uint);
1561     lastbit = bit + bitlength -16 - 4;
1562     while (bit < lastbit) {
1563         XBIT_HF_VALUE(mode, 3, hf_ulmap_harq_ulmap_mode);
1564         XBIT_HF_VALUE(alsi, 1, hf_ulmap_harq_ulmap_allocation_start_indication);
1565         if (alsi == 1) {
1566             XBIT_HF(8, hf_ulmap_harq_ulmap_ofdma_symbol_offset);
1567             XBIT_HF(7, hf_ulmap_harq_ulmap_subchannel_offset);
1568             XBIT_HF(1, hf_ulmap_reserved_uint);
1569         }
1570         XBIT_HF_VALUE(nsub, 4, hf_ulmap_harq_ulmap_n_sub_burst);
1571         nsub++;
1572         for (i = 0; i < nsub; i++) {
1573             if (mode == 0) {
1574                 bit += UL_HARQ_Chase_Sub_Burst_IE(tree, bit, bitlength, tvb);
1575             } else if (mode == 1) {
1576                bit +=  UL_HARQ_IR_CTC_Sub_Burst_IE(tree, bit, bitlength, tvb);
1577             } else if (mode == 2) {
1578                 bit += UL_HARQ_IR_CC_Sub_Burst_IE(tree, bit, bitlength, tvb);
1579             } else if (mode == 3) {
1580                 bit += MIMO_UL_Chase_HARQ_Sub_Burst_IE(tree, bit, bitlength, tvb);
1581             } else if (mode == 4) {
1582                 bit += MIMO_UL_IR_HARQ__Sub_Burst_IE(tree, bit, bitlength, tvb);
1583             } else if (mode == 5) {
1584                 bit += MIMO_UL_IR_HARQ_for_CC_Sub_Burst_UIE(tree, bit, bitlength, tvb);
1585             } else if (mode == 6) {
1586                 bit += MIMO_UL_STC_HARQ_Sub_Burst_IE(tree, bit, bitlength, tvb);
1587             }
1588         }
1589     }
1590 
1591     pad = NIB_TO_BIT(offset) + bitlength - bit;
1592     if (pad) {
1593         proto_tree_add_bytes_format_value(tree, hf_ulmap_padding, tvb, BITHI(bit, pad), NULL, "%d bits", pad);
1594         bit += pad;
1595     }
1596     return BIT_TO_NIB(bit);
1597 }
1598 
HARQ_ACKCH_Region_Allocation_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1599 static gint HARQ_ACKCH_Region_Allocation_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1600 {
1601     /* UL-MAP Extended-2 IE = 8 */
1602     /* 8.4.5.4.25 [2] HARQ_ACKCH_Region_Allocation_IE */
1603     /* offset of TLV in nibbles, length of TLV in nibbles */
1604     gint bit;
1605     proto_item *tree;
1606 
1607     bit = NIB_TO_BIT(offset);
1608 
1609     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302t, NULL, "HARQ_ACKCH_Region_IE");
1610 
1611     XBIT_HF(4, hf_ulmap_harq_ackch_region_alloc_extended_2_uiuc);
1612     XBIT_HF(8, hf_ulmap_harq_ackch_region_alloc_length);
1613 
1614     XBIT_HF(8, hf_ulmap_harq_ackch_region_alloc_ofdma_symbol_offset);
1615     XBIT_HF(7, hf_ulmap_harq_ackch_region_alloc_subchannel_offset);
1616     XBIT_HF(5, hf_ulmap_harq_ackch_region_alloc_num_ofdma_symbols);
1617     XBIT_HF(4, hf_ulmap_harq_ackch_region_alloc_num_subchannels);
1618     return BIT_TO_NIB(bit);
1619 }
1620 
AAS_SDMA_UL_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1621 static gint AAS_SDMA_UL_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1622 {
1623     /* UL-MAP Extended-2 IE = 0xE */
1624     /* 8.4.5.4.27 [2] AAS_SDMA_UL_IE  */
1625     /* offset of TLV in nibbles, length of TLV in nibbles */
1626     gint bit;
1627     proto_item *tree;
1628     gint nreg, pad, user, encm, ppmd, padj;
1629     gint aasp = 0; /* TODO AAS UL preamble used */
1630     gint ii, jj;
1631 
1632     bit = NIB_TO_BIT(offset);
1633 
1634     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302u, NULL, "AAS_SDMA_UL_IE");
1635 
1636     XBIT_HF(4, hf_ulmap_aas_sdma_extended_2_uiuc);
1637     XBIT_HF(8, hf_ulmap_aas_sdma_length);
1638 
1639     XBIT_HF_VALUE(RCID_Type, 2, hf_ulmap_aas_sdma_rcid_type);
1640     XBIT_HF_VALUE(nreg, 4, hf_ulmap_aas_sdma_num_burst_region);
1641     XBIT_HF(2, hf_ulmap_reserved_uint);
1642     for (ii = 0; ii < nreg; ii++) {
1643         XBIT_HF(12, hf_ulmap_aas_sdma_slot_offset);
1644         XBIT_HF(10, hf_ulmap_aas_sdma_slot_duration);
1645         XBIT_HF_VALUE(user, 3, hf_ulmap_aas_sdma_number_of_users);
1646         XBIT_HF(3, hf_ulmap_reserved_uint);
1647         for (jj = 0; jj < user; jj++) {
1648             bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
1649             XBIT_HF_VALUE(encm, 2, hf_ulmap_aas_sdma_encoding_mode);
1650             XBIT_HF_VALUE(padj, 1, hf_ulmap_aas_sdma_power_adjust);
1651             XBIT_HF_VALUE(ppmd, 1, hf_ulmap_aas_sdma_pilot_pattern_modifier);
1652             if (aasp) {
1653                 XBIT_HF(4, hf_ulmap_aas_sdma_preamble_modifier_index);
1654             }
1655             if (ppmd) {
1656                 XBIT_HF(2, hf_ulmap_aas_sdma_pilot_pattern);
1657                 XBIT_HF(2, hf_ulmap_reserved_uint);
1658             }
1659             if (encm == 0) {
1660                 XBIT_HF(4, hf_ulmap_aas_sdma_diuc);
1661                 XBIT_HF(2, hf_ulmap_aas_sdma_repetition_coding_indication);
1662                 XBIT_HF(2, hf_ulmap_reserved_uint);
1663             }
1664             if (encm == 1) {
1665                 XBIT_HF(4, hf_ulmap_aas_sdma_diuc);
1666                 XBIT_HF(2, hf_ulmap_aas_sdma_repetition_coding_indication);
1667                 XBIT_HF(4, hf_ulmap_aas_sdma_acid);
1668                 XBIT_HF(1, hf_ulmap_aas_sdma_ai_sn);
1669                 XBIT_HF(1, hf_ulmap_reserved_uint);
1670             }
1671             if (encm == 2) {
1672                 XBIT_HF(4, hf_ulmap_aas_sdma_nep);
1673                 XBIT_HF(4, hf_ulmap_aas_sdma_nsch);
1674                 XBIT_HF(2, hf_ulmap_aas_sdma_spid);
1675                 XBIT_HF(4, hf_ulmap_aas_sdma_acid);
1676                 XBIT_HF(1, hf_ulmap_aas_sdma_ai_sn);
1677                 XBIT_HF(1, hf_ulmap_reserved_uint);
1678             }
1679             if (encm == 3) {
1680                 XBIT_HF(4, hf_ulmap_aas_sdma_diuc);
1681                 XBIT_HF(2, hf_ulmap_aas_sdma_repetition_coding_indication);
1682                 XBIT_HF(2, hf_ulmap_aas_sdma_spid);
1683                 XBIT_HF(4, hf_ulmap_aas_sdma_acid);
1684                 XBIT_HF(1, hf_ulmap_aas_sdma_ai_sn);
1685                 XBIT_HF(3, hf_ulmap_reserved_uint);
1686             }
1687             if (padj) {
1688                 XBIT_HF(8, hf_ulmap_aas_sdma_power_adjustment);
1689 
1690             }
1691         }
1692     }
1693 
1694     pad = BIT_PADDING(bit,8);
1695     if (pad) {
1696         proto_tree_add_bytes_format_value(tree, hf_ulmap_padding, tvb, BITHI(bit, pad), NULL, "%d bits", pad);
1697         bit += pad;
1698     }
1699     return BIT_TO_NIB(bit);
1700 }
1701 
Feedback_Polling_IE(proto_tree * uiuc_tree,gint offset,gint length,tvbuff_t * tvb)1702 static gint Feedback_Polling_IE(proto_tree *uiuc_tree, gint offset, gint length, tvbuff_t *tvb)
1703 {
1704     /* UL-MAP Extended-2 IE = 0xF */
1705     /* 8.4.5.4.28 [2] Feedback_Polling_IE */
1706     /* offset of TLV in nibbles, length of TLV in nibbles */
1707     gint bit;
1708     proto_item *tree;
1709     gint nalloc, dula, pad, adur;
1710     gint i;
1711 
1712     bit = NIB_TO_BIT(offset);
1713 
1714     tree = proto_tree_add_subtree(uiuc_tree, tvb, NIBHI(offset, length), ett_302v, NULL, "Feedback_Polling_IE");
1715 
1716     XBIT_HF(4, hf_ulmap_feedback_polling_extended_2_uiuc);
1717     XBIT_HF(8, hf_ulmap_feedback_polling_length);
1718 
1719     XBIT_HF_VALUE(nalloc, 4, hf_ulmap_feedback_polling_num_allocation);
1720     XBIT_HF_VALUE(dula, 1, hf_ulmap_feedback_polling_dedicated_ul_allocation_included);
1721     XBIT_HF(3, hf_ulmap_reserved_uint);
1722     for (i = 0; i < nalloc; i++) {
1723         XBIT_HF(16, hf_ulmap_feedback_polling_basic_cid);
1724         XBIT_HF_VALUE(adur, 3, hf_ulmap_feedback_polling_allocation_duration);
1725         if (adur != 0) {
1726             XBIT_HF(4, hf_ulmap_feedback_polling_type);
1727             XBIT_HF(3, hf_ulmap_feedback_polling_frame_offset);
1728             XBIT_HF(2, hf_ulmap_feedback_polling_period);
1729             if (dula == 1) {
1730                 XBIT_HF(4, hf_ulmap_feedback_polling_uiuc);
1731                 XBIT_HF(8, hf_ulmap_feedback_polling_ofdma_symbol_offset);
1732                 XBIT_HF(7, hf_ulmap_feedback_polling_subchannel_offset);
1733                 XBIT_HF(3, hf_ulmap_feedback_polling_duration);
1734                 XBIT_HF(2, hf_ulmap_feedback_polling_repetition_coding_indication);
1735             }
1736         }
1737     }
1738     pad = BIT_PADDING(bit,8);
1739     if (pad) {
1740         proto_tree_add_bytes_format_value(tree, hf_ulmap_padding, tvb, BITHI(bit, pad), NULL, "%d bits", pad);
1741         bit += pad;
1742     }
1743     return BIT_TO_NIB(bit);
1744 }
1745 
1746 
1747 /********************************************************************
1748  * UL-MAP Miscellany
1749  *******************************************************************/
1750 
dissect_ulmap_ie(proto_tree * ie_tree,packet_info * pinfo,gint offset,gint length _U_,tvbuff_t * tvb)1751 gint dissect_ulmap_ie( proto_tree *ie_tree, packet_info* pinfo, gint offset, gint length _U_, tvbuff_t *tvb)
1752 {
1753     /* decode a single UL-MAP IE and return the
1754      * length of the IE in nibbles
1755      * offset = start of IE (nibbles)
1756      * length = total length of tvb (nibbles) */
1757     proto_item *ti;
1758     proto_tree *tree;
1759     gint nibble;
1760     gint uiuc, ext_uiuc, ext2_uiuc, len, aas_or_amc;
1761     guint cid;
1762     guint data;
1763     guint32 data32;
1764 
1765     nibble = offset;
1766 
1767     /* 8.4.5.4 UL-MAP IE format - table 287 */
1768     cid = TVB_NIB_WORD(nibble, tvb);
1769     uiuc = TVB_NIB_NIBBLE(nibble + 4, tvb);
1770 
1771     if (uiuc == 0)
1772     {
1773         /* 8.4.5.4.9 FAST-FEEDBACK channel */
1774         tree = proto_tree_add_subtree(ie_tree, tvb, NIBHI(nibble, 5+8), ett_ulmap_ffb, NULL, "FAST FEEDBACK Allocation IE");
1775 
1776         proto_tree_add_uint(tree, hf_ulmap_ie_cid, tvb, NIBHI(nibble, 4), cid);
1777         nibble += 4;
1778         proto_tree_add_uint(tree, hf_ulmap_ie_uiuc, tvb, NIBHI(nibble, 1), uiuc);
1779         nibble += 1;
1780 
1781         data = TVB_NIB_LONG(nibble, tvb);
1782         proto_tree_add_uint(tree, hf_ulmap_uiuc0_symofs, tvb, NIBHI(nibble, 8), data);
1783         proto_tree_add_uint(tree, hf_ulmap_uiuc0_subofs, tvb, NIBHI(nibble, 8), data);
1784         proto_tree_add_uint(tree, hf_ulmap_uiuc0_numsym, tvb, NIBHI(nibble, 8), data);
1785         proto_tree_add_uint(tree, hf_ulmap_uiuc0_numsub, tvb, NIBHI(nibble, 8), data);
1786         proto_tree_add_uint(tree, hf_ulmap_uiuc0_rsv,    tvb, NIBHI(nibble, 8), data);
1787         nibble += 8;
1788     }
1789     else if (uiuc == 11)
1790     {
1791         /* 8.4.5.4.4.2 [2] extended-2 UIUC IE table 290b */
1792         ext2_uiuc = TVB_NIB_NIBBLE(5+nibble, tvb);
1793         len = TVB_NIB_BYTE(5+nibble+1, tvb);
1794 
1795         tree = proto_tree_add_subtree_format(ie_tree, tvb, NIBHI(nibble, 5+3+len*2), ett_290b, NULL, "UIUC: %d (Extended-2 IE)", uiuc);
1796 
1797         proto_tree_add_uint(tree, hf_ulmap_ie_cid, tvb, NIBHI(nibble, 4), cid);
1798         nibble += 4;
1799         proto_tree_add_uint(tree, hf_ulmap_ie_uiuc, tvb, NIBHI(nibble, 1), uiuc);
1800         nibble += 1;
1801 
1802 #if 0
1803         proto_tree_add_uint(tree, hf_ulmap_uiuc11_ext, tvb, NIBHI(nibble, 1), ext2_uiuc);
1804         nibble += 1;
1805         proto_tree_add_uint(tree, hf_ulmap_uiuc11_len, tvb, NIBHI(nibble, 2), len);
1806         nibble += 2;
1807 #endif
1808 
1809         len = 3 + BYTE_TO_NIB(len); /* length in nibbles */
1810 
1811         /* data table 290c 8.4.5.4.4.2 */
1812         switch (ext2_uiuc) {
1813             case 0x00:
1814                 /* 8.4.5.4.16 CQICH_Enhanced_Allocation_IE */
1815                 nibble = CQICH_Enhanced_Allocation_IE(tree, nibble, len, tvb);
1816                 break;
1817             case 0x01:
1818                 /* 8.4.5.4.18 HO_Anchor_Active_UL_MAP_IE */
1819                 nibble = HO_Anchor_Active_UL_MAP_IE(tree, pinfo, nibble, len, tvb);
1820                 break;
1821             case 0x02:
1822                 /* 8.4.5.4.19 HO_Active_Anchor_UL_MAP_IE */
1823                 nibble = HO_Active_Anchor_UL_MAP_IE(tree, pinfo, nibble, len, tvb);
1824                 break;
1825             case 0x03:
1826                 /* 8.4.5.4.23 Anchor_BS_switch_IE */
1827                 nibble = Anchor_BS_switch_IE(tree, nibble, len, tvb);
1828                 break;
1829             case 0x04:
1830                 /* 8.4.5.4.26 UL_sounding_command_IE */
1831                 nibble = UL_sounding_command_IE(tree, nibble, len, tvb);
1832                 break;
1833             case 0x06:
1834                 /* 8.4.5.4.20 MIMO_UL_Enhanced_IE */
1835                 nibble = MIMO_UL_Enhanced_IE(tree, pinfo, nibble, len, tvb);
1836                 break;
1837             case 0x07:
1838                 /* 8.4.5.4.24 HARQ_ULMAP_IE */
1839                 nibble = HARQ_ULMAP_IE(tree, nibble, len, tvb);
1840                 break;
1841             case 0x08:
1842                 /* 8.4.5.4.25 HARQ_ACKCH_Region_Allocation_IE */
1843                 nibble = HARQ_ACKCH_Region_Allocation_IE(tree, nibble, len, tvb);
1844                 break;
1845             case 0x0e:
1846                 /* 8.4.5.4.27 AAS_SDMA_UL_IE */
1847                 nibble = AAS_SDMA_UL_IE(tree, nibble, len, tvb);
1848                 break;
1849             case 0x0f:
1850                 /* 8.4.5.4.28 Feedback_Polling_IE */
1851                 nibble = Feedback_Polling_IE(tree, nibble, len, tvb);
1852                 break;
1853 
1854             default:
1855                 proto_tree_add_bytes_format(tree, hf_ulmap_ie_reserved_extended2_duic, tvb, NIBHI(nibble, len), NULL, "(reserved Extended-2 UIUC: %d)", ext2_uiuc);
1856                 nibble += len;
1857                 break;
1858 
1859         }
1860     }
1861     else if (uiuc == 12)
1862     {
1863         /* 8.4.5.4 [2] CDMA bandwidth request, CDMA ranging */
1864         tree = proto_tree_add_subtree(ie_tree, tvb, NIBHI(nibble, 5+8), ett_287_1, NULL, "CDMA Bandwidth/Ranging Request IE");
1865 
1866         proto_tree_add_uint(tree, hf_ulmap_ie_cid, tvb, NIBHI(nibble, 4), cid);
1867         nibble += 4;
1868         proto_tree_add_uint(tree, hf_ulmap_ie_uiuc, tvb, NIBHI(nibble, 1), uiuc);
1869         nibble += 1;
1870 
1871         data32 = TVB_NIB_LONG(nibble, tvb);
1872         proto_tree_add_uint(tree, hf_ulmap_uiuc12_symofs, tvb, NIBHI(nibble,8), data32);
1873         proto_tree_add_uint(tree, hf_ulmap_uiuc12_subofs, tvb, NIBHI(nibble,8), data32);
1874         proto_tree_add_uint(tree, hf_ulmap_uiuc12_numsym, tvb, NIBHI(nibble,8), data32);
1875         proto_tree_add_uint(tree, hf_ulmap_uiuc12_numsub, tvb, NIBHI(nibble,8), data32);
1876         proto_tree_add_uint(tree, hf_ulmap_uiuc12_method, tvb, NIBHI(nibble,8), data32);
1877         proto_tree_add_uint(tree, hf_ulmap_uiuc12_dri,    tvb, NIBHI(nibble,8), data32);
1878         nibble += 8;
1879     }
1880     else if (uiuc == 13)
1881     {
1882         /* 8.4.5.4.2 [2] PAPR reduction allocation, safety zone - table 289 */
1883         tree = proto_tree_add_subtree(ie_tree, tvb, NIBHI(nibble,5+8), ett_289, NULL, "PAPR/Safety/Sounding Zone IE");
1884 
1885 
1886         proto_tree_add_uint(tree, hf_ulmap_ie_cid, tvb, NIBHI(nibble, 4), cid);
1887         nibble += 4;
1888         proto_tree_add_uint(tree, hf_ulmap_ie_uiuc, tvb, NIBHI(nibble, 1), uiuc);
1889         nibble += 1;
1890 
1891         data = TVB_NIB_LONG(nibble, tvb);
1892         proto_tree_add_uint(tree, hf_ulmap_uiuc13_symofs, tvb, NIBHI(nibble,8), data);
1893         proto_tree_add_uint(tree, hf_ulmap_uiuc13_subofs, tvb, NIBHI(nibble,8), data);
1894         proto_tree_add_uint(tree, hf_ulmap_uiuc13_numsym, tvb, NIBHI(nibble,8), data);
1895         proto_tree_add_uint(tree, hf_ulmap_uiuc13_numsub, tvb, NIBHI(nibble,8), data);
1896         proto_tree_add_uint(tree, hf_ulmap_uiuc13_papr,   tvb, NIBHI(nibble,8), data);
1897         proto_tree_add_uint(tree, hf_ulmap_uiuc13_zone,   tvb, NIBHI(nibble,8), data);
1898         proto_tree_add_uint(tree, hf_ulmap_uiuc13_rsv,    tvb, NIBHI(nibble,8), data);
1899         nibble += 8;
1900     }
1901     else if (uiuc == 14)
1902     {
1903         /* 8.4.5.4.3 [2] CDMA allocation IE */
1904         tree = proto_tree_add_subtree(ie_tree, tvb, NIBHI(nibble,5+10), ett_290, &ti, "CDMA allocation IE");
1905 
1906         proto_tree_add_uint(tree, hf_ulmap_ie_cid, tvb, NIBHI(nibble, 4), cid);
1907         nibble += 4;
1908         proto_tree_add_uint(tree, hf_ulmap_ie_uiuc, tvb, NIBHI(nibble, 1), uiuc);
1909         nibble += 1;
1910 
1911         data = TVB_NIB_WORD(nibble, tvb);
1912         proto_tree_add_uint(tree, hf_ulmap_uiuc14_dur,  tvb, NIBHI(nibble,2), data);
1913         proto_tree_add_uint(tree, hf_ulmap_uiuc14_uiuc, tvb, NIBHI(nibble+1,2), data);
1914         proto_tree_add_uint(tree, hf_ulmap_uiuc14_rep,  tvb, NIBHI(nibble+2,1), data);
1915         proto_tree_add_uint(tree, hf_ulmap_uiuc14_idx,  tvb, NIBHI(nibble+3,1), data);
1916         nibble += 4;
1917 
1918         data = TVB_NIB_BYTE(nibble, tvb);
1919         proto_tree_add_uint(tree, hf_ulmap_uiuc14_code, tvb, NIBHI(nibble,2), data);
1920         proto_item_append_text(ti, " (0x%02x)", data);
1921         nibble += 2;
1922 
1923         data = TVB_NIB_BYTE(nibble, tvb);
1924         proto_tree_add_uint(tree, hf_ulmap_uiuc14_sym,  tvb, NIBHI(nibble,2), data);
1925         proto_item_append_text(ti, " (0x%02x)", data);
1926         nibble += 2;
1927 
1928         data = TVB_NIB_BYTE(nibble, tvb);
1929         proto_tree_add_uint(tree, hf_ulmap_uiuc14_sub,  tvb, NIBHI(nibble,2), data);
1930         proto_item_append_text(ti, " (0x%02x)", data >> 1);
1931         proto_tree_add_uint(tree, hf_ulmap_uiuc14_bwr,  tvb, NIBHI(nibble+1,1), data);
1932         nibble += 2;
1933     }
1934     else if (uiuc == 15)
1935     {
1936         /* 8.4.5.4.4 [1] Extended UIUC dependent IE table 291 */
1937         ext_uiuc = TVB_NIB_NIBBLE(5+nibble, tvb);
1938         len = TVB_NIB_NIBBLE(5+nibble+1, tvb);
1939 
1940         tree = proto_tree_add_subtree_format(ie_tree, tvb, NIBHI(nibble, 5+2+len*2), ett_291, NULL, "UIUC: %d (Extended IE)", uiuc);
1941 
1942         proto_tree_add_uint(tree, hf_ulmap_ie_cid, tvb, NIBHI(nibble,4), cid);
1943         nibble += 4;
1944         proto_tree_add_uint(tree, hf_ulmap_ie_uiuc, tvb, NIBHI(nibble,1), uiuc);
1945         nibble += 1;
1946 
1947 #if 0
1948         ti = proto_tree_add_uint(tree, hf_ulmap_uiuc11_ext, tvb, NIBHI(nibble,1), ext_uiuc);
1949         nibble += 1;
1950         proto_tree_add_uint(tree, hf_ulmap_uiuc11_len, tvb, NIBHI(nibble,1), len);
1951         nibble += 1;
1952 #endif
1953 
1954         len = 2 + BYTE_TO_NIB(len); /* length in nibbles */
1955 
1956         /* data table 290a 8.4.5.4.4.1 */
1957         switch (ext_uiuc) {
1958             case 0x00:
1959                 /* 8.4.5.4.5 Power_Control_IE */
1960                 nibble = Power_Control_IE(tree, nibble, len, tvb);
1961                 break;
1962             case 0x01:
1963                 /* 8.4.5.4.8 Mini-Subchannel_allocation_IE*/
1964                 nibble = Mini_Subchannel_allocation_IE(tree, nibble, len, tvb);
1965                 break;
1966             case 0x02:
1967                 /* 8.4.5.4.6 AAS_UL_IE*/
1968                 nibble = AAS_UL_IE(tree, nibble, len, tvb);
1969                 break;
1970             case 0x03:
1971                 /* 8.4.5.4.12 CQICH_Alloc_IE */
1972                 nibble = CQICH_Alloc_IE(tree, nibble, len, tvb);
1973                 break;
1974             case 0x04:
1975                 /* 8.4.5.4.7 UL_Zone_IE */
1976                 nibble = UL_Zone_IE(tree, nibble, len, tvb);
1977                 break;
1978             case 0x05:
1979                 /* 8.4.5.4.14 PHYMOD_UL_IE */
1980                 nibble = PHYMOD_UL_IE(tree, nibble, len, tvb);
1981                 break;
1982             case 0x06:
1983                 /* 8.4.5.4.11 MIMO_UL_IE */
1984                 nibble = MIMO_UL_IE(tree, pinfo, nibble, len, tvb);
1985                 break;
1986             case 0x07:
1987                 /* 8.4.5.4.22 ULMAP_Fast_Tracking_IE */
1988                 nibble = ULMAP_Fast_Tracking_IE(tree, nibble, len, tvb);
1989                 break;
1990             case 0x08:
1991                 /* 8.4.5.4.17 UL_PUSC_Burst_Allocation_in_other_segment_IE */
1992                 nibble = UL_PUSC_Burst_Allocation_in_other_segment_IE(tree, nibble, len, tvb);
1993                 break;
1994             case 0x09:
1995                 /* 8.4.5.4.21 Fast_Ranging_IE */
1996                 nibble = Fast_Ranging_IE(tree, nibble, len, tvb);
1997                 break;
1998             case 0x0a:
1999                 /* 8.4.5.4.15 UL_Allocation_Start_IE */
2000                 nibble = UL_Allocation_Start_IE(tree, nibble, len, tvb);
2001                 break;
2002             default:
2003                 proto_tree_add_bytes_format_value(tree, hf_ulmap_ie_reserved_extended_duic, tvb, NIBHI(nibble,len), NULL, "(reserved Extended UIUC: %d)", ext_uiuc);
2004                 nibble += len;
2005                 break;
2006         }
2007     }
2008     else
2009     {
2010         /* 8.4.5.4 [2] regular IE 1-10, data grant burst type */
2011         aas_or_amc = 0; /* TODO */
2012         len = 3;
2013 
2014         if (aas_or_amc) len += 3;
2015 
2016         tree = proto_tree_add_subtree(ie_tree, tvb, NIBHI(nibble, 5+len), ett_287_2, NULL, "Data Grant Burst Profile");
2017 
2018         proto_tree_add_uint(tree, hf_ulmap_ie_cid, tvb, NIBHI(nibble, 4), cid);
2019         nibble += 4;
2020         proto_tree_add_uint(tree, hf_ulmap_ie_uiuc, tvb, NIBHI(nibble, 1), uiuc);
2021         nibble += 1;
2022 
2023         data = TVB_NIB_WORD(nibble, tvb);
2024         proto_tree_add_uint(tree, hf_ulmap_uiuc10_dur, tvb, NIBHI(nibble,3), data);
2025         proto_tree_add_uint(tree, hf_ulmap_uiuc10_rep, tvb, NIBHI(nibble+2,1), data);
2026         nibble += 3;
2027 
2028         if (aas_or_amc) {
2029             data = TVB_NIB_BITS12(nibble, tvb);
2030             proto_tree_add_uint(tree, hf_ulmap_uiuc10_slot_offset, tvb, NIBHI(nibble,3), data);
2031             nibble += 3;
2032         }
2033     }
2034 
2035     /* length in nibbles */
2036     return (nibble - offset);
2037 }
2038 
dissect_mac_mgmt_msg_ulmap_decoder(tvbuff_t * tvb,packet_info * pinfo _U_,proto_tree * tree,void * data _U_)2039 static int dissect_mac_mgmt_msg_ulmap_decoder(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
2040 {
2041     /* 6.3.2.3.4 [2] UL-MAP table 18 */
2042     guint offset = 0;
2043     guint length;
2044     guint nib, pad;
2045     proto_item *ti         = NULL;
2046     proto_tree *ulmap_tree = NULL;
2047     proto_tree *ie_tree    = NULL;
2048     guint tvb_len;
2049 
2050     tvb_len = tvb_reported_length(tvb);
2051 
2052     /* display MAC UL-MAP */
2053     ti = proto_tree_add_protocol_format(tree, proto_mac_mgmt_msg_ulmap_decoder, tvb, offset, -1, "UL-MAP");
2054     ulmap_tree = proto_item_add_subtree(ti, ett_ulmap);
2055 
2056     proto_tree_add_item(ulmap_tree, hf_ulmap_reserved, tvb, offset, 1, ENC_BIG_ENDIAN);
2057     offset++;
2058     proto_tree_add_item(ulmap_tree, hf_ulmap_ucd_count, tvb, offset, 1, ENC_BIG_ENDIAN);
2059     offset++;
2060     proto_tree_add_item(ulmap_tree, hf_ulmap_alloc_start_time, tvb, offset, 4, ENC_BIG_ENDIAN);
2061     offset += 4;
2062     proto_tree_add_item(ulmap_tree, hf_ulmap_ofdma_sym, tvb, offset, 1, ENC_BIG_ENDIAN);
2063     offset++;
2064 
2065     /* UL-MAP IEs */
2066     length = tvb_len - offset; /* remaining length in bytes */
2067     ie_tree = proto_tree_add_subtree_format(ulmap_tree, tvb, offset, length, ett_ulmap_ie, NULL, "UL-MAP IEs (%u bytes)", length);
2068 
2069     /* length = BYTE_TO_NIB(length); */ /* convert length to nibbles */
2070     nib = BYTE_TO_NIB(offset);
2071     while (nib < ((tvb_len*2)-1)) {
2072         nib += dissect_ulmap_ie(ie_tree, pinfo, nib, tvb_len*2, tvb);
2073     }
2074     pad = NIB_PADDING(nib);
2075     if (pad) {
2076         proto_tree_add_bytes_format(ulmap_tree, hf_ulmap_padding, tvb, NIBHI(nib,1), NULL, "Padding nibble");
2077         nib++;
2078     }
2079     return tvb_captured_length(tvb);
2080 }
2081 
2082 /*gint wimax_decode_ulmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)*/
wimax_decode_ulmapc(proto_tree * base_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)2083 gint wimax_decode_ulmapc(proto_tree *base_tree, packet_info* pinfo, gint offset, gint length, tvbuff_t *tvb)
2084 {
2085     /* 8.4.5.6.2 [2] Compressed UL-MAP */
2086     /* returns length in nibbles */
2087     gint nib;
2088     guint data;
2089     proto_item *ti = NULL;
2090     proto_tree *tree = NULL;
2091     proto_tree *ie_tree = NULL;
2092 
2093     nib = offset;
2094 
2095     /* display MAC UL-MAP */
2096     ti = proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_ulmap_decoder, tvb, NIBHI(offset,length-offset), "Compressed UL-MAP (%u bytes)", NIB_ADDR(length-offset));
2097     tree = proto_item_add_subtree(ti, ett_306);
2098 
2099     /* Decode and display the UL-MAP */
2100     data = TVB_NIB_BYTE(nib, tvb);
2101     proto_tree_add_uint(tree, hf_ulmap_ucd_count, tvb, NIBHI(nib,2), data);
2102     nib += 2;
2103     data = TVB_NIB_LONG(nib, tvb);
2104     proto_tree_add_uint(tree, hf_ulmap_alloc_start_time, tvb, NIBHI(nib,8), data);
2105     nib += 8;
2106     data = TVB_NIB_BYTE(nib, tvb);
2107     proto_tree_add_uint(tree, hf_ulmap_ofdma_sym, tvb, NIBHI(nib,2), data); /* added 2005 */
2108     nib += 2;
2109 
2110     ie_tree = proto_tree_add_subtree_format(tree, tvb, NIBHI(nib,length-nib), ett_306_ul, NULL, "UL-MAP IEs (%u bytes)", NIB_ADDR(length-nib));
2111     while (nib < length-1) {
2112         nib += dissect_ulmap_ie(ie_tree, pinfo, nib, length-nib, tvb);
2113     }
2114 
2115     /* padding */
2116     if (nib & 1) {
2117         proto_tree_add_bytes_format(tree, hf_ulmap_padding, tvb, NIBHI(nib,1), NULL, "Padding nibble");
2118         nib++;
2119     }
2120 
2121 
2122     return length;
2123 }
2124 
2125 
wimax_decode_ulmap_reduced_aas(proto_tree * base_tree,gint offset,gint length,tvbuff_t * tvb)2126 gint wimax_decode_ulmap_reduced_aas(proto_tree *base_tree, gint offset, gint length, tvbuff_t *tvb)
2127 {
2128     /* 8.4.5.8.2 Reduced AAS private UL-MAP */
2129     /* offset and length are in bits since this is called from within
2130      * the Reduced AAS private DL-MAP
2131      * return length in bits */
2132     gint bit;
2133     guint data;
2134     proto_tree *tree;
2135     gint azci, azpi, umii, phmi, powi;
2136 
2137     bit = offset;
2138 
2139     tree = proto_tree_add_subtree(base_tree, tvb, BITHI(bit,length), ett_308b, NULL, "Reduced_AAS_Private_UL_MAP");
2140 
2141     /* Decode and display the Reduced AAS private UL-MAP */
2142     XBIT_HF_VALUE(azci, 1, hf_ulmap_reduced_aas_aas_zone_configuration_included);
2143     XBIT_HF_VALUE(azpi, 1, hf_ulmap_reduced_aas_aas_zone_position_included);
2144     XBIT_HF_VALUE(umii, 1, hf_ulmap_reduced_aas_ul_map_information_included);
2145     XBIT_HF_VALUE(phmi, 1, hf_ulmap_reduced_aas_phy_modification_included);
2146     XBIT_HF_VALUE(powi, 1, hf_ulmap_reduced_aas_power_control_included);
2147     XBIT_HF(2, hf_ulmap_reduced_aas_include_feedback_header);
2148     XBIT_HF(2, hf_ulmap_reduced_aas_encoding_mode);
2149 
2150     if (azci) {
2151         XBIT_HF(2, hf_ulmap_reduced_aas_permutation);
2152         XBIT_HF(7, hf_ulmap_reduced_aas_ul_permbase);
2153         XBIT_HF(2, hf_ulmap_reduced_aas_preamble_indication);
2154         XBIT_HF(5, hf_ulmap_reduced_aas_padding);
2155     }
2156     if (azpi) {
2157         XBIT_HF(8, hf_ulmap_reduced_aas_zone_symbol_offset);
2158         XBIT_HF(8, hf_ulmap_reduced_aas_zone_length);
2159     }
2160     if (umii) {
2161         XBIT_HF(8, hf_ulmap_reduced_aas_ucd_count);
2162         data = TVB_BIT_BITS64(bit,tvb,32);
2163         proto_tree_add_uint64(tree, hf_ulmap_reduced_aas_private_map_alloc_start_time, tvb, BITHI(bit,32), data);
2164         bit += 32;
2165     }
2166     if (phmi) {
2167         XBIT_HF(1, hf_ulmap_reduced_aas_preamble_select);
2168         XBIT_HF(4, hf_ulmap_reduced_aas_preamble_shift_index);
2169         XBIT_HF(1, hf_ulmap_reduced_aas_pilot_pattern_modifier);
2170         data = TVB_BIT_BITS32(bit,tvb,22);
2171         proto_tree_add_uint64(tree, hf_ulmap_reduced_aas_pilot_pattern_index, tvb, BITHI(bit,22), data);
2172         bit += 22;
2173     }
2174     if (powi) {
2175         XBIT_HF(8, hf_ulmap_reduced_aas_power_control);
2176     }
2177     XBIT_HF(3, hf_ulmap_reduced_aas_ul_frame_offset);
2178     XBIT_HF(12, hf_ulmap_reduced_aas_slot_offset);
2179     XBIT_HF(10, hf_ulmap_reduced_aas_slot_duration);
2180     XBIT_HF(4, hf_ulmap_reduced_aas_uiuc_nep);
2181     if (harq) {
2182         XBIT_HF(4, hf_ulmap_reduced_aas_acid);
2183         XBIT_HF(1, hf_ulmap_reduced_aas_ai_sn);
2184         XBIT_HF(3, hf_ulmap_reserved_uint);
2185         if (ir_type) {
2186             XBIT_HF(4, hf_ulmap_reduced_aas_nsch);
2187             XBIT_HF(2, hf_ulmap_reduced_aas_spid);
2188             XBIT_HF(2, hf_ulmap_reserved_uint);
2189         }
2190     }
2191     XBIT_HF(2, hf_ulmap_reduced_aas_repetition_coding_indication);
2192 
2193     return (bit - offset); /* length in bits */
2194 }
2195 
2196 
2197 /* Register Wimax Mac Payload Protocol and Dissector */
proto_register_mac_mgmt_msg_ulmap(void)2198 void proto_register_mac_mgmt_msg_ulmap(void)
2199 {
2200 	/* UL-MAP fields display */
2201 	static hf_register_info hf[] =
2202 	{
2203 #if 0
2204 		{
2205 			&hf_ulmap_fch_expected,
2206 			{
2207 				"FCH Expected", "wmx.ulmap.fch.expected",
2208 				FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL
2209 			}
2210 		},
2211 #endif
2212 #if 0
2213 		{
2214 			&hf_ulmap_ie,
2215 			{
2216 				"UL-MAP IE", "wmx.ulmap.ie",
2217 				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2218 			}
2219 		},
2220 #endif
2221 		{
2222 			&hf_ulmap_ie_cid,
2223 			{
2224 				"CID", "wmx.ulmap.ie.cid",
2225 				FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL
2226 			}
2227 		},
2228 		{
2229 			&hf_ulmap_ie_uiuc,
2230 			{
2231 				"UIUC", "wmx.ulmap.ie.uiuc",
2232 				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2233 			}
2234 		},
2235 		{
2236 			&hf_ulmap_ofdma_sym,
2237 			{
2238 				"Num OFDMA Symbols", "wmx.ulmap.ofdma.sym",
2239 				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2240 			}
2241 		},
2242 		{
2243 			&hf_ulmap_ie_diuc_ext,
2244 			{
2245 				"Extended DIUC", "wmx.ulmap.ie.ext_diuc",
2246 				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2247 			}
2248 		},
2249 		{
2250 			&hf_ulmap_ie_diuc_ext2,
2251 			{
2252 				"Extended-2 DIUC", "wmx.ulmap.ie.ext2_diuc",
2253 				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2254 			}
2255 		},
2256 		{
2257 			&hf_ulmap_ie_length,
2258 			{
2259 				"Length", "wmx.ilmap.ie.length",
2260 				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2261 			}
2262 		},
2263 		{
2264 			&hf_ulmap_ie_reserved_extended2_duic,
2265 			{
2266 				"Reserved Extended-2 DIUC", "wmx.ulmap.ie.ext2_diuc_reserved",
2267 				FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
2268 			}
2269 		},
2270 		{
2271 			&hf_ulmap_ie_reserved_extended_duic,
2272 			{
2273 				"Reserved Extended DIUC", "wmx.ulmap.ie.ext_diuc_reserved",
2274 				FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
2275 			}
2276 		},
2277 		{
2278 			&hf_ulmap_reserved,
2279 			{
2280 				"Reserved", "wmx.ulmap.rsv",
2281 				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2282 			}
2283 		},
2284 		{
2285 			&hf_ulmap_alloc_start_time,
2286 			{
2287 				"Uplink Channel ID", "wmx.ulmap.start",
2288 				FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL
2289 			}
2290 		},
2291 		{
2292 			&hf_ulmap_ucd_count,
2293 			{
2294 				"UCD Count", "wmx.ulmap.ucd",
2295 				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2296 			}
2297 		},
2298 		{
2299 			&hf_ulmap_uiuc0_numsub,
2300 			{
2301 				"No. subchannels", "wmx.ulmap.uiuc0.numsub",
2302 				FT_UINT32,	BASE_DEC, NULL, 0x000003f8, NULL, HFILL
2303 			}
2304 		},
2305 		{
2306 			&hf_ulmap_uiuc0_numsym,
2307 			{
2308 				"No. OFDMA symbols", "wmx.ulmap.uiuc0.numsym",
2309 				FT_UINT32,	BASE_DEC, NULL, 0x0001fc00, NULL, HFILL
2310 			}
2311 		},
2312 		{
2313 			&hf_ulmap_uiuc0_rsv,
2314 			{
2315 				"Reserved", "wmx.ulmap.uiuc0.rsv",
2316 				FT_UINT32,	BASE_DEC, NULL, 0x00000007, NULL, HFILL
2317 			}
2318 		},
2319 		{
2320 			&hf_ulmap_uiuc0_subofs,
2321 			{
2322 				"Subchannel offset", "wmx.ulmap.uiuc0.subofs",
2323 				FT_UINT32,	BASE_DEC, NULL, 0x00fe0000, NULL, HFILL
2324 			}
2325 		},
2326 		{
2327 			&hf_ulmap_uiuc0_symofs,
2328 			{
2329 				"OFDMA symbol offset", "wmx.ulmap.uiuc0.symofs",
2330 				FT_UINT32,	BASE_DEC, NULL, 0xff000000, NULL, HFILL
2331 			}
2332 		},
2333 #if 0
2334 		{
2335 			&hf_ulmap_uiuc11_data,
2336 			{
2337 				"Data", "wmx.ulmap.uiuc11.data",
2338 				FT_BYTES,  BASE_NONE, NULL, 0x0, NULL, HFILL
2339 			}
2340 		},
2341 		{
2342 			&hf_ulmap_uiuc11_ext,
2343 			{
2344 				"Extended 2 UIUC", "wmx.ulmap.uiuc11.ext",
2345 				FT_UINT8,  BASE_DEC, NULL, 0x0, NULL, HFILL
2346 			}
2347 		},
2348 		{
2349 			&hf_ulmap_uiuc11_len,
2350 			{
2351 				"Length", "wmx.ulmap.uiuc11.len",
2352 				FT_UINT8,  BASE_DEC, NULL, 0x0, NULL, HFILL
2353 			}
2354 		},
2355 #endif
2356 		{
2357 			&hf_ulmap_uiuc12_dri,
2358 			{
2359 				"Dedicated ranging indicator", "wmx.ulmap.uiuc12.dri",
2360 				FT_UINT32, BASE_DEC, NULL, 0x00000001, NULL, HFILL
2361 			}
2362 		},
2363 		{
2364 			&hf_ulmap_uiuc10_dur,
2365 			{
2366 				"Duration", "wmx.ulmap.uiuc12.dur",
2367 				FT_UINT16, BASE_DEC, NULL, 0xFFc0, NULL, HFILL
2368 			}
2369 		},
2370 		{
2371 			&hf_ulmap_uiuc12_method,
2372 			{
2373 				"Ranging Method", "wmx.ulmap.uiuc12.method",
2374 				FT_UINT32, BASE_DEC, NULL, 0x00000006, NULL, HFILL
2375 			}
2376 		},
2377 		{
2378 			&hf_ulmap_uiuc12_numsub,
2379 			{
2380 				"No. Subchannels", "wmx.ulmap.uiuc12.numsub",
2381 				FT_UINT32, BASE_DEC, NULL, 0x000003F8, NULL, HFILL
2382 			}
2383 		},
2384 		{
2385 			&hf_ulmap_uiuc12_numsym,
2386 			{
2387 				"No. OFDMA Symbols", "wmx.ulmap.uiuc12.numsym",
2388 				FT_UINT32, BASE_DEC, NULL, 0x0001Fc00, NULL, HFILL
2389 			}
2390 		},
2391 		{
2392 			&hf_ulmap_uiuc10_rep,
2393 			{
2394 				"Repetition Coding indication", "wmx.ulmap.uiuc10.rep",
2395 				FT_UINT16, BASE_DEC, NULL, 0x0030, NULL, HFILL
2396 			}
2397 		},
2398 		{
2399 			&hf_ulmap_uiuc10_slot_offset,
2400 			{
2401 				"Slot offset", "wmx.ulmap.uiuc10.slot_offset",
2402 				FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL
2403 			}
2404 		},
2405 		{
2406 			&hf_ulmap_uiuc12_subofs,
2407 			{
2408 				"Subchannel Offset", "wmx.ulmap.uiuc12.subofs",
2409 				FT_UINT32, BASE_DEC, NULL, 0x00Fe0000, NULL, HFILL
2410 			}
2411 		},
2412 		{
2413 			&hf_ulmap_uiuc12_symofs,
2414 			{
2415 				"OFDMA Symbol Offset", "wmx.ulmap.uiuc12.symofs",
2416 				FT_UINT32, BASE_DEC, NULL, 0xFF000000, NULL, HFILL
2417 			}
2418 		},
2419 		{
2420 			&hf_ulmap_uiuc13_numsub,
2421 			{
2422 				"No. Subchannels/SZ Shift Value", "wmx.ulmap.uiuc13.numsub",
2423 				FT_UINT32,	BASE_DEC, NULL, 0x000003f8, NULL, HFILL
2424 			}
2425 		},
2426 		{
2427 			&hf_ulmap_uiuc13_numsym,
2428 			{
2429 				"No. OFDMA symbols", "wmx.ulmap.uiuc13.numsym",
2430 				FT_UINT32,	BASE_DEC, NULL, 0x0001fc00, NULL, HFILL
2431 			}
2432 		},
2433 		{
2434 			&hf_ulmap_uiuc13_papr,
2435 			{
2436 				"PAPR Reduction/Safety Zone", "wmx.ulmap.uiuc13.papr",
2437 				FT_UINT32,	BASE_DEC, NULL, 0x00000004, NULL, HFILL
2438 			}
2439 		},
2440 		{
2441 			&hf_ulmap_uiuc13_rsv,
2442 			{
2443 				"Reserved", "wmx.ulmap.uiuc13.rsv",
2444 				FT_UINT32,	BASE_DEC, NULL, 0x00000001, NULL, HFILL
2445 			}
2446 		},
2447 #if 0
2448 		{
2449 			&hf_ulmap_crc16,
2450 			{
2451 				"CRC-16", "wmx.ulmap.crc16",
2452 				FT_UINT32,	BASE_HEX, NULL, 0x0, NULL, HFILL
2453 			}
2454 		},
2455 		{
2456 			&hf_ulmap_crc16_status,
2457 			{
2458 				"CRC-16 Status", "wmx.ulmap.crc16.status",
2459 				FT_UINT8, BASE_NONE, VALS(plugin_proto_checksum_vals), 0x0, NULL, HFILL
2460 			}
2461 		},
2462 #endif
2463 		{
2464 			&hf_ulmap_padding,
2465 			{
2466 				"Padding", "wmx.ulmap.padding",
2467 				FT_BYTES,	BASE_NONE, NULL, 0x0, NULL, HFILL
2468 			}
2469 		},
2470 		{
2471 			&hf_ulmap_uiuc13_subofs,
2472 			{
2473 				"Subchannel offset", "wmx.ulmap.uiuc13.subofs",
2474 				FT_UINT32,	BASE_DEC, NULL, 0x00fe0000, NULL, HFILL
2475 			}
2476 		},
2477 		{
2478 			&hf_ulmap_uiuc13_symofs,
2479 			{
2480 				"OFDMA symbol offset", "wmx.ulmap.uiuc13.symofs",
2481 				FT_UINT32,	BASE_DEC, NULL, 0xff000000, NULL, HFILL
2482 			}
2483 		},
2484 		{
2485 			&hf_ulmap_uiuc13_zone,
2486 			{
2487 				"Sounding Zone", "wmx.ulmap.uiuc13.zone",
2488 				FT_UINT32,	BASE_DEC, NULL, 0x00000002, NULL, HFILL
2489 			}
2490 		},
2491 		{
2492 			&hf_ulmap_uiuc14_bwr,
2493 			{
2494 				"BW request mandatory", "wmx.ulmap.uiuc14.bwr",
2495 				FT_UINT8,  BASE_DEC, NULL, 0x01, NULL, HFILL
2496 			}
2497 		},
2498 		{
2499 			&hf_ulmap_uiuc14_code,
2500 			{
2501 				"Ranging code", "wmx.ulmap.uiuc14.code",
2502 				FT_UINT8,  BASE_DEC, NULL, 0x0, NULL, HFILL
2503 			}
2504 		},
2505 		{
2506 			&hf_ulmap_uiuc14_dur,
2507 			{
2508 				"Duration", "wmx.ulmap.uiuc14.dur",
2509 				FT_UINT16, BASE_DEC, NULL, 0xfc00, NULL, HFILL
2510 			}
2511 		},
2512 		{
2513 			&hf_ulmap_uiuc14_idx,
2514 			{
2515 				"Frame Number Index", "wmx.ulmap.uiuc14.idx",
2516 				FT_UINT16, BASE_DEC, NULL, 0x000F, NULL, HFILL
2517 			}
2518 		},
2519 		{
2520 			&hf_ulmap_uiuc14_rep,
2521 			{
2522 				"Repetition Coding Indication", "wmx.ulmap.uiuc14.rep",
2523 				FT_UINT16, BASE_DEC, NULL, 0x0030, NULL, HFILL
2524 			}
2525 		},
2526 		{
2527 			&hf_ulmap_uiuc14_sub,
2528 			{
2529 				"Ranging subchannel", "wmx.ulmap.uiuc14.sub",
2530 				FT_UINT8,  BASE_DEC, NULL, 0xfe, NULL, HFILL
2531 			}
2532 		},
2533 		{
2534 			&hf_ulmap_uiuc14_sym,
2535 			{
2536 				"Ranging symbol", "wmx.ulmap.uiuc14.sym",
2537 				FT_UINT8,  BASE_DEC, NULL, 0x0, NULL, HFILL
2538 			}
2539 		},
2540 		{
2541 			&hf_ulmap_uiuc14_uiuc,
2542 			{
2543 				"UIUC", "wmx.ulmap.uiuc14.uiuc",
2544 				FT_UINT16, BASE_DEC, NULL, 0x03c0, NULL, HFILL
2545 			}
2546 		},
2547 #if 0
2548 		{
2549 			&hf_ulmap_uiuc15_data,
2550 			{
2551 				"Data", "wmx.ulmap.uiuc15.data",
2552 				FT_BYTES,  BASE_NONE, NULL, 0x0, NULL, HFILL
2553 			}
2554 		},
2555 		{
2556 			&hf_ulmap_uiuc15_ext,
2557 			{
2558 				"Extended UIUC", "wmx.ulmap.uiuc15.ext",
2559 				FT_UINT8,  BASE_DEC, NULL, 0x0, NULL, HFILL
2560 			}
2561 		},
2562 		{
2563 			&hf_ulmap_uiuc15_len,
2564 			{
2565 				"Length", "wmx.ulmap.uiuc15.len",
2566 				FT_UINT8,  BASE_DEC, NULL, 0x0, NULL, HFILL
2567 			}
2568 		},
2569 #endif
2570 		/* Generated via "one time" script to help create filterable fields */
2571 		{ &hf_ulmap_dedicated_ul_control_length, { "Length", "wmx.ulmap.dedicated_ul_control.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2572 		{ &hf_ulmap_dedicated_ul_control_control_header, { "Control Header", "wmx.ulmap.dedicated_ul_control.control_header", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2573 		{ &hf_ulmap_dedicated_ul_control_num_sdma_layers, { "Num SDMA layers", "wmx.ulmap.dedicated_ul_control.num_sdma_layers", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2574 		{ &hf_ulmap_dedicated_ul_control_pilot_pattern, { "Pilot Pattern", "wmx.ulmap.dedicated_ul_control.pilot_pattern", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2575 		{ &hf_ulmap_dedicated_mimo_ul_control_matrix, { "Matrix", "wmx.ulmap.dedicated_mimo_ul_control.matrix", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2576 		{ &hf_ulmap_dedicated_mimo_ul_control_n_layer, { "N_layer", "wmx.ulmap.dedicated_mimo_ul_control.n_layer", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2577 		{ &hf_ulmap_harq_chase_dedicated_ul_control_indicator, { "Dedicated UL Control Indicator", "wmx.ulmap.harq_chase.dedicated_ul_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2578 		{ &hf_ulmap_harq_chase_uiuc, { "UIUC", "wmx.ulmap.harq_chase.uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2579 		{ &hf_ulmap_harq_chase_repetition_coding_indication, { "Repetition Coding Indication", "wmx.ulmap.harq_chase.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2580 		{ &hf_ulmap_harq_chase_duration, { "Duration", "wmx.ulmap.harq_chase.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2581 		{ &hf_ulmap_harq_chase_acid, { "ACID", "wmx.ulmap.harq_chase.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2582 		{ &hf_ulmap_harq_chase_ai_sn, { "AI_SN", "wmx.ulmap.harq_chase.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2583 		{ &hf_ulmap_harq_chase_ack_disable, { "ACK_disable", "wmx.ulmap.harq_chase.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2584 		{ &hf_ulmap_reserved_uint, { "Reserved", "wmx.ulmap.reserved.uint", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2585 		{ &hf_ulmap_harq_ir_ctc_dedicated_ul_control_indicator, { "Dedicated UL Control Indicator", "wmx.ulmap.harq_ir_ctc.dedicated_ul_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2586 		{ &hf_ulmap_harq_ir_ctc_nep, { "N(EP)", "wmx.ulmap.harq_ir_ctc.nep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2587 		{ &hf_ulmap_harq_ir_ctc_nsch, { "N(SCH)", "wmx.ulmap.harq_ir_ctc.nsch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2588 		{ &hf_ulmap_harq_ir_ctc_spid, { "SPID", "wmx.ulmap.harq_ir_ctc.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2589 		{ &hf_ulmap_harq_ir_ctc_acin, { "ACIN", "wmx.ulmap.harq_ir_ctc.acin", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2590 		{ &hf_ulmap_harq_ir_ctc_ai_sn, { "AI_SN", "wmx.ulmap.harq_ir_ctc.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2591 		{ &hf_ulmap_harq_ir_ctc_ack_disable, { "ACK_disable", "wmx.ulmap.harq_ir_ctc.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2592 		{ &hf_ulmap_harq_ir_cc_dedicated_ul_control_indicator, { "Dedicated UL Control Indicator", "wmx.ulmap.harq_ir_cc.dedicated_ul_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2593 		{ &hf_ulmap_harq_ir_cc_uiuc, { "UIUC", "wmx.ulmap.harq_ir_cc.uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2594 		{ &hf_ulmap_harq_ir_cc_repetition_coding_indication, { "Repetition Coding Indication", "wmx.ulmap.harq_ir_cc.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2595 		{ &hf_ulmap_harq_ir_cc_duration, { "Duration", "wmx.ulmap.harq_ir_cc.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2596 		{ &hf_ulmap_harq_ir_cc_spid, { "SPID", "wmx.ulmap.harq_ir_cc.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2597 		{ &hf_ulmap_harq_ir_cc_acid, { "ACID", "wmx.ulmap.harq_ir_cc.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2598 		{ &hf_ulmap_harq_ir_cc_ai_sn, { "AI_SN", "wmx.ulmap.harq_ir_cc.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2599 		{ &hf_ulmap_harq_ir_cc_ack_disable, { "ACK_disable", "wmx.ulmap.harq_ir_cc.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2600 		{ &hf_ulmap_mimo_ul_chase_harq_mu_indicator, { "MU indicator", "wmx.ulmap.mimo_ul_chase_harq.mu_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2601 		{ &hf_ulmap_mimo_ul_chase_harq_dedicated_mimo_ulcontrol_indicator, { "Dedicated MIMO ULControl Indicator", "wmx.ulmap.mimo_ul_chase_harq.dedicated_mimo_ulcontrol_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2602 		{ &hf_ulmap_mimo_ul_chase_harq_ack_disable, { "ACK Disable", "wmx.ulmap.mimo_ul_chase_harq.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2603 		{ &hf_ulmap_mimo_ul_chase_harq_matrix, { "Matrix", "wmx.ulmap.mimo_ul_chase_harq.matrix", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2604 		{ &hf_ulmap_mimo_ul_chase_harq_duration, { "Duration", "wmx.ulmap.mimo_ul_chase_harq.duration", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2605 		{ &hf_ulmap_mimo_ul_chase_harq_uiuc, { "UIUC", "wmx.ulmap.mimo_ul_chase_harq.uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2606 		{ &hf_ulmap_mimo_ul_chase_harq_repetition_coding_indication, { "Repetition Coding Indication", "wmx.ulmap.mimo_ul_chase_harq.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2607 		{ &hf_ulmap_mimo_ul_chase_harq_acid, { "ACID", "wmx.ulmap.mimo_ul_chase_harq.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2608 		{ &hf_ulmap_mimo_ul_chase_harq_ai_sn, { "AI_SN", "wmx.ulmap.mimo_ul_chase_harq.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2609 		{ &hf_ulmap_mimo_ul_ir_harq_mu_indicator, { "MU indicator", "wmx.ulmap.mimo_ul_ir_harq.mu_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2610 		{ &hf_ulmap_mimo_ul_ir_harq_dedicated_mimo_ul_control_indicator, { "Dedicated MIMO UL Control Indicator", "wmx.ulmap.mimo_ul_ir_harq.dedicated_mimo_ul_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2611 		{ &hf_ulmap_mimo_ul_ir_harq_ack_disable, { "ACK Disable", "wmx.ulmap.mimo_ul_ir_harq.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2612 		{ &hf_ulmap_mimo_ul_ir_harq_matrix, { "Matrix", "wmx.ulmap.mimo_ul_ir_harq.matrix", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2613 		{ &hf_ulmap_mimo_ul_ir_harq_nsch, { "N(SCH)", "wmx.ulmap.mimo_ul_ir_harq.nsch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2614 		{ &hf_ulmap_mimo_ul_ir_harq_nep, { "N(EP)", "wmx.ulmap.mimo_ul_ir_harq.nep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2615 		{ &hf_ulmap_mimo_ul_ir_harq_spid, { "SPID", "wmx.ulmap.mimo_ul_ir_harq.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2616 		{ &hf_ulmap_mimo_ul_ir_harq_acid, { "ACID", "wmx.ulmap.mimo_ul_ir_harq.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2617 		{ &hf_ulmap_mimo_ul_ir_harq_ai_sn, { "AI_SN", "wmx.ulmap.mimo_ul_ir_harq.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2618 		{ &hf_ulmap_mimo_ul_ir_harq_cc_mu_indicator, { "MU indicator", "wmx.ulmap.mimo_ul_ir_harq_cc.mu_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2619 		{ &hf_ulmap_mimo_ul_ir_harq_cc_dedicated_mimo_ul_control_indicator, { "Dedicated MIMO UL Control Indicator", "wmx.ulmap.mimo_ul_ir_harq_cc.dedicated_mimo_ul_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2620 		{ &hf_ulmap_mimo_ul_ir_harq_cc_ack_disable, { "ACK Disable", "wmx.ulmap.mimo_ul_ir_harq_cc.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2621 		{ &hf_ulmap_mimo_ul_ir_harq_cc_matrix, { "Matrix", "wmx.ulmap.mimo_ul_ir_harq_cc.matrix", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2622 		{ &hf_ulmap_mimo_ul_ir_harq_cc_duration, { "Duration", "wmx.ulmap.mimo_ul_ir_harq_cc.duration", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2623 		{ &hf_ulmap_mimo_ul_ir_harq_cc_uiuc, { "UIUC", "wmx.ulmap.mimo_ul_ir_harq_cc.uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2624 		{ &hf_ulmap_mimo_ul_ir_harq_cc_repetition_coding_indication, { "Repetition Coding Indication", "wmx.ulmap.mimo_ul_ir_harq_cc.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2625 		{ &hf_ulmap_mimo_ul_ir_harq_cc_acid, { "ACID", "wmx.ulmap.mimo_ul_ir_harq_cc.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2626 		{ &hf_ulmap_mimo_ul_ir_harq_cc_ai_sn, { "AI_SN", "wmx.ulmap.mimo_ul_ir_harq_cc.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2627 		{ &hf_ulmap_mimo_ul_ir_harq_cc_spid, { "SPID", "wmx.ulmap.mimo_ul_ir_harq_cc.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2628 		{ &hf_ulmap_mimo_ul_stc_harq_tx_count, { "Tx count", "wmx.ulmap.mimo_ul_stc_harq.tx_count", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2629 		{ &hf_ulmap_mimo_ul_stc_harq_duration, { "Duration", "wmx.ulmap.mimo_ul_stc_harq.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2630 		{ &hf_ulmap_mimo_ul_stc_harq_sub_burst_offset_indication, { "Sub-burst offset indication", "wmx.ulmap.mimo_ul_stc_harq.sub_burst_offset_indication", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2631 		{ &hf_ulmap_mimo_ul_stc_harq_sub_burst_offset, { "Sub-burst offset", "wmx.ulmap.mimo_ul_stc_harq.sub_burst_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2632 		{ &hf_ulmap_mimo_ul_stc_harq_ack_disable, { "ACK Disable", "wmx.ulmap.mimo_ul_stc_harq.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2633 		{ &hf_ulmap_mimo_ul_stc_harq_uiuc, { "UIUC", "wmx.ulmap.mimo_ul_stc_harq.uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2634 		{ &hf_ulmap_mimo_ul_stc_harq_repetition_coding_indication, { "Repetition Coding Indication", "wmx.ulmap.mimo_ul_stc_harq.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2635 		{ &hf_ulmap_mimo_ul_stc_harq_acid, { "ACID", "wmx.ulmap.mimo_ul_stc_harq.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2636 		{ &hf_ulmap_power_control, { "Power Control", "wmx.ulmap.power_control", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2637 		{ &hf_ulmap_power_measurement_frame, { "Power measurement frame", "wmx.ulmap.power_measurement_frame", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2638 		{ &hf_ulmap_mini_subcha_alloc_extended_2_uiuc, { "Extended-2 UIUC", "wmx.ulmap.mini_subcha_alloc.extended_2_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2639 		{ &hf_ulmap_mini_subcha_alloc_length, { "Length", "wmx.ulmap.mini_subcha_alloc.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2640 		{ &hf_ulmap_mini_subcha_alloc_ctype, { "Ctype", "wmx.ulmap.mini_subcha_alloc.ctype", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2641 		{ &hf_ulmap_mini_subcha_alloc_duration, { "Duration", "wmx.ulmap.mini_subcha_alloc.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2642 		{ &hf_ulmap_mini_subcha_alloc_cid, { "CID", "wmx.ulmap.mini_subcha_alloc.cid", FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2643 		{ &hf_ulmap_mini_subcha_alloc_uiuc, { "UIUC", "wmx.ulmap.mini_subcha_alloc.uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2644 		{ &hf_ulmap_mini_subcha_alloc_repetition, { "Repetition", "wmx.ulmap.mini_subcha_alloc.repetition", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2645 		{ &hf_ulmap_mini_subcha_alloc_padding, { "Padding", "wmx.ulmap.mini_subcha_alloc.padding", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2646 		{ &hf_ulmap_aas_ul_extended_uiuc, { "Extended UIUC", "wmx.ulmap.aas_ul.extended_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2647 		{ &hf_ulmap_aas_ul_length, { "Length", "wmx.ulmap.aas_ul.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2648 		{ &hf_ulmap_aas_ul_permutation, { "Permutation", "wmx.ulmap.aas_ul.permutation", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2649 		{ &hf_ulmap_aas_ul_ul_permbase, { "UL_PermBase", "wmx.ulmap.aas_ul.ul_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2650 		{ &hf_ulmap_aas_ul_ofdma_symbol_offset, { "OFDMA symbol offset", "wmx.ulmap.aas_ul.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2651 		{ &hf_ulmap_aas_ul_aas_zone_length, { "AAS zone length", "wmx.ulmap.aas_ul.aas_zone_length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2652 		{ &hf_ulmap_aas_ul_uplink_preamble_config, { "Uplink preamble config", "wmx.ulmap.aas_ul.uplink_preamble_config", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2653 		{ &hf_ulmap_aas_ul_preamble_type, { "Preamble type", "wmx.ulmap.aas_ul.preamble_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2654 		{ &hf_ulmap_cqich_alloc_extended_uiuc, { "Extended UIUC", "wmx.ulmap.cqich_alloc.extended_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2655 		{ &hf_ulmap_cqich_alloc_length, { "Length", "wmx.ulmap.cqich_alloc.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2656 		{ &hf_ulmap_cqich_alloc_cqich_id, { "CQICH_ID", "wmx.ulmap.cqich_alloc.cqich_id", FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2657 		{ &hf_ulmap_cqich_alloc_allocation_offset, { "Allocation offset", "wmx.ulmap.cqich_alloc.allocation_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2658 		{ &hf_ulmap_cqich_alloc_period, { "Period (p)", "wmx.ulmap.cqich_alloc.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2659 		{ &hf_ulmap_cqich_alloc_frame_offset, { "Frame offset", "wmx.ulmap.cqich_alloc.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2660 		{ &hf_ulmap_cqich_alloc_duration, { "Duration (d)", "wmx.ulmap.cqich_alloc.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2661 		{ &hf_ulmap_cqich_alloc_report_configuration_included, { "Report configuration included", "wmx.ulmap.cqich_alloc.report_configuration_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2662 		{ &hf_ulmap_cqich_alloc_feedback_type, { "Feedback Type", "wmx.ulmap.cqich_alloc.feedback_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2663 		{ &hf_ulmap_cqich_alloc_report_type, { "Report type", "wmx.ulmap.cqich_alloc.report_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2664 		{ &hf_ulmap_cqich_alloc_cinr_preamble_report_type, { "CINR preamble report type", "wmx.ulmap.cqich_alloc.cinr_preamble_report_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2665 		{ &hf_ulmap_cqich_alloc_zone_permutation, { "Zone permutation", "wmx.ulmap.cqich_alloc.zone_permutation", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2666 		{ &hf_ulmap_cqich_alloc_zone_type, { "Zone type", "wmx.ulmap.cqich_alloc.zone_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2667 		{ &hf_ulmap_cqich_alloc_zone_prbs_id, { "Zone PRBS_ID", "wmx.ulmap.cqich_alloc.zone_prbs_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2668 		{ &hf_ulmap_cqich_alloc_major_group_indication, { "Major group indication", "wmx.ulmap.cqich_alloc.major_group_indication", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2669 		{ &hf_ulmap_cqich_alloc_pusc_major_group_bitmap, { "PUSC Major group bitmap", "wmx.ulmap.cqich_alloc.pusc_major_group_bitmap", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2670 		{ &hf_ulmap_cqich_alloc_cinr_zone_measurement_type, { "CINR zone measurement type", "wmx.ulmap.cqich_alloc.cinr_zone_measurement_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2671 		{ &hf_ulmap_cqich_alloc_averaging_parameter_included, { "Averaging parameter included", "wmx.ulmap.cqich_alloc.averaging_parameter_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2672 		{ &hf_ulmap_cqich_alloc_averaging_parameter, { "Averaging parameter", "wmx.ulmap.cqich_alloc.averaging_parameter", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2673 		{ &hf_ulmap_cqich_alloc_mimo_permutation_feedback_cycle, { "MIMO_permutation_feedback_cycle", "wmx.ulmap.cqich_alloc.mimo_permutation_feedback_cycle", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2674 		{ &hf_ulmap_zone_extended_uiuc, { "Extended UIUC", "wmx.ulmap.zone.extended_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2675 		{ &hf_ulmap_zone_length, { "Length", "wmx.ulmap.zone.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2676 		{ &hf_ulmap_zone_ofdma_symbol_offset, { "OFDMA symbol offset", "wmx.ulmap.zone.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2677 		{ &hf_ulmap_zone_permutation, { "Permutation", "wmx.ulmap.zone.permutation", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2678 		{ &hf_ulmap_zone_ul_permbase, { "UL_PermBase", "wmx.ulmap.zone.ul_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2679 		{ &hf_ulmap_zone_amc_type, { "AMC type", "wmx.ulmap.zone.amc_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2680 		{ &hf_ulmap_zone_use_all_sc_indicator, { "Use All SC indicator", "wmx.ulmap.zone.use_all_sc_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2681 		{ &hf_ulmap_zone_disable_subchannel_rotation, { "Disable subchannel rotation", "wmx.ulmap.zone.disable_subchannel_rotation", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2682 		{ &hf_ulmap_phymod_ul_extended_uiuc, { "Extended UIUC", "wmx.ulmap.phymod_ul.extended_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2683 		{ &hf_ulmap_phymod_ul_length, { "Length", "wmx.ulmap.phymod_ul.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2684 		{ &hf_ulmap_phymod_ul_preamble_modifier_type, { "Preamble Modifier Type", "wmx.ulmap.phymod_ul.preamble_modifier_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2685 		{ &hf_ulmap_phymod_ul_preamble_frequency_shift_index, { "Preamble frequency shift index", "wmx.ulmap.phymod_ul.preamble_frequency_shift_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2686 		{ &hf_ulmap_phymod_ul_preamble_time_shift_index, { "Preamble Time Shift index", "wmx.ulmap.phymod_ul.preamble_time_shift_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2687 		{ &hf_ulmap_phymod_ul_pilot_pattern_modifier, { "Pilot Pattern Modifier", "wmx.ulmap.phymod_ul.pilot_pattern_modifier", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2688 		{ &hf_ulmap_phymod_ul_pilot_pattern_index, { "Pilot Pattern Index", "wmx.ulmap.phymod_ul.pilot_pattern_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2689 		{ &hf_ulmap_fast_tracking_extended_uiuc, { "Extended UIUC", "wmx.ulmap.fast_tracking.extended_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2690 		{ &hf_ulmap_fast_tracking_length, { "Length", "wmx.ulmap.fast_tracking.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2691 		{ &hf_ulmap_fast_tracking_map_index, { "Map Index", "wmx.ulmap.fast_tracking.map_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2692 		{ &hf_ulmap_fast_tracking_power_correction, { "Power correction", "wmx.ulmap.fast_tracking.power_correction", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2693 		{ &hf_ulmap_fast_tracking_frequency_correction, { "Frequency correction", "wmx.ulmap.fast_tracking.frequency_correction", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2694 		{ &hf_ulmap_fast_tracking_time_correction, { "Time correction", "wmx.ulmap.fast_tracking.time_correction", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2695 		{ &hf_ulmap_pusc_burst_allocation_extended_uiuc, { "Extended UIUC", "wmx.ulmap.pusc_burst_allocation.extended_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2696 		{ &hf_ulmap_pusc_burst_allocation_length, { "Length", "wmx.ulmap.pusc_burst_allocation.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2697 		{ &hf_ulmap_pusc_burst_allocation_uiuc, { "UIUC", "wmx.ulmap.pusc_burst_allocation.uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2698 		{ &hf_ulmap_pusc_burst_allocation_segment, { "Segment", "wmx.ulmap.pusc_burst_allocation.segment", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2699 		{ &hf_ulmap_pusc_burst_allocation_ul_permbase, { "UL_PermBase", "wmx.ulmap.pusc_burst_allocation.ul_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2700 		{ &hf_ulmap_pusc_burst_allocation_ofdma_symbol_offset, { "OFDMA symbol offset", "wmx.ulmap.pusc_burst_allocation.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2701 		{ &hf_ulmap_pusc_burst_allocation_subchannel_offset, { "Subchannel offset", "wmx.ulmap.pusc_burst_allocation.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2702 		{ &hf_ulmap_pusc_burst_allocation_duration, { "Duration", "wmx.ulmap.pusc_burst_allocation.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2703 		{ &hf_ulmap_pusc_burst_allocation_repetition_coding_indication, { "Repetition coding indication", "wmx.ulmap.pusc_burst_allocation.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2704 		{ &hf_ulmap_fast_ranging_extended_uiuc, { "Extended UIUC", "wmx.ulmap.fast_ranging.extended_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2705 		{ &hf_ulmap_fast_ranging_length, { "Length", "wmx.ulmap.fast_ranging.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2706 		{ &hf_ulmap_fast_ranging_ho_id_indicator, { "HO_ID indicator", "wmx.ulmap.fast_ranging.ho_id_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2707 		{ &hf_ulmap_fast_ranging_ho_id, { "HO_ID", "wmx.ulmap.fast_ranging.ho_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2708 		{ &hf_ulmap_fast_ranging_mac_address, { "MAC address", "wmx.ulmap.fast_ranging.mac_address", FT_ETHER, BASE_NONE, NULL, 0x00, NULL, HFILL }},
2709 		{ &hf_ulmap_fast_ranging_uiuc, { "UIUC", "wmx.ulmap.fast_ranging.uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2710 		{ &hf_ulmap_fast_ranging_duration, { "Duration", "wmx.ulmap.fast_ranging.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2711 		{ &hf_ulmap_fast_ranging_repetition_coding_indication, { "Repetition coding indication", "wmx.ulmap.fast_ranging.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2712 		{ &hf_ulmap_allocation_start_extended_uiuc, { "Extended UIUC", "wmx.ulmap.allocation_start.extended_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2713 		{ &hf_ulmap_allocation_start_length, { "Length", "wmx.ulmap.allocation_start.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2714 		{ &hf_ulmap_allocation_start_ofdma_symbol_offset, { "OFDMA symbol offset", "wmx.ulmap.allocation_start.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2715 		{ &hf_ulmap_allocation_start_subchannel_offset, { "Subchannel offset", "wmx.ulmap.allocation_start.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2716 		{ &hf_ulmap_cqich_enhanced_alloc_extended_2_uiuc, { "Extended-2 UIUC", "wmx.ulmap.cqich_enhanced_alloc.extended_2_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2717 		{ &hf_ulmap_cqich_enhanced_alloc_length, { "Length", "wmx.ulmap.cqich_enhanced_alloc.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2718 		{ &hf_ulmap_cqich_enhanced_alloc_cqich_id, { "CQICH_ID", "wmx.ulmap.cqich_enhanced_alloc.cqich_id", FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2719 		{ &hf_ulmap_cqich_enhanced_alloc_period, { "Period (p)", "wmx.ulmap.cqich_enhanced_alloc.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2720 		{ &hf_ulmap_cqich_enhanced_alloc_frame_offset, { "Frame offset", "wmx.ulmap.cqich_enhanced_alloc.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2721 		{ &hf_ulmap_cqich_enhanced_alloc_duration, { "Duration (d)", "wmx.ulmap.cqich_enhanced_alloc.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2722 		{ &hf_ulmap_cqich_enhanced_alloc_cqich_num, { "CQICH_Num", "wmx.ulmap.cqich_enhanced_alloc.cqich_num", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2723 		{ &hf_ulmap_cqich_enhanced_alloc_feedback_type, { "Feedback Type", "wmx.ulmap.cqich_enhanced_alloc.feedback_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2724 		{ &hf_ulmap_cqich_enhanced_alloc_allocation_index, { "Allocation Index", "wmx.ulmap.cqich_enhanced_alloc.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2725 		{ &hf_ulmap_cqich_enhanced_alloc_cqich_type, { "CQICH Type", "wmx.ulmap.cqich_enhanced_alloc.cqich_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2726 		{ &hf_ulmap_cqich_enhanced_alloc_sttd_indication, { "STTD indication", "wmx.ulmap.cqich_enhanced_alloc.sttd_indication", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2727 		{ &hf_ulmap_cqich_enhanced_alloc_band_amc_precoding_mode, { "Band_AMC_Precoding_Mode", "wmx.ulmap.cqich_enhanced_alloc.band_amc_precoding_mode", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2728 		{ &hf_ulmap_cqich_enhanced_alloc_nr_precoders_feedback, { "Nr_Precoders_Feedback (=N)", "wmx.ulmap.cqich_enhanced_alloc.nr_precoders_feedback", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2729 		{ &hf_ulmap_anchor_bs_switch_extended_2_uiuc, { "Extended-2 UIUC", "wmx.ulmap.anchor_bs_switch.extended_2_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2730 		{ &hf_ulmap_anchor_bs_switch_length, { "Length", "wmx.ulmap.anchor_bs_switch.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2731 		{ &hf_ulmap_anchor_bs_switch_n_anchor_bs_switch, { "N_Anchor_BS_switch", "wmx.ulmap.anchor_bs_switch.n_anchor_bs_switch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2732 		{ &hf_ulmap_anchor_bs_switch_reduced_cid, { "Reduced CID", "wmx.ulmap.anchor_bs_switch.reduced_cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2733 		{ &hf_ulmap_anchor_bs_switch_action_code, { "Action Code", "wmx.ulmap.anchor_bs_switch.action_code", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2734 		{ &hf_ulmap_anchor_bs_switch_action_time, { "Action Time (A)", "wmx.ulmap.anchor_bs_switch.action_time", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2735 		{ &hf_ulmap_anchor_bs_switch_temp_bs_id, { "TEMP_BS_ID", "wmx.ulmap.anchor_bs_switch.temp_bs_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2736 		{ &hf_ulmap_anchor_bs_switch_ak_change_indicator, { "AK Change Indicator", "wmx.ulmap.anchor_bs_switch.ak_change_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2737 		{ &hf_ulmap_anchor_bs_switch_cqich_allocation_indicator, { "CQICH Allocation Indicator", "wmx.ulmap.anchor_bs_switch.cqich_allocation_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2738 		{ &hf_ulmap_anchor_bs_switch_feedback_channel_offset, { "Feedback channel offset", "wmx.ulmap.anchor_bs_switch.feedback_channel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2739 		{ &hf_ulmap_anchor_bs_switch_cqich_id, { "CQICH_ID", "wmx.ulmap.anchor_bs_switch.cqich_id", FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2740 		{ &hf_ulmap_anchor_bs_switch_period, { "Period (=p)", "wmx.ulmap.anchor_bs_switch.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2741 		{ &hf_ulmap_anchor_bs_switch_frame_offset, { "Frame offset", "wmx.ulmap.anchor_bs_switch.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2742 		{ &hf_ulmap_anchor_bs_switch_duration, { "Duration (=d)", "wmx.ulmap.anchor_bs_switch.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2743 		{ &hf_ulmap_anchor_bs_switch_mimo_permutation_feedback_code, { "MIMO_permutation_feedback_code", "wmx.ulmap.anchor_bs_switch.mimo_permutation_feedback_code", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2744 		{ &hf_ulmap_sounding_command_extended_2_uiuc, { "Extended-2 UIUC", "wmx.ulmap.sounding_command.extended_2_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2745 		{ &hf_ulmap_sounding_command_length, { "Length", "wmx.ulmap.sounding_command.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2746 		{ &hf_ulmap_sounding_command_type, { "Sounding_Type", "wmx.ulmap.sounding_command.sounding_command.type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2747 		{ &hf_ulmap_sounding_command_send_sounding_report_flag, { "Send Sounding Report Flag", "wmx.ulmap.sounding_command.send_sounding_report_flag", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2748 		{ &hf_ulmap_sounding_command_relevance_flag, { "Sounding Relevance Flag", "wmx.ulmap.sounding_command.relevance_flag", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2749 		{ &hf_ulmap_sounding_command_relevance, { "Sounding_Relevance", "wmx.ulmap.sounding_command.sounding_relevance", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2750 		{ &hf_ulmap_sounding_command_include_additional_feedback, { "Include additional feedback", "wmx.ulmap.sounding_command.include_additional_feedback", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2751 		{ &hf_ulmap_sounding_command_num_sounding_symbols, { "Num_Sounding_Symbols", "wmx.ulmap.sounding_command.num_sounding_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2752 		{ &hf_ulmap_sounding_command_separability_type, { "Separability Type", "wmx.ulmap.sounding_command.separability_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2753 		{ &hf_ulmap_sounding_command_max_cyclic_shift_index_p, { "Max Cyclic Shift Index P", "wmx.ulmap.sounding_command.max_cyclic_shift_index_p", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2754 		{ &hf_ulmap_sounding_command_decimation_value, { "Decimation Value D", "wmx.ulmap.sounding_command.decimation_value", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2755 		{ &hf_ulmap_sounding_command_decimation_offset_randomization, { "Decimation offset randomization", "wmx.ulmap.sounding_command.decimation_offset_randomization", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2756 		{ &hf_ulmap_sounding_command_symbol_index, { "Sounding symbol index", "wmx.ulmap.sounding_command.sounding_command.symbol_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2757 		{ &hf_ulmap_sounding_command_number_of_cids, { "Number of CIDs", "wmx.ulmap.sounding_command.number_of_cids", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2758 		{ &hf_ulmap_sounding_command_shorted_basic_cid, { "Shorted Basic CID", "wmx.ulmap.sounding_command.shorted_basic_cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2759 		{ &hf_ulmap_sounding_command_power_assignment_method, { "Power Assignment Method", "wmx.ulmap.sounding_command.power_assignment_method", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2760 		{ &hf_ulmap_sounding_command_power_boost, { "Power boost", "wmx.ulmap.sounding_command.power_boost", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2761 		{ &hf_ulmap_sounding_command_multi_antenna_flag, { "Multi-Antenna Flag", "wmx.ulmap.sounding_command.multi_antenna_flag", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2762 		{ &hf_ulmap_sounding_command_allocation_mode, { "Allocation Mode", "wmx.ulmap.sounding_command.allocation_mode", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2763 		{ &hf_ulmap_sounding_command_band_bit_map, { "Band bit map", "wmx.ulmap.sounding_command.band_bit_map", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2764 		{ &hf_ulmap_sounding_command_starting_frequency_band, { "Starting frequency band", "wmx.ulmap.sounding_command.starting_frequency_band", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2765 		{ &hf_ulmap_sounding_command_number_of_frequency_bands, { "Number of frequency bands", "wmx.ulmap.sounding_command.number_of_frequency_bands", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2766 		{ &hf_ulmap_sounding_command_cyclic_time_shift_index, { "Cyclic time shift index m", "wmx.ulmap.sounding_command.cyclic_time_shift_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2767 		{ &hf_ulmap_sounding_command_decimation_offset, { "Decimation offset d", "wmx.ulmap.sounding_command.decimation_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2768 		{ &hf_ulmap_sounding_command_use_same_symbol_for_additional_feedback, { "Use same symbol for additional feedback", "wmx.ulmap.sounding_command.use_same_symbol_for_additional_feedback", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2769 		{ &hf_ulmap_sounding_command_periodicity, { "Periodicity", "wmx.ulmap.sounding_command.periodicity", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2770 		{ &hf_ulmap_sounding_command_permutation, { "Permutation", "wmx.ulmap.sounding_command.permutation", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2771 		{ &hf_ulmap_sounding_command_dl_permbase, { "DL_PermBase", "wmx.ulmap.sounding_command.dl_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2772 		{ &hf_ulmap_sounding_command_shortened_basic_cid, { "Shortened basic CID", "wmx.ulmap.sounding_command.shortened_basic_cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2773 		{ &hf_ulmap_sounding_command_subchannel_offset, { "Subchannel offset", "wmx.ulmap.sounding_command.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2774 		{ &hf_ulmap_sounding_command_number_of_subchannels, { "Number of subchannels", "wmx.ulmap.sounding_command.number_of_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2775 		{ &hf_ulmap_harq_ulmap_extended_2_uiuc, { "Extended-2 UIUC", "wmx.ulmap.harq_ulmap.extended_2_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2776 		{ &hf_ulmap_harq_ulmap_length, { "Length", "wmx.ulmap.harq_ulmap.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2777 		{ &hf_ulmap_harq_ulmap_rcid_type, { "RCID_Type", "wmx.ulmap.harq_ulmap.rcid_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2778 		{ &hf_ulmap_harq_ulmap_mode, { "Mode", "wmx.ulmap.harq_ulmap.mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2779 		{ &hf_ulmap_harq_ulmap_allocation_start_indication, { "Allocation Start Indication", "wmx.ulmap.harq_ulmap.allocation_start_indication", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2780 		{ &hf_ulmap_harq_ulmap_ofdma_symbol_offset, { "OFDMA Symbol offset", "wmx.ulmap.harq_ulmap.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2781 		{ &hf_ulmap_harq_ulmap_subchannel_offset, { "Subchannel offset", "wmx.ulmap.harq_ulmap.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2782 		{ &hf_ulmap_harq_ulmap_n_sub_burst, { "N sub Burst", "wmx.ulmap.harq_ulmap.n_sub_burst", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2783 		{ &hf_ulmap_harq_ackch_region_alloc_extended_2_uiuc, { "Extended-2 UIUC", "wmx.ulmap.harq_ackch_region_alloc.extended_2_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2784 		{ &hf_ulmap_harq_ackch_region_alloc_length, { "Length", "wmx.ulmap.harq_ackch_region_alloc.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2785 		{ &hf_ulmap_harq_ackch_region_alloc_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.ulmap.harq_ackch_region_alloc.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2786 		{ &hf_ulmap_harq_ackch_region_alloc_subchannel_offset, { "Subchannel Offset", "wmx.ulmap.harq_ackch_region_alloc.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2787 		{ &hf_ulmap_harq_ackch_region_alloc_num_ofdma_symbols, { "No. OFDMA Symbols", "wmx.ulmap.harq_ackch_region_alloc.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2788 		{ &hf_ulmap_harq_ackch_region_alloc_num_subchannels, { "No. Subchannels", "wmx.ulmap.harq_ackch_region_alloc.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2789 		{ &hf_ulmap_aas_sdma_extended_2_uiuc, { "Extended-2 UIUC", "wmx.ulmap.aas_sdma.extended_2_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2790 		{ &hf_ulmap_aas_sdma_length, { "Length", "wmx.ulmap.aas_sdma.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2791 		{ &hf_ulmap_aas_sdma_rcid_type, { "RCID_Type", "wmx.ulmap.aas_sdma.rcid_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2792 		{ &hf_ulmap_aas_sdma_num_burst_region, { "Num Burst Region", "wmx.ulmap.aas_sdma.num_burst_region", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2793 		{ &hf_ulmap_aas_sdma_slot_offset, { "Slot offset", "wmx.ulmap.aas_sdma.slot_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2794 		{ &hf_ulmap_aas_sdma_slot_duration, { "Slot duration", "wmx.ulmap.aas_sdma.slot_duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2795 		{ &hf_ulmap_aas_sdma_number_of_users, { "Number of users", "wmx.ulmap.aas_sdma.number_of_users", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2796 		{ &hf_ulmap_aas_sdma_encoding_mode, { "Encoding Mode", "wmx.ulmap.aas_sdma.encoding_mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2797 		{ &hf_ulmap_aas_sdma_power_adjust, { "Power Adjust", "wmx.ulmap.aas_sdma.power_adjust", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2798 		{ &hf_ulmap_aas_sdma_pilot_pattern_modifier, { "Pilot Pattern Modifier", "wmx.ulmap.aas_sdma.pilot_pattern_modifier", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2799 		{ &hf_ulmap_aas_sdma_preamble_modifier_index, { "Preamble Modifier Index", "wmx.ulmap.aas_sdma.preamble_modifier_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2800 		{ &hf_ulmap_aas_sdma_pilot_pattern, { "Pilot Pattern", "wmx.ulmap.aas_sdma.pilot_pattern", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2801 		{ &hf_ulmap_aas_sdma_diuc, { "DIUC", "wmx.ulmap.aas_sdma.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2802 		{ &hf_ulmap_aas_sdma_repetition_coding_indication, { "Repetition Coding Indication", "wmx.ulmap.aas_sdma.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2803 		{ &hf_ulmap_aas_sdma_acid, { "ACID", "wmx.ulmap.aas_sdma.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2804 		{ &hf_ulmap_aas_sdma_ai_sn, { "AI_SN", "wmx.ulmap.aas_sdma.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2805 		{ &hf_ulmap_aas_sdma_nep, { "N(EP)", "wmx.ulmap.aas_sdma.nep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2806 		{ &hf_ulmap_aas_sdma_nsch, { "N(SCH)", "wmx.ulmap.aas_sdma.nsch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2807 		{ &hf_ulmap_aas_sdma_spid, { "SPID", "wmx.ulmap.aas_sdma.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2808 		{ &hf_ulmap_aas_sdma_power_adjustment, { "Power Adjustment", "wmx.ulmap.aas_sdma.power_adjustment", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2809 		{ &hf_ulmap_feedback_polling_extended_2_uiuc, { "Extended-2 UIUC", "wmx.ulmap.feedback_polling.extended_2_uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2810 		{ &hf_ulmap_feedback_polling_length, { "Length", "wmx.ulmap.feedback_polling.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2811 		{ &hf_ulmap_feedback_polling_num_allocation, { "Num_Allocation", "wmx.ulmap.feedback_polling.num_allocation", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2812 		{ &hf_ulmap_feedback_polling_dedicated_ul_allocation_included, { "Dedicated UL Allocation included", "wmx.ulmap.feedback_polling.dedicated_ul_allocation_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2813 		{ &hf_ulmap_feedback_polling_basic_cid, { "Basic CID", "wmx.ulmap.feedback_polling.basic_cid", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2814 		{ &hf_ulmap_feedback_polling_allocation_duration, { "Allocation Duration (d)", "wmx.ulmap.feedback_polling.allocation_duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2815 		{ &hf_ulmap_feedback_polling_type, { "Feedback type", "wmx.ulmap.feedback_polling.feedback_polling.type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2816 		{ &hf_ulmap_feedback_polling_frame_offset, { "Frame Offset", "wmx.ulmap.feedback_polling.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2817 		{ &hf_ulmap_feedback_polling_period, { "Period (p)", "wmx.ulmap.feedback_polling.perio", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2818 		{ &hf_ulmap_feedback_polling_uiuc, { "UIUC", "wmx.ulmap.feedback_polling.uiuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2819 		{ &hf_ulmap_feedback_polling_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.ulmap.feedback_polling.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2820 		{ &hf_ulmap_feedback_polling_subchannel_offset, { "Subchannel offset", "wmx.ulmap.feedback_polling.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2821 		{ &hf_ulmap_feedback_polling_duration, { "Duration", "wmx.ulmap.feedback_polling.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2822 		{ &hf_ulmap_feedback_polling_repetition_coding_indication, { "Repetition coding indication", "wmx.ulmap.feedback_polling.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2823 		{ &hf_ulmap_reduced_aas_aas_zone_configuration_included, { "AAS zone configuration included", "wmx.ulmap.reduced_aas.aas_zone_configuration_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2824 		{ &hf_ulmap_reduced_aas_aas_zone_position_included, { "AAS zone position included", "wmx.ulmap.reduced_aas.aas_zone_position_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2825 		{ &hf_ulmap_reduced_aas_ul_map_information_included, { "UL-MAP information included", "wmx.ulmap.reduced_aas.ul_map_information_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2826 		{ &hf_ulmap_reduced_aas_phy_modification_included, { "PHY modification included", "wmx.ulmap.reduced_aas.phy_modification_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2827 		{ &hf_ulmap_reduced_aas_power_control_included, { "Power Control included", "wmx.ulmap.reduced_aas.power_control_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2828 		{ &hf_ulmap_reduced_aas_include_feedback_header, { "Include Feedback Header", "wmx.ulmap.reduced_aas.include_feedback_header", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2829 		{ &hf_ulmap_reduced_aas_encoding_mode, { "Encoding Mode", "wmx.ulmap.reduced_aas.encoding_mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2830 		{ &hf_ulmap_reduced_aas_permutation, { "Permutation", "wmx.ulmap.reduced_aas.permutation", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2831 		{ &hf_ulmap_reduced_aas_ul_permbase, { "UL_PermBase", "wmx.ulmap.reduced_aas.ul_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2832 		{ &hf_ulmap_reduced_aas_preamble_indication, { "Preamble Indication", "wmx.ulmap.reduced_aas.preamble_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2833 		{ &hf_ulmap_reduced_aas_padding, { "Padding", "wmx.ulmap.reduced_aas.padding", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2834 		{ &hf_ulmap_reduced_aas_zone_symbol_offset, { "Zone Symbol Offset", "wmx.ulmap.reduced_aas.zone_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2835 		{ &hf_ulmap_reduced_aas_zone_length, { "Zone Length", "wmx.ulmap.reduced_aas.zone_length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2836 		{ &hf_ulmap_reduced_aas_ucd_count, { "UCD Count", "wmx.ulmap.reduced_aas.ucd_count", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2837 		{ &hf_ulmap_reduced_aas_private_map_alloc_start_time, { "Private Map Allocation Start Time", "wmx.ulmap.reduced_aas.private_map_alloc_start_time", FT_UINT64, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2838 		{ &hf_ulmap_reduced_aas_pilot_pattern_index, { "Pilot Pattern Index", "wmx.ulmap.reduced_aas.pilot_pattern_index", FT_UINT64, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2839 		{ &hf_ulmap_reduced_aas_preamble_select, { "Preamble Select", "wmx.ulmap.reduced_aas.preamble_select", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2840 		{ &hf_ulmap_reduced_aas_preamble_shift_index, { "Preamble Shift Index", "wmx.ulmap.reduced_aas.preamble_shift_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2841 		{ &hf_ulmap_reduced_aas_pilot_pattern_modifier, { "Pilot Pattern Modifier", "wmx.ulmap.reduced_aas.pilot_pattern_modifier", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2842 		{ &hf_ulmap_reduced_aas_power_control, { "Power Control", "wmx.ulmap.reduced_aas.power_control", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2843 		{ &hf_ulmap_reduced_aas_ul_frame_offset, { "UL Frame Offset", "wmx.ulmap.reduced_aas.ul_frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2844 		{ &hf_ulmap_reduced_aas_slot_offset, { "Slot Offset", "wmx.ulmap.reduced_aas.slot_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2845 		{ &hf_ulmap_reduced_aas_slot_duration, { "Slot Duration", "wmx.ulmap.reduced_aas.slot_duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2846 		{ &hf_ulmap_reduced_aas_uiuc_nep, { "UIUC / N(EP)", "wmx.ulmap.reduced_aas.uiuc_nep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2847 		{ &hf_ulmap_reduced_aas_acid, { "ACID", "wmx.ulmap.reduced_aas.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2848 		{ &hf_ulmap_reduced_aas_ai_sn, { "AI_SN", "wmx.ulmap.reduced_aas.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2849 		{ &hf_ulmap_reduced_aas_nsch, { "N(SCH)", "wmx.ulmap.reduced_aas.nsch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2850 		{ &hf_ulmap_reduced_aas_spid, { "SPID", "wmx.ulmap.reduced_aas.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2851 		{ &hf_ulmap_reduced_aas_repetition_coding_indication, { "Repetition Coding Indication", "wmx.ulmap.reduced_aas.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
2852 	};
2853 
2854 	/* Setup protocol subtree array */
2855 	static gint *ett[] =
2856 		{
2857 			&ett_ulmap,
2858 			&ett_ulmap_ie,
2859 			&ett_ulmap_ffb,
2860 			/* &ett_ulmap_c,    */
2861 			/* &ett_ulmap_c_ie, */
2862 			/* &ett_ulmap_s,    */
2863 			/* &ett_ulmap_s_ie, */
2864 			&ett_287_1,
2865 			&ett_287_2,
2866 			&ett_289,
2867 			&ett_290,
2868 			&ett_290b,
2869 			&ett_291,
2870 			&ett_292,
2871 			&ett_293,
2872 			&ett_294,
2873 			&ett_295,
2874 			&ett_299,
2875 			&ett_300,
2876 			&ett_302,
2877 			&ett_302a,
2878 			&ett_302b,
2879 			&ett_302c,
2880 			&ett_302d,
2881 			&ett_302e,
2882 			&ett_302f,
2883 			&ett_302h,
2884 			&ett_302g,
2885 			&ett_302i,
2886 			&ett_302j,
2887 			&ett_302k,
2888 			&ett_302l,
2889 			&ett_302m,
2890 			&ett_302n,
2891 			&ett_302o,
2892 			&ett_302p,
2893 			&ett_302q,
2894 			&ett_302r,
2895 			&ett_302s,
2896 			&ett_302t,
2897 			&ett_302u,
2898 			&ett_302v,
2899 			&ett_306,
2900 			&ett_306_ul,
2901 			&ett_308b,
2902 			&ett_315d,
2903 		};
2904 
2905 	static ei_register_info ei[] = {
2906 		{ &ei_ulmap_not_implemented, { "wmx.ulmap.not_implemented", PI_UNDECODED, PI_WARN, "Not implemented", EXPFILL }},
2907 	};
2908 
2909 	expert_module_t* expert_mac_mgmt_msg_ulmap;
2910 
2911 	proto_mac_mgmt_msg_ulmap_decoder = proto_register_protocol (
2912 		"WiMax ULMAP Messages", /* name       */
2913 		"WiMax ULMAP",    /* short name */
2914 		"wmx.ulmap"       /* abbrev     */
2915 		);
2916 
2917 	proto_register_field_array(proto_mac_mgmt_msg_ulmap_decoder, hf, array_length(hf));
2918 	proto_register_subtree_array(ett, array_length(ett));
2919 	expert_mac_mgmt_msg_ulmap = expert_register_protocol(proto_mac_mgmt_msg_ulmap_decoder);
2920 	expert_register_field_array(expert_mac_mgmt_msg_ulmap, ei, array_length(ei));
2921 }
2922 
proto_reg_handoff_mac_mgmt_msg_ulmap(void)2923 void proto_reg_handoff_mac_mgmt_msg_ulmap(void)
2924 {
2925 	dissector_handle_t ulmap_handle;
2926 
2927 	ulmap_handle = create_dissector_handle(dissect_mac_mgmt_msg_ulmap_decoder, proto_mac_mgmt_msg_ulmap_decoder);
2928 	dissector_add_uint("wmx.mgmtmsg", MAC_MGMT_MSG_UL_MAP, ulmap_handle);
2929 }
2930 
2931 /*
2932  * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
2933  *
2934  * Local variables:
2935  * c-basic-offset: 8
2936  * tab-width: 8
2937  * indent-tabs-mode: t
2938  * End:
2939  *
2940  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
2941  * :indentSize=8:tabSize=8:noTabs=false:
2942  */
2943