From Didier Gautheron:
[obnox/wireshark/wip.git] / plugins / wimax / msg_ucd.c
1 /* msg_ucd.c
2  * WiMax MAC Management UCD Message decoder
3  *
4  * Copyright (c) 2007 by Intel Corporation.
5  *
6  * Author: Lu Pan <lu.pan@intel.com>
7  *
8  * $Id$
9  *
10  * Wireshark - Network traffic analyzer
11  * By Gerald Combs <gerald@wireshark.org>
12  * Copyright 1999 Gerald Combs
13  *
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.
18  *
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.
23  *
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.
27  */
28
29 /* Include files */
30
31 #ifdef HAVE_CONFIG_H
32 #include "config.h"
33 #endif
34
35 /*
36 #define DEBUG
37 */
38
39 #include <glib.h>
40 #include <epan/packet.h>
41 #include "wimax_tlv.h"
42 #include "wimax_mac.h"
43
44 extern gint proto_mac_mgmt_msg_dcd_decoder;
45 extern gboolean include_cor2_changes;
46
47 guint cqich_id_size;            /* Set for CQICH_Alloc_IE */
48
49 static gint proto_mac_mgmt_msg_ucd_decoder = -1;
50 static gint ett_mac_mgmt_msg_ucd_decoder = -1;
51
52 /* fix fields */
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;
62
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;
69 */
70
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;
118
119 static gint hf_ucd_unknown_type = -1;
120 static gint hf_ucd_invalid_tlv = -1;
121
122 static const value_string vals_dcd_burst_tcs[] =
123 {
124     {0, "TCS disabled"},
125     {1, "TCS enabled"},
126     {0,  NULL}
127 };
128
129 static const value_string vals_dcd_burst_fec[] =
130 {
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"},
145     {14, "Reserved"},
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"},
184     {0,  NULL}
185 };
186
187 static const value_string vals_ucd_cqich_size[] =
188 {
189     {0, "0 bits"},
190     {1, "3 bits"},
191     {2, "4 bits"},
192     {3, "5 bits"},
193     {4, "6 bits"},
194     {5, "7 bits"},
195     {6, "8 bits"},
196     {7, "9 bits"},
197     {0,  NULL}
198 };
199
200 static const value_string vals_yes_no_str[] =
201 {
202     {0, "No"},
203     {1, "Yes"},
204     {0,  NULL}
205 };
206
207
208 /* UCD dissector */
209 void dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
210 {
211         guint offset = 0;
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;
225         tlv_info_t tlv_info;
226
227         /* Ensure the right payload type */
228         payload_type = tvb_get_guint8(tvb, offset);
229         if(payload_type != MAC_MGMT_MSG_UCD)
230         {
231                 return;
232         }
233
234         if(tree)
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 */
246                 offset++;
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 */
252                 offset++;
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 */
258                 offset++;
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 */
264                 offset++;
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 */
270                 offset++;
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 */
276                 offset++;
277                 while(offset < tvb_len)
278                 {
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))
288                                 {
289                                         col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "UCD TLV error");
290                                 }
291                                 proto_tree_add_item(ucd_tree,hf_ucd_invalid_tlv, tvb, offset, (tvb_len - offset), FALSE);
292                                 break;
293                         }
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);
298 #endif
299                         /* update the offset */
300                         offset += tlv_value_offset;
301                         /* process UCD TLV Encoded information */
302                         if (include_cor2_changes)
303                         {
304                                 switch (tlv_type)
305                                 {
306                                         case UCD_TLV_T_203_UL_PUSC_SUBCHANNEL_ROTATION:
307                                         {
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);
310                                                 break;
311                                         }
312                                         case UCD_TLV_T_205_RELATIVE_POWER_OFFSET_UL_HARQ_BURST:
313                                         {
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);
316                                                 break;
317                                         }
318                                         case UCD_TLV_T_206_RELATIVE_POWER_OFFSET_UL_BURST_CONTAINING_MAC_MGMT_MSG:
319                                         {
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);
322                                                 break;
323                                         }
324                                         case UCD_TLV_T_207_UL_INITIAL_TRANSMIT_TIMING:
325                                         {
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);
328                                                 break;
329                                         }
330                                         case UCD_TLV_T_210_FAST_FEEDBACK_REGION:
331                                         {
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);
334                                                 break;
335                                         }
336                                         case UCD_TLV_T_211_HARQ_ACK_REGION:
337                                         {
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);
340                                                 break;
341                                         }
342                                         case UCD_TLV_T_212_RANGING_REGION:
343                                         {
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);
346                                                 break;
347                                         }
348                                         case UCD_TLV_T_213_SOUNDING_REGION:
349                                         {
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);
352                                                 break;
353                                         }
354                                 }
355                         }
356                         switch (tlv_type)
357                         {
358                                 case UCD_UPLINK_BURST_PROFILE:
359                                 {
360                                         /* get the UIUC */
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);
371                                                 if(tlv_type == -1)
372                                                 {       /* invalid tlv info */
373                                                         if(check_col(pinfo->cinfo, COL_INFO))
374                                                         {
375                                                                 col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "UL Burst Profile error");
376                                                         }
377                                                         proto_tree_add_item(tlv_tree, hf_ucd_invalid_tlv, tvb, offset, (tlv_len - offset - tlv_offset), FALSE);
378                                                         break;
379                                                 }
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);
384                                                 switch (tlv_type)
385                                                 {
386                                                         case UCD_BURST_FEC:
387                                                         {
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);
390                                                                 break;
391                                                         }
392                                                         case UCD_BURST_RANGING_DATA_RATIO:
393                                                         {
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");
397                                                                 break;
398                                                         }
399 #if 0 /* for OFDM */
400                                                         case UCD_BURST_POWER_BOOST:
401                                                         {
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");
405                                                                 break;
406                                                         }
407                                                         case UCD_BURST_TCS_ENABLE:
408                                                         {
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);
411                                                                 break;
412                                                         }
413 #endif
414                                                         default:
415                                                                 /* ??? */
416                                                                 break;
417                                                 }
418                                                 tlv_offset += length;
419                                         }
420                                         break;
421                                 }
422                                 case UCD_RESERVATION_TIMEOUT:
423                                 {
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);
426                                         break;
427                                 }
428                                 case UCD_BW_REQ_SIZE:
429                                 {
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");
433                                         break;
434                                 }
435                                 case UCD_RANGING_REQ_SIZE:
436                                 {
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");
440                                         break;
441                                 }
442                                 case UCD_FREQUENCY:
443                                 {
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");
447                                         break;
448                                 }
449                                 case UCD_TLV_T_7_HO_RANGING_START:
450                                 {
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));
454                                         break;
455                                 }
456                                 case UCD_TLV_T_8_RANGING_HO_END:
457                                 {
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));
461                                         break;
462                                 }
463                                 case UCD_TLV_T_158_OPTIONAL_PERMUTATION_UL_ALLOCATED_SUBCHANNELS_BITMAP:
464                                 {
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);
467
468                                         break;
469                                 }
470                                 case UCD_TLV_T_159_BAND_AMC_ALLOCATION_THRESHHOLD:
471                                 {
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");
475                                         break;
476                                 }
477                                 case UCD_TLV_T_160_BAND_AMC_RELEASE_THRESHOLD:
478                                 {
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");
482                                         break;
483                                 }
484                                 case UCD_TLV_T_161_BAND_AMC_ALLOCATION_TIMER:
485                                 {
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");
489                                         break;
490                                 }
491                                 case UCD_TLV_T_162_BAND_AMC_RELEASE_TIMER:
492                                 {
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");
496                                         break;
497                                 }
498                                 case UCD_TLV_T_163_BAND_STATUS_REPORT_MAX_PERIOD:
499                                 {
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");
503                                         break;
504                                 }
505                                 case UCD_TLV_T_164_BAND_AMC_RETRY_TIMER:
506                                 {
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");
510                                         break;
511                                 }
512                                 case UCD_TLV_T_170_SAFETY_CHANNEL_RETRY_TIMER:
513                                 {
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");
517                                         break;
518                                 }
519                                 case UCD_TLV_T_171_HARQ_ACK_DELAY_FOR_DL_BURST:
520                                 {
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");
524                                         break;
525                                 }
526                                 case UCD_TLV_T_172_CQICH_BAND_AMC_TRANSITION_DELAY:
527                                 {
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");
531                                         break;
532                                 }
533                                 case UCD_TLV_T_174_MAXIMUM_RETRANSMISSION:
534                                 {
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);
537                                         break;
538                                 }
539                                 case UCD_TLV_T_176_SIZE_OF_CQICH_ID_FIELD:
540                                 {
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;
546                                         }
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);
549                                         break;
550                                 }
551                                 case UCD_TLV_T_177_NORMALIZED_CN_OVERRIDE_2:
552                                 {
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);
557                                         break;
558                                 }
559                                 case UCD_TLV_T_186_UPPER_BOUND__AAS_PREAMBLE:
560                                 {
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);
563                                         break;
564                                 }
565                                 case UCD_TLV_T_187_LOWER_BOUND_AAS_PREAMBLE:
566                                 {
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);
569                                         break;
570                                 }
571                                 case UCD_TLV_T_188_ALLOW_AAS_BEAM_SELECT_MESSAGE:
572                                 {
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);
575                                         break;
576                                 }
577                                 case UCD_TLV_T_189_USE_CQICH_INDICATION_FLAG:
578                                 {
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);
581                                         break;
582                                 }
583                                 case UCD_TLV_T_190_MS_SPECIFIC_UP_POWER_OFFSET_ADJUSTMENT_STEP:
584                                 {
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);
587                                         break;
588                                 }
589                                 case UCD_TLV_T_191_MS_SPECIFIC_DOWN_POWER_OFSET_ADJUSTMENT_STEP:
590                                 {
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);
593                                         break;
594                                 }
595                                 case UCD_TLV_T_192_MIN_LEVEL_POWER_OFFSET_ADJUSTMENT:
596                                 {
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);
599                                         break;
600                                 }
601                                 case UCD_TLV_T_193_MAX_LEVEL_POWER_OFFSETR_ADJUSTMENT:
602                                 {
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);
605                                         break;
606                                 }
607                                 case UCD_TLV_T_194_HANDOVER_RANGING_CODES:
608                                 {
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);
611                                         break;
612                                 }
613                                 case UCD_TLV_T_195_INITIAL_RANGING_INTERVAL:
614                                 {
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);
617                                         break;
618                                 }
619                                 case UCD_TLV_T_196_TX_POWER_REPORT:
620                                 {
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);
629                                         break;
630                                 }
631                                 case UCD_TLV_T_197_NORMALIZED_CN_FOR_CHANNEL_SOUNDING:
632                                 {
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);
635                                         break;
636                                 }
637                                 case UCD_TLV_T_198_INTIAL_RANGING_BACKOFF_START:
638                                 {
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));
642                                         break;
643                                 }
644                                 case UCD_TLV_T_199_INITIAL_RANGING_BACKOFF_END:
645                                 {
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));
649                                         break;
650                                 }
651                                 case UCD_TLV_T_200_BANDWIDTH_REQUESET_BACKOFF_START:
652                                 {
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));
656                                         break;
657                                 }
658                                 case UCD_TLV_T_201_BANDWIDTH_REQUEST_BACKOFF_END:
659                                 {
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));
663                                         break;
664                                 }
665                                 case UCD_TLV_T_202_UPLINK_BURST_PROFILE_FOR_MULTIPLE_FEC_TYPES:
666                                 {
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);
669                                         break;
670                                 }
671                                 case UCD_INITIAL_RANGING_CODES:
672                                 {
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);
675                                         break;
676                                 }
677                                 case UCD_PERIODIC_RANGING_CODES:
678                                 {
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);
681                                         break;
682                                 }
683                                 case UCD_BANDWIDTH_REQUEST_CODES:
684                                 {
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);
687                                         break;
688                                 }
689                                 case UCD_PERIODIC_RANGING_BACKOFF_START:
690                                 {
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));
694                                         break;
695
696                                 }
697                                 case UCD_PERIODIC_RANGING_BACKOFF_END:
698                                 {
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));
702                                         break;
703                                 }
704                                 case UCD_START_OF_RANGING_CODES_GROUP:
705                                 {
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);
708                                         break;
709
710                                 }
711                                 case UCD_PERMUTATION_BASE:
712                                 {
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);
715                                         break;
716                                 }
717                                 case UCD_UL_ALLOCATED_SUBCHANNELS_BITMAP:
718                                 {
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);
721                                         break;
722                                 }
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:
731                                 {
732                                         /* Unknown TLV type if cor2 not enabled. */
733                                         if (!include_cor2_changes)
734                                         {
735                                                 proto_tree_add_protocol_format(ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Unknown TLV Type");
736                                         }
737                                         break;
738                                 }
739                                 default:
740                                 {
741                                         proto_tree_add_protocol_format(ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset, tlv_len, "Unknown TLV Type");
742                                 }
743                         }       /* end of switch */
744                         offset += tlv_len;
745                 }       /* end of TLV process while loop */
746         }
747 }
748
749 /* Register Wimax Mac Payload Protocol and Dissector */
750 void proto_register_mac_mgmt_msg_ucd(void)
751 {
752         /* UCD display */
753         static hf_register_info hf[] =
754         {
755                 {
756                         &hf_ucd_message_type,
757                         {
758                                 "MAC Management Message Type", "wmx.macmgtmsgtype.ucd",
759                                 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
760                         }
761                 },
762                 {
763                         &hf_ucd_tlv_t_188_allow_aas_beam_select_message,
764                         {
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
767                         }
768                 },
769                 {
770                         &hf_ucd_tlv_t_159_band_amc_allocation_threshold,
771                         {
772                                 "Band AMC Allocation Threshold", "wmx.ucd.band_amc.allocation_threshold",
773                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
774                         }
775                 },
776                 {
777                         &hf_ucd_tlv_t_161_band_amc_allocation_timer,
778                         {
779                                 "Band AMC Allocation Timer", "wmx.ucd.band_amc.allocation_timer",
780                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
781                         }
782                 },
783                 {
784                         &hf_ucd_tlv_t_160_band_amc_release_threshold,
785                         {
786                                 "Band AMC Release Threshold", "wmx.ucd.band_amc.release_threshold",
787                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
788                         }
789                 },
790                 {
791                         &hf_ucd_tlv_t_162_band_amc_release_timer,
792                         {
793                                 "Band AMC Release Timer", "wmx.ucd.band_amc.release_timer",
794                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
795                         }
796                 },
797                 {
798                         &hf_ucd_tlv_t_164_band_amc_retry_timer,
799                         {
800                                 "Band AMC Retry Timer", "wmx.ucd.band_amc.retry_timer",
801                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
802                         }
803                 },
804                 {
805                         &hf_ucd_tlv_t_163_band_status_report_max_period,
806                         {
807                                 "Band Status Report MAC Period", "wmx.ucd.band_status.report_max_period",
808                                 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
809                         }
810                 },
811                 {
812                         &hf_ucd_tlv_t_152_bandwidth_request_codes,
813                         {
814                                 "Bandwidth Request Codes", "wmx.ucd.bandwidth_request",
815                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
816                         }
817                 },
818                 {
819                         &hf_ucd_burst_fec,
820                         {
821                                 "FEC Code Type", "wmx.ucd.burst.fec",
822                                 FT_UINT8, BASE_HEX, VALS(vals_dcd_burst_fec), 0, NULL, HFILL
823                         }
824                 },
825                 {
826                         &hf_ucd_burst_ranging_data_ratio,
827                         {
828                                 "Ranging Data Ratio", "wmx.ucd.burst.ranging_data_ratio",
829                                 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
830                         }
831                 },
832                 {
833                         &hf_ucd_ul_burst_reserved,
834                         {
835                                 "Reserved", "wmx.ucd.burst.reserved",
836                                 FT_UINT8, BASE_HEX, NULL, 0xF0, NULL, HFILL
837                         }
838                 },
839                 {
840                         &hf_ucd_ul_burst_uiuc,
841                         {
842                                 "UIUC", "wmx.ucd.burst.uiuc",
843                                 FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL
844                         }
845                 },
846 #if 0
847                 {
848                         &hf_ucd_burst_power_boost,
849                         {"Focused Contention Power Boost", "wmx.ucd.burst.power_boost", FT_UINT8, BASE_HEX, NULL, 0, "", HFILL}
850                 },
851                 {
852                         &hf_ucd_burst_tcs_enable,
853                         {"TCS", "wmx.ucd.burst.tcs", FT_UINT8, BASE_DEC, VALS(vals_dcd_burst_tcs), 0, "", HFILL}
854                 },
855 #endif
856                 {
857                         &hf_ucd_bw_req_size,
858                         {
859                                 "Bandwidth Request Opportunity Size", "wmx.ucd.bw_req_size",
860                                 FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL
861                         }
862                 },
863                 {
864                         &hf_ucd_tlv_t_172_cqich_band_amc_transition_delay,
865                         {
866                                 "CQICH Band AMC-Transition Delay", "wmx.ucd.cqich_band_amc_transition_delay",
867                                 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
868                         }
869                 },
870                 {
871                         &hf_ucd_freq,
872                         {
873                                 "Frequency", "wmx.ucd.frequency",
874                                 FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL
875                         }
876                 },
877                 {
878                         &hf_ucd_tlv_t_194_handover_ranging_codes,
879                         {
880                                 "Handover Ranging Codes", "wmx.ucd.handover_ranging_codes",
881                                 FT_INT8, BASE_DEC, NULL, 0, NULL, HFILL
882                         }
883                 },
884                 {
885                         &hf_ucd_tlv_t_171_harq_ack_delay_dl_burst,
886                         {
887                                 "HARQ ACK Delay for DL Burst", "wmx.ucd.harq_ack_delay_dl_burst",
888                                 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
889                         }
890                 },
891                 {
892                         &hf_ucd_tlv_t_150_initial_ranging_codes,
893                         {
894                                 "Initial Ranging Codes", "wmx.ucd.initial_ranging_codes",
895                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
896                         }
897                 },
898                 {
899                         &hf_ucd_tlv_t_195_initial_ranging_interval,
900                         {
901                                 "Number of Frames Between Initial Ranging Interval Allocation", "wmx.ucd.initial_ranging_interval",
902                                 FT_INT8, BASE_DEC, NULL, 0, NULL, HFILL
903                         }
904                 },
905                 {
906                         &hf_ucd_invalid_tlv,
907                         {
908                                 "Invalid TLV", "wmx.ucd.invalid_tlv",
909                                 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
910                         }
911                 },
912                 {
913                         &hf_ucd_tlv_t_187_lower_bound_aas_preamble,
914                         {
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
917                         }
918                 },
919                 {
920                         &hf_ucd_tlv_t_192_min_level_power_offset_adjustment,
921                         {
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
924                         }
925                 },
926                 {
927                         &hf_ucd_tlv_t_193_max_level_power_offset_adjustment,
928                         {
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
931                         }
932                 },
933                 {
934                         &hf_ucd_tlv_t_174_maximum_retransmission,
935                         {
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
938                         }
939                 },
940                 {
941                         &hf_ucd_tlv_t_191_ms_specific_down_power_addjustment_step,
942                         {
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
945                         }
946                 },
947                 {
948                         &hf_ucd_tlv_t_190_ms_specific_up_power_addjustment_step,
949                         {
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
952                         }
953                 },
954                 {
955                         &hf_ucd_tlv_t_197_normalized_cn_channel_sounding,
956                         {
957                                 "Normalized C/N for Channel Sounding", "wmx.ucd.normalized_cn.channel_sounding",
958                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
959                         }
960                 },
961                 {
962                         &hf_ucd_tlv_t_177_normalized_cn_override2,
963                         {
964                                 "Normalized C/N Override 2", "wmx.ucd.normalized_cn.override_2",
965                                 FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL
966                         }
967                 },
968                 {
969                         &hf_ucd_tlv_t_177_normalized_cn_override2_first_line,
970                         {
971                                 "Normalized C/N Value", "wmx.ucd.normalized_cn.override_first_line",
972                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
973                         }
974                 },
975                 {
976                         &hf_ucd_tlv_t_177_normalized_cn_override2_list,
977                         {
978                                 "Normalized C/N Value List", "wmx.ucd.normalized_cn.override_list",
979                                 FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL
980                         }
981                 },
982                 {
983                         &hf_ucd_tlv_t_158_optional_permutation_ul_allocated_subchannels_bitmap,
984                         {
985                                 "Optional permutation UL allocated subchannels bitmap", "wmx.ucd.optional_permutation_ul_allocated_subchannels_bitmap",
986                                 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
987                         }
988                 },
989                 {
990                         &hf_ucd_tlv_t_151_periodic_ranging_codes,
991                         {
992                                 "Periodic Ranging Codes", "wmx.ucd.periodic_ranging_codes",
993                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
994                         }
995                 },
996                 {
997                         &hf_ucd_tlv_t_156_permutation_base,
998                         {
999                                 "Permutation Base", "wmx.ucd.permutation_base",
1000                                 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
1001                         }
1002                 },
1003                 {
1004                         &hf_ucd_ranging_req_size,
1005                         {
1006                                 "Ranging Request Opportunity Size", "wmx.ucd.ranging_req_size",
1007                                 FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL
1008                         }
1009                 },
1010                 {
1011                         &hf_ucd_res_timeout,
1012                         {
1013                                 "Contention-based Reservation Timeout", "wmx.ucd.res_timeout",
1014                                 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
1015                         }
1016                 },
1017                 {
1018                         &hf_ucd_tlv_t_170_safety_channel_retry_timer,
1019                         {
1020                                 "Safety Channel Release Timer", "wmx.ucd.safety_channel_release_timer",
1021                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1022                         }
1023                 },
1024                 {
1025                         &hf_ucd_tlv_t_176_size_of_cqich_id_field,
1026                         {
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
1029                         }
1030                 },
1031                 {
1032                         &hf_ucd_tlv_t_155_start_of_ranging_codes_group,
1033                         {
1034                                 "Start of Ranging Codes Group", "wmx.ucd.start_of_ranging_codes_group",
1035                                 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
1036                         }
1037                 },
1038                         {
1039                         &hf_ucd_ul_allocated_subchannles_bitmap,
1040                         {
1041                                 "UL Allocated Subchannels Bitmap", "wmx.ucd.subchan.bitmap",
1042                                 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1043                         }
1044                 },
1045                 {
1046                         &hf_ucd_subchan_codes,
1047                         {
1048                                 "Periodic Ranging Codes", "wmx.ucd.subchan.codes",
1049                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1050                         }
1051                 },
1052                 {
1053                         &hf_ucd_subchan_params_num_chan,
1054                         {
1055                                 "Number of Subchannels", "wmx.ucd.subchan.num_chan",
1056                                 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
1057                         }
1058                 },
1059                 {
1060                         &hf_ucd_subchan_params_num_sym,
1061                         {
1062                                 "Number of OFDMA Symbols", "wmx.ucd.subchan.num_sym",
1063                                 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
1064                         }
1065                 },
1066                 {
1067                         &hf_ucd_tlv_t_196_tx_power_report,
1068                         {
1069                                 "Tx Power Report", "wmx.ucd.tx_power_report",
1070                                 FT_UINT24, BASE_HEX, NULL, 0, NULL, HFILL
1071                         }
1072                 },
1073                 {
1074                         &hf_ucd_tlv_t_196_tx_power_report_a_p_avg,
1075                         {
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
1078                         }
1079                 },
1080                 {
1081                         &hf_ucd_tlv_t_196_tx_power_report_a_p_avg_icqch,
1082                         {
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
1085                         }
1086                 },
1087                 {
1088                         &hf_ucd_tlv_t_196_tx_power_report_interval,
1089                         {
1090                                 "Interval (expressed as power of 2)", "wmx.ucd.tx_power_report.interval",
1091                                 FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL
1092                         }
1093                 },
1094                 {
1095                         &hf_ucd_tlv_t_196_tx_power_report_interval_icqch,
1096                         {
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
1099                         }
1100                 },
1101                 {
1102                         &hf_ucd_tlv_t_196_tx_power_report_threshold,
1103                         {
1104                                 "Threshold", "wmx.ucd.tx_power_report.threshold",
1105                                 FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL
1106                         }
1107                 },
1108                 {
1109                         &hf_ucd_tlv_t_196_tx_power_report_threshold_icqch,
1110                         {
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
1113                         }
1114                 },
1115                 {
1116                         &hf_ucd_unknown_type,
1117                         {
1118                                 "Unknown UCD Type", "wmx.ucd.unknown_tlv_type",
1119                                 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1120                         }
1121                 },
1122                 {
1123                         &hf_ucd_tlv_t_202_uplink_burst_profile_for_multiple_fec_types,
1124                         {
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
1127                         }
1128                 },
1129                 {
1130                         &hf_ucd_tlv_t_203_ul_pusc_subchannel_rotation,
1131                         {
1132                                 "Uplink PUSC Subchannel Rotation", "wmx.ucd.uplink_burst_profile.ul_pusc_subchannel_rotation",
1133                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1134                         }
1135                 },
1136                 {
1137                         &hf_ucd_tlv_t_205_relative_power_offset_ul_harq_burst,
1138                         {
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
1141                         }
1142                 },
1143                 {
1144                         &hf_ucd_tlv_t_206_relative_power_offset_ul_burst_containing_mac_mgmt_msg,
1145                         {
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
1148                         }
1149                 },
1150                 {
1151                         &hf_ucd_tlv_t_207_ul_initial_transmit_timing,
1152                         {
1153                                 "UL Initial Transmit Timing", "wmx.ucd.uplink_burst_profile.ul_initial_transmit_timing",
1154                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1155                         }
1156                 },
1157                 {
1158                         &hf_ucd_tlv_t_210_fast_feedback_region,
1159                         {
1160                                 "Fast Feedback Region", "wmx.ucd.uplink_burst_profile.fast_feedback_region",
1161                                 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1162                         }
1163                 },
1164                 {
1165                         &hf_ucd_tlv_t_211_harq_ack_region,
1166                         {
1167                                 "HARQ ACK Region", "wmx.ucd.uplink_burst_profile.harq_ack_region",
1168                                 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1169                         }
1170                 },
1171                 {
1172                         &hf_ucd_tlv_t_212_ranging_region,
1173                         {
1174                                 "Ranging Region", "wmx.ucd.uplink_burst_profile.ranging_region",
1175                                 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1176                         }
1177                 },
1178                 {
1179                         &hf_ucd_tlv_t_213_sounding_region,
1180                         {
1181                                 "Sounding Region", "wmx.ucd.uplink_burst_profile.sounding_region",
1182                                 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
1183                         }
1184                 },
1185                 {
1186                         &hf_ucd_tlv_t_186_upper_bound_aas_preamble,
1187                         {
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
1190                         }
1191                 },
1192                 {
1193                         &hf_ucd_tlv_t_189_use_cqich_indication_flag,
1194                         {
1195                                 "Use CQICH Indication Flag", "wmx.ucd.use_cqich_indication_flag",
1196                                 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
1197                         }
1198                 }
1199         };
1200
1201         /* Setup protocol subtree array */
1202         static gint *ett[] =
1203                 {
1204                         &ett_mac_mgmt_msg_ucd_decoder,
1205                 };
1206
1207         proto_mac_mgmt_msg_ucd_decoder = proto_mac_mgmt_msg_dcd_decoder;
1208
1209         proto_register_field_array(proto_mac_mgmt_msg_ucd_decoder, hf, array_length(hf));
1210         proto_register_subtree_array(ett, array_length(ett));
1211 }