2 * WiMax MAC Management UCD Message decoder
4 * Copyright (c) 2007 by Intel Corporation.
6 * Author: Lu Pan <lu.pan@intel.com>
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1999 Gerald Combs
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
40 #include <epan/packet.h>
41 #include "wimax_tlv.h"
42 #include "wimax_mac.h"
44 extern gint proto_mac_mgmt_msg_dcd_decoder;
45 extern gboolean include_cor2_changes;
47 guint cqich_id_size; /* Set for CQICH_Alloc_IE */
49 static gint proto_mac_mgmt_msg_ucd_decoder = -1;
50 static gint ett_mac_mgmt_msg_ucd_decoder = -1;
53 static gint hf_ucd_message_type = -1;
54 static gint hf_ucd_res_timeout = -1;
55 static gint hf_ucd_bw_req_size = -1;
56 static gint hf_ucd_ranging_req_size = -1;
57 static gint hf_ucd_freq = -1;
58 static gint hf_ucd_subchan_params_num_chan = -1;
59 static gint hf_ucd_ul_allocated_subchannles_bitmap = -1;
60 static gint hf_ucd_subchan_params_num_sym = -1;
61 static gint hf_ucd_subchan_codes = -1;
63 static gint hf_ucd_ul_burst_reserved = -1;
64 static gint hf_ucd_ul_burst_uiuc = -1;
65 static gint hf_ucd_burst_fec = -1;
66 static gint hf_ucd_burst_ranging_data_ratio = -1;
67 /*static gint hf_ucd_burst_power_boost = -1;
68 *static gint hf_ucd_burst_tcs_enable = -1;
71 static gint hf_ucd_tlv_t_159_band_amc_allocation_threshold = -1;
72 static gint hf_ucd_tlv_t_158_optional_permutation_ul_allocated_subchannels_bitmap = -1;
73 static gint hf_ucd_tlv_t_160_band_amc_release_threshold = -1;
74 static gint hf_ucd_tlv_t_161_band_amc_allocation_timer = -1;
75 static gint hf_ucd_tlv_t_162_band_amc_release_timer = -1;
76 static gint hf_ucd_tlv_t_163_band_status_report_max_period = -1;
77 static gint hf_ucd_tlv_t_164_band_amc_retry_timer = -1;
78 static gint hf_ucd_tlv_t_171_harq_ack_delay_dl_burst = -1;
79 static gint hf_ucd_tlv_t_170_safety_channel_retry_timer = -1;
80 static gint hf_ucd_tlv_t_172_cqich_band_amc_transition_delay = -1;
81 static gint hf_ucd_tlv_t_174_maximum_retransmission = -1;
82 static gint hf_ucd_tlv_t_177_normalized_cn_override2 = -1;
83 static gint hf_ucd_tlv_t_177_normalized_cn_override2_first_line = -1;
84 static gint hf_ucd_tlv_t_177_normalized_cn_override2_list = -1;
85 static gint hf_ucd_tlv_t_176_size_of_cqich_id_field = -1;
86 static gint hf_ucd_tlv_t_186_upper_bound_aas_preamble = -1;
87 static gint hf_ucd_tlv_t_187_lower_bound_aas_preamble = -1;
88 static gint hf_ucd_tlv_t_188_allow_aas_beam_select_message = -1;
89 static gint hf_ucd_tlv_t_189_use_cqich_indication_flag = -1;
90 static gint hf_ucd_tlv_t_190_ms_specific_up_power_addjustment_step = -1;
91 static gint hf_ucd_tlv_t_191_ms_specific_down_power_addjustment_step = -1;
92 static gint hf_ucd_tlv_t_192_min_level_power_offset_adjustment = -1;
93 static gint hf_ucd_tlv_t_193_max_level_power_offset_adjustment = -1;
94 static gint hf_ucd_tlv_t_194_handover_ranging_codes = -1;
95 static gint hf_ucd_tlv_t_195_initial_ranging_interval = -1;
96 static gint hf_ucd_tlv_t_196_tx_power_report = -1;
97 static gint hf_ucd_tlv_t_196_tx_power_report_threshold = -1;
98 static gint hf_ucd_tlv_t_196_tx_power_report_interval = -1;
99 static gint hf_ucd_tlv_t_196_tx_power_report_a_p_avg = -1;
100 static gint hf_ucd_tlv_t_196_tx_power_report_threshold_icqch = -1;
101 static gint hf_ucd_tlv_t_196_tx_power_report_interval_icqch = -1;
102 static gint hf_ucd_tlv_t_196_tx_power_report_a_p_avg_icqch = -1;
103 static gint hf_ucd_tlv_t_197_normalized_cn_channel_sounding = -1;
104 static gint hf_ucd_tlv_t_202_uplink_burst_profile_for_multiple_fec_types = -1;
105 static gint hf_ucd_tlv_t_203_ul_pusc_subchannel_rotation = -1;
106 static gint hf_ucd_tlv_t_205_relative_power_offset_ul_harq_burst = -1;
107 static gint hf_ucd_tlv_t_206_relative_power_offset_ul_burst_containing_mac_mgmt_msg = -1;
108 static gint hf_ucd_tlv_t_207_ul_initial_transmit_timing = -1;
109 static gint hf_ucd_tlv_t_210_fast_feedback_region = -1;
110 static gint hf_ucd_tlv_t_211_harq_ack_region = -1;
111 static gint hf_ucd_tlv_t_212_ranging_region = -1;
112 static gint hf_ucd_tlv_t_213_sounding_region = -1;
113 static gint hf_ucd_tlv_t_150_initial_ranging_codes = -1;
114 static gint hf_ucd_tlv_t_151_periodic_ranging_codes = -1;
115 static gint hf_ucd_tlv_t_152_bandwidth_request_codes = -1;
116 static gint hf_ucd_tlv_t_155_start_of_ranging_codes_group = -1;
117 static gint hf_ucd_tlv_t_156_permutation_base = -1;
119 static gint hf_ucd_unknown_type = -1;
120 static gint hf_ucd_invalid_tlv = -1;
122 static const value_string vals_dcd_burst_tcs[] =
129 static const value_string vals_dcd_burst_fec[] =
131 {0, "QPSK (CC) 1/2"},
132 {1, "QPSK (CC) 3/4"},
133 {2, "16-QAM (CC) 1/2"},
134 {3, "16-QAM (CC) 3/4"},
135 {4, "64-QAM (CC) 1/2"},
136 {5, "64-QAM (CC) 2/3"},
137 {6, "64-QAM (CC) 3/4"},
138 {7, "QPSK (BTC) 1/2"},
139 {8, "QPSK (BTC) 3/4 or 2/3"},
140 {9, "16-QAM (BTC) 3/5"},
141 {10, "16-QAM (BTC) 4/5"},
142 {11, "64-QAM (BTC) 2/3 or 5/8"},
143 {12, "64-QAM (BTC) 5/6 or 4/5"},
144 {13, "QPSK (CTC) 1/2"},
146 {15, "QPSK (CTC) 3/4"},
147 {16, "16-QAM (CTC) 1/2"},
148 {17, "16-QAM (CTC) 3/4"},
149 {18, "64-QAM (CTC) 1/2"},
150 {19, "64-QAM (CTC) 2/3"},
151 {20, "64-QAM (CTC) 3/4"},
152 {21, "64-QAM (CTC) 5/6"},
153 {22, "QPSK (ZT CC) 1/2"},
154 {23, "QPSK (ZT CC) 3/4"},
155 {24, "16-QAM (ZT CC) 1/2"},
156 {25, "16-QAM (ZT CC) 3/4"},
157 {26, "64-QAM (ZT CC) 1/2"},
158 {27, "64-QAM (ZT CC) 2/3"},
159 {28, "64-QAM (ZT CC) 3/4"},
160 {29, "QPSK (LDPC) 1/2"},
161 {30, "QPSK (LDPC) 2/3 A code"},
162 {31, "16-QAM (LDPC) 3/4 A code"},
163 {32, "16-QAM (LDPC) 1/2"},
164 {33, "16-QAM (LDPC) 2/3 A code"},
165 {34, "16-QAM (LDPC) 3/4 A code"},
166 {35, "64-QAM (LDPC) 1/2"},
167 {36, "64-QAM (LDPC) 2/3 A code"},
168 {37, "64-QAM (LDPC) 3/4 A code"},
169 {38, "QPSK (LDPC) 2/3 B code"},
170 {39, "QPSK (LDPC) 3/4 B code"},
171 {40, "16-QAM (LDPC) 2/3 B code"},
172 {41, "16-QAM (LDPC) 3/4 B code"},
173 {42, "64-QAM (LDPC) 2/3 B code"},
174 {43, "64-QAM (LDPC) 3/4 B code"},
175 {44, "QPSK (CC with optional interleaver) 1/2"},
176 {45, "QPSK (CC with optional interleaver) 3/4"},
177 {46, "16-QAM (CC with optional interleaver) 1/2"},
178 {47, "16-QAM (CC optional interleaver) 0%00"},
179 {48, "64-QAM (CC with optional interleaver) 2/3"},
180 {49, "64-QAM (CC with optional interleaver) 3/4"},
181 {50, "QPSK (LDPC) 5/6"},
182 {51, "16-QAM (LDPC) 5/6"},
183 {52, "64-QAM (LDPC) 5/6"},
187 static const value_string vals_ucd_cqich_size[] =
200 static const value_string vals_yes_no_str[] =
209 void dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
212 guint tvb_len, payload_type, length;
213 guint ucd_config_change_count;
214 guint ucd_ranging_backoff_start;
215 guint ucd_ranging_backoff_end;
216 guint ucd_request_backoff_start;
217 guint ucd_request_backoff_end;
218 gint tlv_type, tlv_len, tlv_offset, tlv_value_offset;
219 guint ul_burst_uiuc, utemp;
220 proto_item *ucd_item = NULL;
221 proto_tree *ucd_tree = NULL;
222 proto_item *tlv_item = NULL;
223 proto_tree *tlv_tree = NULL;
224 proto_tree *sub_tree = NULL;
227 /* Ensure the right payload type */
228 payload_type = tvb_get_guint8(tvb, offset);
229 if(payload_type != MAC_MGMT_MSG_UCD)
235 { /* we are being asked for details */
236 /* Get the tvb reported length */
237 tvb_len = tvb_reported_length(tvb);
238 /* display MAC payload type UCD */
239 ucd_item = proto_tree_add_protocol_format(tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tvb_len, "Uplink Channel Descriptor (UCD) (%u bytes)", tvb_len);
240 /* add MAC UCD subtree */
241 ucd_tree = proto_item_add_subtree(ucd_item, ett_mac_mgmt_msg_ucd_decoder);
242 /* Decode and display the Uplink Channel Descriptor (UCD) */
243 /* display the Message Type */
244 proto_tree_add_item(ucd_tree, hf_ucd_message_type, tvb, offset, 1, FALSE);
245 /* move to next field */
247 /* get the Configuration Change Count */
248 ucd_config_change_count = tvb_get_guint8(tvb, offset);
249 /* display the Configuration Change Count */
250 proto_tree_add_text(ucd_tree, tvb, offset, 1, "Configuration Change Count: %u", ucd_config_change_count);
251 /* move to next field */
253 /* get the ranging backoff start */
254 ucd_ranging_backoff_start = tvb_get_guint8(tvb, offset);
255 /* display the ranging backoff start */
256 proto_tree_add_text(ucd_tree, tvb, offset, 1, "Ranging Backoff Start: 2^%u = %u", ucd_ranging_backoff_start, (1 << ucd_ranging_backoff_start));
257 /* move to next field */
259 /* get the ranging backoff end */
260 ucd_ranging_backoff_end = tvb_get_guint8(tvb, offset);
261 /* display the ranging backoff end */
262 proto_tree_add_text(ucd_tree, tvb, offset, 1, "Ranging Backoff End: 2^%u = %u", ucd_ranging_backoff_end, (1 << ucd_ranging_backoff_end));
263 /* move to next field */
265 /* get the request backoff start */
266 ucd_request_backoff_start = tvb_get_guint8(tvb, offset);
267 /* display the request backoff start */
268 proto_tree_add_text(ucd_tree, tvb, offset, 1, "Request Backoff Start: 2^%u = %u", ucd_request_backoff_start, (1 << ucd_request_backoff_start));
269 /* move to next field */
271 /* get the request backoff end */
272 ucd_request_backoff_end = tvb_get_guint8(tvb, offset);
273 /* display the request backoff end */
274 proto_tree_add_text(ucd_tree, tvb, offset, 1, "Request Backoff End: 2^%u = %u", ucd_request_backoff_end, (1 << ucd_request_backoff_end));
275 /* move to next field */
277 while(offset < tvb_len)
279 /* get the TLV information */
280 init_tlv_info(&tlv_info, tvb, offset);
281 /* get the TLV type */
282 tlv_type = get_tlv_type(&tlv_info);
283 /* get the TLV length */
284 tlv_len = get_tlv_length(&tlv_info);
285 if(tlv_type == -1 || tlv_len > MAX_TLV_LEN || tlv_len < 1)
286 { /* invalid tlv info */
287 if(check_col(pinfo->cinfo, COL_INFO))
289 col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "UCD TLV error");
291 proto_tree_add_item(ucd_tree,hf_ucd_invalid_tlv, tvb, offset, (tvb_len - offset), FALSE);
294 /* get the TLV value offset */
295 tlv_value_offset = get_tlv_value_offset(&tlv_info);
296 #ifdef DEBUG /* for debug only */
297 tlv_item = proto_tree_add_protocol_format(ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, (tlv_len + tlv_value_offset), "UCD Type: %u (%u bytes, offset=%u, tvb_len=%u)", tlv_type, tlv_len, offset, tvb_len);
299 /* update the offset */
300 offset += tlv_value_offset;
301 /* process UCD TLV Encoded information */
302 if (include_cor2_changes)
306 case UCD_TLV_T_203_UL_PUSC_SUBCHANNEL_ROTATION:
308 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_203_ul_pusc_subchannel_rotation, tvb, offset, tlv_len, FALSE);
309 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_203_ul_pusc_subchannel_rotation, tvb, offset, tlv_len, FALSE);
312 case UCD_TLV_T_205_RELATIVE_POWER_OFFSET_UL_HARQ_BURST:
314 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_205_relative_power_offset_ul_harq_burst, tvb, offset, tlv_len, FALSE);
315 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_205_relative_power_offset_ul_harq_burst, tvb, offset, tlv_len, FALSE);
318 case UCD_TLV_T_206_RELATIVE_POWER_OFFSET_UL_BURST_CONTAINING_MAC_MGMT_MSG:
320 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_206_relative_power_offset_ul_burst_containing_mac_mgmt_msg, tvb, offset, tlv_len, FALSE);
321 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_206_relative_power_offset_ul_burst_containing_mac_mgmt_msg, tvb, offset, tlv_len, FALSE);
324 case UCD_TLV_T_207_UL_INITIAL_TRANSMIT_TIMING:
326 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_207_ul_initial_transmit_timing, tvb, offset, tlv_len, FALSE);
327 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_207_ul_initial_transmit_timing, tvb, offset, tlv_len, FALSE);
330 case UCD_TLV_T_210_FAST_FEEDBACK_REGION:
332 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_210_fast_feedback_region, tvb, offset, tlv_len, FALSE);
333 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_210_fast_feedback_region, tvb, offset, tlv_len, FALSE);
336 case UCD_TLV_T_211_HARQ_ACK_REGION:
338 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_211_harq_ack_region, tvb, offset, tlv_len, FALSE);
339 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_211_harq_ack_region, tvb, offset, tlv_len, FALSE);
342 case UCD_TLV_T_212_RANGING_REGION:
344 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_212_ranging_region, tvb, offset, tlv_len, FALSE);
345 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_212_ranging_region, tvb, offset, tlv_len, FALSE);
348 case UCD_TLV_T_213_SOUNDING_REGION:
350 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_213_sounding_region, tvb, offset, tlv_len, FALSE);
351 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_213_sounding_region, tvb, offset, tlv_len, FALSE);
358 case UCD_UPLINK_BURST_PROFILE:
361 ul_burst_uiuc = tvb_get_guint8(tvb, offset) & 0x0F;
362 /* add TLV subtree */
363 tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Uplink Burst Profile (UIUC = %u) (%u bytes)", ul_burst_uiuc, tlv_len);
364 proto_tree_add_item(tlv_tree, hf_ucd_ul_burst_reserved, tvb, offset, 1, FALSE);
365 proto_tree_add_item(tlv_tree, hf_ucd_ul_burst_uiuc, tvb, offset, 1, FALSE);
366 for (tlv_offset = 1; tlv_offset < tlv_len;)
367 { /* get the TLV information */
368 init_tlv_info(&tlv_info, tvb, (offset+tlv_offset));
369 /* get the TLV type */
370 tlv_type = get_tlv_type(&tlv_info);
372 { /* invalid tlv info */
373 if(check_col(pinfo->cinfo, COL_INFO))
375 col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "UL Burst Profile error");
377 proto_tree_add_item(tlv_tree, hf_ucd_invalid_tlv, tvb, offset, (tlv_len - offset - tlv_offset), FALSE);
380 /* get the TLV length */
381 length = get_tlv_length(&tlv_info);
382 /* update the offset */
383 tlv_offset += get_tlv_value_offset(&tlv_info);
388 sub_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, tlv_tree, hf_ucd_burst_fec, tvb, (offset+tlv_offset), 1, FALSE);
389 tlv_item = proto_tree_add_item(sub_tree, hf_ucd_burst_fec, tvb, (offset+tlv_offset), 1, FALSE);
392 case UCD_BURST_RANGING_DATA_RATIO:
394 sub_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, tlv_tree, hf_ucd_burst_ranging_data_ratio, tvb, (offset+tlv_offset), 1, FALSE);
395 tlv_item = proto_tree_add_item(sub_tree, hf_ucd_burst_ranging_data_ratio, tvb, (offset+tlv_offset), 1, FALSE);
396 proto_item_append_text(tlv_item, " dB");
400 case UCD_BURST_POWER_BOOST:
402 sub_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, tlv_tree, hf_ucd_burst_power_boost, tvb, (offset+tlv_offset), 1, FALSE);
403 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_burst_power_boost, tvb, (offset+tlv_offset), length, FALSE);
404 proto_item_append_text(tlv_item, " dB");
407 case UCD_BURST_TCS_ENABLE:
409 sub_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, tlv_tree, hf_ucd_burst_tcs_enable, tvb, (offset+tlv_offset), 1, FALSE);
410 proto_tree_add_item(tlv_tree, hf_ucd_burst_tcs_enable, tvb, (offset+tlv_offset), 1, FALSE);
418 tlv_offset += length;
422 case UCD_RESERVATION_TIMEOUT:
424 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_res_timeout, tvb, offset, tlv_len, FALSE);
425 proto_tree_add_item(tlv_tree, hf_ucd_res_timeout, tvb, offset, tlv_len, FALSE);
428 case UCD_BW_REQ_SIZE:
430 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_bw_req_size, tvb, offset, tlv_len, FALSE);
431 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_bw_req_size, tvb, offset, tlv_len, FALSE);
432 proto_item_append_text(tlv_item, " PS");
435 case UCD_RANGING_REQ_SIZE:
437 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_ranging_req_size, tvb, offset, tlv_len, FALSE);
438 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_ranging_req_size, tvb, offset, tlv_len, FALSE);
439 proto_item_append_text(tlv_item, " PS");
444 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_freq, tvb, offset, tlv_len, FALSE);
445 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_freq, tvb, offset, tlv_len, FALSE);
446 proto_item_append_text(tlv_item, " kHz");
449 case UCD_TLV_T_7_HO_RANGING_START:
451 tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "HO ranging start (SCa, OFDM, OFDMA (mobile only)) (%u byte(s))", tlv_len);
452 utemp = tvb_get_guint8(tvb, offset);
453 proto_tree_add_text(tlv_tree, tvb, offset, tvb_len, "Initial Backoff Window Size for MS Performing Initial During Handover Process: 2^%u = %u", utemp, (1 << utemp));
456 case UCD_TLV_T_8_RANGING_HO_END:
458 tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "HO ranging end (SCa, OFDM, OFDMA (mobile only)) (%u byte(s))", tlv_len);
459 utemp = tvb_get_guint8(tvb, offset);
460 proto_tree_add_text(tlv_tree, tvb, offset, tvb_len, "Final Backoff Window Size for MS Performing Initial During Handover Process: 2^%u = %u", utemp, (1 << utemp));
463 case UCD_TLV_T_158_OPTIONAL_PERMUTATION_UL_ALLOCATED_SUBCHANNELS_BITMAP:
465 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_158_optional_permutation_ul_allocated_subchannels_bitmap, tvb, offset, tlv_len, FALSE);
466 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_158_optional_permutation_ul_allocated_subchannels_bitmap, tvb, offset, tlv_len, FALSE);
470 case UCD_TLV_T_159_BAND_AMC_ALLOCATION_THRESHHOLD:
472 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_159_band_amc_allocation_threshold, tvb, offset, tlv_len, FALSE);
473 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_159_band_amc_allocation_threshold, tvb, offset, tlv_len, FALSE);
474 proto_item_append_text(tlv_item, " dB");
477 case UCD_TLV_T_160_BAND_AMC_RELEASE_THRESHOLD:
479 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_160_band_amc_release_threshold, tvb, offset, tlv_len, FALSE);
480 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_160_band_amc_release_threshold, tvb, offset, tlv_len, FALSE);
481 proto_item_append_text(tlv_item, " dB");
484 case UCD_TLV_T_161_BAND_AMC_ALLOCATION_TIMER:
486 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_161_band_amc_allocation_timer, tvb, offset, tlv_len, FALSE);
487 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_161_band_amc_allocation_timer, tvb, offset, tlv_len, FALSE);
488 proto_item_append_text(tlv_item, " frames");
491 case UCD_TLV_T_162_BAND_AMC_RELEASE_TIMER:
493 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_161_band_amc_allocation_timer, tvb, offset, tlv_len, FALSE);
494 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_162_band_amc_release_timer, tvb, offset, tlv_len, FALSE);
495 proto_item_append_text(tlv_item, " frames");
498 case UCD_TLV_T_163_BAND_STATUS_REPORT_MAX_PERIOD:
500 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_163_band_status_report_max_period, tvb, offset, tlv_len, FALSE);
501 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_163_band_status_report_max_period, tvb, offset, tlv_len, FALSE);
502 proto_item_append_text(tlv_item, " frames");
505 case UCD_TLV_T_164_BAND_AMC_RETRY_TIMER:
507 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_164_band_amc_retry_timer, tvb, offset, tlv_len, FALSE);
508 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_164_band_amc_retry_timer, tvb, offset, tlv_len, FALSE);
509 proto_item_append_text(tlv_item, " frames");
512 case UCD_TLV_T_170_SAFETY_CHANNEL_RETRY_TIMER:
514 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_170_safety_channel_retry_timer, tvb, offset, tlv_len, FALSE);
515 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_170_safety_channel_retry_timer, tvb, offset, tlv_len, FALSE);
516 proto_item_append_text(tlv_item, " frames");
519 case UCD_TLV_T_171_HARQ_ACK_DELAY_FOR_DL_BURST:
521 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_171_harq_ack_delay_dl_burst, tvb, offset, tlv_len, FALSE);
522 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_171_harq_ack_delay_dl_burst, tvb, offset, tlv_len, FALSE);
523 proto_item_append_text(tlv_item, " frames offset");
526 case UCD_TLV_T_172_CQICH_BAND_AMC_TRANSITION_DELAY:
528 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_172_cqich_band_amc_transition_delay, tvb, offset, tlv_len, FALSE);
529 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_172_cqich_band_amc_transition_delay, tvb, offset, tlv_len, FALSE);
530 proto_item_append_text(tlv_item, " frames");
533 case UCD_TLV_T_174_MAXIMUM_RETRANSMISSION:
535 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_174_maximum_retransmission, tvb, offset, tlv_len, FALSE);
536 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_174_maximum_retransmission, tvb, offset, tlv_len, FALSE);
539 case UCD_TLV_T_176_SIZE_OF_CQICH_ID_FIELD:
541 utemp = tvb_get_guint8(tvb, offset);
542 cqich_id_size = 0; /* Default is 0 */
543 if (utemp && utemp < 8) {
544 /* Set for CQICH_Alloc_IE */
545 cqich_id_size = utemp + 2;
547 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_176_size_of_cqich_id_field, tvb, offset, tlv_len, FALSE);
548 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_176_size_of_cqich_id_field, tvb, offset, tlv_len, FALSE);
551 case UCD_TLV_T_177_NORMALIZED_CN_OVERRIDE_2:
553 /* add TLV subtree */
554 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_177_normalized_cn_override2, tvb, offset, tlv_len, FALSE);
555 proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_177_normalized_cn_override2_first_line, tvb, offset + 2, 1, FALSE);
556 proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_177_normalized_cn_override2_list, tvb, offset + 3, 7, FALSE);
559 case UCD_TLV_T_186_UPPER_BOUND__AAS_PREAMBLE:
561 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_186_upper_bound_aas_preamble, tvb, offset, tlv_len, FALSE);
562 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_186_upper_bound_aas_preamble, tvb, offset, tlv_len, FALSE);
565 case UCD_TLV_T_187_LOWER_BOUND_AAS_PREAMBLE:
567 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_187_lower_bound_aas_preamble, tvb, offset, tlv_len, FALSE);
568 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_187_lower_bound_aas_preamble, tvb, offset, tlv_len, FALSE);
571 case UCD_TLV_T_188_ALLOW_AAS_BEAM_SELECT_MESSAGE:
573 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_188_allow_aas_beam_select_message, tvb, offset, tlv_len, FALSE);
574 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_188_allow_aas_beam_select_message, tvb, offset, tlv_len, FALSE);
577 case UCD_TLV_T_189_USE_CQICH_INDICATION_FLAG:
579 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_189_use_cqich_indication_flag, tvb, offset, tlv_len, FALSE);
580 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_189_use_cqich_indication_flag, tvb, offset, tlv_len, FALSE);
583 case UCD_TLV_T_190_MS_SPECIFIC_UP_POWER_OFFSET_ADJUSTMENT_STEP:
585 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_190_ms_specific_up_power_addjustment_step, tvb, offset, tlv_len, FALSE);
586 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_190_ms_specific_up_power_addjustment_step, tvb, offset, tlv_len, FALSE);
589 case UCD_TLV_T_191_MS_SPECIFIC_DOWN_POWER_OFSET_ADJUSTMENT_STEP:
591 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_191_ms_specific_down_power_addjustment_step, tvb, offset, tlv_len, FALSE);
592 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_191_ms_specific_down_power_addjustment_step, tvb, offset, tlv_len, FALSE);
595 case UCD_TLV_T_192_MIN_LEVEL_POWER_OFFSET_ADJUSTMENT:
597 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_192_min_level_power_offset_adjustment, tvb, offset, tlv_len, FALSE);
598 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_192_min_level_power_offset_adjustment, tvb, offset, tlv_len, FALSE);
601 case UCD_TLV_T_193_MAX_LEVEL_POWER_OFFSETR_ADJUSTMENT:
603 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_193_max_level_power_offset_adjustment, tvb, offset, tlv_len, FALSE);
604 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_193_max_level_power_offset_adjustment, tvb, offset, tlv_len, FALSE);
607 case UCD_TLV_T_194_HANDOVER_RANGING_CODES:
609 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_194_handover_ranging_codes, tvb, offset, tlv_len, FALSE);
610 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_194_handover_ranging_codes, tvb, offset, tlv_len, FALSE);
613 case UCD_TLV_T_195_INITIAL_RANGING_INTERVAL:
615 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_195_initial_ranging_interval, tvb, offset, tlv_len, FALSE);
616 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_195_initial_ranging_interval, tvb, offset, tlv_len, FALSE);
619 case UCD_TLV_T_196_TX_POWER_REPORT:
621 /* add TLV subtree */
622 tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Tx Power Report (%u bytes)", tlv_len);
623 proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_196_tx_power_report_threshold, tvb, offset, 1, FALSE);
624 proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_196_tx_power_report_interval, tvb , offset, 1, FALSE);
625 proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_196_tx_power_report_a_p_avg, tvb, (offset + 1), 1, FALSE);
626 proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_196_tx_power_report_threshold_icqch, tvb, (offset + 1), 1, FALSE);
627 proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_196_tx_power_report_interval_icqch, tvb, (offset + 2), 1, FALSE);
628 proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_196_tx_power_report_a_p_avg_icqch, tvb, (offset + 2), 1, FALSE);
631 case UCD_TLV_T_197_NORMALIZED_CN_FOR_CHANNEL_SOUNDING:
633 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_195_initial_ranging_interval, tvb, offset, tlv_len, FALSE);
634 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_197_normalized_cn_channel_sounding, tvb, offset, tlv_len, FALSE);
637 case UCD_TLV_T_198_INTIAL_RANGING_BACKOFF_START:
639 tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Initial ranging backoff start (%u byte(s))", tlv_len);
640 utemp = tvb_get_guint8(tvb, offset);
641 proto_tree_add_text(tlv_tree, tvb, offset, tvb_len, "Initial Ranging Backoff Start: 2^%u = %u", utemp, (1 << utemp));
644 case UCD_TLV_T_199_INITIAL_RANGING_BACKOFF_END:
646 tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Initial ranging backoff end (%u byte(s))", tlv_len);
647 utemp = tvb_get_guint8(tvb, offset);
648 proto_tree_add_text(tlv_tree, tvb, offset, tvb_len, "Initial Ranging Backoff End: 2^%u = %u", utemp, (1 << utemp));
651 case UCD_TLV_T_200_BANDWIDTH_REQUESET_BACKOFF_START:
653 tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Bandwidth request backoff start (%u byte(s))", tlv_len);
654 utemp = tvb_get_guint8(tvb, offset);
655 proto_tree_add_text(tlv_tree, tvb, offset, tvb_len, "Bandwidth Request Backoff Start: 2^%u = %u", utemp, (1 << utemp));
658 case UCD_TLV_T_201_BANDWIDTH_REQUEST_BACKOFF_END:
660 tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Bandwidth request backoff end (%u byte(s))", tlv_len);
661 utemp = tvb_get_guint8(tvb, offset);
662 proto_tree_add_text(tlv_tree, tvb, offset, tvb_len, "Bandwidth Request Backoff End: 2^%u = %u", utemp, (1 << utemp));
665 case UCD_TLV_T_202_UPLINK_BURST_PROFILE_FOR_MULTIPLE_FEC_TYPES:
667 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_202_uplink_burst_profile_for_multiple_fec_types, tvb, offset, tlv_len, FALSE);
668 tlv_item = proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_202_uplink_burst_profile_for_multiple_fec_types, tvb, offset, tlv_len, FALSE);
671 case UCD_INITIAL_RANGING_CODES:
673 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_150_initial_ranging_codes, tvb, offset, tlv_len, FALSE);
674 proto_tree_add_item(tlv_tree,hf_ucd_tlv_t_150_initial_ranging_codes, tvb, offset, tlv_len, FALSE);
677 case UCD_PERIODIC_RANGING_CODES:
679 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_151_periodic_ranging_codes, tvb, offset, tlv_len, FALSE);
680 proto_tree_add_item(tlv_tree,hf_ucd_tlv_t_151_periodic_ranging_codes, tvb, offset, tlv_len, FALSE);
683 case UCD_BANDWIDTH_REQUEST_CODES:
685 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_152_bandwidth_request_codes, tvb, offset, tlv_len, FALSE);
686 proto_tree_add_item(tlv_tree,hf_ucd_tlv_t_152_bandwidth_request_codes, tvb, offset, tlv_len, FALSE);
689 case UCD_PERIODIC_RANGING_BACKOFF_START:
691 tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Periodic ranging backoff start (%u byte(s))", tlv_len);
692 utemp = tvb_get_guint8(tvb, offset);
693 proto_tree_add_text(tlv_tree, tvb, offset, tlv_len, "Periodic Ranging Backoff Start: 2^%u = %u", utemp, (1 << utemp));
697 case UCD_PERIODIC_RANGING_BACKOFF_END:
699 tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Periodic ranging backoff end (%u bytes(s))", tlv_len);
700 utemp = tvb_get_guint8(tvb, offset);
701 proto_tree_add_text(tlv_tree, tvb, offset, tlv_len, "Periodic Ranging Backoff End: 2^%u = %u", utemp, (1 << utemp));
704 case UCD_START_OF_RANGING_CODES_GROUP:
706 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_155_start_of_ranging_codes_group, tvb, offset, tlv_len, FALSE);
707 proto_tree_add_item(tlv_tree,hf_ucd_tlv_t_155_start_of_ranging_codes_group, tvb, offset, tlv_len, FALSE);
711 case UCD_PERMUTATION_BASE:
713 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_156_permutation_base, tvb, offset, tlv_len, FALSE);
714 proto_tree_add_item(tlv_tree,hf_ucd_tlv_t_156_permutation_base, tvb, offset, tlv_len, FALSE);
717 case UCD_UL_ALLOCATED_SUBCHANNELS_BITMAP:
719 tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_ul_allocated_subchannles_bitmap, tvb, offset, tlv_len, FALSE);
720 proto_tree_add_item(tlv_tree, hf_ucd_ul_allocated_subchannles_bitmap, tvb, offset, tlv_len, FALSE);
723 case UCD_TLV_T_203_UL_PUSC_SUBCHANNEL_ROTATION:
724 case UCD_TLV_T_205_RELATIVE_POWER_OFFSET_UL_HARQ_BURST:
725 case UCD_TLV_T_206_RELATIVE_POWER_OFFSET_UL_BURST_CONTAINING_MAC_MGMT_MSG:
726 case UCD_TLV_T_207_UL_INITIAL_TRANSMIT_TIMING:
727 case UCD_TLV_T_210_FAST_FEEDBACK_REGION:
728 case UCD_TLV_T_211_HARQ_ACK_REGION:
729 case UCD_TLV_T_212_RANGING_REGION:
730 case UCD_TLV_T_213_SOUNDING_REGION:
732 /* Unknown TLV type if cor2 not enabled. */
733 if (!include_cor2_changes)
735 proto_tree_add_protocol_format(ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Unknown TLV Type");
741 proto_tree_add_protocol_format(ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Unknown TLV Type");
743 } /* end of switch */
745 } /* end of TLV process while loop */
749 /* Register Wimax Mac Payload Protocol and Dissector */
750 void proto_register_mac_mgmt_msg_ucd(void)
753 static hf_register_info hf[] =
756 &hf_ucd_message_type,
758 "MAC Management Message Type", "wmx.macmgtmsgtype.ucd",
759 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
763 &hf_ucd_tlv_t_188_allow_aas_beam_select_message,
765 "Allow AAS Beam Select Message", "wmx.ucd.allow_aas_beam_select_message",
766 FT_INT8, BASE_DEC, VALS(vals_yes_no_str), 0, NULL, HFILL
770 &hf_ucd_tlv_t_159_band_amc_allocation_threshold,
772 "Band AMC Allocation Threshold", "wmx.ucd.band_amc.allocation_threshold",
773 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
777 &hf_ucd_tlv_t_161_band_amc_allocation_timer,
779 "Band AMC Allocation Timer", "wmx.ucd.band_amc.allocation_timer",
780 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
784 &hf_ucd_tlv_t_160_band_amc_release_threshold,
786 "Band AMC Release Threshold", "wmx.ucd.band_amc.release_threshold",
787 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
791 &hf_ucd_tlv_t_162_band_amc_release_timer,
793 "Band AMC Release Timer", "wmx.ucd.band_amc.release_timer",
794 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
798 &hf_ucd_tlv_t_164_band_amc_retry_timer,
800 "Band AMC Retry Timer", "wmx.ucd.band_amc.retry_timer",
801 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
805 &hf_ucd_tlv_t_163_band_status_report_max_period,
807 "Band Status Report MAC Period", "wmx.ucd.band_status.report_max_period",
808 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
812 &hf_ucd_tlv_t_152_bandwidth_request_codes,
814 "Bandwidth Request Codes", "wmx.ucd.bandwidth_request",
815 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
821 "FEC Code Type", "wmx.ucd.burst.fec",
822 FT_UINT8, BASE_HEX, VALS(vals_dcd_burst_fec), 0, NULL, HFILL
826 &hf_ucd_burst_ranging_data_ratio,
828 "Ranging Data Ratio", "wmx.ucd.burst.ranging_data_ratio",
829 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
833 &hf_ucd_ul_burst_reserved,
835 "Reserved", "wmx.ucd.burst.reserved",
836 FT_UINT8, BASE_HEX, NULL, 0xF0, NULL, HFILL
840 &hf_ucd_ul_burst_uiuc,
842 "UIUC", "wmx.ucd.burst.uiuc",
843 FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL
848 &hf_ucd_burst_power_boost,
849 {"Focused Contention Power Boost", "wmx.ucd.burst.power_boost", FT_UINT8, BASE_HEX, NULL, 0, "", HFILL}
852 &hf_ucd_burst_tcs_enable,
853 {"TCS", "wmx.ucd.burst.tcs", FT_UINT8, BASE_DEC, VALS(vals_dcd_burst_tcs), 0, "", HFILL}
859 "Bandwidth Request Opportunity Size", "wmx.ucd.bw_req_size",
860 FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL
864 &hf_ucd_tlv_t_172_cqich_band_amc_transition_delay,
866 "CQICH Band AMC-Transition Delay", "wmx.ucd.cqich_band_amc_transition_delay",
867 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
873 "Frequency", "wmx.ucd.frequency",
874 FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL
878 &hf_ucd_tlv_t_194_handover_ranging_codes,
880 "Handover Ranging Codes", "wmx.ucd.handover_ranging_codes",
881 FT_INT8, BASE_DEC, NULL, 0, NULL, HFILL
885 &hf_ucd_tlv_t_171_harq_ack_delay_dl_burst,
887 "HARQ ACK Delay for DL Burst", "wmx.ucd.harq_ack_delay_dl_burst",
888 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
892 &hf_ucd_tlv_t_150_initial_ranging_codes,
894 "Initial Ranging Codes", "wmx.ucd.initial_ranging_codes",
895 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
899 &hf_ucd_tlv_t_195_initial_ranging_interval,
901 "Number of Frames Between Initial Ranging Interval Allocation", "wmx.ucd.initial_ranging_interval",
902 FT_INT8, BASE_DEC, NULL, 0, NULL, HFILL
908 "Invalid TLV", "wmx.ucd.invalid_tlv",
909 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
913 &hf_ucd_tlv_t_187_lower_bound_aas_preamble,
915 "Lower Bound AAS Preamble (in units of 0.25 dB)", "wmx.ucd.lower_bound_aas_preamble",
916 FT_INT8, BASE_DEC, NULL, 0, NULL, HFILL
920 &hf_ucd_tlv_t_192_min_level_power_offset_adjustment,
922 "Minimum Level of Power Offset Adjustment (in units of 0.1 dB)", "wmx.ucd.min_level_power_offset_adjustment",
923 FT_INT8, BASE_DEC, NULL, 0, NULL, HFILL
927 &hf_ucd_tlv_t_193_max_level_power_offset_adjustment,
929 "Maximum Level of Power Offset Adjustment (in units of 0.1 dB)", "wmx.ucd.max_level_power_offset_adjustment",
930 FT_INT8, BASE_DEC, NULL, 0, NULL, HFILL
934 &hf_ucd_tlv_t_174_maximum_retransmission,
936 "Maximum Number of Retransmission in UL-HARQ", "wmx.ucd.max_number_of_retransmission_in_ul_harq",
937 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
941 &hf_ucd_tlv_t_191_ms_specific_down_power_addjustment_step,
943 "MS-specific Down Power Offset Adjustment Step (in units of 0.01 dB)", "wmx.ucd.ms_specific_down_power_offset_adjustment_step",
944 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
948 &hf_ucd_tlv_t_190_ms_specific_up_power_addjustment_step,
950 "MS-specific Up Power Offset Adjustment Step (in units of 0.01 dB)", "wmx.ucd.ms_specific_up_power_offset_adjustment_step",
951 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
955 &hf_ucd_tlv_t_197_normalized_cn_channel_sounding,
957 "Normalized C/N for Channel Sounding", "wmx.ucd.normalized_cn.channel_sounding",
958 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
962 &hf_ucd_tlv_t_177_normalized_cn_override2,
964 "Normalized C/N Override 2", "wmx.ucd.normalized_cn.override_2",
965 FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL
969 &hf_ucd_tlv_t_177_normalized_cn_override2_first_line,
971 "Normalized C/N Value", "wmx.ucd.normalized_cn.override_first_line",
972 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
976 &hf_ucd_tlv_t_177_normalized_cn_override2_list,
978 "Normalized C/N Value List", "wmx.ucd.normalized_cn.override_list",
979 FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL
983 &hf_ucd_tlv_t_158_optional_permutation_ul_allocated_subchannels_bitmap,
985 "Optional permutation UL allocated subchannels bitmap", "wmx.ucd.optional_permutation_ul_allocated_subchannels_bitmap",
986 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
990 &hf_ucd_tlv_t_151_periodic_ranging_codes,
992 "Periodic Ranging Codes", "wmx.ucd.periodic_ranging_codes",
993 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
997 &hf_ucd_tlv_t_156_permutation_base,
999 "Permutation Base", "wmx.ucd.permutation_base",
1000 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
1004 &hf_ucd_ranging_req_size,
1006 "Ranging Request Opportunity Size", "wmx.ucd.ranging_req_size",
1007 FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL
1011 &hf_ucd_res_timeout,
1013 "Contention-based Reservation Timeout", "wmx.ucd.res_timeout",
1014 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
1018 &hf_ucd_tlv_t_170_safety_channel_retry_timer,
1020 "Safety Channel Release Timer", "wmx.ucd.safety_channel_release_timer",
1021 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1025 &hf_ucd_tlv_t_176_size_of_cqich_id_field,
1027 "Size of CQICH_ID Field", "wmx.ucd.size_of_cqich_id_field",
1028 FT_UINT8, BASE_DEC, VALS(vals_ucd_cqich_size), 0, NULL, HFILL
1032 &hf_ucd_tlv_t_155_start_of_ranging_codes_group,
1034 "Start of Ranging Codes Group", "wmx.ucd.start_of_ranging_codes_group",
1035 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
1039 &hf_ucd_ul_allocated_subchannles_bitmap,
1041 "UL Allocated Subchannels Bitmap", "wmx.ucd.subchan.bitmap",
1042 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1046 &hf_ucd_subchan_codes,
1048 "Periodic Ranging Codes", "wmx.ucd.subchan.codes",
1049 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1053 &hf_ucd_subchan_params_num_chan,
1055 "Number of Subchannels", "wmx.ucd.subchan.num_chan",
1056 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
1060 &hf_ucd_subchan_params_num_sym,
1062 "Number of OFDMA Symbols", "wmx.ucd.subchan.num_sym",
1063 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
1067 &hf_ucd_tlv_t_196_tx_power_report,
1069 "Tx Power Report", "wmx.ucd.tx_power_report",
1070 FT_UINT24, BASE_HEX, NULL, 0, NULL, HFILL
1074 &hf_ucd_tlv_t_196_tx_power_report_a_p_avg,
1076 "A p_avg (in multiples of 1/16)", "wmx.ucd.tx_power_report.a_p_avg",
1077 FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL
1081 &hf_ucd_tlv_t_196_tx_power_report_a_p_avg_icqch,
1083 "A p_avg (in multiples of 1/16) when ICQCH is allocated", "wmx.ucd.tx_power_report.a_p_avg_icqch",
1084 FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL
1088 &hf_ucd_tlv_t_196_tx_power_report_interval,
1090 "Interval (expressed as power of 2)", "wmx.ucd.tx_power_report.interval",
1091 FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL
1095 &hf_ucd_tlv_t_196_tx_power_report_interval_icqch,
1097 "Interval When ICQCH is Allocated (expressed as power of 2)", "wmx.ucd.tx_power_report.interval_icqch",
1098 FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL
1102 &hf_ucd_tlv_t_196_tx_power_report_threshold,
1104 "Threshold", "wmx.ucd.tx_power_report.threshold",
1105 FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL
1109 &hf_ucd_tlv_t_196_tx_power_report_threshold_icqch,
1111 "Threshold When ICQCH is Allocated to SS (in dB)", "wmx.ucd.tx_power_report.threshold_icqch",
1112 FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL
1116 &hf_ucd_unknown_type,
1118 "Unknown UCD Type", "wmx.ucd.unknown_tlv_type",
1119 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1123 &hf_ucd_tlv_t_202_uplink_burst_profile_for_multiple_fec_types,
1125 "Uplink Burst Profile for Multiple FEC Types", "wmx.ucd.uplink_burst_profile.multiple_fec_types",
1126 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1130 &hf_ucd_tlv_t_203_ul_pusc_subchannel_rotation,
1132 "Uplink PUSC Subchannel Rotation", "wmx.ucd.uplink_burst_profile.ul_pusc_subchannel_rotation",
1133 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1137 &hf_ucd_tlv_t_205_relative_power_offset_ul_harq_burst,
1139 "Relative Power Offset UL HARQ Burst", "wmx.ucd.uplink_burst_profile.relative_power_offset_ul_harq_burst",
1140 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1144 &hf_ucd_tlv_t_206_relative_power_offset_ul_burst_containing_mac_mgmt_msg,
1146 "Relative Power Offset UL Burst Containing MAC Mgmt Msg", "wmx.ucd.uplink_burst_profile.relative_power_offset_ul_burst_mac_mgmt_msg",
1147 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1151 &hf_ucd_tlv_t_207_ul_initial_transmit_timing,
1153 "UL Initial Transmit Timing", "wmx.ucd.uplink_burst_profile.ul_initial_transmit_timing",
1154 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1158 &hf_ucd_tlv_t_210_fast_feedback_region,
1160 "Fast Feedback Region", "wmx.ucd.uplink_burst_profile.fast_feedback_region",
1161 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1165 &hf_ucd_tlv_t_211_harq_ack_region,
1167 "HARQ ACK Region", "wmx.ucd.uplink_burst_profile.harq_ack_region",
1168 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1172 &hf_ucd_tlv_t_212_ranging_region,
1174 "Ranging Region", "wmx.ucd.uplink_burst_profile.ranging_region",
1175 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1179 &hf_ucd_tlv_t_213_sounding_region,
1181 "Sounding Region", "wmx.ucd.uplink_burst_profile.sounding_region",
1182 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1186 &hf_ucd_tlv_t_186_upper_bound_aas_preamble,
1188 "Upper Bound AAS Preamble (in units of 0.25 dB)", "wmx.ucd.upper_bound_aas_preamble",
1189 FT_INT8, BASE_DEC, NULL, 0, NULL, HFILL
1193 &hf_ucd_tlv_t_189_use_cqich_indication_flag,
1195 "Use CQICH Indication Flag", "wmx.ucd.use_cqich_indication_flag",
1196 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1201 /* Setup protocol subtree array */
1202 static gint *ett[] =
1204 &ett_mac_mgmt_msg_ucd_decoder,
1207 proto_mac_mgmt_msg_ucd_decoder = proto_mac_mgmt_msg_dcd_decoder;
1209 proto_register_field_array(proto_mac_mgmt_msg_ucd_decoder, hf, array_length(hf));
1210 proto_register_subtree_array(ett, array_length(ett));