1 /* msg_dlmap.c
2 * WiMax MAC Management DL-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 "crc.h"
23 #include "wimax_bits.h"
24 #include "wimax_utils.h"
25
26 extern gboolean include_cor2_changes;
27
28 void proto_register_mac_mgmt_msg_dlmap(void);
29 void proto_reg_handoff_mac_mgmt_msg_dlmap(void);
30
31 #define MAC_MGMT_MSG_DLMAP 2
32
33 #define XBIT_HF(bits, hf) \
34 proto_tree_add_bits_item(tree, hf, tvb, bit, bits, ENC_BIG_ENDIAN); bit += bits;
35
36 #define XBIT_HF_VALUE(var, bits, hf) \
37 do { \
38 var = TVB_BIT_BITS(bit, tvb, bits); \
39 proto_tree_add_bits_item(tree, hf, tvb, bit, bits, ENC_BIG_ENDIAN); \
40 bit += bits; \
41 } while(0)
42
43 #define VBIT(var, bits, hf) \
44 do { \
45 var = TVB_BIT_BITS(bit, tvb, bits); \
46 proto_tree_add_uint(tree, hf, tvb, BITHI(bit,bits), var); \
47 bit += bits; \
48 } while(0)
49
50 #define VNIB(var, nibs, hf) \
51 do { \
52 var = TVB_NIB_NIBS(nib, tvb, nibs); \
53 proto_tree_add_uint(tree, hf, tvb, NIBHI(nib, nibs), var); \
54 nib += nibs; \
55 } while(0)
56
57 gint harq = 0; /* 1 if HARQ enabled (TODO) */
58 gint fusc = 0; /* 1 if current zone permutation is FUSC or optional FUSC (TODO) */
59 gint tusc = 0; /* 1 if current zone permutation is AMC, TUSC1 or TUSC2 (TODO) */
60 gint ir_type = 0; /* reduced AAS map (TODO) */
61 gint RCID_Type = 0;
62 gint N_layer = 0;
63 gint STC_Zone_Dedicated_Pilots = 0;
64 gint STC_Zone_Matrix = 0;
65 gint INC_CID = 0;
66 gint sub_dl_ul_map = 0;
67
68 static gint proto_mac_mgmt_msg_dlmap_decoder = -1;
69
70 static gint ett_dlmap = -1;
71 static gint ett_dlmap_ie = -1;
72 /* static gint ett_dlmap_c_ie = -1; */
73 static gint ett_109x = -1; /* SUB-DL-UL-MAP */
74 static gint ett_109x_dl = -1;
75 static gint ett_109x_ul = -1;
76 static gint ett_275_phy = -1;
77 static gint ett_275_1 = -1;
78 static gint ett_277 = -1;
79 static gint ett_277b = -1;
80 static gint ett_278 = -1;
81 static gint ett_279 = -1;
82 static gint ett_280 = -1;
83 static gint ett_281 = -1;
84 static gint ett_282 = -1;
85 static gint ett_283 = -1;
86 static gint ett_284 = -1;
87 static gint ett_285 = -1;
88 static gint ett_286 = -1;
89 static gint ett_286a = -1;
90 static gint ett_286b = -1;
91 static gint ett_286c = -1;
92 static gint ett_286d = -1;
93 static gint ett_286e = -1;
94 static gint ett_286f = -1;
95 static gint ett_286g = -1;
96 static gint ett_286h = -1;
97 static gint ett_286i = -1;
98 static gint ett_286j = -1;
99 static gint ett_286k = -1;
100 static gint ett_286l = -1;
101 static gint ett_286m = -1;
102 static gint ett_286n = -1;
103 static gint ett_286o = -1;
104 static gint ett_286p = -1;
105 static gint ett_286q = -1;
106 static gint ett_286r = -1;
107 static gint ett_286s = -1;
108 static gint ett_286t = -1;
109 static gint ett_286u = -1;
110 static gint ett_286v = -1;
111 static gint ett_286w = -1;
112 static gint ett_286x = -1;
113 static gint ett_286y = -1;
114 static gint ett_286z = -1;
115 static gint ett_305 = -1;
116 /* static gint ett_305_dl = -1; */
117 static gint ett_308a = -1;
118
119 #define DCD_DOWNLINK_BURST_PROFILE 1
120 #define DCD_BS_EIRP 2
121 #define DCD_FRAME_DURATION 3
122 #define DCD_PHY_TYPE 4
123 #define DCD_POWER_ADJUSTMENT 5
124 #define DCD_CHANNEL_NR 6
125 #define DCD_TTG 7
126 #define DCD_RTG 8
127 #define DCD_RSS 9
128 #define DCD_CHANNEL_SWITCH_FRAME_NR 10
129 #define DCD_FREQUENCY 12
130 #define DCD_BS_ID 13
131 #define DCD_FRAME_DURATION_CODE 14
132 #define DCD_FRAME_NR 15
133 #define DCD_SIZE_CQICH_ID 16
134 #define DCD_H_ARQ_ACK_DELAY 17
135 #define DCD_MAC_VERSION 148
136 #define DCD_RESTART_COUNT 154
137
138 #define DCD_BURST_FREQUENCY 1
139 #define DCD_BURST_FEC_CODE_TYPE 150
140 #define DCD_BURST_DIUC_EXIT_THRESHOLD 151
141 #define DCD_BURST_DIUC_ENTRY_THRESHOLD 152
142 #define DCD_BURST_TCS_ENABLE 153
143
144 #define DCD_TLV_T_541_TYPE_FUNCTION_ACTION 1
145 #define DCD_TLV_T542_TRIGGER_VALUE 2
146 #define DCD_TLV_T_543_TRIGGER_AVERAGING_DURATION 3
147 #define DCD_TLV_T_19_PERMUTATION_TYPE_FOR_BROADCAST_REGION_IN_HARQ_ZONE 19
148 #define DCD_TLV_T_20_MAXIMUM_RETRANSMISSION 20
149 #define DCD_TLV_T_21_DEFAULT_RSSI_AND_CINR_AVERAGING_PARAMETER 21
150 #define DCD_TLV_T_22_DL_AMC_ALLOCATED_PHYSICAL_BANDS_BITMAP 22
151 #define DCD_TLV_T_31_H_ADD_THRESHOLD 31
152 #define DCD_TLV_T_32_H_DELETE_THRESHOLD 32
153 #define DCD_TLV_T_33_ASR 33
154 #define DCD_TLV_T_34_DL_REGION_DEFINITION 34
155 #define DCD_TLV_T_35_PAGING_GROUP_ID 35
156 #define DCD_TLV_T_36_TUSC1_PERMUTATION_ACTIVE_SUBCHANNELS_BITMAP 36
157 #define DCD_TLV_T_37_TUSC2_PERMUTATION_ACTIVE_SUBCHANNELS_BITMAP 37
158 #define DCD_TLV_T_45_PAGING_INTERVAL_LENGTH 45
159 #define DCD_TLV_T_50_HO_TYPE_SUPPORT 50
160 #define DCD_TLV_T_51_HYSTERSIS_MARGIN 51
161 #define DCD_TLV_T_52_TIME_TO_TRIGGER_DURATION 52
162 #define DCD_TLV_T_54_TRIGGER 54
163 #define DCD_TLV_T_153_DOWNLINK_BURST_PROFILE_FOR_MULTIPLE_FEC_TYPES 153
164
165 #define DL_MAP_NCT_PMP 0
166 #define DL_MAP_NCT_DM 1
167 #define DL_MAP_NCT_PTP 2
168
169 #if 0
170 /* NCT messages */
171 static const value_string nct_msgs[] =
172 {
173 { DL_MAP_NCT_PMP, "PMP" },
174 { DL_MAP_NCT_PMP, "DM" },
175 { DL_MAP_NCT_PMP, "PTP" },
176 { 0, NULL }
177 };
178 #endif
179
180 /* Repetition Coding Indications */
181 static const value_string rep_msgs[] =
182 {
183 { 0, "No Repetition Coding" },
184 { 1, "Repetition Coding of 2 Used" },
185 { 2, "Repetition Coding of 4 Used" },
186 { 3, "Repetition Coding of 6 Used" },
187 { 0, NULL }
188 };
189
190 /* DL Frame Prefix Coding Indications */
191 static const value_string boost_msgs[] =
192 {
193 { 0, "Normal (not boosted)" },
194 { 1, "+6dB" },
195 { 2, "-6dB" },
196 { 3, "+9dB" },
197 { 4, "+3dB" },
198 { 5, "-3dB" },
199 { 6, "-9dB" },
200 { 7, "-12dB" },
201 { 0, NULL }
202 };
203
204 /* OFDMA frame duration ms (Table 320)*/
205 static const value_string frame_duration[] =
206 {
207 { 0, "reserved"},
208 { 1, "2 ms"},
209 { 2, "2.5 ms"},
210 { 3, "4 ms"},
211 { 4, "5 ms"},
212 { 5, "8 ms"},
213 { 6, "10 ms"},
214 { 7, "12.5 ms"},
215 { 8, "20 ms"},
216 { 0, NULL}
217 };
218
219 /* OFDMA frames per second (Table 320)*/
220 static const value_string frames_per_second[] =
221 {
222 { 0, "reserved"},
223 { 1, "500"},
224 { 2, "400"},
225 { 3, "250"},
226 { 4, "200"},
227 { 5, "125"},
228 { 6, "100"},
229 { 7, "80"},
230 { 8, "50"},
231 { 0, NULL}
232 };
233
234 /* dl-map fields */
235 static gint hf_dlmap_phy_fdur = -1;
236 static gint hf_dlmap_phy_fdur_ms = -1;
237 static gint hf_dlmap_phy_fdur_per_sec = -1;
238 static gint hf_dlmap_phy_fnum = -1;
239 /* static gint hf_dlmap_fch_expected = -1; */
240 static gint hf_dlmap_dcd = -1;
241 static gint hf_dlmap_bsid = -1;
242 static gint hf_dlmap_ofdma_sym = -1;
243 /* static gint hf_dlmap_ie = -1; */
244 static gint hf_dlmap_ie_diuc = -1;
245 static gint hf_dlmap_ie_reserved_extended2_duic = -1;
246 static gint hf_dlmap_ie_reserved_extended_duic = -1;
247 static gint hf_dlmap_ie_diuc_ext = -1;
248 static gint hf_dlmap_ie_diuc_ext2 = -1;
249 static gint hf_dlmap_ie_length = -1;
250 static gint hf_dlmap_ie_bitmap = -1;
251 static gint hf_dlmap_ie_bitmap_cqi = -1;
252 static gint hf_dlmap_ie_bitmap_pusc = -1;
253 static gint hf_dlmap_ie_bitmap_opt_pusc = -1;
254 static gint hf_dlmap_ie_bitmap_amc = -1;
255 static gint hf_dlmap_ie_bitmap_aas = -1;
256 static gint hf_dlmap_ie_bitmap_periodic_ranging = -1;
257 static gint hf_dlmap_ie_bitmap_sounding = -1;
258 static gint hf_dlmap_ie_bitmap_mimo = -1;
259 static gint hf_dlmap_ie_ncid = -1;
260 static gint hf_dlmap_ie_cid = -1;
261 static gint hf_dlmap_ie_offsym = -1;
262 static gint hf_dlmap_ie_offsub = -1;
263 static gint hf_dlmap_ie_boosting = -1;
264 static gint hf_dlmap_ie_numsym = -1;
265 static gint hf_dlmap_ie_numsub = -1;
266 static gint hf_dlmap_ie_rep = -1;
267 static gint hf_dlmap_ie_offsym2 = -1;
268 static gint hf_dlmap_ie_offsub2 = -1;
269 static gint hf_dlmap_ie_boosting2 = -1;
270 static gint hf_dlmap_ie_numsym2 = -1;
271 static gint hf_dlmap_ie_numsub2 = -1;
272 static gint hf_dlmap_ie_rep2 = -1;
273
274 /* static gint hf_dlmap_xie_diuc = -1; */
275 /* static gint hf_dlmap_xie_len = -1; */
276
277 static gint hf_dlmapc_compr = -1;
278 static gint hf_dlmapc_ulmap = -1;
279 static gint hf_dlmapc_rsv = -1;
280 static gint hf_dlmapc_len = -1;
281 /* static gint hf_dlmapc_sync = -1; */
282 static gint hf_dlmapc_opid = -1;
283 static gint hf_dlmapc_secid = -1;
284 static gint hf_dlmapc_count = -1;
285
286 #if 0
287 static gint hf_109x_cmi = -1;
288 static gint hf_109x_len = -1;
289 static gint hf_109x_rcid = -1;
290 static gint hf_109x_haoi = -1;
291 static gint hf_109x_dl = -1;
292 static gint hf_109x_ul = -1;
293 static gint hf_109x_dlie = -1;
294 static gint hf_109x_symofs = -1;
295 static gint hf_109x_subofs = -1;
296 static gint hf_109x_rsv = -1;
297 #endif
298
299 static gint hf_308a_cmi = -1;
300 static gint hf_308a_ulmap = -1;
301 static gint hf_308a_type = -1;
302 static gint hf_308a_mult = -1;
303 static gint hf_308a_rsv = -1;
304 static gint hf_mac_header_compress_dlmap_crc = -1;
305 static gint hf_mac_header_compress_dlmap_crc_status = -1;
306 static gint hf_crc16 = -1;
307 static gint hf_crc16_status = -1;
308 static gint hf_padding = -1;
309 static gint hf_cid_mask = -1;
310 static gint hf_reserved = -1;
311
312 /* Generated via "one time" script to help create filterable fields */
313 static int hf_dlmap_rcid_ie_cid = -1;
314 static int hf_dlmap_rcid_ie_prefix = -1;
315 static int hf_dlmap_rcid_ie_cid11 = -1;
316 static int hf_dlmap_rcid_ie_cid7 = -1;
317 static int hf_dlmap_rcid_ie_cid3 = -1;
318 static int hf_dlmap_dedicated_dl_control_length = -1;
319 static int hf_dlmap_dedicated_dl_control_control_header = -1;
320 static int hf_dlmap_dedicated_dl_control_num_sdma_layers = -1;
321 static int hf_dlmap_dedicated_mimo_dl_control_length = -1;
322 static int hf_dlmap_dedicated_mimo_dl_control_control_header_mimo_control_info = -1;
323 static int hf_dlmap_dedicated_mimo_dl_control_control_header_cqi_control_info = -1;
324 static int hf_dlmap_dedicated_mimo_dl_control_control_header_closed_mimo_control_info = -1;
325 static int hf_dlmap_dedicated_mimo_dl_control_n_layer = -1;
326 static int hf_dlmap_dedicated_mimo_dl_control_matrix = -1;
327 static int hf_dlmap_dedicated_mimo_dl_control_num_beamformed_streams = -1;
328 static int hf_dlmap_dedicated_mimo_dl_control_period = -1;
329 static int hf_dlmap_dedicated_mimo_dl_control_frame_offset = -1;
330 static int hf_dlmap_dedicated_mimo_dl_control_duration = -1;
331 static int hf_dlmap_dedicated_mimo_dl_control_allocation_index = -1;
332 static int hf_dlmap_dedicated_mimo_dl_control_cqich_num = -1;
333 static int hf_dlmap_dedicated_mimo_dl_control_feedback_type = -1;
334 static int hf_dlmap_dedicated_mimo_dl_control_antenna_grouping_index = -1;
335 static int hf_dlmap_dedicated_mimo_dl_control_num_stream = -1;
336 static int hf_dlmap_dedicated_mimo_dl_control_antenna_selection_index = -1;
337 static int hf_dlmap_dedicated_mimo_dl_control_codebook_precoding_index = -1;
338 static int hf_dlmap_n_sub_burst_isi = -1;
339 static int hf_dlmap_harq_chase_n_ack_channel = -1;
340 static int hf_dlmap_harq_chase_duration = -1;
341 static int hf_dlmap_harq_chase_sub_burst_diuc_indicator = -1;
342 static int hf_dlmap_reserved_uint = -1;
343 static int hf_dlmap_harq_chase_diuc = -1;
344 static int hf_dlmap_harq_chase_repetition_coding_indication = -1;
345 static int hf_dlmap_harq_chase_acid = -1;
346 static int hf_dlmap_harq_chase_ai_sn = -1;
347 static int hf_dlmap_harq_chase_ack_disable = -1;
348 static int hf_dlmap_harq_chase_dedicated_dl_control_indicator = -1;
349 static int hf_dlmap_harq_chase_allocation_index = -1;
350 static int hf_dlmap_harq_chase_period = -1;
351 static int hf_dlmap_harq_chase_frame_offset = -1;
352 static int hf_dlmap_harq_ir_ctc_n_ack_channel = -1;
353 static int hf_dlmap_harq_ir_ctc_nep = -1;
354 static int hf_dlmap_harq_ir_ctc_nsch = -1;
355 static int hf_dlmap_harq_ir_ctc_spid = -1;
356 static int hf_dlmap_harq_ir_ctc_acid = -1;
357 static int hf_dlmap_harq_ir_ctc_ai_sn = -1;
358 static int hf_dlmap_harq_ir_ctc_ack_disable = -1;
359 static int hf_dlmap_harq_ir_ctc_dedicated_dl_control_indicator = -1;
360 static int hf_dlmap_harq_ir_ctc_duration = -1;
361 static int hf_dlmap_harq_ir_ctc_allocation_index = -1;
362 static int hf_dlmap_harq_ir_ctc_period = -1;
363 static int hf_dlmap_harq_ir_ctc_frame_offset = -1;
364 static int hf_dlmap_harq_ir_cc_n_ack_channel = -1;
365 static int hf_dlmap_harq_ir_cc_duration = -1;
366 static int hf_dlmap_harq_ir_cc_sub_burst_diuc_indicator = -1;
367 static int hf_dlmap_harq_ir_cc_diuc = -1;
368 static int hf_dlmap_harq_ir_cc_repetition_coding_indication = -1;
369 static int hf_dlmap_harq_ir_cc_acid = -1;
370 static int hf_dlmap_harq_ir_cc_ai_sn = -1;
371 static int hf_dlmap_harq_ir_cc_spid = -1;
372 static int hf_dlmap_harq_ir_cc_ack_disable = -1;
373 static int hf_dlmap_harq_ir_cc_dedicated_dl_control_indicator = -1;
374 static int hf_dlmap_harq_ir_cc_allocation_index = -1;
375 static int hf_dlmap_harq_ir_cc_period = -1;
376 static int hf_dlmap_harq_ir_cc_frame_offset = -1;
377 static int hf_dlmap_mimo_dl_chase_harq_n_ack_channel = -1;
378 static int hf_dlmap_mimo_dl_chase_harq_mu_indicator = -1;
379 static int hf_dlmap_mimo_dl_chase_harq_dedicated_mimo_dl_control_indicator = -1;
380 static int hf_dlmap_mimo_dl_chase_harq_ack_disable = -1;
381 static int hf_dlmap_mimo_dl_chase_harq_duration = -1;
382 static int hf_dlmap_mimo_dl_chase_harq_diuc = -1;
383 static int hf_dlmap_mimo_dl_chase_harq_repetition_coding_indication = -1;
384 static int hf_dlmap_mimo_dl_chase_harq_acid = -1;
385 static int hf_dlmap_mimo_dl_chase_harq_ai_sn = -1;
386 static int hf_dlmap_mimo_dl_ir_harq_n_ack_channel = -1;
387 static int hf_dlmap_mimo_dl_ir_harq_mu_indicator = -1;
388 static int hf_dlmap_mimo_dl_ir_harq_dedicated_mimo_dl_control_indicator = -1;
389 static int hf_dlmap_mimo_dl_ir_harq_ack_disable = -1;
390 static int hf_dlmap_mimo_dl_ir_harq_nsch = -1;
391 static int hf_dlmap_mimo_dl_ir_harq_nep = -1;
392 static int hf_dlmap_mimo_dl_ir_harq_spid = -1;
393 static int hf_dlmap_mimo_dl_ir_harq_acid = -1;
394 static int hf_dlmap_mimo_dl_ir_harq_ai_sn = -1;
395 static int hf_dlmap_mimo_dl_ir_harq_cc_n_ack_channel = -1;
396 static int hf_dlmap_mimo_dl_ir_harq_cc_mu_indicator = -1;
397 static int hf_dlmap_mimo_dl_ir_harq_cc_dedicated_mimo_dl_control_indicator = -1;
398 static int hf_dlmap_mimo_dl_ir_harq_cc_ack_disable = -1;
399 static int hf_dlmap_mimo_dl_ir_harq_cc_duration = -1;
400 static int hf_dlmap_mimo_dl_ir_harq_cc_diuc = -1;
401 static int hf_dlmap_mimo_dl_ir_harq_cc_repetition_coding_indication = -1;
402 static int hf_dlmap_mimo_dl_ir_harq_cc_acid = -1;
403 static int hf_dlmap_mimo_dl_ir_harq_cc_ai_sn = -1;
404 static int hf_dlmap_mimo_dl_ir_harq_cc_spid = -1;
405 static int hf_dlmap_mimo_dl_stc_harq_n_ack_channel = -1;
406 static int hf_dlmap_mimo_dl_stc_harq_tx_count = -1;
407 static int hf_dlmap_mimo_dl_stc_harq_duration = -1;
408 static int hf_dlmap_mimo_dl_stc_harq_sub_burst_offset_indication = -1;
409 static int hf_dlmap_mimo_dl_stc_harq_sub_burst_offset = -1;
410 static int hf_dlmap_mimo_dl_stc_harq_ack_disable = -1;
411 static int hf_dlmap_mimo_dl_stc_harq_dedicated_mimo_dl_control_indicator = -1;
412 static int hf_dlmap_mimo_dl_stc_harq_diuc = -1;
413 static int hf_dlmap_mimo_dl_stc_harq_repetition_coding_indication = -1;
414 static int hf_dlmap_mimo_dl_stc_harq_acid = -1;
415 static int hf_dlmap_mbs_map_extended_2_diuc = -1;
416 static int hf_dlmap_mbs_map_mbs_zone_identifier = -1;
417 static int hf_dlmap_mbs_map_macro_diversity_enhanced = -1;
418 static int hf_dlmap_mbs_map_permutation = -1;
419 static int hf_dlmap_mbs_map_dl_permbase = -1;
420 static int hf_dlmap_mbs_map_prbs_id = -1;
421 static int hf_dlmap_mbs_map_ofdma_symbol_offset = -1;
422 static int hf_dlmap_mbs_map_diuc_change_indication = -1;
423 static int hf_dlmap_mbs_map_boosting = -1;
424 static int hf_dlmap_mbs_map_diuc = -1;
425 static int hf_dlmap_mbs_map_num_subchannels = -1;
426 static int hf_dlmap_mbs_map_num_ofdma_symbols = -1;
427 static int hf_dlmap_mbs_map_repetition_coding_indication = -1;
428 static int hf_dlmap_mbs_map_cid = -1;
429 static int hf_dlmap_mbs_map_ofdma_symbols_offset = -1;
430 static int hf_dlmap_mbs_map_subchannel_offset = -1;
431 static int hf_dlmap_mbs_map_slc_3_indication = -1;
432 static int hf_dlmap_mbs_map_next_mbs_map_ie_frame_offset = -1;
433 static int hf_dlmap_skip_extended_2_diuc = -1;
434 static int hf_dlmap_skip_mode = -1;
435 static int hf_dlmap_harq_dl_map_extended_2_diuc = -1;
436 static int hf_dlmap_harq_dl_map_rcid_type = -1;
437 static int hf_dlmap_harq_dl_map_boosting = -1;
438 static int hf_dlmap_harq_dl_map_region_id_use_indicator = -1;
439 static int hf_dlmap_harq_dl_map_ofdma_symbol_offset = -1;
440 static int hf_dlmap_harq_dl_map_subchannel_offset = -1;
441 static int hf_dlmap_harq_dl_map_number_of_ofdma_symbols = -1;
442 static int hf_dlmap_harq_dl_map_number_of_subchannels = -1;
443 static int hf_dlmap_harq_dl_map_rectangular_sub_burst_indicator = -1;
444 static int hf_dlmap_harq_dl_map_region_id = -1;
445 static int hf_dlmap_harq_dl_map_mode = -1;
446 static int hf_dlmap_harq_dl_map_sub_burst_ie_length = -1;
447 static int hf_dlmap_harq_dl_map_reserved_mode = -1;
448 static int hf_dlmap_harq_ack_bitmap_data = -1;
449 static int hf_dlmap_enhanced_dl_map_extended_2_diuc = -1;
450 static int hf_dlmap_enhanced_dl_map_num_assignment = -1;
451 static int hf_dlmap_enhanced_dl_map_n_cid = -1;
452 static int hf_dlmap_enhanced_dl_map_cid = -1;
453 static int hf_dlmap_enhanced_dl_map_diuc = -1;
454 static int hf_dlmap_enhanced_dl_map_boosting = -1;
455 static int hf_dlmap_enhanced_dl_map_repetition_coding_indication = -1;
456 static int hf_dlmap_enhanced_dl_map_region_id = -1;
457 static int hf_dlmap_aas_sdma_dl_extended_2_diuc = -1;
458 static int hf_dlmap_aas_sdma_dl_rcid_type = -1;
459 static int hf_dlmap_aas_sdma_dl_num_burst_region = -1;
460 static int hf_dlmap_aas_sdma_dl_ofdma_symbol_offset = -1;
461 static int hf_dlmap_aas_sdma_dl_subchannel_offset = -1;
462 static int hf_dlmap_aas_sdma_dl_num_ofdma_triple_symbols = -1;
463 static int hf_dlmap_aas_sdma_dl_num_subchannels = -1;
464 static int hf_dlmap_aas_sdma_dl_number_of_users = -1;
465 static int hf_dlmap_aas_sdma_dl_encoding_mode = -1;
466 static int hf_dlmap_aas_sdma_dl_cqich_allocation = -1;
467 static int hf_dlmap_aas_sdma_dl_ackch_allocation = -1;
468 static int hf_dlmap_aas_sdma_dl_pilot_pattern_modifier = -1;
469 static int hf_dlmap_aas_sdma_dl_preamble_modifier_index = -1;
470 static int hf_dlmap_aas_sdma_dl_pilot_pattern = -1;
471 static int hf_dlmap_aas_sdma_dl_diuc = -1;
472 static int hf_dlmap_aas_sdma_dl_repetition_coding_indication = -1;
473 static int hf_dlmap_aas_sdma_dl_ack_ch_index = -1;
474 static int hf_dlmap_aas_sdma_dl_acid = -1;
475 static int hf_dlmap_aas_sdma_dl_ai_sn = -1;
476 static int hf_dlmap_aas_sdma_dl_nep = -1;
477 static int hf_dlmap_aas_sdma_dl_nsch = -1;
478 static int hf_dlmap_aas_sdma_dl_spid = -1;
479 static int hf_dlmap_aas_sdma_dl_allocation_index = -1;
480 static int hf_dlmap_aas_sdma_dl_period = -1;
481 static int hf_dlmap_aas_sdma_dl_frame_offset = -1;
482 static int hf_dlmap_aas_sdma_dl_duration = -1;
483 static int hf_dlmap_channel_measurement_channel_nr = -1;
484 static int hf_dlmap_channel_measurement_ofdma_symbol_offset = -1;
485 static int hf_dlmap_channel_measurement_cid = -1;
486 static int hf_dlmap_stc_zone_ofdma_symbol_offset = -1;
487 static int hf_dlmap_stc_zone_permutations = -1;
488 static int hf_dlmap_stc_zone_use_all_sc_indicator = -1;
489 static int hf_dlmap_stc_zone_stc = -1;
490 static int hf_dlmap_stc_zone_matrix_indicator = -1;
491 static int hf_dlmap_stc_zone_dl_permbase = -1;
492 static int hf_dlmap_stc_zone_prbs_id = -1;
493 static int hf_dlmap_stc_zone_amc_type = -1;
494 static int hf_dlmap_stc_zone_midamble_presence = -1;
495 static int hf_dlmap_stc_zone_midamble_boosting = -1;
496 static int hf_dlmap_stc_zone_2_3_antenna_select = -1;
497 static int hf_dlmap_stc_zone_dedicated_pilots = -1;
498 static int hf_dlmap_aas_dl_ofdma_symbol_offset = -1;
499 static int hf_dlmap_aas_dl_permutation = -1;
500 static int hf_dlmap_aas_dl_dl_permbase = -1;
501 static int hf_dlmap_aas_dl_downlink_preamble_config = -1;
502 static int hf_dlmap_aas_dl_preamble_type = -1;
503 static int hf_dlmap_aas_dl_prbs_id = -1;
504 static int hf_dlmap_aas_dl_diversity_map = -1;
505 static int hf_dlmap_data_location_another_bs_segment = -1;
506 static int hf_dlmap_data_location_another_bs_used_subchannels = -1;
507 static int hf_dlmap_data_location_another_bs_diuc = -1;
508 static int hf_dlmap_data_location_another_bs_frame_advance = -1;
509 static int hf_dlmap_data_location_another_bs_ofdma_symbol_offset = -1;
510 static int hf_dlmap_data_location_another_bs_subchannel_offset = -1;
511 static int hf_dlmap_data_location_another_bs_boosting = -1;
512 static int hf_dlmap_data_location_another_bs_preamble_index = -1;
513 static int hf_dlmap_data_location_another_bs_num_ofdma_symbols = -1;
514 static int hf_dlmap_data_location_another_bs_num_subchannels = -1;
515 static int hf_dlmap_data_location_another_bs_repetition_coding_indication = -1;
516 static int hf_dlmap_data_location_another_bs_cid = -1;
517 static int hf_dlmap_harq_map_pointer_diuc = -1;
518 static int hf_dlmap_harq_map_pointer_num_slots = -1;
519 static int hf_dlmap_harq_map_pointer_repetition_coding_indication = -1;
520 static int hf_dlmap_harq_map_pointer_map_version = -1;
521 static int hf_dlmap_harq_map_pointer_idle_users = -1;
522 static int hf_dlmap_harq_map_pointer_sleep_users = -1;
523 static int hf_dlmap_harq_map_pointer_cid_mask_length = -1;
524 static int hf_dlmap_phymod_dl_preamble_modifier_type = -1;
525 static int hf_dlmap_phymod_dl_preamble_frequency_shift_index = -1;
526 static int hf_dlmap_phymod_dl_preamble_time_shift_index = -1;
527 static int hf_dlmap_phymod_dl_pilot_pattern_modifier = -1;
528 static int hf_dlmap_phymod_dl_pilot_pattern_index = -1;
529 static int hf_dlmap_broadcast_ctrl_ptr_dcd_ucd_transmission_frame = -1;
530 static int hf_dlmap_broadcast_ctrl_ptr_skip_broadcast_system_update = -1;
531 static int hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_type = -1;
532 static int hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_transmission_frame = -1;
533 static int hf_dlmap_dl_pusc_burst_allocation_cid = -1;
534 static int hf_dlmap_dl_pusc_burst_allocation_diuc = -1;
535 static int hf_dlmap_dl_pusc_burst_allocation_segment = -1;
536 static int hf_dlmap_dl_pusc_burst_allocation_boosting = -1;
537 static int hf_dlmap_dl_pusc_burst_allocation_idcell = -1;
538 static int hf_dlmap_dl_pusc_burst_allocation_dl_permbase = -1;
539 static int hf_dlmap_dl_pusc_burst_allocation_prbs_id = -1;
540 static int hf_dlmap_dl_pusc_burst_allocation_repetition_coding_indication = -1;
541 static int hf_dlmap_dl_pusc_burst_allocation_used_subchannels = -1;
542 static int hf_dlmap_dl_pusc_burst_allocation_ofdma_symbol_offset = -1;
543 static int hf_dlmap_dl_pusc_burst_allocation_num_ofdma_symbols = -1;
544 static int hf_dlmap_dl_pusc_burst_allocation_subchannel_offset = -1;
545 static int hf_dlmap_dl_pusc_burst_allocation_num_subchannels = -1;
546 static int hf_dlmap_pusc_asca_alloc_diuc = -1;
547 static int hf_dlmap_pusc_asca_alloc_short_basic_cid = -1;
548 static int hf_dlmap_pusc_asca_alloc_ofdma_symbol_offset = -1;
549 static int hf_dlmap_pusc_asca_alloc_subchannel_offset = -1;
550 static int hf_dlmap_pusc_asca_alloc_num_ofdma_symbols = -1;
551 static int hf_dlmap_pusc_asca_alloc_num_symbols = -1;
552 static int hf_dlmap_pusc_asca_alloc_repetition_coding_information = -1;
553 static int hf_dlmap_pusc_asca_alloc_permutation_id = -1;
554 static int hf_dlmap_reduced_aas_num_ie = -1;
555 static int hf_dlmap_reduced_aas_periodicity = -1;
556 static int hf_dlmap_reduced_aas_cid_included = -1;
557 static int hf_dlmap_reduced_aas_dcd_count_included = -1;
558 static int hf_dlmap_reduced_aas_phy_modification_included = -1;
559 static int hf_dlmap_reduced_aas_cqich_control_indicator = -1;
560 static int hf_dlmap_reduced_aas_encoding_mode = -1;
561 static int hf_dlmap_reduced_aas_separate_mcs_enabled = -1;
562 static int hf_dlmap_reduced_aas_duration = -1;
563 static int hf_dlmap_reduced_aas_diuc = -1;
564 static int hf_dlmap_reduced_aas_repetition_coding_indication = -1;
565 static int hf_dlmap_reduced_aas_cid = -1;
566 static int hf_dlmap_reduced_aas_allocation_index = -1;
567 static int hf_dlmap_reduced_aas_report_period = -1;
568 static int hf_dlmap_reduced_aas_frame_offset = -1;
569 static int hf_dlmap_reduced_aas_report_duration = -1;
570 static int hf_dlmap_reduced_aas_cqi_measurement_type = -1;
571 static int hf_dlmap_reduced_aas_dcd_count = -1;
572 static int hf_dlmap_reduced_aas_preamble_select = -1;
573 static int hf_dlmap_reduced_aas_preamble_shift_index = -1;
574 static int hf_dlmap_reduced_aas_pilot_pattern_modifier = -1;
575 static int hf_dlmap_reduced_aas_pilot_pattern_index = -1;
576 static int hf_dlmap_reduced_aas_dl_frame_offset = -1;
577 static int hf_dlmap_reduced_aas_zone_symbol_offset = -1;
578 static int hf_dlmap_reduced_aas_ofdma_symbol_offset = -1;
579 static int hf_dlmap_reduced_aas_subchannel_offset = -1;
580 static int hf_dlmap_reduced_aas_num_ofdma_triple_symbol = -1;
581 static int hf_dlmap_reduced_aas_num_subchannels = -1;
582 static int hf_dlmap_reduced_aas_num_ofdma_symbols = -1;
583 static int hf_dlmap_reduced_aas_diuc_nep = -1;
584 static int hf_dlmap_reduced_aas_dl_harq_ack_bitmap = -1;
585 static int hf_dlmap_reduced_aas_ack_allocation_index = -1;
586 static int hf_dlmap_reduced_aas_acid = -1;
587 static int hf_dlmap_reduced_aas_ai_sn = -1;
588 static int hf_dlmap_reduced_aas_nsch = -1;
589 static int hf_dlmap_reduced_aas_spid = -1;
590
591
592
593 static expert_field ei_dlmap_not_implemented = EI_INIT;
594 static expert_field ei_crc16 = EI_INIT;
595 static expert_field ei_mac_header_compress_dlmap_crc = EI_INIT;
596 static expert_field ei_mac_header_invalid_length = EI_INIT;
597
598 /* Copied and renamed from proto.c because global value_strings don't work for plugins */
599 static const value_string plugin_proto_checksum_vals[] = {
600 { PROTO_CHECKSUM_E_BAD, "Bad" },
601 { PROTO_CHECKSUM_E_GOOD, "Good" },
602 { PROTO_CHECKSUM_E_UNVERIFIED, "Unverified" },
603 { PROTO_CHECKSUM_E_NOT_PRESENT, "Not present" },
604
605 { 0, NULL }
606 };
607
608 /********************************************************************
609 * DL-MAP Miscellaneous IEs and TLVs
610 *******************************************************************/
611
RCID_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb,gint RCID_Type_lcl)612 gint RCID_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb, gint RCID_Type_lcl)
613 {
614 /* RCID_IE 8.4.5.3 and 8.4.5.3.20.1 */
615 /* offset of IE in bits, length is variable */
616 gint bit = offset;
617 proto_item *ti = NULL;
618 proto_tree *tree = NULL;
619 gint Prefix = 0;
620 gint cid = 0;
621
622 if (RCID_Type_lcl == 0)
623 length = 16;
624 else {
625 Prefix = TVB_BIT_BIT(bit, tvb);
626 if (Prefix == 1) length = 12;
627 else if (RCID_Type_lcl == 1) length = 12;
628 else if (RCID_Type_lcl == 2) length = 8;
629 else if (RCID_Type_lcl == 3) length = 4;
630 }
631
632 tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, length), ett_286j, &ti, "RCID_IE");
633
634 if (RCID_Type_lcl == 0) {
635 XBIT_HF_VALUE(cid, 16, hf_dlmap_rcid_ie_cid);
636 } else {
637 XBIT_HF_VALUE(Prefix, 1, hf_dlmap_rcid_ie_prefix);
638
639 if (Prefix == 1) {
640 /* RCID 11 */
641 XBIT_HF_VALUE(cid, 11, hf_dlmap_rcid_ie_cid11);
642 } else {
643 if (RCID_Type_lcl == 1) {
644 /* RCID 11 */
645 XBIT_HF_VALUE(cid, 11, hf_dlmap_rcid_ie_cid11);
646 } else if (RCID_Type_lcl == 2) {
647 /* RCID 7 */
648 XBIT_HF_VALUE(cid, 7, hf_dlmap_rcid_ie_cid7);
649 } else if (RCID_Type_lcl == 3) {
650 /* RCID 3 */
651 XBIT_HF_VALUE(cid, 3, hf_dlmap_rcid_ie_cid3);
652 }
653 }
654 }
655
656 proto_item_append_text(ti, " (CID = %d)", cid);
657
658 return length; /* return length in bits */
659 }
660
661 /********************************************************************
662 * DL-MAP Extended-2 HARQ sub-burst IEs (8.4.5.3.21)
663 *******************************************************************/
664
Dedicated_DL_Control_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)665 static gint Dedicated_DL_Control_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
666 {
667 /* 8.4.5.3.20 */
668 /* offset of IE in nibbles, length is variable */
669 gint nib;
670 gint nibble;
671 proto_tree *tree;
672 gint len;
673
674 nib = offset;
675
676 length = TVB_NIB_NIBBLE(nib, tvb); /* length in nibbles */
677
678 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(nib, length+1), ett_286i, NULL, "Dedicated_DL_Control_IE");
679
680 VNIB(length, 1, hf_dlmap_dedicated_dl_control_length);
681 VNIB(nibble, 1, hf_dlmap_dedicated_dl_control_control_header);
682
683 if ((nibble & 1) == 1) {
684 nibble = TVB_NIB_NIBBLE(nib, tvb);
685 proto_tree_add_uint(tree, hf_dlmap_dedicated_dl_control_num_sdma_layers, tvb, NIBHI(nib,1), (nibble >> 2) & 0x3);
686 /* Bit padding */
687 if ((nib*4)+2 < (offset+length)*4) {
688 len = ((offset + length - nib) * 4) - 2;
689 proto_tree_add_bytes_format(tree, hf_reserved, tvb, BITHI(nib*4, len), NULL, "Reserved bits");
690 }
691 } else {
692 /* Nibble padding */
693 if (nib < offset+length) {
694 len = (offset + length) - nib;
695 proto_tree_add_bytes_format(tree, hf_reserved, tvb, NIBHI(nib,len), NULL, "Reserved bits");
696 }
697 }
698 return (length + 1);
699 }
700
Dedicated_MIMO_DL_Control_IE(proto_tree * diuc_tree,gint offset,gint length _U_,tvbuff_t * tvb)701 static gint Dedicated_MIMO_DL_Control_IE(proto_tree *diuc_tree, gint offset, gint length _U_, tvbuff_t *tvb)
702 {
703 /* offset of IE in bits, length is variable */
704 gint bit;
705 proto_tree *tree;
706 gint mci, cqi, cmi, matrix = 0, pad, CQICH_num, mimo_mode;
707 gint j;
708
709 bit = offset;
710
711 /* 8.4.5.3.21 table 286t */
712 tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 1), ett_286t, NULL, "Dedicated MIMO DL Control IE");
713
714 XBIT_HF_VALUE(length, 5, hf_dlmap_dedicated_mimo_dl_control_length);
715 XBIT_HF_VALUE(mci, 1, hf_dlmap_dedicated_mimo_dl_control_control_header_mimo_control_info);
716 XBIT_HF_VALUE(cqi, 1, hf_dlmap_dedicated_mimo_dl_control_control_header_cqi_control_info);
717 XBIT_HF_VALUE(cmi, 1, hf_dlmap_dedicated_mimo_dl_control_control_header_closed_mimo_control_info);
718 XBIT_HF_VALUE(N_layer, 2, hf_dlmap_dedicated_mimo_dl_control_n_layer);
719
720 /* MIMO Control Info */
721 if (mci == 1) {
722 XBIT_HF_VALUE(matrix, 2, hf_dlmap_dedicated_mimo_dl_control_matrix);
723 if (STC_Zone_Dedicated_Pilots == 1) {
724 XBIT_HF(2, hf_dlmap_dedicated_mimo_dl_control_num_beamformed_streams);
725 }
726 }
727
728 /* CQICH Control Info */
729 if (cqi == 1) {
730 XBIT_HF(3, hf_dlmap_dedicated_mimo_dl_control_period);
731 XBIT_HF(3, hf_dlmap_dedicated_mimo_dl_control_frame_offset);
732 XBIT_HF(4, hf_dlmap_dedicated_mimo_dl_control_duration);
733 for (j = 0; j < N_layer; j++) {
734 XBIT_HF(6, hf_dlmap_dedicated_mimo_dl_control_allocation_index);
735 }
736 XBIT_HF_VALUE(CQICH_num, 2, hf_dlmap_dedicated_mimo_dl_control_cqich_num);
737 for (j = 0; j < CQICH_num; j++) {
738 XBIT_HF(3, hf_dlmap_dedicated_mimo_dl_control_feedback_type);
739 XBIT_HF(6, hf_dlmap_dedicated_mimo_dl_control_allocation_index);
740 }
741 }
742
743 /* Closed MIMO Control Info */
744 if (cmi == 1) {
745 if (mci == 1) {
746 mimo_mode = matrix;
747 } else {
748 mimo_mode = STC_Zone_Matrix;
749 }
750 if (mimo_mode == 0 || mimo_mode == 1) {
751 XBIT_HF(3, hf_dlmap_dedicated_mimo_dl_control_antenna_grouping_index);
752 } else if (mimo_mode == 2) {
753 XBIT_HF(2, hf_dlmap_dedicated_mimo_dl_control_num_stream);
754 XBIT_HF(3, hf_dlmap_dedicated_mimo_dl_control_antenna_selection_index);
755 } else if (mimo_mode == 3) {
756 XBIT_HF(2, hf_dlmap_dedicated_mimo_dl_control_num_stream);
757 XBIT_HF(6, hf_dlmap_dedicated_mimo_dl_control_codebook_precoding_index);
758 }
759 }
760
761 /* padding to nibble */
762 pad = BIT_PADDING(bit,4);
763 if(pad){
764 proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,pad), NULL, "%d bits", pad);
765 bit += pad;
766 }
767
768 return (bit - offset);
769 }
770
DL_HARQ_Chase_sub_burst_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)771 static gint DL_HARQ_Chase_sub_burst_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
772 {
773 /* 8.4.5.3.21 DL_HARQ_Chase_sub_burst_IE */
774 /* offset of IE in nibbles, length is variable */
775 gint bit;
776 proto_tree *tree;
777 gint nsub, ddci, dur, sbi;
778 gint j;
779
780 bit = NIB_TO_BIT(offset);
781
782 /* 8.4.5.3.21 table 286m */
783 tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, length), ett_286m, NULL, "DL_HARQ_Chase_sub_burst_IE");
784
785 XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
786 XBIT_HF(4, hf_dlmap_harq_chase_n_ack_channel);
787
788 nsub += 1;
789 for (j = 0; j < nsub; j++) {
790 bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
791 XBIT_HF_VALUE(dur, 10, hf_dlmap_harq_chase_duration);
792 XBIT_HF_VALUE(sbi, 1, hf_dlmap_harq_chase_sub_burst_diuc_indicator);
793 XBIT_HF(1, hf_dlmap_reserved_uint);
794
795 if (sbi == 1) {
796 XBIT_HF(4, hf_dlmap_harq_chase_diuc);
797 XBIT_HF(2, hf_dlmap_harq_chase_repetition_coding_indication);
798 XBIT_HF(2, hf_dlmap_reserved_uint);
799 }
800
801 XBIT_HF(4, hf_dlmap_harq_chase_acid);
802 XBIT_HF(1, hf_dlmap_harq_chase_ai_sn);
803 XBIT_HF(1, hf_dlmap_harq_chase_ack_disable);
804 XBIT_HF_VALUE(ddci, 2, hf_dlmap_harq_chase_dedicated_dl_control_indicator);
805
806 if ((ddci & 1) == 1) {
807 XBIT_HF_VALUE(dur, 4, hf_dlmap_harq_chase_duration);
808 if (dur != 0) {
809 XBIT_HF(6, hf_dlmap_harq_chase_allocation_index);
810 XBIT_HF(3, hf_dlmap_harq_chase_period);
811 XBIT_HF(3, hf_dlmap_harq_chase_frame_offset);
812 }
813 }
814
815 if ((ddci & 2) == 2) {
816 bit += Dedicated_DL_Control_IE(tree, BIT_TO_NIB(bit), length, tvb) * 4;
817 }
818 }
819
820 /* XBIT_HF(data, 4, "(DL HARQ Chase sub-burst IE)"); */
821 return (BIT_TO_NIB(bit) - offset);
822 }
823
DL_HARQ_IR_CTC_sub_burst_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)824 static gint DL_HARQ_IR_CTC_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
825 {
826 /* offset of IE in nibbles, length is variable */
827 gint bit;
828 proto_tree *tree;
829 gint nsub, ddci, dur;
830 gint j;
831 guint32 calculated_crc;
832
833 bit = NIB_TO_BIT(offset);
834
835 /* 8.4.5.3.21 table 286n */
836 tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 4), ett_286n, NULL, "DL HARQ IR CTC sub-burst IE");
837
838 XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
839 XBIT_HF(4, hf_dlmap_harq_ir_ctc_n_ack_channel);
840
841 nsub += 1;
842 for (j = 0; j < nsub; j++) {
843 bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
844
845 XBIT_HF(4, hf_dlmap_harq_ir_ctc_nep);
846 XBIT_HF(4, hf_dlmap_harq_ir_ctc_nsch);
847 XBIT_HF(2, hf_dlmap_harq_ir_ctc_spid);
848 XBIT_HF(4, hf_dlmap_harq_ir_ctc_acid);
849 XBIT_HF(1, hf_dlmap_harq_ir_ctc_ai_sn);
850 XBIT_HF(1, hf_dlmap_harq_ir_ctc_ack_disable);
851 XBIT_HF(2, hf_dlmap_reserved_uint);
852 XBIT_HF_VALUE(ddci, 2, hf_dlmap_harq_ir_ctc_dedicated_dl_control_indicator);
853
854 if ((ddci & 1) == 1) {
855 XBIT_HF_VALUE(dur, 4, hf_dlmap_harq_ir_ctc_duration);
856
857 if (dur != 0) {
858 XBIT_HF(6, hf_dlmap_harq_ir_ctc_allocation_index);
859 XBIT_HF(3, hf_dlmap_harq_ir_ctc_period);
860 XBIT_HF(3, hf_dlmap_harq_ir_ctc_frame_offset);
861 }
862 }
863 if ((ddci & 2) == 2) {
864 bit += Dedicated_DL_Control_IE(tree, BIT_TO_NIB(bit), length, tvb);
865 }
866 }
867
868 if (include_cor2_changes)
869 {
870 /* CRC-16 is always appended */
871 calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
872 proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
873 ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
874 bit += 16;
875 }
876
877 return (BIT_TO_NIB(bit) - offset);
878 }
879
DL_HARQ_IR_CC_sub_burst_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)880 static gint DL_HARQ_IR_CC_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
881 {
882 /* offset of IE in nibbles, length is variable */
883 gint bit;
884 proto_tree *tree;
885 gint nsub, sbdi, ddci, dur;
886 gint j;
887 guint16 calculated_crc;
888
889 bit = NIB_TO_BIT(offset);
890
891 /* 8.4.5.3.21 table 286o */
892 tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 4), ett_286o, NULL, "DL HARQ IR CC sub-burst IE");
893
894 XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
895 XBIT_HF(4, hf_dlmap_harq_ir_cc_n_ack_channel);
896
897 nsub += 1;
898 for (j = 0; j < nsub; j++) {
899 bit += RCID_IE(tree, bit, length, tvb, RCID_Type) / 4;
900
901 XBIT_HF(10, hf_dlmap_harq_ir_cc_duration);
902 XBIT_HF_VALUE(sbdi, 1, hf_dlmap_harq_ir_cc_sub_burst_diuc_indicator);
903 XBIT_HF(1, hf_dlmap_reserved_uint);
904
905 if (sbdi) {
906 XBIT_HF(4, hf_dlmap_harq_ir_cc_diuc);
907 XBIT_HF(2, hf_dlmap_harq_ir_cc_repetition_coding_indication);
908 XBIT_HF(2, hf_dlmap_reserved_uint);
909 }
910
911 XBIT_HF(4, hf_dlmap_harq_ir_cc_acid);
912 XBIT_HF(1, hf_dlmap_harq_ir_cc_ai_sn);
913 XBIT_HF(2, hf_dlmap_harq_ir_cc_spid);
914 XBIT_HF(1, hf_dlmap_harq_ir_cc_ack_disable);
915 XBIT_HF_VALUE(ddci, 2, hf_dlmap_harq_ir_cc_dedicated_dl_control_indicator);
916 XBIT_HF(2, hf_dlmap_reserved_uint);
917
918 if (ddci & 1) {
919 XBIT_HF_VALUE(dur, 4, hf_dlmap_harq_ir_cc_duration);
920
921 if (dur != 0) {
922 XBIT_HF(6, hf_dlmap_harq_ir_cc_allocation_index);
923 XBIT_HF(3, hf_dlmap_harq_ir_cc_period);
924 XBIT_HF(3, hf_dlmap_harq_ir_cc_frame_offset);
925 }
926 }
927 if ((ddci & 2) == 2) {
928 bit += Dedicated_DL_Control_IE(tree, BIT_TO_NIB(bit), length, tvb);
929 }
930 }
931
932 if (include_cor2_changes)
933 {
934 /* CRC-16 is always appended */
935 calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
936 proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
937 ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
938 bit += 16;
939 }
940
941 return (BIT_TO_NIB(bit) - offset);
942 }
943
MIMO_DL_Chase_HARQ_sub_burst_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)944 static gint MIMO_DL_Chase_HARQ_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
945 {
946 /* offset of IE in nibbles, length is variable */
947 gint bit;
948 gint data;
949 proto_tree *tree;
950 gint nsub, mui, dci, akd;
951 gint i, j;
952 guint16 calculated_crc;
953
954 bit = NIB_TO_BIT(offset);
955
956 /* 8.4.5.3.21 table 286p */
957 tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 1), ett_286p, NULL, "MIMO DL Chase HARQ sub-burst IE");
958
959 XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
960 XBIT_HF(6, hf_dlmap_mimo_dl_chase_harq_n_ack_channel);
961
962 nsub += 1;
963 for (j = 0; j < nsub; j++) {
964 XBIT_HF_VALUE(mui, 1, hf_dlmap_mimo_dl_chase_harq_mu_indicator);
965 XBIT_HF_VALUE(dci, 1, hf_dlmap_mimo_dl_chase_harq_dedicated_mimo_dl_control_indicator);
966 XBIT_HF_VALUE(akd, 1, hf_dlmap_mimo_dl_chase_harq_ack_disable);
967 if (mui == 0) {
968 bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
969 }
970 if (dci == 1) {
971 bit += Dedicated_MIMO_DL_Control_IE(tree, bit, length, tvb);
972 }
973 XBIT_HF(10, hf_dlmap_mimo_dl_chase_harq_duration);
974 for (i = 0; i < N_layer; i++) {
975 if (mui == 1) {
976 bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
977 }
978 XBIT_HF(4, hf_dlmap_mimo_dl_chase_harq_diuc);
979 XBIT_HF(2, hf_dlmap_mimo_dl_chase_harq_repetition_coding_indication);
980 if (akd == 0) {
981 XBIT_HF(4, hf_dlmap_mimo_dl_chase_harq_acid);
982 XBIT_HF(1, hf_dlmap_mimo_dl_chase_harq_ai_sn);
983 }
984 }
985 }
986 /* Padding to nibble */
987 data = BIT_PADDING(bit, 4);
988 if (data) {
989 proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,data), NULL, "%d bits", data);
990 bit += data;
991 }
992
993 if (include_cor2_changes)
994 {
995 /* CRC-16 is always appended */
996 calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
997 proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
998 ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
999 bit += 16;
1000 }
1001
1002 return (BIT_TO_NIB(bit) - offset);
1003 }
1004
MIMO_DL_IR_HARQ_sub_burst_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1005 static gint MIMO_DL_IR_HARQ_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1006 {
1007 /* offset of IE in nibbles, length is variable */
1008 gint bit;
1009 proto_tree *tree;
1010 gint nsub, mui, dci, akd;
1011 gint i, j;
1012 guint16 calculated_crc;
1013
1014 bit = NIB_TO_BIT(offset);
1015
1016 /* 8.4.5.3.21 table 286q */
1017 tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 4), ett_286q, NULL, "MIMO DL IR HARQ sub-burst IE");
1018
1019 XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
1020 XBIT_HF(6, hf_dlmap_mimo_dl_ir_harq_n_ack_channel);
1021
1022 nsub += 1;
1023 for (j = 0; j < nsub; j++) {
1024 XBIT_HF_VALUE(mui, 1, hf_dlmap_mimo_dl_ir_harq_mu_indicator);
1025 XBIT_HF_VALUE(dci, 1, hf_dlmap_mimo_dl_ir_harq_dedicated_mimo_dl_control_indicator);
1026 XBIT_HF_VALUE(akd, 1, hf_dlmap_mimo_dl_ir_harq_ack_disable);
1027 if (mui == 0) {
1028 bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
1029 }
1030 if (dci == 1) {
1031 bit += Dedicated_MIMO_DL_Control_IE(tree, bit, length, tvb);
1032 }
1033 XBIT_HF(4, hf_dlmap_mimo_dl_ir_harq_nsch);
1034 for (i = 0; i < N_layer; i++) {
1035 if (mui == 1) {
1036 bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
1037 }
1038 XBIT_HF(4, hf_dlmap_mimo_dl_ir_harq_nep);
1039 if (akd) {
1040 XBIT_HF(2, hf_dlmap_mimo_dl_ir_harq_spid);
1041 XBIT_HF(4, hf_dlmap_mimo_dl_ir_harq_acid);
1042 XBIT_HF(1, hf_dlmap_mimo_dl_ir_harq_ai_sn);
1043 }
1044 }
1045 }
1046
1047 if (include_cor2_changes)
1048 {
1049 /* CRC-16 is always appended */
1050 calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
1051 proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
1052 ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
1053 bit += 16;
1054 }
1055
1056 return (BIT_TO_NIB(bit) - offset);
1057 }
1058
MIMO_DL_IR_HARQ_for_CC_sub_burst_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1059 static gint MIMO_DL_IR_HARQ_for_CC_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1060 {
1061 /* offset of IE in nibbles, length is variable */
1062 gint bit;
1063 proto_tree *tree;
1064 gint nsub, mui, dci, akd;
1065 gint i, j;
1066 guint16 calculated_crc;
1067
1068 bit = NIB_TO_BIT(offset);
1069
1070 /* 8.4.5.3.21 table 286r */
1071 tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 1), ett_286r, NULL, "MIMO DL IR HARQ for CC sub-burst IE");
1072
1073 XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
1074 XBIT_HF(6, hf_dlmap_mimo_dl_ir_harq_cc_n_ack_channel);
1075
1076 nsub += 1;
1077 for (j = 0; j < nsub; j++) {
1078 XBIT_HF_VALUE(mui, 1, hf_dlmap_mimo_dl_ir_harq_cc_mu_indicator);
1079 XBIT_HF_VALUE(dci, 1, hf_dlmap_mimo_dl_ir_harq_cc_dedicated_mimo_dl_control_indicator);
1080 XBIT_HF_VALUE(akd, 1, hf_dlmap_mimo_dl_ir_harq_cc_ack_disable);
1081 if (mui == 0) {
1082 bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
1083 }
1084 if (dci == 1) {
1085 bit += Dedicated_MIMO_DL_Control_IE(tree, bit, length, tvb);
1086 }
1087 XBIT_HF(10, hf_dlmap_mimo_dl_ir_harq_cc_duration);
1088 for (i = 0; i < N_layer; i++) {
1089 if (mui == 1) {
1090 bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
1091 }
1092 XBIT_HF(4, hf_dlmap_mimo_dl_ir_harq_cc_diuc);
1093 XBIT_HF(2, hf_dlmap_mimo_dl_ir_harq_cc_repetition_coding_indication);
1094 if (akd == 0) {
1095 XBIT_HF(4, hf_dlmap_mimo_dl_ir_harq_cc_acid);
1096 XBIT_HF(1, hf_dlmap_mimo_dl_ir_harq_cc_ai_sn);
1097 XBIT_HF(2, hf_dlmap_mimo_dl_ir_harq_cc_spid);
1098 }
1099 }
1100 }
1101
1102 if (include_cor2_changes)
1103 {
1104 /* CRC-16 is always appended */
1105 calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
1106 proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
1107 ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
1108 bit += 16;
1109 }
1110
1111 return (BIT_TO_NIB(bit) - offset);
1112 }
1113
MIMO_DL_STC_HARQ_sub_burst_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1114 static gint MIMO_DL_STC_HARQ_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1115 {
1116 /* offset of IE in nibbles, length is variable */
1117 gint bit;
1118 proto_tree *tree;
1119 gint nsub, sbi, txc, akd, dmci;
1120 gint j;
1121 guint16 calculated_crc;
1122
1123 bit = NIB_TO_BIT(offset);
1124
1125 /* 8.4.5.3.21 table 286s */
1126 tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 1), ett_286s, NULL, "MIMO DL STC HARQ sub-burst IE");
1127
1128 XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
1129 XBIT_HF(6, hf_dlmap_mimo_dl_stc_harq_n_ack_channel);
1130
1131 nsub += 1;
1132 for (j = 0; j < nsub; j++) {
1133 XBIT_HF_VALUE(txc, 2, hf_dlmap_mimo_dl_stc_harq_tx_count);
1134 XBIT_HF(10, hf_dlmap_mimo_dl_stc_harq_duration);
1135 XBIT_HF_VALUE(sbi, 1, hf_dlmap_mimo_dl_stc_harq_sub_burst_offset_indication);
1136 XBIT_HF(3, hf_dlmap_reserved_uint);
1137 if (sbi == 1) {
1138 XBIT_HF(8, hf_dlmap_mimo_dl_stc_harq_sub_burst_offset);
1139 }
1140 bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
1141 XBIT_HF_VALUE(akd, 1, hf_dlmap_mimo_dl_stc_harq_ack_disable);
1142 if (txc == 0) {
1143 XBIT_HF_VALUE(dmci, 1, hf_dlmap_mimo_dl_stc_harq_dedicated_mimo_dl_control_indicator);
1144 if (dmci == 1) {
1145 bit += Dedicated_MIMO_DL_Control_IE(tree, bit, length, tvb);
1146 }
1147 XBIT_HF(4, hf_dlmap_mimo_dl_stc_harq_diuc);
1148 XBIT_HF(2, hf_dlmap_mimo_dl_stc_harq_repetition_coding_indication);
1149 }
1150 if (akd == 0) {
1151 XBIT_HF(4, hf_dlmap_mimo_dl_stc_harq_acid);
1152 }
1153 }
1154
1155 if (include_cor2_changes)
1156 {
1157 /* CRC-16 is always appended */
1158 calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
1159 proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
1160 ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
1161 bit += 16;
1162 }
1163
1164 return (BIT_TO_NIB(bit) - offset);
1165 }
1166
1167 /********************************************************************
1168 * DL-MAP Extended-2 IEs
1169 *******************************************************************/
1170
MBS_MAP_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1171 static gint MBS_MAP_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1172 {
1173 /* DL-MAP Extended-2 IE = 0 */
1174 /* 8.4.5.3.12 MBS_MAP_IE */
1175 /* offset of TLV in nibbles, length of TLV in nibbles */
1176 gint bit;
1177 gint data;
1178 proto_tree *tree;
1179 gint mde, dci, s3i;
1180
1181 bit = NIB_TO_BIT(offset);
1182
1183 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286a, NULL, "MBS_MAP_IE");
1184
1185 XBIT_HF(4, hf_dlmap_mbs_map_extended_2_diuc);
1186 VBIT(data, 8, hf_dlmap_ie_length);
1187
1188 XBIT_HF(7, hf_dlmap_mbs_map_mbs_zone_identifier);
1189 XBIT_HF_VALUE(mde, 1, hf_dlmap_mbs_map_macro_diversity_enhanced);
1190 if (mde == 1)
1191 {
1192 XBIT_HF(2, hf_dlmap_mbs_map_permutation);
1193 XBIT_HF(5, hf_dlmap_mbs_map_dl_permbase);
1194 XBIT_HF(2, hf_dlmap_mbs_map_prbs_id);
1195 XBIT_HF(7, hf_dlmap_mbs_map_ofdma_symbol_offset);
1196 XBIT_HF_VALUE(dci, 1, hf_dlmap_mbs_map_diuc_change_indication);
1197 XBIT_HF(3, hf_dlmap_reserved_uint);
1198 if (dci == 1) {
1199 XBIT_HF(3, hf_dlmap_reserved_uint);
1200 XBIT_HF(3, hf_dlmap_mbs_map_boosting);
1201 XBIT_HF(4, hf_dlmap_mbs_map_diuc);
1202 XBIT_HF(6, hf_dlmap_mbs_map_num_subchannels);
1203 XBIT_HF(6, hf_dlmap_mbs_map_num_ofdma_symbols);
1204 XBIT_HF(2, hf_dlmap_mbs_map_repetition_coding_indication);
1205 }
1206 } else {
1207 XBIT_HF(4, hf_dlmap_mbs_map_diuc);
1208 XBIT_HF(16, hf_dlmap_mbs_map_cid);
1209 XBIT_HF(8, hf_dlmap_mbs_map_ofdma_symbols_offset);
1210 XBIT_HF(6, hf_dlmap_mbs_map_subchannel_offset);
1211 XBIT_HF(3, hf_dlmap_mbs_map_boosting);
1212 XBIT_HF_VALUE(s3i, 1, hf_dlmap_mbs_map_slc_3_indication);
1213 XBIT_HF(6, hf_dlmap_mbs_map_num_ofdma_symbols);
1214 XBIT_HF(6, hf_dlmap_mbs_map_num_subchannels);
1215 XBIT_HF(2, hf_dlmap_mbs_map_repetition_coding_indication);
1216 if (s3i == 1) {
1217 XBIT_HF(8, hf_dlmap_mbs_map_next_mbs_map_ie_frame_offset);
1218 }
1219 }
1220 data = BIT_PADDING(bit, 4);
1221 if (data) {
1222 proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,data), NULL, "%d bits", data);
1223 bit += data;
1224 }
1225 return BIT_TO_NIB(bit);
1226 }
1227
HO_Anchor_Active_DL_MAP_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1228 static gint HO_Anchor_Active_DL_MAP_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1229 {
1230 /* DL-MAP Extended-2 IE = 1 */
1231 /* 8.4.5.3.14 [2] HO_Anchor_Active_DL-MAP_IE TODO 1.1 */
1232 /* offset of TLV in nibbles, length of TLV in nibbles */
1233 gint nib;
1234 gint data;
1235 proto_tree *tree;
1236
1237 nib = offset;
1238
1239 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286c, NULL, "HO_Anchor_Active_DL_MAP_IE");
1240
1241 VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
1242 VNIB(data, 2, hf_dlmap_ie_length);
1243 proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
1244 return nib;
1245 }
1246
HO_Active_Anchor_DL_MAP_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1247 static gint HO_Active_Anchor_DL_MAP_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1248 {
1249 /* DL-MAP Extended-2 IE = 2 */
1250 /* 8.4.5.3.15 HO_Active_Anchor_DL_MAP_IE TODO 1.1 */
1251 /* offset of TLV in nibbles, length of TLV in nibbles */
1252 gint nib;
1253 gint data;
1254 proto_tree *tree;
1255
1256 nib = offset;
1257
1258 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286d, NULL, "HO_Active_Anchor_DL_MAP_IE");
1259
1260 VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
1261 VNIB(data, 2, hf_dlmap_ie_length);
1262 proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
1263 return nib;
1264 }
1265
HO_CID_Translation_MAP_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1266 static gint HO_CID_Translation_MAP_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1267 {
1268 /* DL-MAP Extended-2 IE = 3 */
1269 /* 8.4.5.3.16 HO_CID_Translation_MAP_IE TODO 1.1 */
1270 /* offset of TLV in nibbles, length of TLV in nibbles */
1271 gint nib;
1272 gint data;
1273 proto_tree *tree;
1274
1275 nib = offset;
1276
1277 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286e, NULL, "CID_Translation_MAP_IE");
1278
1279 VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
1280 VNIB(data, 2, hf_dlmap_ie_length);
1281 proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
1282 return nib;
1283 }
1284
MIMO_in_another_BS_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1285 static gint MIMO_in_another_BS_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1286 {
1287 /* DL-MAP Extended-2 IE = 4 */
1288 /* 8.4.5.3.17 [2] MIMO_in_another_BS_IE (not implemented)*/
1289 /* offset of TLV in nibbles, length of TLV in nibbles */
1290 gint nib;
1291 gint data;
1292 proto_tree *tree;
1293
1294 nib = offset;
1295
1296 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286f, NULL, "MIMO_in_another_BS_IE");
1297
1298 VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
1299 VNIB(data, 2, hf_dlmap_ie_length);
1300 proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
1301 return nib;
1302 }
1303
Macro_MIMO_DL_Basic_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1304 static gint Macro_MIMO_DL_Basic_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1305 {
1306 /* dl-map extended-2 ie = 5 */
1307 /* 8.4.5.3.18 [2] Macro-MIMO_DL_Basic_IE (not implemented) */
1308 /* offset of tlv in nibbles, length of tlv in nibbles */
1309 gint nib;
1310 gint data;
1311 proto_tree *tree;
1312
1313 nib = offset;
1314
1315 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286g, NULL, "Macro_MIMO_DL_Basic_IE");
1316
1317 VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
1318 VNIB(data, 2, hf_dlmap_ie_length);
1319 proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
1320 return nib;
1321 }
1322
Skip_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1323 static gint Skip_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1324 {
1325 /* DL-MAP Extended-2 IE = 6 */
1326 /* 8.4.5.3.20.2 Skip_IE */
1327 /* offset of TLV in nibbles, length of TLV in nibbles */
1328 gint bit;
1329 gint data;
1330 proto_tree *tree;
1331
1332 bit = NIB_TO_BIT(offset);
1333
1334 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286k, NULL, "Skip_IE");
1335
1336 XBIT_HF(4, hf_dlmap_skip_extended_2_diuc);
1337 VBIT(data, 8, hf_dlmap_ie_length);
1338
1339 XBIT_HF(1, hf_dlmap_skip_mode);
1340 XBIT_HF(7, hf_dlmap_reserved_uint);
1341
1342 return BIT_TO_NIB(bit);
1343 }
1344
HARQ_DL_MAP_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1345 static gint HARQ_DL_MAP_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1346 {
1347 /* DL-MAP Extended-2 IE = 7 */
1348 /* 8.4.5.3.21 [2] HARQ_DL_MAP_IE */
1349 /* offset of TLV in nibbles, length of TLV in nibbles */
1350 gint bit;
1351 proto_tree *tree;
1352 gint len, lastbit, rui, mode, sub_len, pad;
1353
1354 bit = NIB_TO_BIT(offset);
1355
1356 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286l, NULL, "HARQ_DL_MAP_IE");
1357
1358 XBIT_HF(4, hf_dlmap_harq_dl_map_extended_2_diuc);
1359 VBIT(len, 2, hf_dlmap_ie_length);
1360
1361 XBIT_HF_VALUE(RCID_Type, 2, hf_dlmap_harq_dl_map_rcid_type);
1362 XBIT_HF(2, hf_dlmap_reserved_uint);
1363
1364 /* while data remains */
1365 length = NIB_TO_BIT(length);
1366 /* Subtract extra nibble to be sure to stop in time. */
1367 lastbit = bit + BYTE_TO_BIT(len) - 14 - 4;
1368 while (bit < lastbit) {
1369 XBIT_HF(3, hf_dlmap_harq_dl_map_boosting);
1370 XBIT_HF_VALUE(rui, 1, hf_dlmap_harq_dl_map_region_id_use_indicator);
1371
1372 if (rui == 0) {
1373 XBIT_HF(8, hf_dlmap_harq_dl_map_ofdma_symbol_offset);
1374 XBIT_HF(7, hf_dlmap_harq_dl_map_subchannel_offset);
1375 XBIT_HF(7, hf_dlmap_harq_dl_map_number_of_ofdma_symbols);
1376 XBIT_HF(7, hf_dlmap_harq_dl_map_number_of_subchannels);
1377 if (include_cor2_changes)
1378 {
1379 XBIT_HF(1, hf_dlmap_harq_dl_map_rectangular_sub_burst_indicator); /* Implemented: "Rectangular Sub-Burst Indicator" field added */
1380 XBIT_HF(2, hf_dlmap_reserved_uint); /* and "Reserved" field resized from 3 bits to 2 bits */
1381 }
1382 else
1383 {
1384 XBIT_HF(3, hf_dlmap_reserved_uint);
1385 }
1386 } else {
1387 XBIT_HF(8, hf_dlmap_harq_dl_map_region_id);
1388 }
1389 XBIT_HF_VALUE(mode, 4, hf_dlmap_harq_dl_map_mode);
1390 XBIT_HF_VALUE(sub_len, 8, hf_dlmap_harq_dl_map_sub_burst_ie_length);
1391
1392 /* 8.4.5.3.21 */
1393 /* length of these are variable, each returns length in nibbles */
1394 if (mode == 0) {
1395 DL_HARQ_Chase_sub_burst_IE(tree, BIT_TO_NIB(bit), length, tvb);
1396 } else if (mode == 1) {
1397 DL_HARQ_IR_CTC_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
1398 } else if (mode == 2) {
1399 DL_HARQ_IR_CC_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
1400 } else if (mode == 3) {
1401 MIMO_DL_Chase_HARQ_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
1402 } else if (mode == 4) {
1403 MIMO_DL_IR_HARQ_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
1404 } else if (mode == 5) {
1405 MIMO_DL_IR_HARQ_for_CC_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
1406 } else if (mode == 6) {
1407 MIMO_DL_STC_HARQ_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
1408 } else {
1409 proto_tree_add_bits_item(tree, hf_dlmap_harq_dl_map_reserved_mode, tvb, bit, 1, ENC_BIG_ENDIAN);
1410 break; /* cannot continue */
1411 }
1412 bit += NIB_TO_BIT(sub_len);
1413 }
1414
1415 pad = NIB_TO_BIT(offset) + length - bit;
1416 if (pad) {
1417 proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,pad), NULL, "%d bits",pad);
1418 bit += pad;
1419 }
1420
1421 return BIT_TO_NIB(bit);
1422 }
1423
HARQ_ACK_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1424 static gint HARQ_ACK_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1425 {
1426 /* DL-MAP Extended-2 IE = 8 */
1427 /* 8.4.5.3.22 HARQ_ACK IE */
1428 /* offset of TLV in nibbles, length of TLV in nibbles */
1429 gint data;
1430 gint nib;
1431 proto_tree *tree;
1432
1433 nib = offset;
1434
1435 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286u, NULL, "HARQ_ACK_IE");
1436
1437 VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
1438 VNIB(data, 2, hf_dlmap_ie_length);
1439
1440 proto_tree_add_item(diuc_tree, hf_dlmap_harq_ack_bitmap_data, tvb, NIBHI(nib,length-3), ENC_NA);
1441
1442 return nib;
1443 }
1444
Enhanced_DL_MAP_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1445 static gint Enhanced_DL_MAP_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1446 {
1447 /* DL-MAP Extended-2 IE = 9 */
1448 /* 8.4.5.3.23 Enhanced DL MAP IE */
1449 /* offset of TLV in nibbles, length of TLV in nibbles */
1450 gint bit;
1451 gint data;
1452 proto_tree *tree;
1453 gint numass, n_cid;
1454 gint i, n;
1455
1456 bit = NIB_TO_BIT(offset);
1457
1458 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286v, NULL, "Enhanced_DL-MAP_IE");
1459
1460 XBIT_HF(4, hf_dlmap_enhanced_dl_map_extended_2_diuc);
1461 VBIT(data, 8, hf_dlmap_ie_length);
1462
1463 XBIT_HF_VALUE(numass, 4, hf_dlmap_enhanced_dl_map_num_assignment);
1464 for (i = 0; i < numass; i++) {
1465 if (INC_CID == 1) {
1466 XBIT_HF_VALUE(n_cid, 8, hf_dlmap_enhanced_dl_map_n_cid);
1467 for (n = 0; n < n_cid; n++) {
1468 XBIT_HF(16, hf_dlmap_enhanced_dl_map_cid);
1469 }
1470 }
1471 XBIT_HF(4, hf_dlmap_enhanced_dl_map_diuc);
1472 XBIT_HF(3, hf_dlmap_enhanced_dl_map_boosting);
1473 XBIT_HF(2, hf_dlmap_enhanced_dl_map_repetition_coding_indication);
1474 XBIT_HF(8, hf_dlmap_enhanced_dl_map_region_id);
1475 XBIT_HF(3, hf_dlmap_reserved_uint);
1476 }
1477 return BIT_TO_NIB(bit);
1478 }
1479
Closed_loop_MIMO_DL_Enhanced_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1480 static gint Closed_loop_MIMO_DL_Enhanced_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1481 {
1482 /* DL-MAP Extended-2 IE = 0xA */
1483 /* 8.4.5.3.24 Closed-loop MIMO DL Enhanced IE (not implemented) */
1484 /* offset of TLV in nibbles, length of TLV in nibbles */
1485 gint nib;
1486 gint data;
1487 proto_tree *tree;
1488
1489 nib = offset;
1490
1491 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286w, NULL, "CL_MIMO_DL_Enhanced_IE");
1492
1493 VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
1494 VNIB(data, 2, hf_dlmap_ie_length);
1495 proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
1496 return nib;
1497 }
1498
AAS_SDMA_DL_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1499 static gint AAS_SDMA_DL_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1500 {
1501 /* DL-MAP Extended-2 IE = 0xE */
1502 /* 8.4.5.3.26 AAS_SDMA_DL_IE */
1503 /* offset of TLV in nibbles, length of TLV in nibbles */
1504 gint bit;
1505 gint data;
1506 proto_tree *tree;
1507 gint num_region, num_users, pilot_pattern, encoding_mode, ackch_alloc, cqich_alloc;
1508 gint aas_preamble = 1;
1509 gint zone_permut = 0; /* TODO */
1510 gint i, j;
1511
1512 bit = NIB_TO_BIT(offset);
1513
1514 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286y, NULL, "AAS_SDMA_DL_IE");
1515
1516 XBIT_HF(4, hf_dlmap_aas_sdma_dl_extended_2_diuc);
1517 VBIT(data, 8, hf_dlmap_ie_length);
1518
1519 XBIT_HF_VALUE(RCID_Type, 2, hf_dlmap_aas_sdma_dl_rcid_type);
1520 XBIT_HF_VALUE(num_region, 4, hf_dlmap_aas_sdma_dl_num_burst_region);
1521 XBIT_HF(2, hf_dlmap_reserved_uint);
1522 for (i = 0; i < num_region; i++) {
1523 XBIT_HF(8, hf_dlmap_aas_sdma_dl_ofdma_symbol_offset);
1524 if (zone_permut == 0) {
1525 XBIT_HF(8, hf_dlmap_aas_sdma_dl_subchannel_offset);
1526 XBIT_HF(5, hf_dlmap_aas_sdma_dl_num_ofdma_triple_symbols);
1527 XBIT_HF(6, hf_dlmap_aas_sdma_dl_num_subchannels);
1528 } else {
1529 XBIT_HF(6, hf_dlmap_aas_sdma_dl_subchannel_offset);
1530 XBIT_HF(7, hf_dlmap_aas_sdma_dl_num_ofdma_triple_symbols);
1531 XBIT_HF(6, hf_dlmap_aas_sdma_dl_num_subchannels);
1532 }
1533 XBIT_HF_VALUE(num_users, 3, hf_dlmap_aas_sdma_dl_number_of_users);
1534 XBIT_HF(2, hf_dlmap_reserved_uint);
1535 for (j = 0; j < num_users; j++) {
1536 bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
1537 XBIT_HF_VALUE(encoding_mode, 2, hf_dlmap_aas_sdma_dl_encoding_mode);
1538 XBIT_HF_VALUE(cqich_alloc, 1, hf_dlmap_aas_sdma_dl_cqich_allocation);
1539 XBIT_HF_VALUE(ackch_alloc, 1, hf_dlmap_aas_sdma_dl_ackch_allocation);
1540 XBIT_HF_VALUE(pilot_pattern, 1, hf_dlmap_aas_sdma_dl_pilot_pattern_modifier);
1541 if (aas_preamble) {
1542 XBIT_HF(4, hf_dlmap_aas_sdma_dl_preamble_modifier_index);
1543 }
1544 if (pilot_pattern) {
1545 XBIT_HF(2, hf_dlmap_aas_sdma_dl_pilot_pattern);
1546 XBIT_HF(1, hf_dlmap_reserved_uint);
1547 } else {
1548 XBIT_HF(3, hf_dlmap_reserved_uint);
1549 }
1550 if (encoding_mode == 0x0) {
1551 XBIT_HF(4, hf_dlmap_aas_sdma_dl_diuc);
1552 XBIT_HF(2, hf_dlmap_aas_sdma_dl_repetition_coding_indication);
1553 XBIT_HF(2, hf_dlmap_reserved_uint);
1554 }
1555 if (encoding_mode == 0x1) {
1556 if (ackch_alloc) {
1557 XBIT_HF(5, hf_dlmap_aas_sdma_dl_ack_ch_index);
1558 } else {
1559 XBIT_HF(1, hf_dlmap_reserved_uint);
1560 }
1561 XBIT_HF(4, hf_dlmap_aas_sdma_dl_diuc);
1562 XBIT_HF(2, hf_dlmap_aas_sdma_dl_repetition_coding_indication);
1563 XBIT_HF(4, hf_dlmap_aas_sdma_dl_acid);
1564 XBIT_HF(1, hf_dlmap_aas_sdma_dl_ai_sn);
1565 }
1566 if (encoding_mode == 0x2) {
1567 if (ackch_alloc) {
1568 XBIT_HF(5, hf_dlmap_aas_sdma_dl_ack_ch_index);
1569 } else {
1570 XBIT_HF(1, hf_dlmap_reserved_uint);
1571 }
1572 XBIT_HF(4, hf_dlmap_aas_sdma_dl_nep);
1573 XBIT_HF(4, hf_dlmap_aas_sdma_dl_nsch);
1574 XBIT_HF(2, hf_dlmap_aas_sdma_dl_spid);
1575 XBIT_HF(4, hf_dlmap_aas_sdma_dl_acid);
1576 XBIT_HF(1, hf_dlmap_aas_sdma_dl_ai_sn);
1577 }
1578 if (encoding_mode == 0x3) {
1579 if (ackch_alloc) {
1580 XBIT_HF(5, hf_dlmap_aas_sdma_dl_ack_ch_index);
1581 XBIT_HF(2, hf_dlmap_reserved_uint);
1582 } else {
1583 XBIT_HF(3, hf_dlmap_reserved_uint);
1584 }
1585 XBIT_HF(4, hf_dlmap_aas_sdma_dl_diuc);
1586 XBIT_HF(2, hf_dlmap_aas_sdma_dl_repetition_coding_indication);
1587 XBIT_HF(2, hf_dlmap_aas_sdma_dl_spid);
1588 XBIT_HF(4, hf_dlmap_aas_sdma_dl_acid);
1589 XBIT_HF(1, hf_dlmap_aas_sdma_dl_ai_sn);
1590 }
1591 if (cqich_alloc) {
1592 XBIT_HF(6, hf_dlmap_aas_sdma_dl_allocation_index);
1593 XBIT_HF(3, hf_dlmap_aas_sdma_dl_period);
1594 XBIT_HF(3, hf_dlmap_aas_sdma_dl_frame_offset);
1595 XBIT_HF(4, hf_dlmap_aas_sdma_dl_duration);
1596 }
1597 }
1598 }
1599 data = BIT_PADDING(bit,4);
1600 /* Should this be an optional field? Or do we want it, even if it has a length of zero? */
1601 proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,data), NULL, "%d bits", data);
1602 bit += data;
1603
1604 return BIT_TO_NIB(bit);
1605 }
1606
1607
1608
1609 /********************************************************************
1610 * DL-MAP Extended IEs
1611 *******************************************************************/
1612
Channel_Measurement_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1613 static gint Channel_Measurement_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1614 {
1615 /* DL-MAP Extended IE = 0 */
1616 /* 8.4.5.3.5 [1] Channel_Measurement_IE */
1617 /* offset of TLV in nibbles, length of TLV in nibbles */
1618 gint nib;
1619 gint data;
1620 proto_tree *tree;
1621
1622 nib = offset;
1623
1624 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_280, NULL, "Channel_Measurement_IE");
1625
1626 VNIB(data, 1, hf_dlmap_ie_diuc_ext);
1627 VNIB(data, 1, hf_dlmap_ie_length);
1628
1629 VNIB(data, 2, hf_dlmap_channel_measurement_channel_nr);
1630 VNIB(data, 2, hf_dlmap_channel_measurement_ofdma_symbol_offset);
1631 VNIB(data, 4, hf_dlmap_channel_measurement_cid);
1632 return nib;
1633 }
1634
STC_Zone_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1635 static gint STC_Zone_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1636 {
1637 /* DL-MAP Extended IE = 1 */
1638 /* 8.4.5.3.4 STC_Zone_IE */
1639 /* offset of TLV in nibbles, length of TLV in nibbles */
1640 /* set globals: STC_Zone_Dedicated_Pilots, STC_Zone_Matrix
1641 * used in 8.4.5.3.21.1 Dedicated MIMO Control IE 286t */
1642 gint bit;
1643 gint data;
1644 proto_tree *tree;
1645
1646 bit = NIB_TO_BIT(offset);
1647
1648 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_279, NULL, "STC_Zone_IE");
1649
1650 VBIT(data, 4, hf_dlmap_ie_diuc_ext);
1651 VBIT(data, 4, hf_dlmap_ie_length);
1652
1653 XBIT_HF(8, hf_dlmap_stc_zone_ofdma_symbol_offset);
1654 XBIT_HF(2, hf_dlmap_stc_zone_permutations);
1655 XBIT_HF(1, hf_dlmap_stc_zone_use_all_sc_indicator);
1656 XBIT_HF(2, hf_dlmap_stc_zone_stc);
1657 XBIT_HF_VALUE(STC_Zone_Matrix, 2, hf_dlmap_stc_zone_matrix_indicator);
1658 XBIT_HF(5, hf_dlmap_stc_zone_dl_permbase);
1659 XBIT_HF(2, hf_dlmap_stc_zone_prbs_id);
1660 XBIT_HF(2, hf_dlmap_stc_zone_amc_type);
1661 XBIT_HF(1, hf_dlmap_stc_zone_midamble_presence);
1662 XBIT_HF(1, hf_dlmap_stc_zone_midamble_boosting);
1663 XBIT_HF(1, hf_dlmap_stc_zone_2_3_antenna_select);
1664 XBIT_HF_VALUE(STC_Zone_Dedicated_Pilots, 1, hf_dlmap_stc_zone_dedicated_pilots);
1665 XBIT_HF(4, hf_dlmap_reserved_uint);
1666
1667 return BIT_TO_NIB(bit);
1668 }
1669
AAS_DL_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1670 static gint AAS_DL_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1671 {
1672 /* DL-MAP Extended IE = 2 */
1673 /* 8.4.5.3.3 AAS_DL_IE */
1674 /* offset of TLV in nibbles, length of TLV in nibbles */
1675 gint bit;
1676 gint data;
1677 proto_tree *tree;
1678
1679 bit = NIB_TO_BIT(offset);
1680
1681 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_278, NULL, "AAS_DL_IE");
1682
1683 VBIT(data, 4, hf_dlmap_ie_diuc_ext);
1684 VBIT(data, 4, hf_dlmap_ie_length);
1685
1686 XBIT_HF(8, hf_dlmap_aas_dl_ofdma_symbol_offset);
1687 XBIT_HF(3, hf_dlmap_aas_dl_permutation);
1688 XBIT_HF(6, hf_dlmap_aas_dl_dl_permbase);
1689 XBIT_HF(2, hf_dlmap_aas_dl_downlink_preamble_config);
1690 XBIT_HF(1, hf_dlmap_aas_dl_preamble_type);
1691 XBIT_HF(2, hf_dlmap_aas_dl_prbs_id);
1692 XBIT_HF(1, hf_dlmap_aas_dl_diversity_map);
1693 XBIT_HF(1, hf_dlmap_reserved_uint);
1694
1695 return BIT_TO_NIB(bit);
1696 }
1697
Data_location_in_another_BS_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1698 static gint Data_location_in_another_BS_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1699 {
1700 /* DL-MAP Extended IE = 3 */
1701 /* 8.4.5.3.6 Data_location_in_another_BS_IE */
1702 /* offset of TLV in nibbles, length of TLV in nibbles */
1703 gint bit;
1704 gint data;
1705 proto_tree *tree;
1706
1707 bit = NIB_TO_BIT(offset);
1708
1709 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_281, NULL, "Data location in another BS IE");
1710
1711 VBIT(data, 4, hf_dlmap_ie_diuc_ext);
1712 VBIT(data, 4, hf_dlmap_ie_length);
1713
1714 XBIT_HF(2, hf_dlmap_data_location_another_bs_segment);
1715 XBIT_HF(6, hf_dlmap_data_location_another_bs_used_subchannels);
1716 XBIT_HF(4, hf_dlmap_data_location_another_bs_diuc);
1717 XBIT_HF(3, hf_dlmap_data_location_another_bs_frame_advance);
1718 XBIT_HF(1, hf_dlmap_reserved_uint);
1719 XBIT_HF(8, hf_dlmap_data_location_another_bs_ofdma_symbol_offset);
1720 XBIT_HF(6, hf_dlmap_data_location_another_bs_subchannel_offset);
1721 XBIT_HF(3, hf_dlmap_data_location_another_bs_boosting);
1722 XBIT_HF(7, hf_dlmap_data_location_another_bs_preamble_index);
1723 XBIT_HF(8, hf_dlmap_data_location_another_bs_num_ofdma_symbols);
1724 XBIT_HF(6, hf_dlmap_data_location_another_bs_num_subchannels);
1725 XBIT_HF(2, hf_dlmap_data_location_another_bs_repetition_coding_indication);
1726 XBIT_HF(16, hf_dlmap_data_location_another_bs_cid);
1727
1728 return BIT_TO_NIB(bit);
1729 }
1730
CID_Switch_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1731 static gint CID_Switch_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1732 {
1733 /* DL-MAP Extended IE = 4 */
1734 /* 8.4.5.3.7 [1] CID_Switch_IE */
1735 /* offset of TLV in nibbles, length of TLV in nibbles */
1736 gint nib;
1737 gint data;
1738 proto_tree *tree;
1739
1740 nib = offset;
1741
1742 INC_CID = INC_CID ? 0 : 1;
1743
1744 tree = proto_tree_add_subtree_format(diuc_tree, tvb, NIBHI(offset, length), ett_282, NULL, "CID_Switch_IE (INC_CID = %d)", INC_CID);
1745
1746 VNIB(data, 1, hf_dlmap_ie_diuc_ext);
1747 VNIB(data, 1, hf_dlmap_ie_length);
1748
1749 return nib;
1750 }
1751
MIMO_DL_Basic_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1752 static gint MIMO_DL_Basic_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1753 {
1754 /* DL-MAP Extended IE = 5 */
1755 /* 8.4.5.3.8 MIMO_DL_Basic_IE (not implemented) */
1756 /* offset of TLV in nibbles, length of TLV in nibbles */
1757 gint nib;
1758 gint data;
1759 proto_tree *tree;
1760
1761 nib = offset;
1762
1763 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_283, NULL, "MIMO_DL_Basic_IE");
1764
1765 VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
1766 VNIB(data, 2, hf_dlmap_ie_length);
1767 proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-2));
1768 return nib;
1769 }
1770
MIMO_DL_Enhanced_IE(proto_tree * diuc_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)1771 static gint MIMO_DL_Enhanced_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
1772 {
1773 /* DL-MAP Extended IE = 6 */
1774 /* 8.4.5.3.9 MIMO_DL_Enhanced_IE (not implemented) */
1775 /* offset of TLV in nibbles, length of TLV in nibbles */
1776 gint nib;
1777 gint data;
1778 proto_tree *tree;
1779
1780 nib = offset;
1781
1782 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_284, NULL, "MIMO_DL_Enhanced_IE");
1783
1784 VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
1785 VNIB(data, 2, hf_dlmap_ie_length);
1786 proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-2));
1787 return nib;
1788 }
1789
HARQ_Map_Pointer_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1790 static gint HARQ_Map_Pointer_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1791 {
1792 /* DL-MAP Extended IE = 7 */
1793 /* 8.4.5.3.10 [2] HARQ_Map_Pointer_IE */
1794 /* offset of TLV in nibbles, length of TLV in nibbles */
1795 gint bit;
1796 gint data;
1797 proto_tree *tree;
1798 gint length_in_bits, map, mask_len;
1799
1800 bit = NIB_TO_BIT(offset);
1801
1802 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_285, NULL, "HARQ_Map_Pointer_IE");
1803
1804 VBIT(data, 4, hf_dlmap_ie_diuc_ext);
1805 VBIT(data, 4, hf_dlmap_ie_length);
1806
1807 length_in_bits = NIB_TO_BIT(length-1);
1808 while (bit < length_in_bits) {
1809 XBIT_HF(4, hf_dlmap_harq_map_pointer_diuc);
1810 XBIT_HF(8, hf_dlmap_harq_map_pointer_num_slots);
1811 XBIT_HF(2, hf_dlmap_harq_map_pointer_repetition_coding_indication);
1812 XBIT_HF_VALUE(map, 2, hf_dlmap_harq_map_pointer_map_version);
1813 if (map == 2) {
1814 XBIT_HF(1, hf_dlmap_harq_map_pointer_idle_users);
1815 XBIT_HF(1, hf_dlmap_harq_map_pointer_sleep_users);
1816 XBIT_HF_VALUE(mask_len, 2, hf_dlmap_harq_map_pointer_cid_mask_length);
1817 if (mask_len == 0) {
1818 /* 12 bits */
1819 proto_tree_add_bytes_format_value(diuc_tree, hf_cid_mask, tvb, BITHI(bit,12), NULL, "12 bits");
1820 bit += 12;
1821 } else if (mask_len == 1) {
1822 /* 20 bits */
1823 proto_tree_add_bytes_format_value(diuc_tree, hf_cid_mask, tvb, BITHI(bit,20), NULL, "20 bits");
1824 bit += 20;
1825 } else if (mask_len == 2) {
1826 /* 36 bits */
1827 proto_tree_add_bytes_format_value(diuc_tree, hf_cid_mask, tvb, BITHI(bit,36), NULL, "36 bits");
1828 bit += 36;
1829 } else if (mask_len == 3) {
1830 /* 52 bits */
1831 proto_tree_add_bytes_format_value(diuc_tree, hf_cid_mask, tvb, BITHI(bit,52), NULL, "52 bits");
1832 bit += 52;
1833 }
1834 }
1835 }
1836 return BIT_TO_NIB(bit);
1837 }
1838
PHYMOD_DL_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1839 static gint PHYMOD_DL_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1840 {
1841 /* DL-MAP Extended IE = 8 */
1842 /* 8.4.5.3.11 PHYMOD_DL_IE */
1843 /* offset of TLV in nibbles, length of TLV in nibbles */
1844 gint bit;
1845 gint data;
1846 proto_tree *tree;
1847 gint pmt;
1848
1849 bit = NIB_TO_BIT(offset);
1850
1851 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286, NULL, "PHYMOD_DL_IE");
1852
1853 VBIT(data, 4, hf_dlmap_ie_diuc_ext);
1854 VBIT(data, 4, hf_dlmap_ie_length);
1855
1856 XBIT_HF_VALUE(pmt, 1, hf_dlmap_phymod_dl_preamble_modifier_type);
1857 if (pmt == 0) {
1858 XBIT_HF(4, hf_dlmap_phymod_dl_preamble_frequency_shift_index);
1859 } else {
1860 XBIT_HF(4, hf_dlmap_phymod_dl_preamble_time_shift_index);
1861 }
1862 XBIT_HF(1, hf_dlmap_phymod_dl_pilot_pattern_modifier);
1863 XBIT_HF(2, hf_dlmap_phymod_dl_pilot_pattern_index);
1864
1865 return BIT_TO_NIB(bit);
1866 }
1867
Broadcast_Control_Pointer_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1868 static gint Broadcast_Control_Pointer_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1869 {
1870 /* DL-MAP Extended IE = 0xA */
1871 /* 8.4.5.3.25 Broadcast Control Pointer IE */
1872 /* offset of TLV in nibbles, length of TLV in nibbles */
1873 gint bit;
1874 gint data;
1875 proto_tree *tree;
1876 gint skip;
1877
1878 bit = NIB_TO_BIT(offset);
1879
1880 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286x, NULL, "Broadcast Control Pointer IE");
1881
1882 VBIT(data, 4, hf_dlmap_ie_diuc_ext);
1883 VBIT(data, 4, hf_dlmap_ie_length);
1884
1885 XBIT_HF(7, hf_dlmap_broadcast_ctrl_ptr_dcd_ucd_transmission_frame);
1886 XBIT_HF_VALUE(skip, 1, hf_dlmap_broadcast_ctrl_ptr_skip_broadcast_system_update);
1887 if (skip == 0) {
1888 XBIT_HF(1, hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_type);
1889 XBIT_HF(7, hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_transmission_frame);
1890 }
1891 return BIT_TO_NIB(bit);
1892 }
1893
DL_PUSC_Burst_Allocation_in_Other_Segment_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1894 static gint DL_PUSC_Burst_Allocation_in_Other_Segment_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1895 {
1896 /* DL-MAP Extended IE = 0xB */
1897 /* 8.4.5.3.13 DL PUSC Burst Allocation in Other Segment IE */
1898 /* offset of TLV in nibbles, length of TLV in nibbles */
1899 gint bit;
1900 gint data;
1901 proto_tree *tree;
1902
1903 bit = NIB_TO_BIT(offset);
1904
1905 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286b, NULL, "DL_PUSC_Burst_Allocation_in_Other_Segment_IE");
1906
1907 VBIT(data, 4, hf_dlmap_ie_diuc_ext);
1908 VBIT(data, 4, hf_dlmap_ie_length);
1909
1910 XBIT_HF(16, hf_dlmap_dl_pusc_burst_allocation_cid);
1911 XBIT_HF(4, hf_dlmap_dl_pusc_burst_allocation_diuc);
1912 XBIT_HF(2, hf_dlmap_dl_pusc_burst_allocation_segment);
1913 XBIT_HF(3, hf_dlmap_dl_pusc_burst_allocation_boosting);
1914 XBIT_HF(5, hf_dlmap_dl_pusc_burst_allocation_idcell);
1915 XBIT_HF(5, hf_dlmap_dl_pusc_burst_allocation_dl_permbase);
1916 XBIT_HF(2, hf_dlmap_dl_pusc_burst_allocation_prbs_id);
1917 XBIT_HF(2, hf_dlmap_dl_pusc_burst_allocation_repetition_coding_indication);
1918 XBIT_HF(6, hf_dlmap_dl_pusc_burst_allocation_used_subchannels);
1919 XBIT_HF(8, hf_dlmap_dl_pusc_burst_allocation_ofdma_symbol_offset);
1920 XBIT_HF(1, hf_dlmap_reserved_uint);
1921 XBIT_HF(7, hf_dlmap_dl_pusc_burst_allocation_num_ofdma_symbols);
1922 XBIT_HF(6, hf_dlmap_dl_pusc_burst_allocation_subchannel_offset);
1923 XBIT_HF(6, hf_dlmap_dl_pusc_burst_allocation_num_subchannels);
1924 XBIT_HF(7, hf_dlmap_reserved_uint);
1925 return BIT_TO_NIB(bit);
1926 }
1927
PUSC_ASCA_Alloc_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1928 static gint PUSC_ASCA_Alloc_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1929 {
1930 /* DL-MAP Extended IE = 0xC */
1931 /* 8.4.5.3.27 PUSC_ASCA_Alloc_IE */
1932 /* offset of TLV in nibbles, length of TLV in nibbles */
1933 gint bit;
1934 gint data;
1935 proto_tree *tree;
1936
1937 bit = NIB_TO_BIT(offset);
1938
1939 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286z, NULL, "PUSC_ASCA_Alloc_IE");
1940
1941 VBIT(data, 4, hf_dlmap_ie_diuc_ext);
1942 VBIT(data, 4, hf_dlmap_ie_length);
1943 XBIT_HF(4, hf_dlmap_pusc_asca_alloc_diuc);
1944 XBIT_HF(12, hf_dlmap_pusc_asca_alloc_short_basic_cid);
1945 XBIT_HF(8, hf_dlmap_pusc_asca_alloc_ofdma_symbol_offset);
1946 XBIT_HF(6, hf_dlmap_pusc_asca_alloc_subchannel_offset);
1947 XBIT_HF(7, hf_dlmap_pusc_asca_alloc_num_ofdma_symbols);
1948 XBIT_HF(6, hf_dlmap_pusc_asca_alloc_num_symbols);
1949 XBIT_HF(2, hf_dlmap_pusc_asca_alloc_repetition_coding_information);
1950 XBIT_HF(4, hf_dlmap_pusc_asca_alloc_permutation_id);
1951 XBIT_HF(7, hf_dlmap_reserved_uint);
1952
1953 return BIT_TO_NIB(bit);
1954 }
1955
UL_interference_and_noise_level_IE(proto_tree * diuc_tree,gint offset,gint length,tvbuff_t * tvb)1956 static gint UL_interference_and_noise_level_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
1957 {
1958 /* DL-MAP Extended IE = 0xF */
1959 /* 8.4.5.3.19 UL_interference_and_noise_level_IE */
1960 /* offset of TLV in nibbles, length of TLV in nibbles */
1961 proto_tree *tree;
1962 gint nib = offset;
1963 gint bitmap, data;
1964
1965 tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286h, NULL, "UL_interference_and_noise_level_IE");
1966
1967 VNIB(data, 1, hf_dlmap_ie_diuc_ext);
1968 VNIB(data, 1, hf_dlmap_ie_length);
1969 VNIB(bitmap, 2, hf_dlmap_ie_bitmap);
1970
1971 if (bitmap & 0x01) {
1972 VNIB(data, 2, hf_dlmap_ie_bitmap_cqi);
1973 }
1974 if (bitmap & 0x02) {
1975 VNIB(data, 2, hf_dlmap_ie_bitmap_pusc);
1976 }
1977 if (bitmap & 0x04) {
1978 VNIB(data, 2, hf_dlmap_ie_bitmap_opt_pusc);
1979 }
1980 if (bitmap & 0x08) {
1981 VNIB(data, 2, hf_dlmap_ie_bitmap_amc);
1982 }
1983 if (bitmap & 0x10) {
1984 VNIB(data, 2, hf_dlmap_ie_bitmap_aas);
1985 }
1986 if (bitmap & 0x20) {
1987 VNIB(data, 2, hf_dlmap_ie_bitmap_periodic_ranging);
1988 }
1989 if (bitmap & 0x40) {
1990 VNIB(data, 2, hf_dlmap_ie_bitmap_sounding);
1991 }
1992 if (bitmap & 0x80) {
1993 VNIB(data, 2, hf_dlmap_ie_bitmap_mimo);
1994 }
1995
1996 return nib;
1997 }
1998
1999 /********************************************************************
2000 * DL-MAP Plugin
2001 *******************************************************************/
2002
dissect_dlmap_ie(proto_tree * ie_tree,packet_info * pinfo,gint offset,gint length,tvbuff_t * tvb)2003 static gint dissect_dlmap_ie(proto_tree *ie_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
2004 {
2005 /* decode a single DL-MAP IE and return the
2006 * length of the IE in nibbles
2007 * offset = start of IE (nibbles)
2008 * length = total length of IE (nibbles) */
2009 proto_item *ti = NULL;
2010 proto_tree *tree = NULL;
2011
2012 gint nibble = offset;
2013 gint diuc;
2014 gint ext2_diuc;
2015 gint len;
2016 gint ext_diuc;
2017
2018 gint alt_format = 0;
2019 guint data = 0;
2020 gint i;
2021 /*gint papr = 0;*/
2022 gint ie_len = 9;
2023
2024 gint n_cid;
2025
2026 /* 8.4.5.3 DL-MAP IE format - table 275 */
2027 diuc = TVB_NIB_NIBBLE(nibble, tvb);
2028 if (diuc == 14)
2029 {
2030 /* 8.4.5.3.2.2 [2] Extended-2 DIUC dependent IE table 277b */
2031 ext2_diuc = TVB_NIB_NIBBLE(1+nibble, tvb);
2032 len = TVB_NIB_BYTE(1+nibble+1, tvb);
2033
2034 ti = proto_tree_add_uint(ie_tree, hf_dlmap_ie_diuc, tvb, NIBHI(nibble, 1+3+len*2), diuc);
2035 proto_item_append_text(ti, " (Extended-2)");
2036 tree = proto_item_add_subtree(ti, ett_277b);
2037 nibble++;
2038
2039 len = 3 + BYTE_TO_NIB(len);
2040
2041 /* table 277c [2] */
2042 switch (ext2_diuc)
2043 {
2044 case 0x00:
2045 /* 8.4.5.3.12 MBS_MAP_IE */
2046 nibble = MBS_MAP_IE(tree, nibble, len, tvb);
2047 break;
2048 case 0x01:
2049 /* 8.4.5.3.14 HO_Anchor_Active_DL-MAP_IE */
2050 nibble = HO_Anchor_Active_DL_MAP_IE(tree, pinfo, nibble, len, tvb);
2051 break;
2052 case 0x02:
2053 /* 8.4.5.3.15 HO_Active_Anchor_DL_MAP_IE */
2054 nibble = HO_Active_Anchor_DL_MAP_IE(tree, pinfo, nibble, len, tvb);
2055 break;
2056 case 0x03:
2057 /* 8.4.5.3.16 HO_CID_Translation_MAP_IE */
2058 nibble = HO_CID_Translation_MAP_IE(tree, pinfo, nibble, len, tvb);
2059 break;
2060 case 0x04:
2061 /* 8.4.5.3.17 MIMO_in_another_BS_IE */
2062 nibble = MIMO_in_another_BS_IE(tree, pinfo, nibble, len, tvb);
2063 break;
2064 case 0x05:
2065 /* 8.4.5.3.18 Macro-MIMO_DL_Basic_IE */
2066 nibble = Macro_MIMO_DL_Basic_IE(tree, pinfo, nibble, len, tvb);
2067 break;
2068 case 0x06:
2069 /* 8.4.5.3.20.2 Skip_IE */
2070 nibble = Skip_IE(tree, nibble, len, tvb);
2071 break;
2072 case 0x07:
2073 /* 8.4.5.3.21 HARQ_DL_MAP_IE */
2074 nibble = HARQ_DL_MAP_IE(tree, pinfo, nibble, len, tvb);
2075 break;
2076 case 0x08:
2077 /* 8.4.5.3.22 HARQ_ACK IE */
2078 nibble = HARQ_ACK_IE(tree, nibble, len, tvb);
2079 break;
2080 case 0x09:
2081 /* 8.4.5.3.23 Enhanced DL MAP IE */
2082 nibble = Enhanced_DL_MAP_IE(tree, nibble, len, tvb);
2083 break;
2084 case 0x0a:
2085 /* 8.4.5.3.24 Closed-loop MIMO DL Enhanced IE */
2086 nibble = Closed_loop_MIMO_DL_Enhanced_IE(tree, pinfo, nibble, len, tvb);
2087 break;
2088 case 0x0b:
2089 nibble = MIMO_DL_Basic_IE(tree, pinfo, nibble, len, tvb);
2090 break;
2091 case 0x0c:
2092 nibble = MIMO_DL_Enhanced_IE(tree, pinfo, nibble, len, tvb);
2093 break;
2094
2095 case 0x0e:
2096 nibble = AAS_SDMA_DL_IE(tree, nibble, len, tvb);
2097 break;
2098
2099 default:
2100 proto_tree_add_bytes_format(tree, hf_dlmap_ie_reserved_extended2_duic, tvb, NIBHI(nibble,len), NULL, "(reserved Extended-2 DIUC: %d)", ext2_diuc);
2101 nibble += len;
2102 break;
2103
2104 }
2105 }
2106 else if (diuc == 15)
2107 {
2108 /* 8.4.5.3.2.1 [1] Extended DIUC dependent IE - table 277 */
2109 ext_diuc = TVB_NIB_NIBBLE(1+nibble, tvb);
2110 len = TVB_NIB_NIBBLE(1+nibble+1, tvb);
2111
2112 ti = proto_tree_add_uint(ie_tree, hf_dlmap_ie_diuc, tvb, NIBHI(nibble, 1+2+len*2), diuc);
2113 proto_item_append_text(ti, " (Extended)");
2114 tree = proto_item_add_subtree(ti, ett_277);
2115 nibble++;
2116
2117 len = 2 + BYTE_TO_NIB(len);
2118
2119 /* TODO 8.4.5.3.27 PUSC_ASCA_IE -- unspecified ExtDIUC? */
2120
2121 /* 8.4.5.3.2.1 table 277a */
2122 switch (ext_diuc)
2123 {
2124 case 0x00:
2125 /* 8.4.5.3.? Channel_Measurement_IE */
2126 nibble = Channel_Measurement_IE(tree, nibble, len, tvb);
2127 break;
2128 case 0x01:
2129 /* 8.4.5.3.4 STC_Zone_IE */
2130 nibble = STC_Zone_IE(tree, nibble, len, tvb);
2131 break;
2132 case 0x02:
2133 /* 8.4.5.3.3 AAS_DL_IE */
2134 nibble = AAS_DL_IE(tree, nibble, len, tvb);
2135 break;
2136 case 0x03:
2137 /* 8.4.5.3.6 Data_location_in_another_BS_IE */
2138 nibble = Data_location_in_another_BS_IE(tree, nibble, len, tvb);
2139 break;
2140 case 0x04:
2141 /* 8.4.5.3.7 CID_Switch_IE */
2142 nibble = CID_Switch_IE(tree, nibble, len, tvb);
2143 break;
2144 case 0x07:
2145 /* 8.4.5.3.10 HARQ_Map_Pointer_IE */
2146 nibble = HARQ_Map_Pointer_IE(tree, nibble, len, tvb);
2147 break;
2148 case 0x08:
2149 /* 8.4.5.3.11 PHYMOD_DL_IE */
2150 nibble = PHYMOD_DL_IE(tree, nibble, len, tvb);
2151 break;
2152 case 0x0a:
2153 /* 8.4.5.3.25 Broadcast Control Pointer IE */
2154 nibble = Broadcast_Control_Pointer_IE(tree, nibble, len, tvb);
2155 break;
2156 case 0x0b:
2157 /* 8.4.5.3.13 DL PUSC Burst Allocation in Other Segment IE */
2158 nibble = DL_PUSC_Burst_Allocation_in_Other_Segment_IE(tree, nibble, len, tvb);
2159 break;
2160 case 0x0c:
2161 nibble = PUSC_ASCA_Alloc_IE(tree, nibble, len, tvb);
2162 break;
2163
2164 case 0x0f:
2165 /* 8.4.5.3.19 UL_interference_and_noise_level_IE */
2166 nibble = UL_interference_and_noise_level_IE(tree, nibble, len, tvb);
2167 break;
2168
2169 default:
2170 proto_tree_add_bytes_format(tree, hf_dlmap_ie_reserved_extended_duic, tvb, NIBHI(nibble,len), NULL, "(reserved Extended DIUC: %d)", ext_diuc);
2171 nibble += len;
2172 break;
2173 }
2174 }
2175 else
2176 {
2177 /* Downlink IE */
2178 alt_format = 0;
2179 /*papr = 0; XX: not used ? */
2180 ie_len = 9;
2181
2182 /* TODO: alt_format = 1 if (Permutation == 0x11) and (AMC type is 2x3 or 1x6) */
2183
2184 /* precalculate IE len for correct highlighting */
2185 if (INC_CID && !sub_dl_ul_map) {
2186 ie_len += 2 + (TVB_NIB_BYTE(nibble+1, tvb) * 4);
2187 }
2188
2189 /* DL-MAP_IE */
2190 ti = proto_tree_add_uint(ie_tree, hf_dlmap_ie_diuc, tvb, NIBHI(nibble, ie_len), diuc);
2191 tree = proto_item_add_subtree(ti, ett_275_1);
2192 nibble += 1;
2193
2194 if (diuc == 13) {
2195 /* 8.4.5.3.1 [1] Gap/PAPR Reduction */
2196 /*papr = 1; XX: not used ? */
2197 proto_item_append_text(ti, " (Gap/PAPR Reduction)");
2198 }
2199
2200
2201 if (INC_CID)
2202 {
2203 n_cid = TVB_NIB_BYTE(nibble, tvb);
2204 proto_tree_add_uint(tree, hf_dlmap_ie_ncid, tvb, NIBHI(nibble, 2), n_cid);
2205 nibble += 2;
2206
2207 for (i = 0; i < n_cid; i++)
2208 {
2209 if (sub_dl_ul_map) {
2210 /* RCID_IE 8.4.5.3 and 8.4.5.3.20.1, only part of SUB-DL-UL-MAP */
2211 /* RCID_Type comes from 6.3.2.3.43.2 [2] Format_configuration_IE in Compact_DL-MAP_IE */
2212 nibble += RCID_IE(tree, nibble*4, length, tvb, RCID_Type) / 4;
2213 } else {
2214 data = TVB_NIB_WORD(nibble, tvb);
2215 proto_tree_add_uint(tree, hf_dlmap_ie_cid, tvb, NIBHI(nibble, 4), data);
2216 nibble += 4;
2217 }
2218 }
2219 }
2220
2221 data = TVB_NIB_LONG(nibble, tvb);
2222 if (alt_format) {
2223 proto_tree_add_uint(tree, hf_dlmap_ie_offsym2, tvb, NIBHI(nibble, 8), data);
2224 proto_tree_add_uint(tree, hf_dlmap_ie_offsub2, tvb, NIBHI(nibble, 8), data);
2225 proto_tree_add_uint(tree, hf_dlmap_ie_boosting2, tvb, NIBHI(nibble, 8), data);
2226 proto_tree_add_uint(tree, hf_dlmap_ie_numsym2, tvb, NIBHI(nibble, 8), data);
2227 proto_tree_add_uint(tree, hf_dlmap_ie_numsub2, tvb, NIBHI(nibble, 8), data);
2228 proto_tree_add_uint(tree, hf_dlmap_ie_rep2, tvb, NIBHI(nibble, 8), data);
2229 } else {
2230 proto_tree_add_uint(tree, hf_dlmap_ie_offsym, tvb, NIBHI(nibble, 8), data);
2231 proto_tree_add_uint(tree, hf_dlmap_ie_offsub, tvb, NIBHI(nibble, 8), data);
2232 proto_tree_add_uint(tree, hf_dlmap_ie_boosting, tvb, NIBHI(nibble, 8), data);
2233 proto_tree_add_uint(tree, hf_dlmap_ie_numsym, tvb, NIBHI(nibble, 8), data);
2234 proto_tree_add_uint(tree, hf_dlmap_ie_numsub, tvb, NIBHI(nibble, 8), data);
2235 proto_tree_add_uint(tree, hf_dlmap_ie_rep, tvb, NIBHI(nibble, 8), data);
2236 }
2237 nibble += 8;
2238 }
2239
2240 /* length in nibbles */
2241 return (nibble - offset);
2242 }
2243
2244
dissect_mac_mgmt_msg_dlmap_decoder(tvbuff_t * tvb,packet_info * pinfo,proto_tree * base_tree,void * data _U_)2245 static int dissect_mac_mgmt_msg_dlmap_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree, void* data _U_)
2246 {
2247 /* 6.3.2.3.2 [2] DL-MAP table 16 */
2248 guint offset = 0;
2249 gint length, nib, pad;
2250 proto_item *ti = NULL;
2251 proto_tree *dlmap_tree = NULL;
2252 proto_tree *ie_tree = NULL;
2253 proto_tree *phy_tree = NULL;
2254 gint tvb_len = tvb_reported_length(tvb);
2255
2256 INC_CID = 0;
2257
2258 /* add protocol */
2259 ti = proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_dlmap_decoder, tvb, offset, -1, "DL-MAP");
2260 dlmap_tree = proto_item_add_subtree(ti, ett_dlmap);
2261
2262 /* PHY Synchronization Field 8.4.5.1 */
2263 {
2264 phy_tree = proto_tree_add_subtree(dlmap_tree, tvb, offset, 4, ett_275_phy, NULL, "Phy Synchronization Field");
2265 proto_tree_add_item(phy_tree, hf_dlmap_phy_fdur_ms, tvb, offset, 1, ENC_BIG_ENDIAN);
2266 proto_tree_add_item(phy_tree, hf_dlmap_phy_fdur_per_sec, tvb, offset, 1, ENC_BIG_ENDIAN);
2267 proto_tree_add_item(phy_tree, hf_dlmap_phy_fdur, tvb, offset, 1, ENC_BIG_ENDIAN);
2268 offset++;
2269 proto_tree_add_item(phy_tree, hf_dlmap_phy_fnum, tvb, offset, 3, ENC_BIG_ENDIAN);
2270 offset += 3;
2271 }
2272 proto_tree_add_item(dlmap_tree, hf_dlmap_dcd, tvb, offset, 1, ENC_BIG_ENDIAN);
2273 offset++;
2274 proto_tree_add_item(dlmap_tree, hf_dlmap_bsid, tvb, offset, 6, ENC_NA);
2275 offset += 6;
2276 proto_tree_add_item(dlmap_tree, hf_dlmap_ofdma_sym, tvb, offset, 1, ENC_BIG_ENDIAN);
2277 offset++;
2278
2279 /* DL-MAP IEs */
2280 length = tvb_len - offset; /* remaining length in bytes */
2281 ie_tree = proto_tree_add_subtree_format(dlmap_tree, tvb, offset, length, ett_dlmap_ie, NULL, "DL-MAP IEs (%d bytes)", length);
2282
2283 /* length = BYTE_TO_NIB(length); */ /* convert length to nibbles */
2284
2285 nib = BYTE_TO_NIB(offset);
2286 while (nib < ((tvb_len*2)-1)) {
2287 nib += dissect_dlmap_ie(ie_tree, pinfo, nib, tvb_len * 2, tvb);
2288 }
2289 pad = NIB_PADDING(nib);
2290 if (pad) {
2291 proto_tree_add_bytes_format(dlmap_tree, hf_padding, tvb, NIBHI(nib,1), NULL, "Padding nibble");
2292 nib++;
2293 }
2294 return tvb_captured_length(tvb);
2295 }
2296
wimax_decode_dlmapc(tvbuff_t * tvb,packet_info * pinfo,proto_tree * base_tree)2297 gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree)
2298 {
2299 /* 8.4.5.6.1 [2] Compressed DL-MAP */
2300 /* decode a compressed dl-map and return the length in bytes; */
2301 /* if there is a compressed ul-map, also decode that and include in the length */
2302 guint offset = 0;
2303 proto_item *ti = NULL;
2304 proto_item *ti_phy = NULL;
2305 proto_item *ti_dlmap_ies = NULL;
2306 proto_tree *tree = NULL;
2307 proto_tree *ie_tree = NULL;
2308 proto_tree *phy_tree = NULL;
2309 gint ulmap_appended;
2310 guint length, lennib, pad;
2311 guint mac_len, dl_ie_count;
2312 guint tvb_len = tvb_reported_length(tvb);
2313 guint nib = 0;
2314 guint32 mac_crc, calculated_crc;
2315
2316 /* update the info column */
2317 col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "Compressed DL-MAP");
2318
2319 INC_CID = 0;
2320
2321 length = tvb_get_ntohs(tvb, offset) & 0x07FF; /* compressed map length is 11 bits */
2322 mac_len = length;
2323 lennib = BYTE_TO_NIB(length);
2324
2325 ulmap_appended = (tvb_get_guint8(tvb, offset) >> 4) & 1; /* UL MAP appended? */
2326
2327 /* display MAC Compressed DL-MAP and create subtree */
2328 ti = proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_dlmap_decoder, tvb, offset, length, "Compressed DL-MAP (%u bytes)", length);
2329 tree = proto_item_add_subtree(ti, ett_305);
2330
2331 /* decode dlmap fields */
2332 proto_tree_add_item(tree, hf_dlmapc_compr, tvb, offset, 2, ENC_BIG_ENDIAN);
2333 proto_tree_add_item(tree, hf_dlmapc_ulmap, tvb, offset, 2, ENC_BIG_ENDIAN);
2334 proto_tree_add_item(tree, hf_dlmapc_rsv, tvb, offset, 2, ENC_BIG_ENDIAN);
2335 proto_tree_add_item(tree, hf_dlmapc_len, tvb, offset, 2, ENC_BIG_ENDIAN);
2336 /* PHY Synchronization Field 8.4.5.1 */
2337 {
2338 phy_tree = proto_tree_add_subtree(tree, tvb, offset+2, 4, ett_275_phy, &ti_phy, "Phy Synchronization Field");
2339 proto_tree_add_item(phy_tree, hf_dlmap_phy_fdur_ms, tvb, offset+2, 1, ENC_BIG_ENDIAN);
2340 proto_tree_add_item(phy_tree, hf_dlmap_phy_fdur_per_sec, tvb, offset+2, 1, ENC_BIG_ENDIAN);
2341 proto_tree_add_item(phy_tree, hf_dlmap_phy_fnum, tvb, offset+3, 3, ENC_BIG_ENDIAN);
2342 }
2343 proto_tree_add_item(tree, hf_dlmap_dcd, tvb, offset+6, 1, ENC_BIG_ENDIAN);
2344 proto_tree_add_item(tree, hf_dlmapc_opid, tvb, offset+7, 1, ENC_BIG_ENDIAN);
2345 proto_tree_add_item(tree, hf_dlmapc_secid, tvb, offset+8, 1, ENC_BIG_ENDIAN);
2346 proto_tree_add_item(tree, hf_dlmap_ofdma_sym, tvb, offset+9, 1, ENC_BIG_ENDIAN); /* 2005 */
2347 proto_tree_add_item(tree, hf_dlmapc_count, tvb, offset+10,1, ENC_BIG_ENDIAN);
2348 dl_ie_count = tvb_get_guint8(tvb, offset + 10);
2349 offset += 11;
2350 nib = BYTE_TO_NIB(offset);
2351
2352 /* DL-MAP IEs */
2353 length -= 15; /* remaining length in bytes (11 bytes above + CRC at end) */
2354 if (dl_ie_count) {
2355 ie_tree = proto_tree_add_subtree_format(tree, tvb, offset, length, ett_dlmap_ie, &ti_dlmap_ies, "DL-MAP IEs (%d bytes)", length);
2356
2357 /* length = BYTE_TO_NIB(mac_len - (int)sizeof(mac_crc) - 1); */ /* convert length to nibbles */
2358
2359 while (dl_ie_count--) {
2360 nib += dissect_dlmap_ie(ie_tree, pinfo, nib, tvb_len * 2, tvb);
2361 }
2362 pad = NIB_PADDING(nib);
2363 if (pad) {
2364 proto_tree_add_bytes_format(tree, hf_padding, tvb, NIBHI(nib,1), NULL, "Padding nibble");
2365 nib++;
2366 }
2367 }
2368
2369 if (ulmap_appended) {
2370 /* Replace the text of items to set the correct length in bytes.*/
2371 proto_item_set_text(ti, "Compressed DL-MAP (%u bytes)", NIB_ADDR(nib));
2372 proto_item_set_text(ti_dlmap_ies, "DL-MAP IEs (%u bytes)",NIB_ADDR(nib)- offset);
2373
2374 /* set the length of items */
2375 proto_item_set_end(ti_dlmap_ies, tvb, NIB_ADDR(nib));
2376 proto_item_set_end(ti, tvb, NIB_ADDR(nib));
2377
2378 /* update the info column */
2379 col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "Compressed UL-MAP");
2380
2381 /* subtract 8 from lennib (CRC) */
2382 wimax_decode_ulmapc(base_tree, pinfo, nib, lennib - 8, tvb);
2383 }
2384
2385 /* CRC is always appended */
2386 /* check the length */
2387 if (mac_len <= sizeof(mac_crc))
2388 {
2389 expert_add_info_format(pinfo, ti, &ei_mac_header_invalid_length,
2390 "Invalid length: %d.", mac_len);
2391 return sizeof(mac_crc);
2392 }
2393 else if (MIN(tvb_len, tvb_reported_length(tvb)) >= mac_len)
2394 {
2395 /* calculate the CRC */
2396 calculated_crc = wimax_mac_calc_crc32(tvb_get_ptr(tvb, 0, mac_len - (int)sizeof(mac_crc)), mac_len - (int)sizeof(mac_crc));
2397 proto_tree_add_checksum(base_tree, tvb, mac_len - (int)sizeof(mac_crc), hf_mac_header_compress_dlmap_crc, hf_mac_header_compress_dlmap_crc_status, &ei_mac_header_compress_dlmap_crc,
2398 pinfo, calculated_crc, ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
2399 }
2400 else
2401 { /* display error message */
2402 proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_dlmap_decoder, tvb, 0, tvb_len, "CRC missing - the frame is too short (%u bytes)", tvb_len);
2403 }
2404
2405 return mac_len;
2406 }
2407 #if 0
2408 static gint wimax_decode_sub_dl_ul_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree)
2409 {
2410 /* decode a SUB-DL-UL-MAP message 6.3.2.3.60 and return the length in bytes */
2411 /* first three bits are 0x7, which following a compressed DL map indicates this message */
2412 proto_tree *tree = NULL;
2413 proto_tree *ie_tree = NULL;
2414 proto_item *generic_item = NULL;
2415 gint data;
2416 gint i, numie;
2417 guint16 calculated_crc;
2418
2419 gint length = tvb_reported_length(tvb);
2420 gint nib = 0;
2421 gint lennib = BYTE_TO_NIB(length);
2422
2423 sub_dl_ul_map = 1; /* set flag */
2424
2425 tree = proto_tree_add_subtree(base_tree, tvb, NIBHI(nib,lennib-nib), ett_109x, NULL, "SUB-DL-UL-MAP");
2426
2427 data = TVB_NIB_WORD(nib,tvb);
2428 proto_tree_add_uint(tree, hf_109x_cmi, tvb, NIBHI(nib,4), data);
2429 proto_tree_add_uint(tree, hf_109x_len, tvb, NIBHI(nib,4), data);
2430 proto_tree_add_uint(tree, hf_109x_rcid, tvb, NIBHI(nib,4), data);
2431 proto_tree_add_uint(tree, hf_109x_haoi, tvb, NIBHI(nib,4), data);
2432 nib += 4;
2433
2434 /* HARQ ACK offset indicator */
2435 if (data & 1) {
2436 data = TVB_NIB_BYTE(nib,tvb);
2437 proto_tree_add_uint(tree, hf_109x_dl, tvb, NIBHI(nib,2), data);
2438 nib += 2;
2439 data = TVB_NIB_BYTE(nib,tvb);
2440 proto_tree_add_uint(tree, hf_109x_ul, tvb, NIBHI(nib,2), data);
2441 nib += 2;
2442 }
2443
2444 numie = TVB_NIB_BYTE(nib,tvb);
2445 proto_tree_add_uint(tree, hf_109x_dlie, tvb, NIBHI(nib,2), numie);
2446 nib += 2;
2447
2448 /* DL-MAP IEs */
2449 ie_tree = proto_tree_add_subtree(tree, tvb, NIBHI(nib,1), ett_109x_dl, NULL, "DL-MAP IEs");
2450 for (i = 0; i < numie; i++) {
2451 nib += dissect_dlmap_ie(ie_tree, pinfo, nib, lennib - nib, tvb);
2452 }
2453
2454 data = TVB_NIB_BYTE(nib,tvb);
2455 proto_tree_add_uint(tree, hf_109x_symofs, tvb, NIBHI(nib,2), data);
2456 nib += 2;
2457 data = TVB_NIB_BYTE(nib,tvb);
2458 proto_tree_add_uint(tree, hf_109x_subofs, tvb, NIBHI(nib,2), data);
2459 proto_tree_add_uint(tree, hf_109x_rsv, tvb, NIBHI(nib,2), data);
2460 nib += 2;
2461
2462 /* UL-MAP IEs */
2463 ie_tree = proto_tree_add_subtree(tree, tvb, NIBHI(nib,lennib-nib), ett_109x_ul, NULL, "UL-MAP IEs");
2464 for ( ; nib < lennib - 1; ) {
2465 nib += dissect_ulmap_ie(ie_tree, nib, lennib - nib, tvb);
2466 }
2467
2468 /* padding */
2469 if (nib & 1) {
2470 proto_tree_add_bytes_format(tree, hf_padding, tvb, NIBHI(nib,1), NULL, "Padding Nibble");
2471 nib++;
2472 }
2473
2474 /* CRC-16 is always appended */
2475 calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, NIB_TO_BYTE(nib)), NIB_TO_BYTE(nib));
2476 proto_tree_add_checksum(tree, tvb, NIBHI(nib,4), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
2477 ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
2478 /* nib += 4; */
2479
2480 sub_dl_ul_map = 0; /* clear flag */
2481 /* return length */
2482 return length;
2483 }
2484 #endif
2485
wimax_decode_dlmap_reduced_aas(tvbuff_t * tvb,packet_info * pinfo _U_,proto_tree * base_tree)2486 gint wimax_decode_dlmap_reduced_aas(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *base_tree)
2487 {
2488 /* 8.4.5.8.1 [2] Reduced AAS private DL-MAP */
2489 /* if there is an appended UL-MAP, also decode that */
2490 guint offset = 0;
2491 proto_item *ti = NULL;
2492 proto_tree *tree = NULL;
2493 gint ulmap_appended;
2494 gint length;
2495 gint tvb_len = tvb_reported_length(tvb);
2496 gint bit = 0;
2497 guint data, pad, mult;
2498 gint numie = 1;
2499 gint i;
2500 guint16 calculated_crc;
2501 gint smcs,cidi,dcdi,phyi,cqci;
2502
2503 length = tvb_len;
2504
2505 /* display MAC Reduced_AAS_Private_DL-MAP and create subtree */
2506 ti = proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_dlmap_decoder, tvb, offset, length, "Reduced_AAS_Private_DL-MAP");
2507 tree = proto_item_add_subtree(ti, ett_308a);
2508
2509 VBIT(data, 3, hf_308a_cmi);
2510 VBIT(ulmap_appended, 1, hf_308a_ulmap);
2511 VBIT(data, 2, hf_308a_type);
2512 VBIT(mult, 1, hf_308a_mult);
2513 VBIT(data, 1, hf_308a_rsv);
2514
2515 if (mult) {
2516 XBIT_HF_VALUE(numie, 8, hf_dlmap_reduced_aas_num_ie);
2517 }
2518
2519 for (i = 0; i < numie; i++) {
2520 XBIT_HF(2, hf_dlmap_reduced_aas_periodicity);
2521 XBIT_HF_VALUE(cidi, 1, hf_dlmap_reduced_aas_cid_included);
2522 XBIT_HF_VALUE(dcdi, 1, hf_dlmap_reduced_aas_dcd_count_included);
2523 XBIT_HF_VALUE(phyi, 1, hf_dlmap_reduced_aas_phy_modification_included);
2524 XBIT_HF_VALUE(cqci, 1, hf_dlmap_reduced_aas_cqich_control_indicator);
2525 XBIT_HF(2, hf_dlmap_reduced_aas_encoding_mode);
2526 XBIT_HF_VALUE(smcs, 1, hf_dlmap_reduced_aas_separate_mcs_enabled);
2527
2528 if (smcs) {
2529 XBIT_HF(10, hf_dlmap_reduced_aas_duration);
2530 XBIT_HF(4, hf_dlmap_reduced_aas_diuc);
2531 XBIT_HF(2, hf_dlmap_reduced_aas_repetition_coding_indication);
2532 }
2533 if (cidi) {
2534 XBIT_HF(16, hf_dlmap_reduced_aas_cid);
2535 }
2536 if (cqci) {
2537 XBIT_HF(6, hf_dlmap_reduced_aas_allocation_index);
2538 XBIT_HF(3, hf_dlmap_reduced_aas_report_period);
2539 XBIT_HF(3, hf_dlmap_reduced_aas_frame_offset);
2540 XBIT_HF(4, hf_dlmap_reduced_aas_report_duration);
2541 XBIT_HF(2, hf_dlmap_reduced_aas_cqi_measurement_type);
2542 XBIT_HF(2, hf_dlmap_reserved_uint);
2543 }
2544 if (dcdi) {
2545 XBIT_HF(8, hf_dlmap_reduced_aas_dcd_count);
2546 }
2547 if (phyi) {
2548 XBIT_HF(1, hf_dlmap_reduced_aas_preamble_select);
2549 XBIT_HF(4, hf_dlmap_reduced_aas_preamble_shift_index);
2550 XBIT_HF(1, hf_dlmap_reduced_aas_pilot_pattern_modifier);
2551 XBIT_HF(2, hf_dlmap_reduced_aas_pilot_pattern_index);
2552 }
2553 XBIT_HF(3, hf_dlmap_reduced_aas_dl_frame_offset);
2554 if (fusc) {
2555 XBIT_HF(8, hf_dlmap_reduced_aas_zone_symbol_offset);
2556 }
2557 XBIT_HF(8, hf_dlmap_reduced_aas_ofdma_symbol_offset);
2558 if (tusc) {
2559 XBIT_HF(8, hf_dlmap_reduced_aas_subchannel_offset);
2560 XBIT_HF(5, hf_dlmap_reduced_aas_num_ofdma_triple_symbol);
2561 XBIT_HF(6, hf_dlmap_reduced_aas_num_subchannels);
2562 } else {
2563 XBIT_HF(6, hf_dlmap_reduced_aas_subchannel_offset);
2564 XBIT_HF(7, hf_dlmap_reduced_aas_num_ofdma_symbols);
2565 XBIT_HF(6, hf_dlmap_reduced_aas_num_subchannels);
2566 }
2567 XBIT_HF(4, hf_dlmap_reduced_aas_diuc_nep);
2568 if (harq) {
2569 XBIT_HF(1, hf_dlmap_reduced_aas_dl_harq_ack_bitmap);
2570 XBIT_HF(6, hf_dlmap_reduced_aas_ack_allocation_index);
2571 XBIT_HF(4, hf_dlmap_reduced_aas_acid);
2572 XBIT_HF(1, hf_dlmap_reduced_aas_ai_sn);
2573 if (ir_type) {
2574 XBIT_HF(4, hf_dlmap_reduced_aas_nsch);
2575 XBIT_HF(2, hf_dlmap_reduced_aas_spid);
2576 XBIT_HF(2, hf_dlmap_reserved_uint);
2577 }
2578 }
2579 XBIT_HF(2, hf_dlmap_reduced_aas_repetition_coding_indication);
2580 if (ulmap_appended) {
2581 /* offset and length are in bits */
2582 bit += wimax_decode_ulmap_reduced_aas(tree, offset, length*8, tvb);
2583 }
2584 XBIT_HF(3, hf_dlmap_reserved_uint);
2585 }
2586
2587 /* padding */
2588 pad = BIT_PADDING(bit,8);
2589 if (pad) {
2590 proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,pad), NULL, "%d bits",pad);
2591 bit += pad;
2592 }
2593
2594 /* CRC-16 is always appended */
2595 calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
2596 proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
2597 ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
2598 bit += 16;
2599
2600 return BIT_TO_BYTE(bit) - offset;
2601 }
2602
2603 /* Register Wimax Mac Payload Protocol and Dissector */
proto_register_mac_mgmt_msg_dlmap(void)2604 void proto_register_mac_mgmt_msg_dlmap(void)
2605 {
2606 /* DL-MAP fields display */
2607 static hf_register_info hf[] =
2608 {
2609 {
2610 &hf_dlmap_bsid,
2611 {
2612 "Base Station ID", "wmx.dlmap.bsid",
2613 FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
2614 }
2615 },
2616 {
2617 &hf_dlmap_dcd,
2618 {
2619 "DCD Count", "wmx.dlmap.dcd",
2620 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2621 }
2622 },
2623 #if 0
2624 {
2625 &hf_dlmap_fch_expected,
2626 {
2627 "FCH Expected", "wmx.dlmap.fch_expected",
2628 FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL
2629 }
2630 },
2631 {
2632 &hf_dlmap_ie,
2633 {
2634 "DL-MAP IE", "wmx.dlmap.ie",
2635 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2636 }
2637 },
2638 #endif
2639 {
2640 &hf_dlmap_ie_boosting,
2641 {
2642 "Boosting", "wmx.dlmap.ie.boosting",
2643 FT_UINT32, BASE_DEC, VALS(boost_msgs), 0x00038000, NULL, HFILL
2644 }
2645 },
2646 {
2647 &hf_dlmap_ie_boosting2,
2648 {
2649 "Boosting", "wmx.dlmap.ie.boosting",
2650 FT_UINT32, BASE_DEC, VALS(boost_msgs), 0x0000E000, NULL, HFILL
2651 }
2652 },
2653 {
2654 &hf_dlmap_ie_cid,
2655 {
2656 "CID", "wmx.dlmap.ie.cid",
2657 FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL
2658 }
2659 },
2660 {
2661 &hf_dlmap_ie_diuc,
2662 {
2663 "DIUC", "wmx.dlmap.ie.diuc",
2664 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2665 }
2666 },
2667 {
2668 &hf_dlmap_ie_diuc_ext,
2669 {
2670 "Extended DIUC", "wmx.dlmap.ie.ext_diuc",
2671 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2672 }
2673 },
2674 {
2675 &hf_dlmap_ie_diuc_ext2,
2676 {
2677 "Extended-2 DIUC", "wmx.dlmap.ie.ext2_diuc",
2678 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2679 }
2680 },
2681 {
2682 &hf_dlmap_ie_reserved_extended2_duic,
2683 {
2684 "Reserved Extended-2 DIUC", "wmx.dlmap.ie.ext2_diuc_reserved",
2685 FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
2686 }
2687 },
2688 {
2689 &hf_dlmap_ie_reserved_extended_duic,
2690 {
2691 "Reserved Extended DIUC", "wmx.dlmap.ie.ext_diuc_reserved",
2692 FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
2693 }
2694 },
2695 {
2696 &hf_dlmap_ie_length,
2697 {
2698 "Length", "wmx.dlmap.ie.length",
2699 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2700 }
2701 },
2702 {
2703 &hf_dlmap_ie_bitmap,
2704 {
2705 "Bitmap", "wmx.dlmap.ie.bitmap",
2706 FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL
2707 }
2708 },
2709 {
2710 &hf_dlmap_ie_bitmap_cqi,
2711 {
2712 "CQI/ACK/Periodic Ranging region NI", "wmx.dlmap.ie.bitmap.cqi",
2713 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2714 }
2715 },
2716 {
2717 &hf_dlmap_ie_bitmap_pusc,
2718 {
2719 "PUSC region NI", "wmx.dlmap.ie.bitmap.pusc",
2720 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2721 }
2722 },
2723 {
2724 &hf_dlmap_ie_bitmap_opt_pusc,
2725 {
2726 "Optional PUSC region NI", "wmx.dlmap.ie.bitmap.opt_pusc",
2727 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2728 }
2729 },
2730 {
2731 &hf_dlmap_ie_bitmap_amc,
2732 {
2733 "AMC region NI", "wmx.dlmap.ie.bitmap.amc",
2734 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2735 }
2736 },
2737 {
2738 &hf_dlmap_ie_bitmap_aas,
2739 {
2740 "AAS region NI", "wmx.dlmap.ie.bitmap.aas",
2741 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2742 }
2743 },
2744 {
2745 &hf_dlmap_ie_bitmap_periodic_ranging,
2746 {
2747 "Periodic Ranging region NI", "wmx.dlmap.ie.bitmap.periodic_ranging",
2748 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2749 }
2750 },
2751 {
2752 &hf_dlmap_ie_bitmap_sounding,
2753 {
2754 "Sounding region NI", "wmx.dlmap.ie.bitmap.sounding",
2755 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2756 }
2757 },
2758 {
2759 &hf_dlmap_ie_bitmap_mimo,
2760 {
2761 "MIMO region NI", "wmx.dlmap.ie.bitmap.mimo",
2762 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2763 }
2764 },
2765 {
2766 &hf_dlmap_ie_ncid,
2767 {
2768 "N_CID", "wmx.dlmap.ie.ncid",
2769 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2770 }
2771 },
2772 {
2773 &hf_dlmap_ie_numsub,
2774 {
2775 "Number of Subchannels", "wmx.dlmap.ie.numsub",
2776 FT_UINT32, BASE_DEC, NULL, 0x000000FC, NULL, HFILL
2777 }
2778 },
2779 {
2780 &hf_dlmap_ie_numsym,
2781 {
2782 "Number of OFDMA Symbols", "wmx.dlmap.ie.numsym",
2783 FT_UINT32, BASE_DEC, NULL, 0x00007F00, NULL, HFILL
2784 }
2785 },
2786 {
2787 &hf_dlmap_ie_numsub2,
2788 {
2789 "Number of Subchannels", "wmx.dlmap.ie.numsub",
2790 FT_UINT32, BASE_DEC, NULL, 0x000000FC, NULL, HFILL
2791 }
2792 },
2793 {
2794 &hf_dlmap_ie_numsym2,
2795 {
2796 "Number of OFDMA Symbols", "wmx.dlmap.ie.numsym",
2797 FT_UINT32, BASE_DEC, NULL, 0x00001F00, NULL, HFILL
2798 }
2799 },
2800 {
2801 &hf_dlmap_ie_offsub,
2802 {
2803 "Subchannel Offset", "wmx.dlmap.ie.offsub",
2804 FT_UINT32, BASE_DEC, NULL, 0x00FC0000, NULL, HFILL
2805 }
2806 },
2807 {
2808 &hf_dlmap_ie_offsym,
2809 {
2810 "OFDMA Symbol Offset", "wmx.dlmap.ie.offsym",
2811 FT_UINT32, BASE_DEC, NULL, 0xFF000000, NULL, HFILL
2812 }
2813 },
2814 /* alt ie format */
2815 {
2816 &hf_dlmap_ie_offsub2,
2817 {
2818 "Subchannel Offset", "wmx.dlmap.ie.offsub",
2819 FT_UINT32, BASE_DEC, NULL, 0x00FF0000, NULL, HFILL
2820 }
2821 },
2822 {
2823 &hf_dlmap_ie_offsym2,
2824 {
2825 "OFDMA Symbol Offset", "wmx.dlmap.ie.offsym",
2826 FT_UINT32, BASE_DEC, NULL, 0xFF000000, NULL, HFILL
2827 }
2828 },
2829 {
2830 &hf_dlmap_ie_rep,
2831 {
2832 "Repetition Coding Indication", "wmx.dlmap.ie.rep",
2833 FT_UINT32, BASE_DEC, VALS(rep_msgs), 0x00000003, NULL, HFILL
2834 }
2835 },
2836 {
2837 &hf_dlmap_ie_rep2,
2838 {
2839 "Repetition Coding Indication", "wmx.dlmap.ie.rep",
2840 FT_UINT32, BASE_DEC, VALS(rep_msgs), 0x00000003, NULL, HFILL
2841 }
2842 },
2843 {
2844 &hf_dlmap_ofdma_sym,
2845 {
2846 "Num OFDMA Symbols", "wmx.dlmap.ofdma_sym",
2847 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2848 }
2849 },
2850 {
2851 &hf_dlmap_phy_fdur,
2852 {
2853 "Frame Duration Code", "wmx.dlmap.phy_fdur",
2854 FT_UINT8, BASE_HEX, NULL, 0x00, NULL, HFILL
2855 }
2856 },
2857 {
2858 &hf_dlmap_phy_fdur_ms,
2859 {
2860 "Frame Duration", "wmx.dlmap.phy_fdur",
2861 FT_UINT8, BASE_HEX, VALS(frame_duration), 0x00, NULL, HFILL
2862 }
2863 },
2864 {
2865 &hf_dlmap_phy_fdur_per_sec,
2866 {
2867 "Frames per second", "wmx.dlmap.phy_fdur",
2868 FT_UINT8, BASE_HEX, VALS(frames_per_second), 0x00, NULL, HFILL
2869 }
2870 },
2871 {
2872 &hf_dlmap_phy_fnum,
2873 {
2874 "Frame Number", "wmx.dlmap.phy_fnum",
2875 FT_UINT24, BASE_DEC, NULL, 0x0, NULL, HFILL
2876 }
2877 },
2878 {
2879 &hf_dlmapc_compr,
2880 {
2881 "Compressed map indicator", "wmx.dlmapc.compr",
2882 FT_UINT16, BASE_DEC, NULL, 0xe000, NULL, HFILL
2883 }
2884 },
2885 {
2886 &hf_dlmapc_count,
2887 {
2888 "DL IE Count", "wmx.dlmapc.count",
2889 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2890 }
2891 },
2892 {
2893 &hf_dlmapc_len,
2894 {
2895 "Map message length", "wmx.dlmapc.len",
2896 FT_UINT16, BASE_DEC, NULL, 0x07FF, NULL, HFILL
2897 }
2898 },
2899 {
2900 &hf_dlmapc_opid,
2901 {
2902 "Operator ID", "wmx.dlmapc.opid",
2903 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2904 }
2905 },
2906 {
2907 &hf_dlmapc_rsv,
2908 {
2909 "Reserved", "wmx.dlmapc.rsv",
2910 FT_UINT16, BASE_DEC, NULL, 0x0800, NULL, HFILL
2911 }
2912 },
2913 {
2914 &hf_dlmapc_secid,
2915 {
2916 "Sector ID", "wmx.dlmapc.secid",
2917 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2918 }
2919 },
2920 #if 0
2921 {
2922 &hf_dlmapc_sync,
2923 {
2924 "PHY Synchronization Field", "wmx.dlmapc.sync",
2925 FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL
2926 }
2927 },
2928 #endif
2929 {
2930 &hf_dlmapc_ulmap,
2931 {
2932 "UL-MAP appended", "wmx.dlmapc.ulmap",
2933 FT_UINT16, BASE_DEC, NULL, 0x1000, NULL, HFILL
2934 }
2935 },
2936 #if 0
2937 {
2938 &hf_dlmap_xie_diuc,
2939 {
2940 "Extended DIUC", "wmx.dlmapc.xie_diuc",
2941 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2942 }
2943 },
2944 {
2945 &hf_dlmap_xie_len,
2946 {
2947 "Length", "wmx.dlmapc.xie_len",
2948 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2949 }
2950 },
2951
2952 {
2953 &hf_109x_cmi,
2954 {
2955 "SUB-DL-UL-MAP map indicator", "wmx.dlul.cmi",
2956 FT_UINT16, BASE_DEC, NULL, 0xE000, NULL, HFILL
2957 }
2958 },
2959 {
2960 &hf_109x_dl,
2961 {
2962 "DL HARQ ACK offset", "wmx.dlul.dl",
2963 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2964 }
2965 },
2966 {
2967 &hf_109x_dlie,
2968 {
2969 "DL IE Count", "wmx.dlul.dlie",
2970 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
2971 }
2972 },
2973 {
2974 &hf_109x_haoi,
2975 {
2976 "HARQ ACK offset indicator", "wmx.dlul.haoi",
2977 FT_UINT16, BASE_DEC, NULL, 0x0001, NULL, HFILL
2978 }
2979 },
2980 {
2981 &hf_109x_len,
2982 {
2983 "Map message length - The length is limited to 735 bytes at most", "wmx.dlul.len",
2984 FT_UINT16, BASE_DEC, NULL, 0x1FF8, NULL, HFILL
2985 }
2986 },
2987 {
2988 &hf_109x_rcid,
2989 {
2990 "RCID_Type", "wmx.dlul.rcid",
2991 FT_UINT16, BASE_DEC, NULL, 0x0006, NULL, HFILL
2992 }
2993 },
2994 {
2995 &hf_109x_subofs,
2996 {
2997 "Subchannel offset", "wmx.dlul.subofs",
2998 FT_UINT8, BASE_DEC, NULL, 0xFE, NULL, HFILL
2999 }
3000 },
3001 {
3002 &hf_109x_symofs,
3003 {
3004 "OFDMA Symbol offset of subsequent sub-bursts "
3005 "in this Sub-DL-UL-MAP message with reference to "
3006 "the start of UL sub-frame.", "wmx.dlul.symofs",
3007 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
3008 }
3009 },
3010 {
3011 &hf_109x_rsv,
3012 {
3013 "Reserved", "wmx.dlul.rsv",
3014 FT_UINT8, BASE_DEC, NULL, 0x01, NULL, HFILL
3015 }
3016 },
3017 {
3018 &hf_109x_ul,
3019 {
3020 "UL HARQ ACK offset", "wmx.dlul.ul",
3021 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
3022 }
3023 },
3024 #endif
3025 {
3026 &hf_308a_cmi,
3027 {
3028 "Compressed map indicator", "wmx.dlmap.reduced_aas_private.cmi",
3029 FT_UINT8, BASE_DEC, NULL, 0xe0, NULL, HFILL
3030 }
3031 },
3032 {
3033 &hf_308a_mult,
3034 {
3035 "Multiple IE", "wmx.dlmap.reduced_aas_private.mult",
3036 FT_UINT8, BASE_DEC, NULL, 0x02, NULL, HFILL
3037 }
3038 },
3039 {
3040 &hf_308a_rsv,
3041 {
3042 "Reserved", "wmx.dlmap.reduced_aas_private.rsv",
3043 FT_UINT8, BASE_DEC, NULL, 0x01, NULL, HFILL
3044 }
3045 },
3046 {
3047 &hf_308a_type,
3048 {
3049 "Compressed Map Type", "wmx.dlmap.reduced_aas_private.type",
3050 FT_UINT8, BASE_DEC, NULL, 0x0d, NULL, HFILL
3051 }
3052 },
3053 {
3054 &hf_308a_ulmap,
3055 {
3056 "UL-MAP appended", "wmx.dlmap.reduced_aas_private.ulmap",
3057 FT_UINT8, BASE_DEC, NULL, 0x10, NULL, HFILL
3058 }
3059 },
3060 {
3061 &hf_mac_header_compress_dlmap_crc,
3062 {
3063 "CRC", "wmx.compress_dlmap_crc",
3064 FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL
3065 }
3066 },
3067 {
3068 &hf_mac_header_compress_dlmap_crc_status,
3069 {
3070 "CRC Status", "wmx.compress_dlmap_crc.status",
3071 FT_UINT8, BASE_NONE, VALS(plugin_proto_checksum_vals), 0x0, NULL, HFILL
3072 }
3073 },
3074 {
3075 &hf_crc16,
3076 {
3077 "CRC-16", "wmx.dlmap.crc16",
3078 FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL
3079 }
3080 },
3081 {
3082 &hf_crc16_status,
3083 {
3084 "CRC-16 Status", "wmx.dlmap.crc16.status",
3085 FT_UINT8, BASE_NONE, VALS(plugin_proto_checksum_vals), 0x0, NULL, HFILL
3086 }
3087 },
3088 {
3089 &hf_padding,
3090 {
3091 "Padding", "wmx.dlmap.padding",
3092 FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
3093 }
3094 },
3095 {
3096 &hf_cid_mask,
3097 {
3098 "CID Mask", "wmx.dlmap.cid_mask",
3099 FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
3100 }
3101 },
3102 {
3103 &hf_reserved,
3104 {
3105 "Reserved", "wmx.dlmap.reserved",
3106 FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
3107 }
3108 },
3109 /* Generated via "one time" script to help create filterable fields */
3110 { &hf_dlmap_rcid_ie_cid, { "CID", "wmx.dlmap.rcid_ie.cid", FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3111 { &hf_dlmap_rcid_ie_prefix, { "Prefix", "wmx.dlmap.rcid_ie.prefix", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3112 { &hf_dlmap_rcid_ie_cid11, { "CID11", "wmx.dlmap.rcid_ie.cid11", FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3113 { &hf_dlmap_rcid_ie_cid7, { "CID7", "wmx.dlmap.rcid_ie.cid7", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3114 { &hf_dlmap_rcid_ie_cid3, { "CID3", "wmx.dlmap.rcid_ie.cid3", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3115 { &hf_dlmap_dedicated_dl_control_length, { "Length", "wmx.dlmap.dedicated_dl_control.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3116 { &hf_dlmap_dedicated_dl_control_control_header, { "Control Header", "wmx.dlmap.dedicated_dl_control.control_header", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3117 { &hf_dlmap_dedicated_dl_control_num_sdma_layers, { "Num SDMA Layers", "wmx.dlmap.dedicated_dl_control.num_sdma_layers", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3118 { &hf_dlmap_dedicated_mimo_dl_control_length, { "Length (nibbles)", "wmx.dlmap.dedicated_mimo_dl_control.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3119 { &hf_dlmap_dedicated_mimo_dl_control_control_header_mimo_control_info, { "Control Header (MIMO Control Info)", "wmx.dlmap.dedicated_mimo_dl_control.control_header_mimo_control_info", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3120 { &hf_dlmap_dedicated_mimo_dl_control_control_header_cqi_control_info, { "Control Header (CQI Control Info)", "wmx.dlmap.dedicated_mimo_dl_control.control_header_cqi_control_info", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3121 { &hf_dlmap_dedicated_mimo_dl_control_control_header_closed_mimo_control_info, { "Control Header (Closed MIMO Control Info)", "wmx.dlmap.dedicated_mimo_dl_control.control_header_closed_mimo_control_info", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3122 { &hf_dlmap_dedicated_mimo_dl_control_n_layer, { "N_layer", "wmx.dlmap.dedicated_mimo_dl_control.n_layer", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3123 { &hf_dlmap_dedicated_mimo_dl_control_matrix, { "Matrix", "wmx.dlmap.dedicated_mimo_dl_control.matrix", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3124 { &hf_dlmap_dedicated_mimo_dl_control_num_beamformed_streams, { "Num_Beamformed_Streams", "wmx.dlmap.dedicated_mimo_dl_control.num_beamformed_streams", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3125 { &hf_dlmap_dedicated_mimo_dl_control_period, { "Period", "wmx.dlmap.dedicated_mimo_dl_control.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3126 { &hf_dlmap_dedicated_mimo_dl_control_frame_offset, { "Frame Offset", "wmx.dlmap.dedicated_mimo_dl_control.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3127 { &hf_dlmap_dedicated_mimo_dl_control_duration, { "Duration", "wmx.dlmap.dedicated_mimo_dl_control.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3128 { &hf_dlmap_dedicated_mimo_dl_control_allocation_index, { "Allocation Index", "wmx.dlmap.dedicated_mimo_dl_control.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3129 { &hf_dlmap_dedicated_mimo_dl_control_cqich_num, { "CQICH_Num", "wmx.dlmap.dedicated_mimo_dl_control.cqich_num", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3130 { &hf_dlmap_dedicated_mimo_dl_control_feedback_type, { "Feedback type", "wmx.dlmap.dedicated_mimo_dl_control.feedback_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3131 { &hf_dlmap_dedicated_mimo_dl_control_antenna_grouping_index, { "Antenna Grouping Index", "wmx.dlmap.dedicated_mimo_dl_control.antenna_grouping_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3132 { &hf_dlmap_dedicated_mimo_dl_control_num_stream, { "Num_stream", "wmx.dlmap.dedicated_mimo_dl_control.num_stream", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3133 { &hf_dlmap_dedicated_mimo_dl_control_antenna_selection_index, { "Antenna Selection Index", "wmx.dlmap.dedicated_mimo_dl_control.antenna_selection_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3134 { &hf_dlmap_dedicated_mimo_dl_control_codebook_precoding_index, { "Codebook Precoding Index", "wmx.dlmap.dedicated_mimo_dl_control.codebook_precoding_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3135 { &hf_dlmap_n_sub_burst_isi, { "N sub burst[ISI]", "wmx.dlmap.n_sub_burst_isi", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3136 { &hf_dlmap_harq_chase_n_ack_channel, { "N ACK channel", "wmx.dlmap.harq_chase.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3137 { &hf_dlmap_harq_chase_duration, { "Duration", "wmx.dlmap.harq_chase.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3138 { &hf_dlmap_harq_chase_sub_burst_diuc_indicator, { "Sub-Burst DIUC Indicator", "wmx.dlmap.harq_chase.sub_burst_diuc_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3139 { &hf_dlmap_reserved_uint, { "Reserved", "wmx.dlmap.reserved.uint", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3140 { &hf_dlmap_harq_chase_diuc, { "DIUC", "wmx.dlmap.harq_chase.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3141 { &hf_dlmap_harq_chase_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.harq_chase.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3142 { &hf_dlmap_harq_chase_acid, { "ACID", "wmx.dlmap.harq_chase.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3143 { &hf_dlmap_harq_chase_ai_sn, { "AI_SN", "wmx.dlmap.harq_chase.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3144 { &hf_dlmap_harq_chase_ack_disable, { "ACK disable", "wmx.dlmap.harq_chase.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3145 { &hf_dlmap_harq_chase_dedicated_dl_control_indicator, { "Dedicated DL Control Indicator", "wmx.dlmap.harq_chase.dedicated_dl_control_indicator", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3146 { &hf_dlmap_harq_chase_allocation_index, { "Allocation Index", "wmx.dlmap.harq_chase.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3147 { &hf_dlmap_harq_chase_period, { "Period (p)", "wmx.dlmap.harq_chase.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3148 { &hf_dlmap_harq_chase_frame_offset, { "Frame offset", "wmx.dlmap.harq_chase.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3149 { &hf_dlmap_harq_ir_ctc_n_ack_channel, { "N ACK channel", "wmx.dlmap.harq_ir_ctc.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3150 { &hf_dlmap_harq_ir_ctc_nep, { "N(EP)", "wmx.dlmap.harq_ir_ctc.n_ep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3151 { &hf_dlmap_harq_ir_ctc_nsch, { "N(SCH)", "wmx.dlmap.harq_ir_ctc.n_sch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3152 { &hf_dlmap_harq_ir_ctc_spid, { "SPID", "wmx.dlmap.harq_ir_ctc.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3153 { &hf_dlmap_harq_ir_ctc_acid, { "ACID", "wmx.dlmap.harq_ir_ctc.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3154 { &hf_dlmap_harq_ir_ctc_ai_sn, { "AI_SN", "wmx.dlmap.harq_ir_ctc.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3155 { &hf_dlmap_harq_ir_ctc_ack_disable, { "ACK disable", "wmx.dlmap.harq_ir_ctc.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3156 { &hf_dlmap_harq_ir_ctc_dedicated_dl_control_indicator, { "Dedicated DL Control Indicator", "wmx.dlmap.harq_ir_ctc.dedicated_dl_control_indicator", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3157 { &hf_dlmap_harq_ir_ctc_duration, { "Duration (d)", "wmx.dlmap.harq_ir_ctc.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3158 { &hf_dlmap_harq_ir_ctc_allocation_index, { "Allocation Index", "wmx.dlmap.harq_ir_ctc.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3159 { &hf_dlmap_harq_ir_ctc_period, { "Period (p)", "wmx.dlmap.harq_ir_ctc.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3160 { &hf_dlmap_harq_ir_ctc_frame_offset, { "Frame offset", "wmx.dlmap.harq_ir_ctc.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3161 { &hf_dlmap_harq_ir_cc_n_ack_channel, { "N ACK channel", "wmx.dlmap.harq_ir_cc.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3162 { &hf_dlmap_harq_ir_cc_duration, { "Duration", "wmx.dlmap.harq_ir_cc.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3163 { &hf_dlmap_harq_ir_cc_sub_burst_diuc_indicator, { "Sub-Burst DIUC Indicator", "wmx.dlmap.harq_ir_cc.sub_burst_diuc_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3164 { &hf_dlmap_harq_ir_cc_diuc, { "DIUC", "wmx.dlmap.harq_ir_cc.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3165 { &hf_dlmap_harq_ir_cc_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.harq_ir_cc.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3166 { &hf_dlmap_harq_ir_cc_acid, { "ACID", "wmx.dlmap.harq_ir_cc.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3167 { &hf_dlmap_harq_ir_cc_ai_sn, { "AI_SN", "wmx.dlmap.harq_ir_cc.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3168 { &hf_dlmap_harq_ir_cc_spid, { "SPID", "wmx.dlmap.harq_ir_cc.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3169 { &hf_dlmap_harq_ir_cc_ack_disable, { "ACK disable", "wmx.dlmap.harq_ir_cc.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3170 { &hf_dlmap_harq_ir_cc_dedicated_dl_control_indicator, { "Dedicated DL Control Indicator", "wmx.dlmap.harq_ir_cc.dedicated_dl_control_indicator", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3171 { &hf_dlmap_harq_ir_cc_allocation_index, { "Allocation Index", "wmx.dlmap.harq_ir_cc.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3172 { &hf_dlmap_harq_ir_cc_period, { "Period (p)", "wmx.dlmap.harq_ir_cc.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3173 { &hf_dlmap_harq_ir_cc_frame_offset, { "Frame offset", "wmx.dlmap.harq_ir_cc.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3174 { &hf_dlmap_mimo_dl_chase_harq_n_ack_channel, { "N ACK channel", "wmx.dlmap.mimo_dl_chase_harq.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3175 { &hf_dlmap_mimo_dl_chase_harq_mu_indicator, { "MU Indicator", "wmx.dlmap.mimo_dl_chase_harq.mu_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3176 { &hf_dlmap_mimo_dl_chase_harq_dedicated_mimo_dl_control_indicator, { "Dedicated MIMO DL Control Indicator", "wmx.dlmap.mimo_dl_chase_harq.dedicated_mimo_dl_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3177 { &hf_dlmap_mimo_dl_chase_harq_ack_disable, { "ACK Disable", "wmx.dlmap.mimo_dl_chase_harq.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3178 { &hf_dlmap_mimo_dl_chase_harq_duration, { "Duration", "wmx.dlmap.mimo_dl_chase_harq.duration", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3179 { &hf_dlmap_mimo_dl_chase_harq_diuc, { "DIUC", "wmx.dlmap.mimo_dl_chase_harq.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3180 { &hf_dlmap_mimo_dl_chase_harq_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.mimo_dl_chase_harq.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3181 { &hf_dlmap_mimo_dl_chase_harq_acid, { "ACID", "wmx.dlmap.mimo_dl_chase_harq.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3182 { &hf_dlmap_mimo_dl_chase_harq_ai_sn, { "AI_SN", "wmx.dlmap.mimo_dl_chase_harq.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3183 { &hf_dlmap_mimo_dl_ir_harq_n_ack_channel, { "N ACK channel", "wmx.dlmap.mimo_dl_ir_harq.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3184 { &hf_dlmap_mimo_dl_ir_harq_mu_indicator, { "MU Indicator", "wmx.dlmap.mimo_dl_ir_harq.mu_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3185 { &hf_dlmap_mimo_dl_ir_harq_dedicated_mimo_dl_control_indicator, { "Dedicated MIMO DL Control Indicator", "wmx.dlmap.mimo_dl_ir_harq.dedicated_mimo_dl_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3186 { &hf_dlmap_mimo_dl_ir_harq_ack_disable, { "ACK Disable", "wmx.dlmap.mimo_dl_ir_harq.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3187 { &hf_dlmap_mimo_dl_ir_harq_nsch, { "N(SCH)", "wmx.dlmap.mimo_dl_ir_harq.n_sch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3188 { &hf_dlmap_mimo_dl_ir_harq_nep, { "N(EP)", "wmx.dlmap.mimo_dl_ir_harq.n_ep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3189 { &hf_dlmap_mimo_dl_ir_harq_spid, { "SPID", "wmx.dlmap.mimo_dl_ir_harq.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3190 { &hf_dlmap_mimo_dl_ir_harq_acid, { "ACID", "wmx.dlmap.mimo_dl_ir_harq.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3191 { &hf_dlmap_mimo_dl_ir_harq_ai_sn, { "AI_SN", "wmx.dlmap.mimo_dl_ir_harq.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3192 { &hf_dlmap_mimo_dl_ir_harq_cc_n_ack_channel, { "N ACK channel", "wmx.dlmap.mimo_dl_ir_harq_cc.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3193 { &hf_dlmap_mimo_dl_ir_harq_cc_mu_indicator, { "MU Indicator", "wmx.dlmap.mimo_dl_ir_harq_cc.mu_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3194 { &hf_dlmap_mimo_dl_ir_harq_cc_dedicated_mimo_dl_control_indicator, { "Dedicated MIMO DL Control Indicator", "wmx.dlmap.mimo_dl_ir_harq_cc.dedicated_mimo_dl_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3195 { &hf_dlmap_mimo_dl_ir_harq_cc_ack_disable, { "ACK Disable", "wmx.dlmap.mimo_dl_ir_harq_cc.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3196 { &hf_dlmap_mimo_dl_ir_harq_cc_duration, { "Duration", "wmx.dlmap.mimo_dl_ir_harq_cc.duration", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3197 { &hf_dlmap_mimo_dl_ir_harq_cc_diuc, { "DIUC", "wmx.dlmap.mimo_dl_ir_harq_cc.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3198 { &hf_dlmap_mimo_dl_ir_harq_cc_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.mimo_dl_ir_harq_cc.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3199 { &hf_dlmap_mimo_dl_ir_harq_cc_acid, { "ACID", "wmx.dlmap.mimo_dl_ir_harq_cc.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3200 { &hf_dlmap_mimo_dl_ir_harq_cc_ai_sn, { "AI_SN", "wmx.dlmap.mimo_dl_ir_harq_cc.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3201 { &hf_dlmap_mimo_dl_ir_harq_cc_spid, { "SPID", "wmx.dlmap.mimo_dl_ir_harq_cc.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3202 { &hf_dlmap_mimo_dl_stc_harq_n_ack_channel, { "N ACK channel", "wmx.dlmap.mimo_dl_stc_harq.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3203 { &hf_dlmap_mimo_dl_stc_harq_tx_count, { "TX Count", "wmx.dlmap.mimo_dl_stc_harq.tx_count", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3204 { &hf_dlmap_mimo_dl_stc_harq_duration, { "Duration", "wmx.dlmap.mimo_dl_stc_harq.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3205 { &hf_dlmap_mimo_dl_stc_harq_sub_burst_offset_indication, { "Sub-burst offset indication", "wmx.dlmap.mimo_dl_stc_harq.sub_burst_offset_indication", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3206 { &hf_dlmap_mimo_dl_stc_harq_sub_burst_offset, { "Sub-burst offset", "wmx.dlmap.mimo_dl_stc_harq.sub_burst_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3207 { &hf_dlmap_mimo_dl_stc_harq_ack_disable, { "ACK Disable", "wmx.dlmap.mimo_dl_stc_harq.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3208 { &hf_dlmap_mimo_dl_stc_harq_dedicated_mimo_dl_control_indicator, { "Dedicated MIMO DL Control Indicator", "wmx.dlmap.mimo_dl_stc_harq.dedicated_mimo_dl_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3209 { &hf_dlmap_mimo_dl_stc_harq_diuc, { "DIUC", "wmx.dlmap.mimo_dl_stc_harq.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3210 { &hf_dlmap_mimo_dl_stc_harq_repetition_coding_indication, { "Repetition coding Indication", "wmx.dlmap.mimo_dl_stc_harq.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3211 { &hf_dlmap_mimo_dl_stc_harq_acid, { "ACID", "wmx.dlmap.mimo_dl_stc_harq.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3212 { &hf_dlmap_mbs_map_extended_2_diuc, { "Extended-2 DIUC", "wmx.dlmap.mbs_map.extended_2_diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3213 { &hf_dlmap_mbs_map_mbs_zone_identifier, { "MBS Zone identifier", "wmx.dlmap.mbs_map.mbs_zone_identifier", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3214 { &hf_dlmap_mbs_map_macro_diversity_enhanced, { "Macro diversity enhanced", "wmx.dlmap.mbs_map.macro_diversity_enhanced", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3215 { &hf_dlmap_mbs_map_permutation, { "Permutation", "wmx.dlmap.mbs_map.permutation", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3216 { &hf_dlmap_mbs_map_dl_permbase, { "DL_PermBase", "wmx.dlmap.mbs_map.dl_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3217 { &hf_dlmap_mbs_map_prbs_id, { "PRBS_ID", "wmx.dlmap.mbs_map.prbs_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3218 { &hf_dlmap_mbs_map_ofdma_symbol_offset, { "OFDMA_Symbol_Offset", "wmx.dlmap.mbs_map.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3219 { &hf_dlmap_mbs_map_diuc_change_indication, { "DIUC_change_indication", "wmx.dlmap.mbs_map.diuc_change_indication", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3220 { &hf_dlmap_mbs_map_boosting, { "Boosting", "wmx.dlmap.mbs_map.boosting", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3221 { &hf_dlmap_mbs_map_diuc, { "DIUC", "wmx.dlmap.mbs_map.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3222 { &hf_dlmap_mbs_map_num_subchannels, { "No. Subchannels", "wmx.dlmap.mbs_map.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3223 { &hf_dlmap_mbs_map_num_ofdma_symbols, { "No. OFDMA Symbols", "wmx.dlmap.mbs_map.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3224 { &hf_dlmap_mbs_map_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.mbs_map.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3225 { &hf_dlmap_mbs_map_cid, { "CID", "wmx.dlmap.mbs_map.cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3226 { &hf_dlmap_mbs_map_ofdma_symbols_offset, { "OFDMA Symbols Offset", "wmx.dlmap.mbs_map.ofdma_symbols_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3227 { &hf_dlmap_mbs_map_subchannel_offset, { "Subchannel offset", "wmx.dlmap.mbs_map.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3228 { &hf_dlmap_mbs_map_slc_3_indication, { "SLC_3_indication", "wmx.dlmap.mbs_map.slc_3_indication", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3229 { &hf_dlmap_mbs_map_next_mbs_map_ie_frame_offset, { "Next MBS_MAP_IE frame offset", "wmx.dlmap.mbs_map.next_mbs_map_ie_frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3230 { &hf_dlmap_skip_extended_2_diuc, { "Extended-2 DIUC", "wmx.dlmap.skip.extended_2_diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3231 { &hf_dlmap_skip_mode, { "Mode", "wmx.dlmap.skip.mode", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3232 { &hf_dlmap_harq_dl_map_extended_2_diuc, { "Extended-2 DIUC", "wmx.dlmap.harq_dl_map.extended_2_diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3233 { &hf_dlmap_harq_dl_map_rcid_type, { "RCID_Type", "wmx.dlmap.harq_dl_map.rcid_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3234 { &hf_dlmap_harq_dl_map_boosting, { "Boosting", "wmx.dlmap.harq_dl_map.boosting", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3235 { &hf_dlmap_harq_dl_map_region_id_use_indicator, { "Region_ID use indicator", "wmx.dlmap.harq_dl_map.region_id_use_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3236 { &hf_dlmap_harq_dl_map_ofdma_symbol_offset, { "OFDMA symbol offset", "wmx.dlmap.harq_dl_map.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3237 { &hf_dlmap_harq_dl_map_subchannel_offset, { "Subchannel offset", "wmx.dlmap.harq_dl_map.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3238 { &hf_dlmap_harq_dl_map_number_of_ofdma_symbols, { "Number of OFDMA symbols", "wmx.dlmap.harq_dl_map.number_of_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3239 { &hf_dlmap_harq_dl_map_number_of_subchannels, { "Number of subchannels", "wmx.dlmap.harq_dl_map.number_of_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3240 { &hf_dlmap_harq_dl_map_rectangular_sub_burst_indicator, { "Rectangular Sub-Burst Indicator", "wmx.dlmap.harq_dl_map.rectangular_sub_burst_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3241 { &hf_dlmap_harq_dl_map_region_id, { "Region_ID", "wmx.dlmap.harq_dl_map.region_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3242 { &hf_dlmap_harq_dl_map_mode, { "Mode", "wmx.dlmap.harq_dl_map.mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3243 { &hf_dlmap_harq_dl_map_sub_burst_ie_length, { "Sub-burst IE Length", "wmx.dlmap.harq_dl_map.sub_burst_ie_length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3244 { &hf_dlmap_harq_dl_map_reserved_mode, { "Reserved Mode", "wmx.dlmap.harq_dl_map.reserved_mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3245 { &hf_dlmap_harq_ack_bitmap_data, { "Bitmap data", "wmx.dlmap.harq_ack.bitmap_data", FT_BYTES, BASE_NONE, NULL, 0x00, NULL, HFILL }},
3246 { &hf_dlmap_enhanced_dl_map_extended_2_diuc, { "Extended-2 DIUC", "wmx.dlmap.enhanced_dl_map.extended_2_diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3247 { &hf_dlmap_enhanced_dl_map_num_assignment, { "Num_Assignment", "wmx.dlmap.enhanced_dl_map.num_assignment", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3248 { &hf_dlmap_enhanced_dl_map_n_cid, { "N_CID", "wmx.dlmap.enhanced_dl_map.n_cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3249 { &hf_dlmap_enhanced_dl_map_cid, { "CID", "wmx.dlmap.enhanced_dl_map.cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3250 { &hf_dlmap_enhanced_dl_map_diuc, { "DIUC", "wmx.dlmap.enhanced_dl_map.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3251 { &hf_dlmap_enhanced_dl_map_boosting, { "Boosting", "wmx.dlmap.enhanced_dl_map.boosting", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3252 { &hf_dlmap_enhanced_dl_map_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.enhanced_dl_map.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3253 { &hf_dlmap_enhanced_dl_map_region_id, { "Region_ID", "wmx.dlmap.enhanced_dl_map.region_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3254 { &hf_dlmap_aas_sdma_dl_extended_2_diuc, { "Extended-2 DIUC", "wmx.dlmap.aas_sdma_dl.extended_2_diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3255 { &hf_dlmap_aas_sdma_dl_rcid_type, { "RCID_Type", "wmx.dlmap.aas_sdma_dl.rcid_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3256 { &hf_dlmap_aas_sdma_dl_num_burst_region, { "Num_Burst_Region", "wmx.dlmap.aas_sdma_dl.num_burst_region", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3257 { &hf_dlmap_aas_sdma_dl_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.aas_sdma_dl.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3258 { &hf_dlmap_aas_sdma_dl_subchannel_offset, { "Subchannel offset", "wmx.dlmap.aas_sdma_dl.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3259 { &hf_dlmap_aas_sdma_dl_num_ofdma_triple_symbols, { "No. OFDMA triple symbols", "wmx.dlmap.aas_sdma_dl.num_ofdma_triple_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3260 { &hf_dlmap_aas_sdma_dl_num_subchannels, { "No. subchannels", "wmx.dlmap.aas_sdma_dl.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3261 { &hf_dlmap_aas_sdma_dl_number_of_users, { "Number of Users", "wmx.dlmap.aas_sdma_dl.number_of_users", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3262 { &hf_dlmap_aas_sdma_dl_encoding_mode, { "Encoding Mode", "wmx.dlmap.aas_sdma_dl.encoding_mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3263 { &hf_dlmap_aas_sdma_dl_cqich_allocation, { "CQICH Allocation", "wmx.dlmap.aas_sdma_dl.cqich_allocation", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3264 { &hf_dlmap_aas_sdma_dl_ackch_allocation, { "ACKCH Allocation", "wmx.dlmap.aas_sdma_dl.ackch_allocation", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3265 { &hf_dlmap_aas_sdma_dl_pilot_pattern_modifier, { "Pilot Pattern Modifier", "wmx.dlmap.aas_sdma_dl.pilot_pattern_modifier", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3266 { &hf_dlmap_aas_sdma_dl_preamble_modifier_index, { "Preamble Modifier Index", "wmx.dlmap.aas_sdma_dl.preamble_modifier_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3267 { &hf_dlmap_aas_sdma_dl_pilot_pattern, { "Pilot Pattern", "wmx.dlmap.aas_sdma_dl.pilot_pattern", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3268 { &hf_dlmap_aas_sdma_dl_diuc, { "DIUC", "wmx.dlmap.aas_sdma_dl.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3269 { &hf_dlmap_aas_sdma_dl_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.aas_sdma_dl.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3270 { &hf_dlmap_aas_sdma_dl_ack_ch_index, { "ACK CH Index", "wmx.dlmap.aas_sdma_dl.ack_ch_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3271 { &hf_dlmap_aas_sdma_dl_acid, { "ACID", "wmx.dlmap.aas_sdma_dl.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3272 { &hf_dlmap_aas_sdma_dl_ai_sn, { "AI_SN", "wmx.dlmap.aas_sdma_dl.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3273 { &hf_dlmap_aas_sdma_dl_nep, { "N(EP)", "wmx.dlmap.aas_sdma_dl.n_ep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3274 { &hf_dlmap_aas_sdma_dl_nsch, { "N(SCH)", "wmx.dlmap.aas_sdma_dl.n_sch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3275 { &hf_dlmap_aas_sdma_dl_spid, { "SPID", "wmx.dlmap.aas_sdma_dl.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3276 { &hf_dlmap_aas_sdma_dl_allocation_index, { "Allocation Index", "wmx.dlmap.aas_sdma_dl.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3277 { &hf_dlmap_aas_sdma_dl_period, { "Period (p)", "wmx.dlmap.aas_sdma_dl.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3278 { &hf_dlmap_aas_sdma_dl_frame_offset, { "Frame offset", "wmx.dlmap.aas_sdma_dl.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3279 { &hf_dlmap_aas_sdma_dl_duration, { "Duration (d)", "wmx.dlmap.aas_sdma_dl.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3280 { &hf_dlmap_channel_measurement_channel_nr, { "Channel Nr", "wmx.dlmap.channel_measurement.channel_nr", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3281 { &hf_dlmap_channel_measurement_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.channel_measurement.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3282 { &hf_dlmap_channel_measurement_cid, { "CID", "wmx.dlmap.channel_measurement.cid", FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3283 { &hf_dlmap_stc_zone_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.stc_zone.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3284 { &hf_dlmap_stc_zone_permutations, { "Permutations", "wmx.dlmap.stc_zone.permutations", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3285 { &hf_dlmap_stc_zone_use_all_sc_indicator, { "Use All SC indicator", "wmx.dlmap.stc_zone.use_all_sc_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3286 { &hf_dlmap_stc_zone_stc, { "STC", "wmx.dlmap.stc_zone.stc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3287 { &hf_dlmap_stc_zone_matrix_indicator, { "Matrix indicator", "wmx.dlmap.stc_zone.matrix_indicator", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3288 { &hf_dlmap_stc_zone_dl_permbase, { "DL_PermBase", "wmx.dlmap.stc_zone.dl_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3289 { &hf_dlmap_stc_zone_prbs_id, { "PRBS_ID", "wmx.dlmap.stc_zone.prbs_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3290 { &hf_dlmap_stc_zone_amc_type, { "AMC type", "wmx.dlmap.stc_zone.amc_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3291 { &hf_dlmap_stc_zone_midamble_presence, { "Midamble Presence", "wmx.dlmap.stc_zone.midamble_presence", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3292 { &hf_dlmap_stc_zone_midamble_boosting, { "Midamble Boosting", "wmx.dlmap.stc_zone.midamble_boosting", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3293 { &hf_dlmap_stc_zone_2_3_antenna_select, { "2/3 antenna select", "wmx.dlmap.stc_zone.2_3_antenna_select", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3294 { &hf_dlmap_stc_zone_dedicated_pilots, { "Dedicated Pilots", "wmx.dlmap.stc_zone.dedicated_pilots", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3295 { &hf_dlmap_aas_dl_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.aas_dl.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3296 { &hf_dlmap_aas_dl_permutation, { "Permutation", "wmx.dlmap.aas_dl.permutation", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3297 { &hf_dlmap_aas_dl_dl_permbase, { "DL_PermBase", "wmx.dlmap.aas_dl.dl_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3298 { &hf_dlmap_aas_dl_downlink_preamble_config, { "Downlink_preamble_config", "wmx.dlmap.aas_dl.downlink_preamble_config", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3299 { &hf_dlmap_aas_dl_preamble_type, { "Preamble type", "wmx.dlmap.aas_dl.preamble_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3300 { &hf_dlmap_aas_dl_prbs_id, { "PRBS_ID", "wmx.dlmap.aas_dl.prbs_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3301 { &hf_dlmap_aas_dl_diversity_map, { "Diversity Map", "wmx.dlmap.aas_dl.diversity_map", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3302 { &hf_dlmap_data_location_another_bs_segment, { "Segment", "wmx.dlmap.data_location_another_bs.segment", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3303 { &hf_dlmap_data_location_another_bs_used_subchannels, { "Used subchannels", "wmx.dlmap.data_location_another_bs.used_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3304 { &hf_dlmap_data_location_another_bs_diuc, { "DIUC", "wmx.dlmap.data_location_another_bs.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3305 { &hf_dlmap_data_location_another_bs_frame_advance, { "Frame Advance", "wmx.dlmap.data_location_another_bs.frame_advance", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3306 { &hf_dlmap_data_location_another_bs_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.data_location_another_bs.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3307 { &hf_dlmap_data_location_another_bs_subchannel_offset, { "Subchannel Offset", "wmx.dlmap.data_location_another_bs.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3308 { &hf_dlmap_data_location_another_bs_boosting, { "Boosting", "wmx.dlmap.data_location_another_bs.boosting", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3309 { &hf_dlmap_data_location_another_bs_preamble_index, { "Preamble Index", "wmx.dlmap.data_location_another_bs.preamble_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3310 { &hf_dlmap_data_location_another_bs_num_ofdma_symbols, { "No. OFDMA Symbols", "wmx.dlmap.data_location_another_bs.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3311 { &hf_dlmap_data_location_another_bs_num_subchannels, { "No. Subchannels", "wmx.dlmap.data_location_another_bs.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3312 { &hf_dlmap_data_location_another_bs_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.data_location_another_bs.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3313 { &hf_dlmap_data_location_another_bs_cid, { "CID", "wmx.dlmap.data_location_another_bs.cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3314 { &hf_dlmap_harq_map_pointer_diuc, { "DIUC", "wmx.dlmap.harq_map_pointer.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3315 { &hf_dlmap_harq_map_pointer_num_slots, { "No. Slots", "wmx.dlmap.harq_map_pointer.num_slots", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3316 { &hf_dlmap_harq_map_pointer_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.harq_map_pointer.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3317 { &hf_dlmap_harq_map_pointer_map_version, { "Map Version", "wmx.dlmap.harq_map_pointer.map_version", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3318 { &hf_dlmap_harq_map_pointer_idle_users, { "Idle users", "wmx.dlmap.harq_map_pointer.idle_users", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3319 { &hf_dlmap_harq_map_pointer_sleep_users, { "Sleep users", "wmx.dlmap.harq_map_pointer.sleep_users", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3320 { &hf_dlmap_harq_map_pointer_cid_mask_length, { "CID Mask Length", "wmx.dlmap.harq_map_pointer.cid_mask_length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3321 { &hf_dlmap_phymod_dl_preamble_modifier_type, { "Preamble Modifier Type", "wmx.dlmap.phymod_dl.preamble_modifier_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3322 { &hf_dlmap_phymod_dl_preamble_frequency_shift_index, { "Preamble frequency shift index", "wmx.dlmap.phymod_dl.preamble_frequency_shift_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3323 { &hf_dlmap_phymod_dl_preamble_time_shift_index, { "Preamble Time Shift Index", "wmx.dlmap.phymod_dl.preamble_time_shift_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3324 { &hf_dlmap_phymod_dl_pilot_pattern_modifier, { "Pilot Pattern Modifier", "wmx.dlmap.phymod_dl.pilot_pattern_modifier", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3325 { &hf_dlmap_phymod_dl_pilot_pattern_index, { "Pilot Pattern Index", "wmx.dlmap.phymod_dl.pilot_pattern_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3326 { &hf_dlmap_broadcast_ctrl_ptr_dcd_ucd_transmission_frame, { "DCD_UCD Transmission Frame", "wmx.dlmap.broadcast_ctrl_ptr.dcd_ucd_transmission_frame", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3327 { &hf_dlmap_broadcast_ctrl_ptr_skip_broadcast_system_update, { "Skip Broadcast_System_Update", "wmx.dlmap.broadcast_ctrl_ptr.skip_broadcast_system_update", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3328 { &hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_type, { "Broadcast_System_Update_Type", "wmx.dlmap.broadcast_ctrl_ptr.broadcast_system_update_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3329 { &hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_transmission_frame, { "Broadcast_System_Update_Transmission_Frame", "wmx.dlmap.broadcast_ctrl_ptr.broadcast_system_update_transmission_frame", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3330 { &hf_dlmap_dl_pusc_burst_allocation_cid, { "CID", "wmx.dlmap.dl_pusc_burst_allocation.cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3331 { &hf_dlmap_dl_pusc_burst_allocation_diuc, { "DIUC", "wmx.dlmap.dl_pusc_burst_allocation.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3332 { &hf_dlmap_dl_pusc_burst_allocation_segment, { "Segment", "wmx.dlmap.dl_pusc_burst_allocation.segment", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3333 { &hf_dlmap_dl_pusc_burst_allocation_boosting, { "Boosting", "wmx.dlmap.dl_pusc_burst_allocation.boosting", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3334 { &hf_dlmap_dl_pusc_burst_allocation_idcell, { "IDcell", "wmx.dlmap.dl_pusc_burst_allocation.idcell", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3335 { &hf_dlmap_dl_pusc_burst_allocation_dl_permbase, { "DL_PermBase", "wmx.dlmap.dl_pusc_burst_allocation.dl_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3336 { &hf_dlmap_dl_pusc_burst_allocation_prbs_id, { "PRBS_ID", "wmx.dlmap.dl_pusc_burst_allocation.prbs_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3337 { &hf_dlmap_dl_pusc_burst_allocation_repetition_coding_indication, { "Repetition coding indication", "wmx.dlmap.dl_pusc_burst_allocation.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3338 { &hf_dlmap_dl_pusc_burst_allocation_used_subchannels, { "Used Subchannels", "wmx.dlmap.dl_pusc_burst_allocation.used_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3339 { &hf_dlmap_dl_pusc_burst_allocation_ofdma_symbol_offset, { "OFDMA symbol offset", "wmx.dlmap.dl_pusc_burst_allocation.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3340 { &hf_dlmap_dl_pusc_burst_allocation_num_ofdma_symbols, { "# OFDMA symbols", "wmx.dlmap.dl_pusc_burst_allocation.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3341 { &hf_dlmap_dl_pusc_burst_allocation_subchannel_offset, { "Subchannel offset", "wmx.dlmap.dl_pusc_burst_allocation.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3342 { &hf_dlmap_dl_pusc_burst_allocation_num_subchannels, { "# subchannels", "wmx.dlmap.dl_pusc_burst_allocation.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3343 { &hf_dlmap_pusc_asca_alloc_diuc, { "DIUC", "wmx.dlmap.pusc_asca_alloc.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3344 { &hf_dlmap_pusc_asca_alloc_short_basic_cid, { "Short Basic CID", "wmx.dlmap.pusc_asca_alloc.short_basic_cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3345 { &hf_dlmap_pusc_asca_alloc_ofdma_symbol_offset, { "OFDMA Symbol offset", "wmx.dlmap.pusc_asca_alloc.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3346 { &hf_dlmap_pusc_asca_alloc_subchannel_offset, { "Subchannel offset", "wmx.dlmap.pusc_asca_alloc.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3347 { &hf_dlmap_pusc_asca_alloc_num_ofdma_symbols, { "# OFDMA Symbols", "wmx.dlmap.pusc_asca_alloc.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3348 { &hf_dlmap_pusc_asca_alloc_num_symbols, { "# Symbols", "wmx.dlmap.pusc_asca_alloc.num_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3349 { &hf_dlmap_pusc_asca_alloc_repetition_coding_information, { "Repetition Coding Information", "wmx.dlmap.pusc_asca_alloc.repetition_coding_information", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3350 { &hf_dlmap_pusc_asca_alloc_permutation_id, { "Permutation ID", "wmx.dlmap.pusc_asca_alloc.permutation_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3351 { &hf_dlmap_reduced_aas_num_ie, { "NUM IE", "wmx.dlmap.reduced_aas.num_ie", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3352 { &hf_dlmap_reduced_aas_periodicity, { "Periodicity", "wmx.dlmap.reduced_aas.periodicity", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3353 { &hf_dlmap_reduced_aas_cid_included, { "CID Included", "wmx.dlmap.reduced_aas.cid_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3354 { &hf_dlmap_reduced_aas_dcd_count_included, { "DCD Count Included", "wmx.dlmap.reduced_aas.dcd_count_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3355 { &hf_dlmap_reduced_aas_phy_modification_included, { "PHY modification included", "wmx.dlmap.reduced_aas.phy_modification_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3356 { &hf_dlmap_reduced_aas_cqich_control_indicator, { "CQICH control indicator", "wmx.dlmap.reduced_aas.cqich_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3357 { &hf_dlmap_reduced_aas_encoding_mode, { "Encoding Mode", "wmx.dlmap.reduced_aas.encoding_mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3358 { &hf_dlmap_reduced_aas_separate_mcs_enabled, { "Separate MCS Enabled", "wmx.dlmap.reduced_aas.separate_mcs_enabled", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3359 { &hf_dlmap_reduced_aas_duration, { "Duration", "wmx.dlmap.reduced_aas.duration", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3360 { &hf_dlmap_reduced_aas_diuc, { "DIUC", "wmx.dlmap.reduced_aas.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3361 { &hf_dlmap_reduced_aas_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.reduced_aas.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3362 { &hf_dlmap_reduced_aas_cid, { "CID", "wmx.dlmap.reduced_aas.cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3363 { &hf_dlmap_reduced_aas_allocation_index, { "Allocation Index", "wmx.dlmap.reduced_aas.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3364 { &hf_dlmap_reduced_aas_report_period, { "Report Period", "wmx.dlmap.reduced_aas.report_period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3365 { &hf_dlmap_reduced_aas_frame_offset, { "Frame Offset", "wmx.dlmap.reduced_aas.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3366 { &hf_dlmap_reduced_aas_report_duration, { "Report Duration", "wmx.dlmap.reduced_aas.report_duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3367 { &hf_dlmap_reduced_aas_cqi_measurement_type, { "CQI Measurement Type", "wmx.dlmap.reduced_aas.cqi_measurement_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3368 { &hf_dlmap_reduced_aas_dcd_count, { "DCD Count", "wmx.dlmap.reduced_aas.dcd_count", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3369 { &hf_dlmap_reduced_aas_preamble_select, { "Preamble Select", "wmx.dlmap.reduced_aas.preamble_select", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3370 { &hf_dlmap_reduced_aas_preamble_shift_index, { "Preamble Shift Index", "wmx.dlmap.reduced_aas.preamble_shift_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3371 { &hf_dlmap_reduced_aas_pilot_pattern_modifier, { "Pilot Pattern Modifier", "wmx.dlmap.reduced_aas.pilot_pattern_modifier", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3372 { &hf_dlmap_reduced_aas_pilot_pattern_index, { "Pilot Pattern Index", "wmx.dlmap.reduced_aas.pilot_pattern_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3373 { &hf_dlmap_reduced_aas_dl_frame_offset, { "DL Frame Offset", "wmx.dlmap.reduced_aas.dl_frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3374 { &hf_dlmap_reduced_aas_zone_symbol_offset, { "Zone Symbol Offset", "wmx.dlmap.reduced_aas.zone_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3375 { &hf_dlmap_reduced_aas_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.reduced_aas.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3376 { &hf_dlmap_reduced_aas_subchannel_offset, { "Subchannel Offset", "wmx.dlmap.reduced_aas.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3377 { &hf_dlmap_reduced_aas_num_ofdma_triple_symbol, { "No. OFDMA triple symbol", "wmx.dlmap.reduced_aas.num_ofdma_triple_symbol", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3378 { &hf_dlmap_reduced_aas_num_subchannels, { "No. subchannels", "wmx.dlmap.reduced_aas.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3379 { &hf_dlmap_reduced_aas_num_ofdma_symbols, { "No. OFDMA symbols", "wmx.dlmap.reduced_aas.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3380 { &hf_dlmap_reduced_aas_diuc_nep, { "DIUC/N(EP)", "wmx.dlmap.reduced_aas.diuc_nep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3381 { &hf_dlmap_reduced_aas_dl_harq_ack_bitmap, { "DL HARQ ACK bitmap", "wmx.dlmap.reduced_aas.dl_harq_ack_bitmap", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3382 { &hf_dlmap_reduced_aas_ack_allocation_index, { "ACK Allocation Index", "wmx.dlmap.reduced_aas.ack_allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3383 { &hf_dlmap_reduced_aas_acid, { "ACID", "wmx.dlmap.reduced_aas.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3384 { &hf_dlmap_reduced_aas_ai_sn, { "AI_SN", "wmx.dlmap.reduced_aas.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3385 { &hf_dlmap_reduced_aas_nsch, { "N(SCH)", "wmx.dlmap.reduced_aas.nsch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3386 { &hf_dlmap_reduced_aas_spid, { "SPID", "wmx.dlmap.reduced_aas.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
3387 };
3388
3389 /* Setup protocol subtree array */
3390 static gint *ett[] =
3391 {
3392 &ett_dlmap,
3393 &ett_dlmap_ie,
3394 /* &ett_dlmap_c_ie, */
3395 &ett_109x,
3396 &ett_109x_dl,
3397 &ett_109x_ul,
3398 &ett_275_phy,
3399 &ett_275_1,
3400 &ett_277,
3401 &ett_277b,
3402 &ett_278,
3403 &ett_279,
3404 &ett_280,
3405 &ett_281,
3406 &ett_282,
3407 &ett_283,
3408 &ett_284,
3409 &ett_285,
3410 &ett_286,
3411 &ett_286a,
3412 &ett_286b,
3413 &ett_286c,
3414 &ett_286d,
3415 &ett_286e,
3416 &ett_286f,
3417 &ett_286g,
3418 &ett_286h,
3419 &ett_286i,
3420 &ett_286j,
3421 &ett_286k,
3422 &ett_286l,
3423 &ett_286m,
3424 &ett_286n,
3425 &ett_286o,
3426 &ett_286p,
3427 &ett_286q,
3428 &ett_286r,
3429 &ett_286s,
3430 &ett_286t,
3431 &ett_286u,
3432 &ett_286v,
3433 &ett_286w,
3434 &ett_286x,
3435 &ett_286y,
3436 &ett_286z,
3437 &ett_305,
3438 /* &ett_305_dl, */
3439 &ett_308a,
3440 };
3441
3442 static ei_register_info ei[] = {
3443 { &ei_dlmap_not_implemented, { "wmx.dlmap.not_implemented", PI_UNDECODED, PI_WARN, "Not implemented", EXPFILL }},
3444 { &ei_crc16, { "wmx.dlmap.bad_checksum", PI_CHECKSUM, PI_ERROR, "Bad checksum", EXPFILL }},
3445 { &ei_mac_header_compress_dlmap_crc, { "wmx.compress_dlmap.bad_checksum", PI_CHECKSUM, PI_ERROR, "Bad checksum", EXPFILL }},
3446 { &ei_mac_header_invalid_length, { "wmx.compress_dlmap.invalid_length", PI_MALFORMED, PI_ERROR, "Invalid length", EXPFILL }},
3447 };
3448
3449 expert_module_t* expert_mac_mgmt_msg_dlmap;
3450
3451 proto_mac_mgmt_msg_dlmap_decoder = proto_register_protocol (
3452 "WiMax DLMAP Messages", /* name */
3453 "WiMax DLMAP", /* short name */
3454 "wmx.dlmap" /* abbrev */
3455 );
3456
3457 proto_register_field_array(proto_mac_mgmt_msg_dlmap_decoder, hf, array_length(hf));
3458 proto_register_subtree_array(ett, array_length(ett));
3459 expert_mac_mgmt_msg_dlmap = expert_register_protocol(proto_mac_mgmt_msg_dlmap_decoder);
3460 expert_register_field_array(expert_mac_mgmt_msg_dlmap, ei, array_length(ei));
3461 }
3462
proto_reg_handoff_mac_mgmt_msg_dlmap(void)3463 void proto_reg_handoff_mac_mgmt_msg_dlmap(void)
3464 {
3465 dissector_handle_t dlmap_handle;
3466
3467 dlmap_handle = create_dissector_handle(dissect_mac_mgmt_msg_dlmap_decoder, proto_mac_mgmt_msg_dlmap_decoder);
3468 dissector_add_uint("wmx.mgmtmsg", MAC_MGMT_MSG_DL_MAP, dlmap_handle);
3469 }
3470
3471 /*
3472 * Editor modelines - https://www.wireshark.org/tools/modelines.html
3473 *
3474 * Local variables:
3475 * c-basic-offset: 8
3476 * tab-width: 8
3477 * indent-tabs-mode: t
3478 * End:
3479 *
3480 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
3481 * :indentSize=8:tabSize=8:noTabs=false:
3482 */
3483