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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
38 #include <epan/packet.h>
39 #include "wimax_tlv.h"
40 #include "wimax_mac.h"
42 extern gboolean include_cor2_changes
;
44 guint cqich_id_size
; /* Set for CQICH_Alloc_IE */
46 static gint proto_mac_mgmt_msg_ucd_decoder
= -1;
47 static gint ett_mac_mgmt_msg_ucd_decoder
= -1;
50 static gint hf_ucd_res_timeout
= -1;
51 static gint hf_ucd_bw_req_size
= -1;
52 static gint hf_ucd_ranging_req_size
= -1;
53 static gint hf_ucd_freq
= -1;
54 /* static gint hf_ucd_subchan_params_num_chan = -1; */
55 static gint hf_ucd_ul_allocated_subchannles_bitmap
= -1;
56 /* static gint hf_ucd_subchan_params_num_sym = -1; */
57 /* static gint hf_ucd_subchan_codes = -1; */
59 static gint hf_ucd_ul_burst_reserved
= -1;
60 static gint hf_ucd_ul_burst_uiuc
= -1;
61 static gint hf_ucd_burst_fec
= -1;
62 static gint hf_ucd_burst_ranging_data_ratio
= -1;
63 /*static gint hf_ucd_burst_power_boost = -1;
64 *static gint hf_ucd_burst_tcs_enable = -1;
67 static gint hf_ucd_tlv_t_159_band_amc_allocation_threshold
= -1;
68 static gint hf_ucd_tlv_t_158_optional_permutation_ul_allocated_subchannels_bitmap
= -1;
69 static gint hf_ucd_tlv_t_160_band_amc_release_threshold
= -1;
70 static gint hf_ucd_tlv_t_161_band_amc_allocation_timer
= -1;
71 static gint hf_ucd_tlv_t_162_band_amc_release_timer
= -1;
72 static gint hf_ucd_tlv_t_163_band_status_report_max_period
= -1;
73 static gint hf_ucd_tlv_t_164_band_amc_retry_timer
= -1;
74 static gint hf_ucd_tlv_t_171_harq_ack_delay_dl_burst
= -1;
75 static gint hf_ucd_tlv_t_170_safety_channel_retry_timer
= -1;
76 static gint hf_ucd_tlv_t_172_cqich_band_amc_transition_delay
= -1;
77 static gint hf_ucd_tlv_t_174_maximum_retransmission
= -1;
78 static gint hf_ucd_tlv_t_177_normalized_cn_override2
= -1;
79 static gint hf_ucd_tlv_t_177_normalized_cn_override2_first_line
= -1;
80 static gint hf_ucd_tlv_t_177_normalized_cn_override2_list
= -1;
81 static gint hf_ucd_tlv_t_176_size_of_cqich_id_field
= -1;
82 static gint hf_ucd_tlv_t_186_upper_bound_aas_preamble
= -1;
83 static gint hf_ucd_tlv_t_187_lower_bound_aas_preamble
= -1;
84 static gint hf_ucd_tlv_t_188_allow_aas_beam_select_message
= -1;
85 static gint hf_ucd_tlv_t_189_use_cqich_indication_flag
= -1;
86 static gint hf_ucd_tlv_t_190_ms_specific_up_power_addjustment_step
= -1;
87 static gint hf_ucd_tlv_t_191_ms_specific_down_power_addjustment_step
= -1;
88 static gint hf_ucd_tlv_t_192_min_level_power_offset_adjustment
= -1;
89 static gint hf_ucd_tlv_t_193_max_level_power_offset_adjustment
= -1;
90 static gint hf_ucd_tlv_t_194_handover_ranging_codes
= -1;
91 static gint hf_ucd_tlv_t_195_initial_ranging_interval
= -1;
92 static gint hf_ucd_tlv_t_196_tx_power_report
= -1;
93 static gint hf_ucd_tlv_t_196_tx_power_report_threshold
= -1;
94 static gint hf_ucd_tlv_t_196_tx_power_report_interval
= -1;
95 static gint hf_ucd_tlv_t_196_tx_power_report_a_p_avg
= -1;
96 static gint hf_ucd_tlv_t_196_tx_power_report_threshold_icqch
= -1;
97 static gint hf_ucd_tlv_t_196_tx_power_report_interval_icqch
= -1;
98 static gint hf_ucd_tlv_t_196_tx_power_report_a_p_avg_icqch
= -1;
99 static gint hf_ucd_tlv_t_197_normalized_cn_channel_sounding
= -1;
100 static gint hf_ucd_tlv_t_202_uplink_burst_profile_for_multiple_fec_types
= -1;
101 static gint hf_ucd_tlv_t_203_ul_pusc_subchannel_rotation
= -1;
102 static gint hf_ucd_tlv_t_205_relative_power_offset_ul_harq_burst
= -1;
103 static gint hf_ucd_tlv_t_206_relative_power_offset_ul_burst_containing_mac_mgmt_msg
= -1;
104 static gint hf_ucd_tlv_t_207_ul_initial_transmit_timing
= -1;
105 static gint hf_ucd_tlv_t_210_fast_feedback_region
= -1;
106 static gint hf_ucd_tlv_t_211_harq_ack_region
= -1;
107 static gint hf_ucd_tlv_t_212_ranging_region
= -1;
108 static gint hf_ucd_tlv_t_213_sounding_region
= -1;
109 static gint hf_ucd_tlv_t_150_initial_ranging_codes
= -1;
110 static gint hf_ucd_tlv_t_151_periodic_ranging_codes
= -1;
111 static gint hf_ucd_tlv_t_152_bandwidth_request_codes
= -1;
112 static gint hf_ucd_tlv_t_155_start_of_ranging_codes_group
= -1;
113 static gint hf_ucd_tlv_t_156_permutation_base
= -1;
114 static gint hf_ucd_ho_ranging_start
= -1;
115 static gint hf_ucd_ho_ranging_end
= -1;
116 static gint hf_ucd_initial_range_backoff_start
= -1;
117 static gint hf_ucd_initial_range_backoff_end
= -1;
118 static gint hf_ucd_bandwidth_backoff_start
= -1;
119 static gint hf_ucd_bandwidth_backoff_end
= -1;
120 static gint hf_ucd_periodic_ranging_backoff_start
= -1;
121 static gint hf_ucd_periodic_ranging_backoff_end
= -1;
123 /* static gint hf_ucd_unknown_type = -1; */
124 static gint hf_ucd_invalid_tlv
= -1;
127 static const value_string vals_dcd_burst_tcs
[] =
135 static const value_string vals_dcd_burst_fec
[] =
137 {0, "QPSK (CC) 1/2"},
138 {1, "QPSK (CC) 3/4"},
139 {2, "16-QAM (CC) 1/2"},
140 {3, "16-QAM (CC) 3/4"},
141 {4, "64-QAM (CC) 1/2"},
142 {5, "64-QAM (CC) 2/3"},
143 {6, "64-QAM (CC) 3/4"},
144 {7, "QPSK (BTC) 1/2"},
145 {8, "QPSK (BTC) 3/4 or 2/3"},
146 {9, "16-QAM (BTC) 3/5"},
147 {10, "16-QAM (BTC) 4/5"},
148 {11, "64-QAM (BTC) 2/3 or 5/8"},
149 {12, "64-QAM (BTC) 5/6 or 4/5"},
150 {13, "QPSK (CTC) 1/2"},
152 {15, "QPSK (CTC) 3/4"},
153 {16, "16-QAM (CTC) 1/2"},
154 {17, "16-QAM (CTC) 3/4"},
155 {18, "64-QAM (CTC) 1/2"},
156 {19, "64-QAM (CTC) 2/3"},
157 {20, "64-QAM (CTC) 3/4"},
158 {21, "64-QAM (CTC) 5/6"},
159 {22, "QPSK (ZT CC) 1/2"},
160 {23, "QPSK (ZT CC) 3/4"},
161 {24, "16-QAM (ZT CC) 1/2"},
162 {25, "16-QAM (ZT CC) 3/4"},
163 {26, "64-QAM (ZT CC) 1/2"},
164 {27, "64-QAM (ZT CC) 2/3"},
165 {28, "64-QAM (ZT CC) 3/4"},
166 {29, "QPSK (LDPC) 1/2"},
167 {30, "QPSK (LDPC) 2/3 A code"},
168 {31, "16-QAM (LDPC) 3/4 A code"},
169 {32, "16-QAM (LDPC) 1/2"},
170 {33, "16-QAM (LDPC) 2/3 A code"},
171 {34, "16-QAM (LDPC) 3/4 A code"},
172 {35, "64-QAM (LDPC) 1/2"},
173 {36, "64-QAM (LDPC) 2/3 A code"},
174 {37, "64-QAM (LDPC) 3/4 A code"},
175 {38, "QPSK (LDPC) 2/3 B code"},
176 {39, "QPSK (LDPC) 3/4 B code"},
177 {40, "16-QAM (LDPC) 2/3 B code"},
178 {41, "16-QAM (LDPC) 3/4 B code"},
179 {42, "64-QAM (LDPC) 2/3 B code"},
180 {43, "64-QAM (LDPC) 3/4 B code"},
181 {44, "QPSK (CC with optional interleaver) 1/2"},
182 {45, "QPSK (CC with optional interleaver) 3/4"},
183 {46, "16-QAM (CC with optional interleaver) 1/2"},
184 {47, "16-QAM (CC optional interleaver) 0%00"},
185 {48, "64-QAM (CC with optional interleaver) 2/3"},
186 {49, "64-QAM (CC with optional interleaver) 3/4"},
187 {50, "QPSK (LDPC) 5/6"},
188 {51, "16-QAM (LDPC) 5/6"},
189 {52, "64-QAM (LDPC) 5/6"},
193 static const value_string vals_ucd_cqich_size
[] =
206 static const value_string vals_yes_no_str
[] =
215 static void dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
)
218 guint tvb_len
, length
;
219 gint tlv_type
, tlv_len
, tlv_offset
, tlv_value_offset
;
223 { /* we are being asked for details */
224 proto_item
*ucd_item
;
225 proto_tree
*ucd_tree
;
226 guint ucd_config_change_count
;
227 guint ucd_ranging_backoff_start
;
228 guint ucd_ranging_backoff_end
;
229 guint ucd_request_backoff_start
;
230 guint ucd_request_backoff_end
;
232 /* Get the tvb reported length */
233 tvb_len
= tvb_reported_length(tvb
);
234 /* display MAC payload type UCD */
235 ucd_item
= proto_tree_add_protocol_format(tree
, proto_mac_mgmt_msg_ucd_decoder
, tvb
, offset
, -1, "Uplink Channel Descriptor (UCD)");
236 /* add MAC UCD subtree */
237 ucd_tree
= proto_item_add_subtree(ucd_item
, ett_mac_mgmt_msg_ucd_decoder
);
238 /* Decode and display the Uplink Channel Descriptor (UCD) */
239 /* get the Configuration Change Count */
240 ucd_config_change_count
= tvb_get_guint8(tvb
, offset
);
241 /* display the Configuration Change Count */
242 proto_tree_add_text(ucd_tree
, tvb
, offset
, 1, "Configuration Change Count: %u", ucd_config_change_count
);
243 /* move to next field */
245 /* get the ranging backoff start */
246 ucd_ranging_backoff_start
= tvb_get_guint8(tvb
, offset
);
247 /* display the ranging backoff start */
248 proto_tree_add_text(ucd_tree
, tvb
, offset
, 1, "Ranging Backoff Start: 2^%u = %u", ucd_ranging_backoff_start
, (1 << ucd_ranging_backoff_start
));
249 /* move to next field */
251 /* get the ranging backoff end */
252 ucd_ranging_backoff_end
= tvb_get_guint8(tvb
, offset
);
253 /* display the ranging backoff end */
254 proto_tree_add_text(ucd_tree
, tvb
, offset
, 1, "Ranging Backoff End: 2^%u = %u", ucd_ranging_backoff_end
, (1 << ucd_ranging_backoff_end
));
255 /* move to next field */
257 /* get the request backoff start */
258 ucd_request_backoff_start
= tvb_get_guint8(tvb
, offset
);
259 /* display the request backoff start */
260 proto_tree_add_text(ucd_tree
, tvb
, offset
, 1, "Request Backoff Start: 2^%u = %u", ucd_request_backoff_start
, (1 << ucd_request_backoff_start
));
261 /* move to next field */
263 /* get the request backoff end */
264 ucd_request_backoff_end
= tvb_get_guint8(tvb
, offset
);
265 /* display the request backoff end */
266 proto_tree_add_text(ucd_tree
, tvb
, offset
, 1, "Request Backoff End: 2^%u = %u", ucd_request_backoff_end
, (1 << ucd_request_backoff_end
));
267 /* move to next field */
269 while(offset
< tvb_len
)
271 /* get the TLV information */
272 init_tlv_info(&tlv_info
, tvb
, offset
);
273 /* get the TLV type */
274 tlv_type
= get_tlv_type(&tlv_info
);
275 /* get the TLV length */
276 tlv_len
= get_tlv_length(&tlv_info
);
277 if(tlv_type
== -1 || tlv_len
> MAX_TLV_LEN
|| tlv_len
< 1)
278 { /* invalid tlv info */
279 col_append_sep_str(pinfo
->cinfo
, COL_INFO
, NULL
, "UCD TLV error");
280 proto_tree_add_item(ucd_tree
,hf_ucd_invalid_tlv
, tvb
, offset
, (tvb_len
- offset
), ENC_NA
);
283 /* get the TLV value offset */
284 tlv_value_offset
= get_tlv_value_offset(&tlv_info
);
285 #ifdef DEBUG /* for debug only */
286 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
);
288 /* update the offset */
289 offset
+= tlv_value_offset
;
290 /* process UCD TLV Encoded information */
291 if (include_cor2_changes
)
295 case UCD_TLV_T_203_UL_PUSC_SUBCHANNEL_ROTATION
:
297 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_203_ul_pusc_subchannel_rotation
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
300 case UCD_TLV_T_205_RELATIVE_POWER_OFFSET_UL_HARQ_BURST
:
302 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_205_relative_power_offset_ul_harq_burst
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
305 case UCD_TLV_T_206_RELATIVE_POWER_OFFSET_UL_BURST_CONTAINING_MAC_MGMT_MSG
:
307 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_206_relative_power_offset_ul_burst_containing_mac_mgmt_msg
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
310 case UCD_TLV_T_207_UL_INITIAL_TRANSMIT_TIMING
:
312 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_207_ul_initial_transmit_timing
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
315 case UCD_TLV_T_210_FAST_FEEDBACK_REGION
:
317 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_210_fast_feedback_region
, tvb
, offset
-tlv_value_offset
, ENC_NA
);
320 case UCD_TLV_T_211_HARQ_ACK_REGION
:
322 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_211_harq_ack_region
, tvb
, offset
-tlv_value_offset
, ENC_NA
);
325 case UCD_TLV_T_212_RANGING_REGION
:
327 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_212_ranging_region
, tvb
, offset
-tlv_value_offset
, ENC_NA
);
330 case UCD_TLV_T_213_SOUNDING_REGION
:
332 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_213_sounding_region
, tvb
, offset
-tlv_value_offset
, ENC_NA
);
339 proto_tree
*tlv_tree
;
340 proto_item
*tlv_item1
;
344 case UCD_UPLINK_BURST_PROFILE
:
347 ul_burst_uiuc
= tvb_get_guint8(tvb
, offset
) & 0x0F;
348 /* add TLV subtree */
349 proto_str
= wmem_strdup_printf(wmem_packet_scope(), "Uplink Burst Profile (UIUC = %u)", ul_burst_uiuc
);
350 tlv_tree
= add_protocol_subtree(&tlv_info
, ett_mac_mgmt_msg_ucd_decoder
, ucd_tree
, proto_mac_mgmt_msg_ucd_decoder
, tvb
, offset
-tlv_value_offset
, tlv_len
, proto_str
);
351 proto_tree_add_item(tlv_tree
, hf_ucd_ul_burst_reserved
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
352 proto_tree_add_item(tlv_tree
, hf_ucd_ul_burst_uiuc
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
353 for (tlv_offset
= 1; tlv_offset
< tlv_len
;)
354 { /* get the TLV information */
355 init_tlv_info(&tlv_info
, tvb
, (offset
+tlv_offset
));
356 /* get the TLV type */
357 tlv_type
= get_tlv_type(&tlv_info
);
359 { /* invalid tlv info */
360 col_append_sep_str(pinfo
->cinfo
, COL_INFO
, NULL
, "UL Burst Profile error");
361 proto_tree_add_item(tlv_tree
, hf_ucd_invalid_tlv
, tvb
, offset
, (tlv_len
- offset
- tlv_offset
), ENC_NA
);
364 /* get the TLV length */
365 length
= get_tlv_length(&tlv_info
);
369 proto_item
*tlv_item2
;
372 add_tlv_subtree(&tlv_info
, tlv_tree
, hf_ucd_burst_fec
, tvb
, (offset
+tlv_offset
), ENC_BIG_ENDIAN
);
375 case UCD_BURST_RANGING_DATA_RATIO
:
377 tlv_item2
= add_tlv_subtree(&tlv_info
, tlv_tree
, hf_ucd_burst_ranging_data_ratio
, tvb
, (offset
+tlv_offset
), ENC_BIG_ENDIAN
);
378 proto_item_append_text(tlv_item2
, " dB");
382 case UCD_BURST_POWER_BOOST
:
384 tlv_item2
= add_tlv_subtree(&tlv_info
, tlv_tree
, hf_ucd_burst_power_boost
, tvb
, (offset
+tlv_offset
), ENC_BIG_ENDIAN
);
385 proto_item_append_text(tlv_item2
, " dB");
388 case UCD_BURST_TCS_ENABLE
:
390 add_tlv_subtree(&tlv_info
, tlv_tree
, hf_ucd_burst_tcs_enable
, tvb
, (offset
+tlv_offset
), 1, ENC_BIG_ENDIAN
);
398 tlv_offset
+= (length
+get_tlv_value_offset(&tlv_info
));
402 case UCD_RESERVATION_TIMEOUT
:
404 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_res_timeout
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
407 case UCD_BW_REQ_SIZE
:
409 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_bw_req_size
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
410 proto_item_append_text(tlv_item1
, " PS");
413 case UCD_RANGING_REQ_SIZE
:
415 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_ranging_req_size
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
416 proto_item_append_text(tlv_item1
, " PS");
421 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_freq
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
422 proto_item_append_text(tlv_item1
, " kHz");
425 case UCD_TLV_T_7_HO_RANGING_START
:
427 tlv_tree
= add_tlv_subtree_no_item(&tlv_info
, ucd_tree
, hf_ucd_ho_ranging_start
, tvb
, offset
-tlv_value_offset
);
428 utemp
= tvb_get_guint8(tvb
, offset
);
429 proto_tree_add_uint_format_value(tlv_tree
, hf_ucd_ho_ranging_start
, tvb
, offset
, tvb_len
, utemp
, "2^%u = %u", utemp
, (1 << utemp
));
432 case UCD_TLV_T_8_RANGING_HO_END
:
434 tlv_tree
= add_tlv_subtree_no_item(&tlv_info
, ucd_tree
, hf_ucd_ho_ranging_end
, tvb
, offset
-tlv_value_offset
);
435 utemp
= tvb_get_guint8(tvb
, offset
);
436 proto_tree_add_uint_format_value(tlv_tree
, hf_ucd_ho_ranging_end
, tvb
, offset
, tvb_len
, utemp
, "2^%u = %u", utemp
, (1 << utemp
));
439 case UCD_TLV_T_158_OPTIONAL_PERMUTATION_UL_ALLOCATED_SUBCHANNELS_BITMAP
:
441 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_158_optional_permutation_ul_allocated_subchannels_bitmap
, tvb
, offset
-tlv_value_offset
, ENC_NA
);
444 case UCD_TLV_T_159_BAND_AMC_ALLOCATION_THRESHHOLD
:
446 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_159_band_amc_allocation_threshold
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
447 proto_item_append_text(tlv_item1
, " dB");
450 case UCD_TLV_T_160_BAND_AMC_RELEASE_THRESHOLD
:
452 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_160_band_amc_release_threshold
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
453 proto_item_append_text(tlv_item1
, " dB");
456 case UCD_TLV_T_161_BAND_AMC_ALLOCATION_TIMER
:
458 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_161_band_amc_allocation_timer
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
459 proto_item_append_text(tlv_item1
, " frames");
462 case UCD_TLV_T_162_BAND_AMC_RELEASE_TIMER
:
464 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_161_band_amc_allocation_timer
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
465 proto_item_append_text(tlv_item1
, " frames");
468 case UCD_TLV_T_163_BAND_STATUS_REPORT_MAX_PERIOD
:
470 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_163_band_status_report_max_period
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
471 proto_item_append_text(tlv_item1
, " frames");
474 case UCD_TLV_T_164_BAND_AMC_RETRY_TIMER
:
476 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_164_band_amc_retry_timer
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
477 proto_item_append_text(tlv_item1
, " frames");
480 case UCD_TLV_T_170_SAFETY_CHANNEL_RETRY_TIMER
:
482 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_170_safety_channel_retry_timer
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
483 proto_item_append_text(tlv_item1
, " frames");
486 case UCD_TLV_T_171_HARQ_ACK_DELAY_FOR_DL_BURST
:
488 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_171_harq_ack_delay_dl_burst
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
489 proto_item_append_text(tlv_item1
, " frames offset");
492 case UCD_TLV_T_172_CQICH_BAND_AMC_TRANSITION_DELAY
:
494 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_172_cqich_band_amc_transition_delay
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
495 proto_item_append_text(tlv_item1
, " frames");
498 case UCD_TLV_T_174_MAXIMUM_RETRANSMISSION
:
500 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_174_maximum_retransmission
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
503 case UCD_TLV_T_176_SIZE_OF_CQICH_ID_FIELD
:
505 utemp
= tvb_get_guint8(tvb
, offset
);
506 cqich_id_size
= 0; /* Default is 0 */
507 if (utemp
&& utemp
< 8) {
508 /* Set for CQICH_Alloc_IE */
509 cqich_id_size
= utemp
+ 2;
511 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_176_size_of_cqich_id_field
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
514 case UCD_TLV_T_177_NORMALIZED_CN_OVERRIDE_2
:
516 /* add TLV subtree */
517 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_177_normalized_cn_override2
, tvb
, offset
-tlv_value_offset
, ENC_NA
|ENC_ASCII
);
518 tlv_tree
= proto_item_add_subtree(tlv_item1
, ett_mac_mgmt_msg_ucd_decoder
);
519 proto_tree_add_item(tlv_tree
, hf_ucd_tlv_t_177_normalized_cn_override2_first_line
, tvb
, offset
+ 2, 1, ENC_BIG_ENDIAN
);
520 proto_tree_add_item(tlv_tree
, hf_ucd_tlv_t_177_normalized_cn_override2_list
, tvb
, offset
+ 3, 7, ENC_ASCII
|ENC_NA
);
523 case UCD_TLV_T_186_UPPER_BOUND__AAS_PREAMBLE
:
525 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_186_upper_bound_aas_preamble
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
528 case UCD_TLV_T_187_LOWER_BOUND_AAS_PREAMBLE
:
530 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_187_lower_bound_aas_preamble
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
533 case UCD_TLV_T_188_ALLOW_AAS_BEAM_SELECT_MESSAGE
:
535 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_188_allow_aas_beam_select_message
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
538 case UCD_TLV_T_189_USE_CQICH_INDICATION_FLAG
:
540 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_189_use_cqich_indication_flag
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
543 case UCD_TLV_T_190_MS_SPECIFIC_UP_POWER_OFFSET_ADJUSTMENT_STEP
:
545 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_190_ms_specific_up_power_addjustment_step
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
548 case UCD_TLV_T_191_MS_SPECIFIC_DOWN_POWER_OFSET_ADJUSTMENT_STEP
:
550 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_191_ms_specific_down_power_addjustment_step
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
553 case UCD_TLV_T_192_MIN_LEVEL_POWER_OFFSET_ADJUSTMENT
:
555 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_192_min_level_power_offset_adjustment
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
558 case UCD_TLV_T_193_MAX_LEVEL_POWER_OFFSETR_ADJUSTMENT
:
560 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_193_max_level_power_offset_adjustment
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
563 case UCD_TLV_T_194_HANDOVER_RANGING_CODES
:
565 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_194_handover_ranging_codes
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
568 case UCD_TLV_T_195_INITIAL_RANGING_INTERVAL
:
570 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_195_initial_ranging_interval
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
573 case UCD_TLV_T_196_TX_POWER_REPORT
:
575 tlv_item1
= add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_196_tx_power_report
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
576 tlv_tree
= proto_item_add_subtree(tlv_item1
, ett_mac_mgmt_msg_ucd_decoder
);
577 proto_tree_add_item(tlv_tree
, hf_ucd_tlv_t_196_tx_power_report_threshold
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
578 proto_tree_add_item(tlv_tree
, hf_ucd_tlv_t_196_tx_power_report_interval
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
579 proto_tree_add_item(tlv_tree
, hf_ucd_tlv_t_196_tx_power_report_a_p_avg
, tvb
, (offset
+ 1), 1, ENC_BIG_ENDIAN
);
580 proto_tree_add_item(tlv_tree
, hf_ucd_tlv_t_196_tx_power_report_threshold_icqch
, tvb
, (offset
+ 1), 1, ENC_BIG_ENDIAN
);
581 proto_tree_add_item(tlv_tree
, hf_ucd_tlv_t_196_tx_power_report_interval_icqch
, tvb
, (offset
+ 2), 1, ENC_BIG_ENDIAN
);
582 proto_tree_add_item(tlv_tree
, hf_ucd_tlv_t_196_tx_power_report_a_p_avg_icqch
, tvb
, (offset
+ 2), 1, ENC_BIG_ENDIAN
);
585 case UCD_TLV_T_197_NORMALIZED_CN_FOR_CHANNEL_SOUNDING
:
587 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_195_initial_ranging_interval
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
590 case UCD_TLV_T_198_INTIAL_RANGING_BACKOFF_START
:
592 tlv_tree
= add_tlv_subtree_no_item(&tlv_info
, ucd_tree
, hf_ucd_initial_range_backoff_start
, tvb
, offset
-tlv_value_offset
);
593 utemp
= tvb_get_guint8(tvb
, offset
);
594 proto_tree_add_uint_format_value(tlv_tree
, hf_ucd_initial_range_backoff_start
, tvb
, offset
, tvb_len
, utemp
, "2^%u = %u", utemp
, (1 << utemp
));
597 case UCD_TLV_T_199_INITIAL_RANGING_BACKOFF_END
:
599 tlv_tree
= add_tlv_subtree_no_item(&tlv_info
, ucd_tree
, hf_ucd_initial_range_backoff_end
, tvb
, offset
-tlv_value_offset
);
600 utemp
= tvb_get_guint8(tvb
, offset
);
601 proto_tree_add_uint_format_value(tlv_tree
, hf_ucd_initial_range_backoff_end
, tvb
, offset
, tvb_len
, utemp
, "2^%u = %u", utemp
, (1 << utemp
));
604 case UCD_TLV_T_200_BANDWIDTH_REQUESET_BACKOFF_START
:
606 tlv_tree
= add_tlv_subtree_no_item(&tlv_info
, ucd_tree
, hf_ucd_bandwidth_backoff_start
, tvb
, offset
-tlv_value_offset
);
607 utemp
= tvb_get_guint8(tvb
, offset
);
608 proto_tree_add_uint_format_value(tlv_tree
, hf_ucd_bandwidth_backoff_start
, tvb
, offset
, tvb_len
, utemp
, "2^%u = %u", utemp
, (1 << utemp
));
611 case UCD_TLV_T_201_BANDWIDTH_REQUEST_BACKOFF_END
:
613 tlv_tree
= add_tlv_subtree_no_item(&tlv_info
, ucd_tree
, hf_ucd_bandwidth_backoff_end
, tvb
, offset
-tlv_value_offset
);
614 utemp
= tvb_get_guint8(tvb
, offset
);
615 proto_tree_add_uint_format_value(tlv_tree
, hf_ucd_bandwidth_backoff_end
, tvb
, offset
, tvb_len
, utemp
, "2^%u = %u", utemp
, (1 << utemp
));
618 case UCD_TLV_T_202_UPLINK_BURST_PROFILE_FOR_MULTIPLE_FEC_TYPES
:
620 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_202_uplink_burst_profile_for_multiple_fec_types
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
623 case UCD_INITIAL_RANGING_CODES
:
625 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_150_initial_ranging_codes
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
628 case UCD_PERIODIC_RANGING_CODES
:
630 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_151_periodic_ranging_codes
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
633 case UCD_BANDWIDTH_REQUEST_CODES
:
635 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_152_bandwidth_request_codes
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
638 case UCD_PERIODIC_RANGING_BACKOFF_START
:
640 tlv_tree
= add_tlv_subtree_no_item(&tlv_info
, ucd_tree
, hf_ucd_periodic_ranging_backoff_start
, tvb
, offset
-tlv_value_offset
);
641 utemp
= tvb_get_guint8(tvb
, offset
);
642 proto_tree_add_uint_format_value(tlv_tree
, hf_ucd_periodic_ranging_backoff_start
, tvb
, offset
, tvb_len
, utemp
, "2^%u = %u", utemp
, (1 << utemp
));
646 case UCD_PERIODIC_RANGING_BACKOFF_END
:
648 tlv_tree
= add_tlv_subtree_no_item(&tlv_info
, ucd_tree
, hf_ucd_periodic_ranging_backoff_end
, tvb
, offset
-tlv_value_offset
);
649 utemp
= tvb_get_guint8(tvb
, offset
);
650 proto_tree_add_uint_format_value(tlv_tree
, hf_ucd_periodic_ranging_backoff_end
, tvb
, offset
, tvb_len
, utemp
, "2^%u = %u", utemp
, (1 << utemp
));
653 case UCD_START_OF_RANGING_CODES_GROUP
:
655 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_155_start_of_ranging_codes_group
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
659 case UCD_PERMUTATION_BASE
:
661 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_tlv_t_156_permutation_base
, tvb
, offset
-tlv_value_offset
, ENC_BIG_ENDIAN
);
664 case UCD_UL_ALLOCATED_SUBCHANNELS_BITMAP
:
666 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_ul_allocated_subchannles_bitmap
, tvb
, offset
-tlv_value_offset
, ENC_NA
);
669 case UCD_TLV_T_203_UL_PUSC_SUBCHANNEL_ROTATION
:
670 case UCD_TLV_T_205_RELATIVE_POWER_OFFSET_UL_HARQ_BURST
:
671 case UCD_TLV_T_206_RELATIVE_POWER_OFFSET_UL_BURST_CONTAINING_MAC_MGMT_MSG
:
672 case UCD_TLV_T_207_UL_INITIAL_TRANSMIT_TIMING
:
673 case UCD_TLV_T_210_FAST_FEEDBACK_REGION
:
674 case UCD_TLV_T_211_HARQ_ACK_REGION
:
675 case UCD_TLV_T_212_RANGING_REGION
:
676 case UCD_TLV_T_213_SOUNDING_REGION
:
678 /* Unknown TLV type if cor2 not enabled. */
679 if (!include_cor2_changes
)
681 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_invalid_tlv
, tvb
, offset
-tlv_value_offset
, ENC_NA
);
687 add_tlv_subtree(&tlv_info
, ucd_tree
, hf_ucd_invalid_tlv
, tvb
, offset
-tlv_value_offset
, ENC_NA
);
689 } /* end of switch(tlv_type) */
691 } /* end of TLV process while loop */
695 /* Register Wimax Mac Payload Protocol and Dissector */
696 void proto_register_mac_mgmt_msg_ucd(void)
699 static hf_register_info hf
[] =
702 &hf_ucd_tlv_t_188_allow_aas_beam_select_message
,
704 "Allow AAS Beam Select Message", "wmx.ucd.allow_aas_beam_select_message",
705 FT_INT8
, BASE_DEC
, VALS(vals_yes_no_str
), 0, NULL
, HFILL
709 &hf_ucd_tlv_t_159_band_amc_allocation_threshold
,
711 "Band AMC Allocation Threshold", "wmx.ucd.band_amc.allocation_threshold",
712 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
716 &hf_ucd_tlv_t_161_band_amc_allocation_timer
,
718 "Band AMC Allocation Timer", "wmx.ucd.band_amc.allocation_timer",
719 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
723 &hf_ucd_tlv_t_160_band_amc_release_threshold
,
725 "Band AMC Release Threshold", "wmx.ucd.band_amc.release_threshold",
726 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
730 &hf_ucd_tlv_t_162_band_amc_release_timer
,
732 "Band AMC Release Timer", "wmx.ucd.band_amc.release_timer",
733 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
737 &hf_ucd_tlv_t_164_band_amc_retry_timer
,
739 "Band AMC Retry Timer", "wmx.ucd.band_amc.retry_timer",
740 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
744 &hf_ucd_tlv_t_163_band_status_report_max_period
,
746 "Band Status Report MAC Period", "wmx.ucd.band_status.report_max_period",
747 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
751 &hf_ucd_tlv_t_152_bandwidth_request_codes
,
753 "Bandwidth Request Codes", "wmx.ucd.bandwidth_request",
754 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
760 "FEC Code Type", "wmx.ucd.burst.fec",
761 FT_UINT8
, BASE_HEX
, VALS(vals_dcd_burst_fec
), 0, NULL
, HFILL
765 &hf_ucd_burst_ranging_data_ratio
,
767 "Ranging Data Ratio", "wmx.ucd.burst.ranging_data_ratio",
768 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
772 &hf_ucd_ul_burst_reserved
,
774 "Reserved", "wmx.ucd.burst.reserved",
775 FT_UINT8
, BASE_HEX
, NULL
, 0xF0, NULL
, HFILL
779 &hf_ucd_ul_burst_uiuc
,
781 "UIUC", "wmx.ucd.burst.uiuc",
782 FT_UINT8
, BASE_DEC
, NULL
, 0x0F, NULL
, HFILL
787 &hf_ucd_burst_power_boost
,
788 {"Focused Contention Power Boost", "wmx.ucd.burst.power_boost", FT_UINT8
, BASE_HEX
, NULL
, 0, "", HFILL
}
791 &hf_ucd_burst_tcs_enable
,
792 {"TCS", "wmx.ucd.burst.tcs", FT_UINT8
, BASE_DEC
, VALS(vals_dcd_burst_tcs
), 0, "", HFILL
}
798 "Bandwidth Request Opportunity Size", "wmx.ucd.bw_req_size",
799 FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
803 &hf_ucd_tlv_t_172_cqich_band_amc_transition_delay
,
805 "CQICH Band AMC-Transition Delay", "wmx.ucd.cqich_band_amc_transition_delay",
806 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
812 "Frequency", "wmx.ucd.frequency",
813 FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
817 &hf_ucd_tlv_t_194_handover_ranging_codes
,
819 "Handover Ranging Codes", "wmx.ucd.handover_ranging_codes",
820 FT_INT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
824 &hf_ucd_tlv_t_171_harq_ack_delay_dl_burst
,
826 "HARQ ACK Delay for DL Burst", "wmx.ucd.harq_ack_delay_dl_burst",
827 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
831 &hf_ucd_tlv_t_150_initial_ranging_codes
,
833 "Initial Ranging Codes", "wmx.ucd.initial_ranging_codes",
834 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
838 &hf_ucd_tlv_t_195_initial_ranging_interval
,
840 "Number of Frames Between Initial Ranging Interval Allocation", "wmx.ucd.initial_ranging_interval",
841 FT_INT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
847 "Invalid TLV", "wmx.ucd.invalid_tlv",
848 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
852 &hf_ucd_tlv_t_187_lower_bound_aas_preamble
,
854 "Lower Bound AAS Preamble (in units of 0.25 dB)", "wmx.ucd.lower_bound_aas_preamble",
855 FT_INT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
859 &hf_ucd_tlv_t_192_min_level_power_offset_adjustment
,
861 "Minimum Level of Power Offset Adjustment (in units of 0.1 dB)", "wmx.ucd.min_level_power_offset_adjustment",
862 FT_INT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
866 &hf_ucd_tlv_t_193_max_level_power_offset_adjustment
,
868 "Maximum Level of Power Offset Adjustment (in units of 0.1 dB)", "wmx.ucd.max_level_power_offset_adjustment",
869 FT_INT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
873 &hf_ucd_tlv_t_174_maximum_retransmission
,
875 "Maximum Number of Retransmission in UL-HARQ", "wmx.ucd.max_number_of_retransmission_in_ul_harq",
876 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
880 &hf_ucd_tlv_t_191_ms_specific_down_power_addjustment_step
,
882 "MS-specific Down Power Offset Adjustment Step (in units of 0.01 dB)", "wmx.ucd.ms_specific_down_power_offset_adjustment_step",
883 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
887 &hf_ucd_tlv_t_190_ms_specific_up_power_addjustment_step
,
889 "MS-specific Up Power Offset Adjustment Step (in units of 0.01 dB)", "wmx.ucd.ms_specific_up_power_offset_adjustment_step",
890 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
894 &hf_ucd_tlv_t_197_normalized_cn_channel_sounding
,
896 "Normalized C/N for Channel Sounding", "wmx.ucd.normalized_cn.channel_sounding",
897 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
901 &hf_ucd_tlv_t_177_normalized_cn_override2
,
903 "Normalized C/N Override 2", "wmx.ucd.normalized_cn.override_2",
904 FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
908 &hf_ucd_tlv_t_177_normalized_cn_override2_first_line
,
910 "Normalized C/N Value", "wmx.ucd.normalized_cn.override_first_line",
911 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
915 &hf_ucd_tlv_t_177_normalized_cn_override2_list
,
917 "Normalized C/N Value List", "wmx.ucd.normalized_cn.override_list",
918 FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
922 &hf_ucd_tlv_t_158_optional_permutation_ul_allocated_subchannels_bitmap
,
924 "Optional permutation UL allocated subchannels bitmap", "wmx.ucd.optional_permutation_ul_allocated_subchannels_bitmap",
925 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
929 &hf_ucd_tlv_t_151_periodic_ranging_codes
,
931 "Periodic Ranging Codes", "wmx.ucd.periodic_ranging_codes",
932 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
936 &hf_ucd_tlv_t_156_permutation_base
,
938 "Permutation Base", "wmx.ucd.permutation_base",
939 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
943 &hf_ucd_ranging_req_size
,
945 "Ranging Request Opportunity Size", "wmx.ucd.ranging_req_size",
946 FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
952 "Contention-based Reservation Timeout", "wmx.ucd.res_timeout",
953 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
957 &hf_ucd_tlv_t_170_safety_channel_retry_timer
,
959 "Safety Channel Release Timer", "wmx.ucd.safety_channel_release_timer",
960 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
964 &hf_ucd_tlv_t_176_size_of_cqich_id_field
,
966 "Size of CQICH_ID Field", "wmx.ucd.size_of_cqich_id_field",
967 FT_UINT8
, BASE_DEC
, VALS(vals_ucd_cqich_size
), 0, NULL
, HFILL
971 &hf_ucd_tlv_t_155_start_of_ranging_codes_group
,
973 "Start of Ranging Codes Group", "wmx.ucd.start_of_ranging_codes_group",
974 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
978 &hf_ucd_ul_allocated_subchannles_bitmap
,
980 "UL Allocated Subchannels Bitmap", "wmx.ucd.subchan.bitmap",
981 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
986 &hf_ucd_subchan_codes
,
988 "Periodic Ranging Codes", "wmx.ucd.subchan.codes",
989 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
993 &hf_ucd_subchan_params_num_chan
,
995 "Number of Subchannels", "wmx.ucd.subchan.num_chan",
996 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1000 &hf_ucd_subchan_params_num_sym
,
1002 "Number of OFDMA Symbols", "wmx.ucd.subchan.num_sym",
1003 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1008 &hf_ucd_tlv_t_196_tx_power_report
,
1010 "Tx Power Report", "wmx.ucd.tx_power_report",
1011 FT_UINT24
, BASE_HEX
, NULL
, 0, NULL
, HFILL
1015 &hf_ucd_tlv_t_196_tx_power_report_a_p_avg
,
1017 "A p_avg (in multiples of 1/16)", "wmx.ucd.tx_power_report.a_p_avg",
1018 FT_UINT8
, BASE_DEC
, NULL
, 0xF0, NULL
, HFILL
1022 &hf_ucd_tlv_t_196_tx_power_report_a_p_avg_icqch
,
1024 "A p_avg (in multiples of 1/16) when ICQCH is allocated", "wmx.ucd.tx_power_report.a_p_avg_icqch",
1025 FT_UINT8
, BASE_DEC
, NULL
, 0x0F, NULL
, HFILL
1029 &hf_ucd_tlv_t_196_tx_power_report_interval
,
1031 "Interval (expressed as power of 2)", "wmx.ucd.tx_power_report.interval",
1032 FT_UINT8
, BASE_DEC
, NULL
, 0x0F, NULL
, HFILL
1036 &hf_ucd_tlv_t_196_tx_power_report_interval_icqch
,
1038 "Interval When ICQCH is Allocated (expressed as power of 2)", "wmx.ucd.tx_power_report.interval_icqch",
1039 FT_UINT8
, BASE_DEC
, NULL
, 0xF0, NULL
, HFILL
1043 &hf_ucd_tlv_t_196_tx_power_report_threshold
,
1045 "Threshold", "wmx.ucd.tx_power_report.threshold",
1046 FT_UINT8
, BASE_DEC
, NULL
, 0xF0, NULL
, HFILL
1050 &hf_ucd_tlv_t_196_tx_power_report_threshold_icqch
,
1052 "Threshold When ICQCH is Allocated to SS (in dB)", "wmx.ucd.tx_power_report.threshold_icqch",
1053 FT_UINT8
, BASE_DEC
, NULL
, 0x0F, NULL
, HFILL
1058 &hf_ucd_unknown_type
,
1060 "Unknown UCD Type", "wmx.ucd.unknown_tlv_type",
1061 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
1066 &hf_ucd_tlv_t_202_uplink_burst_profile_for_multiple_fec_types
,
1068 "Uplink Burst Profile for Multiple FEC Types", "wmx.ucd.uplink_burst_profile.multiple_fec_types",
1069 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
1073 &hf_ucd_tlv_t_203_ul_pusc_subchannel_rotation
,
1075 "Uplink PUSC Subchannel Rotation", "wmx.ucd.uplink_burst_profile.ul_pusc_subchannel_rotation",
1076 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
1080 &hf_ucd_tlv_t_205_relative_power_offset_ul_harq_burst
,
1082 "Relative Power Offset UL HARQ Burst", "wmx.ucd.uplink_burst_profile.relative_power_offset_ul_harq_burst",
1083 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
1087 &hf_ucd_tlv_t_206_relative_power_offset_ul_burst_containing_mac_mgmt_msg
,
1089 "Relative Power Offset UL Burst Containing MAC Mgmt Msg", "wmx.ucd.uplink_burst_profile.relative_power_offset_ul_burst_mac_mgmt_msg",
1090 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
1094 &hf_ucd_tlv_t_207_ul_initial_transmit_timing
,
1096 "UL Initial Transmit Timing", "wmx.ucd.uplink_burst_profile.ul_initial_transmit_timing",
1097 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
1101 &hf_ucd_tlv_t_210_fast_feedback_region
,
1103 "Fast Feedback Region", "wmx.ucd.uplink_burst_profile.fast_feedback_region",
1104 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
1108 &hf_ucd_tlv_t_211_harq_ack_region
,
1110 "HARQ ACK Region", "wmx.ucd.uplink_burst_profile.harq_ack_region",
1111 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
1115 &hf_ucd_tlv_t_212_ranging_region
,
1117 "Ranging Region", "wmx.ucd.uplink_burst_profile.ranging_region",
1118 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
1122 &hf_ucd_tlv_t_213_sounding_region
,
1124 "Sounding Region", "wmx.ucd.uplink_burst_profile.sounding_region",
1125 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
1129 &hf_ucd_tlv_t_186_upper_bound_aas_preamble
,
1131 "Upper Bound AAS Preamble (in units of 0.25 dB)", "wmx.ucd.upper_bound_aas_preamble",
1132 FT_INT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1136 &hf_ucd_tlv_t_189_use_cqich_indication_flag
,
1138 "Use CQICH Indication Flag", "wmx.ucd.use_cqich_indication_flag",
1139 FT_UINT8
, BASE_HEX
, NULL
, 0, NULL
, HFILL
1143 &hf_ucd_ho_ranging_start
,
1145 "Initial Backoff Window Size for MS Performing Initial During Handover Process", "wmx.ucd.ho_ranging_start",
1146 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1150 &hf_ucd_ho_ranging_end
,
1152 "Final Backoff Window Size for MS Performing Initial During Handover Process", "wmx.ucd.ho_ranging_end",
1153 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1157 &hf_ucd_initial_range_backoff_start
,
1159 "Initial Ranging Backoff Start", "wmx.ucd.initial_range_backoff_start",
1160 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1164 &hf_ucd_initial_range_backoff_end
,
1166 "Initial Ranging Backoff End", "wmx.ucd.initial_range_backoff_end",
1167 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1171 &hf_ucd_bandwidth_backoff_start
,
1173 "Bandwidth Request Backoff Start", "wmx.ucd.bandwidth_backoff_start",
1174 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1178 &hf_ucd_bandwidth_backoff_end
,
1180 "Bandwidth Request Backoff End", "wmx.ucd.bandwidth_backoff_end",
1181 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1185 &hf_ucd_periodic_ranging_backoff_start
,
1187 "Periodic Ranging Backoff Start", "wmx.ucd.periodic_ranging_backoff_start",
1188 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1192 &hf_ucd_periodic_ranging_backoff_end
,
1194 "Periodic Ranging Backoff End", "wmx.ucd.periodic_ranging_backoff_end",
1195 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
1200 /* Setup protocol subtree array */
1201 static gint
*ett
[] =
1203 &ett_mac_mgmt_msg_ucd_decoder
,
1206 proto_mac_mgmt_msg_ucd_decoder
= proto_register_protocol (
1207 "WiMax UCD Messages", /* name */
1208 "WiMax UCD", /* short name */
1209 "wmx.ucd" /* abbrev */
1212 proto_register_field_array(proto_mac_mgmt_msg_ucd_decoder
, hf
, array_length(hf
));
1213 proto_register_subtree_array(ett
, array_length(ett
));
1216 void proto_reg_handoff_mac_mgmt_msg_ucd(void)
1218 dissector_handle_t ucd_handle
;
1220 ucd_handle
= create_dissector_handle(dissect_mac_mgmt_msg_ucd_decoder
, proto_mac_mgmt_msg_ucd_decoder
);
1221 dissector_add_uint("wmx.mgmtmsg", MAC_MGMT_MSG_UCD
, ucd_handle
);