Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / plugins / epan / wimax / wimax_mac.h
blobec4cfee77055e9c7f2b957a5ce695b790feec4fb
1 /* wimax_mac.h
2 * WiMax MAC Definitions
4 * Copyright (c) 2007 by Intel Corporation.
6 * Author: Lu Pan <lu.pan@intel.com>
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1999 Gerald Combs
12 * SPDX-License-Identifier: GPL-2.0-or-later
15 #ifndef WIMAX_MAC_H
16 #define WIMAX_MAC_H
18 #define IP_HEADER_BYTE 0x45
20 /* WiMax MAC Header/Subheader Sizes */
21 #define WIMAX_MAC_HEADER_SIZE 6
22 #define WIMAX_MAC_SUBHEADER_MESH_SIZE 2
23 #define WIMAX_MAC_SUBHEADER_FAST_FEEDBACK_SIZE 1
24 #define WIMAX_MAC_SUBHEADER_GRANT_MGMT_SIZE 2
26 #define WIMAX_MAC_SUBHEADER_FRAG_SIZE(x) (((x) & (WIMAX_MAC_TYPE_EXTENDED | WIMAX_MAC_TYPE_ARQ)) ? 3 : 2)
27 #define WIMAX_MAC_SUBHEADER_PACK_SIZE(x) (((x) & (WIMAX_MAC_TYPE_EXTENDED | WIMAX_MAC_TYPE_ARQ)) ? 3 : 2)
29 #define WIMAX_MAC_HEADER_GENERIC 0
30 #define WIMAX_MAC_CID_PADDING 0xFFFE
32 /* wimax mac arq */
33 #define ARQ_CUMULATIVE_ACK_ENTRY 1
34 #define ARQ_CUMULATIVE_ACK_BLOCK_SEQ 3
35 #define ARQ_ACK_MAP_SIZE 2
37 /* WiMax MAC Header Sub-types (Table 6) */
38 #define WIMAX_MAC_TYPE_MESH (1 << 5)
39 #define WIMAX_MAC_TYPE_ARQ (1 << 4)
40 #define WIMAX_MAC_TYPE_EXTENDED (1 << 3)
41 #define WIMAX_MAC_TYPE_FRAGMENTATION (1 << 2)
42 #define WIMAX_MAC_TYPE_PACKING (1 << 1)
43 #define WIMAX_MAC_TYPE_FAST_FEEDBACK (1 << 0)
44 #define WIMAX_MAC_TYPE_GRANT_MGMT (1 << 0)
46 /* wimax mac management messages (Table 14) */
47 #define MAC_MGMT_MSG_UCD 0
48 #define MAC_MGMT_MSG_DCD 1
49 #define MAC_MGMT_MSG_DL_MAP 2
50 #define MAC_MGMT_MSG_UL_MAP 3
51 #define MAC_MGMT_MSG_RNG_REQ 4
52 #define MAC_MGMT_MSG_RNG_RSP 5
53 #define MAC_MGMT_MSG_REG_REQ 6
54 #define MAC_MGMT_MSG_REG_RSP 7
56 #define MAC_MGMT_MSG_PKM_REQ 9
57 #define MAC_MGMT_MSG_PKM_RSP 10
58 #define MAC_MGMT_MSG_DSA_REQ 11
59 #define MAC_MGMT_MSG_DSA_RSP 12
60 #define MAC_MGMT_MSG_DSA_ACK 13
61 #define MAC_MGMT_MSG_DSC_REQ 14
62 #define MAC_MGMT_MSG_DSC_RSP 15
63 #define MAC_MGMT_MSG_DSC_ACK 16
64 #define MAC_MGMT_MSG_DSD_REQ 17
65 #define MAC_MGMT_MSG_DSD_RSP 18
67 #define MAC_MGMT_MSG_MCA_REQ 21
68 #define MAC_MGMT_MSG_MCA_RSP 22
69 #define MAC_MGMT_MSG_DBPC_REQ 23
70 #define MAC_MGMT_MSG_DBPC_RSP 24
71 #define MAC_MGMT_MSG_RES_CMD 25
72 #define MAC_MGMT_MSG_SBC_REQ 26
73 #define MAC_MGMT_MSG_SBC_RSP 27
74 #define MAC_MGMT_MSG_CLK_CMP 28
75 #define MAC_MGMT_MSG_DREG_CMD 29
76 #define MAC_MGMT_MSG_DSX_RVD 30
77 #define MAC_MGMT_MSG_TFTP_CPLT 31
78 #define MAC_MGMT_MSG_TFTP_RSP 32
79 #define MAC_MGMT_MSG_ARQ_FEEDBACK 33
80 #define MAC_MGMT_MSG_ARQ_DISCARD 34
81 #define MAC_MGMT_MSG_ARQ_RESET 35
82 #define MAC_MGMT_MSG_REP_REQ 36
83 #define MAC_MGMT_MSG_REP_RSP 37
84 #define MAC_MGMT_MSG_FPC 38
85 #define MAC_MGMT_MSG_MSH_NCFG 39
86 #define MAC_MGMT_MSG_MSH_NENT 40
87 #define MAC_MGMT_MSG_MSH_DSCH 41
88 #define MAC_MGMT_MSG_MSH_CSCH 42
89 #define MAC_MGMT_MSG_MSH_CSCF 43
90 #define MAC_MGMT_MSG_AAS_FBCK_REQ 44
91 #define MAC_MGMT_MSG_AAS_FBCK_RSP 45
92 #define MAC_MGMT_MSG_AAS_BEAM_SELECT 46
93 #define MAC_MGMT_MSG_AAS_BEAM_REQ 47
94 #define MAC_MGMT_MSG_AAS_BEAM_RSP 48
95 #define MAC_MGMT_MSG_DREG_REQ 49
97 #define MAC_MGMT_MSG_MOB_SLP_REQ 50
98 #define MAC_MGMT_MSG_MOB_SLP_RSP 51
99 #define MAC_MGMT_MSG_MOB_TRF_IND 52
100 #define MAC_MGMT_MSG_MOB_NBR_ADV 53
101 #define MAC_MGMT_MSG_MOB_SCN_REQ 54
102 #define MAC_MGMT_MSG_MOB_SCN_RSP 55
103 #define MAC_MGMT_MSG_MOB_BSHO_REQ 56
104 #define MAC_MGMT_MSG_MOB_MSHO_REQ 57
105 #define MAC_MGMT_MSG_MOB_BSHO_RSP 58
106 #define MAC_MGMT_MSG_MOB_HO_IND 59
107 #define MAC_MGMT_MSG_MOB_SCN_REP 60
108 #define MAC_MGMT_MSG_MOB_PAG_ADV 61
109 #define MAC_MGMT_MSG_MBS_MAP 62
110 #define MAC_MGMT_MSG_PMC_REQ 63
111 #define MAC_MGMT_MSG_PMC_RSP 64
112 #define MAC_MGMT_MSG_PRC_LT_CTRL 65
113 #define MAC_MGMT_MSG_MOB_ASC_REP 66
114 #define MAC_MGMT_MSG_TYPE_MAX 67
116 /* DL-MAP types (Table 276) */
117 #define DL_MAP_EXTENDED_2_DIUC 14
118 #define DL_MAP_EXTENDED_IE 15
119 /* DL-MAP Extended UIUC Code (table 277a) */
120 #define DL_MAP_AAS_IE 2
121 #define DL_MAP_EXTENDED_CID_SWITCH_IE 4
122 #define DL_MAP_HARQ_IE 7
123 /* DL-MAP Extended-2 UIUC Code (table 277c) */
124 #define DL_MAP_EXTENDED_2_HARQ 7
126 /* UL-MAP types (Table 288) */
127 #define UL_MAP_FAST_FEEDBACK_CHANNEL 0
128 #define UL_MAP_CDMA_BR_RANGING_IE 12
129 #define UL_MAP_PAPR_RECUCTION_ALLOC_SAFETY_ZONE 13
130 #define UL_MAP_CDMA_ALLOCATION_IE 14
131 #define UL_MAP_EXTENDED_IE 15
132 /* UL-MAP Extended UIUC Code (table 290a) */
133 #define UL_MAP_CQICH_ALLOCATION_IE 3
135 /* DCD types (Table 358)*/
136 #define DCD_DOWNLINK_BURST_PROFILE 1
137 #define DCD_BS_EIRP 2
138 #define DCD_FRAME_DURATION 3
139 #define DCD_PHY_TYPE 4
140 #define DCD_POWER_ADJUSTMENT 5
141 #define DCD_CHANNEL_NR 6
142 #define DCD_TTG 7
143 #define DCD_RTG 8
144 #define DCD_RSS 9
145 #define DCD_EIRXP 9
146 #define DCD_CHANNEL_SWITCH_FRAME_NR 10
147 #define DCD_FREQUENCY 12
148 #define DCD_BS_ID 13
149 #define DCD_FRAME_DURATION_CODE 14
150 #define DCD_FRAME_NR 15
151 #define DCD_SIZE_CQICH_ID 16
152 #define DCD_H_ARQ_ACK_DELAY 17
153 #define DCD_MAC_VERSION 148
155 #define DCD_RESTART_COUNT 154
157 #define DCD_BURST_FREQUENCY 1
158 #define DCD_BURST_FEC_CODE_TYPE 150
159 #define DCD_BURST_DIUC_EXIT_THRESHOLD 151
160 #define DCD_BURST_DIUC_ENTRY_THRESHOLD 152
161 #define DCD_BURST_TCS_ENABLE 153
162 /*#define DCD_MAXIMUM_RETRANSMISSION 20*/
163 /* TLV types */
164 #define DCD_TLV_T_19_PERMUTATION_TYPE_FOR_BROADCAST_REGION_IN_HARQ_ZONE 19
165 #define DCD_TLV_T_20_MAXIMUM_RETRANSMISSION 20
166 #define DCD_TLV_T_21_DEFAULT_RSSI_AND_CINR_AVERAGING_PARAMETER 21
167 #define DCD_TLV_T_22_DL_AMC_ALLOCATED_PHYSICAL_BANDS_BITMAP 22
168 #define DCD_TLV_T_34_DL_REGION_DEFINITION 34
169 #define DCD_TLV_T_50_HO_TYPE_SUPPORT 50
170 #define DCD_TLV_T_31_H_ADD_THRESHOLD 31
171 #define DCD_TLV_T_32_H_DELETE_THRESHOLD 32
172 #define DCD_TLV_T_33_ASR 33
173 #define DCD_TLV_T_34_DL_REGION_DEFINITION 34
174 #define DCD_TLV_T_35_PAGING_GROUP_ID 35
175 #define DCD_TLV_T_36_TUSC1_PERMUTATION_ACTIVE_SUBCHANNELS_BITMAP 36
176 #define DCD_TLV_T_37_TUSC2_PERMUTATION_ACTIVE_SUBCHANNELS_BITMAP 37
177 #define DCD_TLV_T_51_HYSTERSIS_MARGIN 51
178 #define DCD_TLV_T_52_TIME_TO_TRIGGER_DURATION 52
179 #define DCD_TLV_T_54_TRIGGER 54
180 #define DCD_TLV_T_60_NOISE_AND_INTERFERENCE 60
181 #define DCD_TLV_T_153_DOWNLINK_BURST_PROFILE_FOR_MULTIPLE_FEC_TYPES 153
182 #define DCD_TLV_T_22_DL_AMC_ALLOCATED_PHYSICAL_BANDS_BITMAP 22
183 #define DCD_TLV_T_541_TYPE_FUNCTION_ACTION 1
184 #define DCD_TLV_T542_TRIGGER_VALUE 2
185 #define DCD_TLV_T_543_TRIGGER_AVERAGING_DURATION 3
186 #define DCD_TLV_T_45_PAGING_INTERVAL_LENGTH 45
188 /* UCD types (Table 353) */
189 #define UCD_UPLINK_BURST_PROFILE 1
190 #define UCD_RESERVATION_TIMEOUT 2
191 #define UCD_BW_REQ_SIZE 3
192 #define UCD_RANGING_REQ_SIZE 4
193 #define UCD_FREQUENCY 5
195 #define UCD_TLV_T_7_HO_RANGING_START 7
196 #define UCD_TLV_T_8_RANGING_HO_END 8
197 #define UCD_INITIAL_RANGING_CODES 150
198 #define UCD_PERIODIC_RANGING_CODES 151
199 #define UCD_BANDWIDTH_REQUEST_CODES 152
200 #define UCD_PERIODIC_RANGING_BACKOFF_START 153
201 #define UCD_PERIODIC_RANGING_BACKOFF_END 154
202 #define UCD_START_OF_RANGING_CODES_GROUP 155
203 #define UCD_PERMUTATION_BASE 156
204 #define UCD_UL_ALLOCATED_SUBCHANNELS_BITMAP 157
205 #define UCD_TLV_T_158_OPTIONAL_PERMUTATION_UL_ALLOCATED_SUBCHANNELS_BITMAP 158
206 #define UCD_TLV_T_159_BAND_AMC_ALLOCATION_THRESHHOLD 159
207 #define UCD_TLV_T_160_BAND_AMC_RELEASE_THRESHOLD 160
208 #define UCD_TLV_T_161_BAND_AMC_ALLOCATION_TIMER 161
209 #define UCD_TLV_T_162_BAND_AMC_RELEASE_TIMER 162
210 #define UCD_TLV_T_163_BAND_STATUS_REPORT_MAX_PERIOD 163
211 #define UCD_TLV_T_164_BAND_AMC_RETRY_TIMER 164
212 #define UCD_TLV_T_170_SAFETY_CHANNEL_RETRY_TIMER 170
213 #define UCD_TLV_T_171_HARQ_ACK_DELAY_FOR_DL_BURST 171
215 #define UCD_TLV_T_172_CQICH_BAND_AMC_TRANSITION_DELAY 172
216 #define UCD_TLV_T_174_MAXIMUM_RETRANSMISSION 174
217 #define UCD_TLV_T_176_SIZE_OF_CQICH_ID_FIELD 176
218 #define UCD_TLV_T_177_NORMALIZED_CN_OVERRIDE_2 177
219 #define UCD_TLV_T_186_UPPER_BOUND__AAS_PREAMBLE 186
220 #define UCD_TLV_T_187_LOWER_BOUND_AAS_PREAMBLE 187
221 #define UCD_TLV_T_188_ALLOW_AAS_BEAM_SELECT_MESSAGE 188
222 #define UCD_TLV_T_189_USE_CQICH_INDICATION_FLAG 189
223 #define UCD_TLV_T_190_MS_SPECIFIC_UP_POWER_OFFSET_ADJUSTMENT_STEP 190
224 #define UCD_TLV_T_191_MS_SPECIFIC_DOWN_POWER_OFSET_ADJUSTMENT_STEP 191
225 #define UCD_TLV_T_192_MIN_LEVEL_POWER_OFFSET_ADJUSTMENT 192
226 #define UCD_TLV_T_193_MAX_LEVEL_POWER_OFFSETR_ADJUSTMENT 193
227 #define UCD_TLV_T_194_HANDOVER_RANGING_CODES 194
228 #define UCD_TLV_T_195_INITIAL_RANGING_INTERVAL 195
229 #define UCD_TLV_T_196_TX_POWER_REPORT 196
230 #define UCD_TLV_T_197_NORMALIZED_CN_FOR_CHANNEL_SOUNDING 197
231 #define UCD_TLV_T_198_INTIAL_RANGING_BACKOFF_START 198
232 #define UCD_TLV_T_199_INITIAL_RANGING_BACKOFF_END 199
233 #define UCD_TLV_T_200_BANDWIDTH_REQUESET_BACKOFF_START 200
234 #define UCD_TLV_T_201_BANDWIDTH_REQUEST_BACKOFF_END 201
235 #define UCD_TLV_T_202_UPLINK_BURST_PROFILE_FOR_MULTIPLE_FEC_TYPES 202
236 #define UCD_TLV_T_203_UL_PUSC_SUBCHANNEL_ROTATION 203
237 #define UCD_TLV_T_205_RELATIVE_POWER_OFFSET_UL_HARQ_BURST 205
238 #define UCD_TLV_T_206_RELATIVE_POWER_OFFSET_UL_BURST_CONTAINING_MAC_MGMT_MSG 206
239 #define UCD_TLV_T_207_UL_INITIAL_TRANSMIT_TIMING 207
240 #define UCD_TLV_T_210_FAST_FEEDBACK_REGION 210
241 #define UCD_TLV_T_211_HARQ_ACK_REGION 211
242 #define UCD_TLV_T_212_RANGING_REGION 212
243 #define UCD_TLV_T_213_SOUNDING_REGION 213
245 /* Table 357 */
246 #define UCD_BURST_FEC 150
247 #define UCD_BURST_RANGING_DATA_RATIO 151
248 /*#define UCD_BURST_POWER_BOOST 151*/
249 /*#define UCD_BURST_TCS_ENABLE 152*/
251 /* RNG-REQ types (Table 364) */
252 /* Sorted these values */
253 #define RNG_REQ_DL_BURST_PROFILE 1
254 #define RNG_REQ_SS_MAC_ADDRESS 2
255 #define RNG_REQ_RANGING_ANOMALIES 3
256 #define RNG_REQ_AAS_BROADCAST 4
257 #define RNG_REQ_SERVING_BS_ID 5
258 #define RNG_REQ_RANGING_PURPOSE_INDICATION 6
259 #define RNG_REQ_HO_ID 7
260 #define RNG_REQ_POWER_DOWN_INDICATOR 8
261 #define RNG_REQ_PAGING_CONTROLLER_ID 9
262 #define RNG_REQ_MAC_HASH_SKIP_THRESHOLD 10
263 #define RNG_REQ_ENABLED_ACTION_TRIGGERED 11
264 #define RNG_REQ_REQUESTED_DNLK_REP_CODING_LEVEL 12
265 #define RNG_REQ_CMAC_KEY_COUNT 13
266 #define RNG_REQ_POWER_SAVING_CLASS_PARAMETERS 21
268 /* RNG-REQ/RSP Power Saving Class Parameter TLV's (Table 364a) */
269 #define RNG_POWER_SAVING_CLASS_FLAGS 1
270 #define RNG_POWER_SAVING_CLASS_ID 2
271 #define RNG_POWER_SAVING_CLASS_TYPE 3
272 #define RNG_START_FRAME_NUMBER 4
273 #define RNG_INITIAL_SLEEP_WINDOW 5
274 #define RNG_LISTENING_WINDOW 6
275 #define RNG_FINAL_SLEEP_WINDOW_BASE 7
276 #define RNG_FINAL_SLEEP_WINDOW_EXPONENT 8
277 #define RNG_SLPID 9
278 #define RNG_CID 10
279 #define RNG_DIRECTION 11
281 /* RNG-RSP types (Table 367) */
282 #define RNG_RSP_TIMING_ADJUST 1
283 #define RNG_RSP_POWER_LEVEL_ADJUST 2
284 #define RNG_RSP_OFFSET_FREQ_ADJUST 3
285 #define RNG_RSP_RANGING_STATUS 4
286 #define RNG_RSP_DL_FREQ_OVERRIDE 5
287 #define RNG_RSP_UL_CHANNEL_ID_OVERRIDE 6
288 #define RNG_RSP_DL_OPERATIONAL_BURST_PROFILE 7
289 #define RNG_RSP_SS_MAC_ADDRESS 8
290 #define RNG_RSP_BASIC_CID 9
291 #define RNG_RSP_PRIMARY_MGMT_CID 10
292 #define RNG_RSP_AAS_BROADCAST_PERMISSION 11
293 #define RNG_RSP_FRAME_NUMBER 12
294 #define RNG_RSP_OPPORTUNITY_NUMBER 13
295 #define RNG_RSP_SERVICE_LEVEL_PREDICTION 17
296 #define RNG_RSP_GLOBAL_SERVICE_CLASS_NAME 18
297 #define RNG_RSP_RESOURCE_RETAIN_FLAG 20
298 #define RNG_RSP_HO_PROCESS_OPTIMIZATION 21
299 /* Sorted the following values (for readability) */
300 #define RNG_RSP_HO_ID 22
301 #define RNG_RSP_LOCATION_UPDATE_RESPONSE 23
302 #define RNG_RSP_PAGING_INFORMATION 24
303 #define RNG_RSP_PAGING_CONTROLLER_ID 25
304 #define RNG_RSP_NEXT_PERIODIC_RANGING 26
305 #define RNG_RSP_POWER_SAVING_CLASS_PARAMETERS 27
306 #define RNG_RSP_MAC_HASH_SKIP_THRESHOLD 28
307 #define RNG_RSP_SBC_RSP_ENCODINGS 29
308 #define RNG_RSP_REG_RSP_ENCODINGS 30
309 #define RNG_RSP_SA_CHALLENGE_TUPLE 31
310 #define RNG_RSP_ENABLED_ACTION_TRIGGERED 32
311 #define RNG_RSP_DL_OP_BURST_PROFILE_OFDMA 33
312 #define RNG_RSP_RANGING_CODE_ATTRIBUTES 150
313 #define RNG_RSP_SA_CHALLENGE_BS_RANDOM 1
314 #define RNG_RSP_SA_CHALLENGE_AKID 2
316 /* SBC types (section 11.8) */
317 #define SBC_BW_ALLOC_SUPPORT 1
318 #define SBC_TRANSITION_GAPS 2
319 #define SBC_REQ_MAX_TRANSMIT_POWER 3
320 #define SBC_MAC_PDU 4
321 #define SBC_PKM_FLOW_CONTROL 15
322 #define SBC_AUTH_POLICY_SUPPORT 16
323 #define SBC_MAX_SECURITY_ASSOCIATIONS 17
324 #define SBC_REQ_CURR_TRANSMITTED_POWER 147
325 #define SBC_SS_FFT_SIZES 150
326 #define SBC_SS_DEMODULATOR 151
327 #define SBC_SS_MODULATOR 152
328 #define SBC_SS_NUM_UL_ARQ_ACK_CHANNEL 153
329 #define SBC_SS_PERMUTATION_SUPPORT 154
330 #define SBC_SS_DEMODULATOR_MIMO_SUPPORT 156
331 #define SBC_SS_MIMO_UPLINK_SUPPORT 157
332 #define SBC_SS_OFDMA_AAS_PRIVATE_MAP_SUPPORT 158
333 #define SBC_SS_OFDMA_AAS_CAPABILITIES 159
334 #define SBC_SS_CINR_MEASUREMENT_CAPABILITY 160
335 #define SBC_SS_NUM_DL_ARQ_ACK_CHANNEL 161
337 #define SBC_TLV_T_26_POWER_SAVE_CLASS_TYPES_CAPABILITY 26
338 #define SBC_TLV_T_28_HO_TRIGGER_METRIC_SUPPORT 28
339 #define SBC_TLV_T_27_EXTENSION_CAPABILITY 27
341 #define SBC_TLV_T_162_HARQ_INCREMENTAL_REDUNDANCY_BUFFER_CAPABILITY 162
342 #define SBC_TLV_T_163_HARQ_CHASE_COMBINING_AND_CC_IR_BUFFER_CAPABILITY 163
343 #define SBC_TLV_T_167_ASSOCIATION_SUPPORT 167
344 #define SBC_TLV_T_170_UPLINK_POWER_CONTROL_SUPPORT 170
345 #define SBC_TLV_T_171_MINIMUM_NUM_OF_FRAMES 171
346 #define SBC_TLV_T_172 172
347 #define SBC_TLV_T_173_UL_CONTROL_CHANNEL_SUPPORT 173
348 #define SBC_TLV_T_174_OFDMA_MS_CSIT_CAPABILITY 174
349 #define SBC_TLV_T_175_MAX_NUM_BST_PER_FRM_CAPABILITY_HARQ 175
350 #define SBC_TLV_T_176 176
351 #define SBC_TLV_T_177_OFDMA_SS_MODULATOR_FOR_MIMO_SUPPORT 177
352 #define SBC_TLV_T_178_SDMA_PILOT_CAPABILITY 178
353 #define SBC_TLV_T_179_OFDMA_MULTIPLE_DL_BURST_PROFILE_CAPABILITY 179
354 #define SBC_TLV_T_204_OFDMA_PARAMETERS_SETS 204
356 /* DREG-REQ DREG-CMD types (Sections 6.3.2.3.42 and 6.3.2.3.26) */
357 #define DREG_PAGING_INFO 1
358 #define DREG_REQ_DURATION 2
359 #define DREG_PAGING_CONTROLLER_ID 3
360 #define DREG_IDLE_MODE_RETAIN_INFO 4
361 #define DREG_MAC_HASH_SKIP_THRESHOLD 5
362 #define DREG_PAGING_CYCLE_REQUEST 52
364 /* REP-REQ types (Sections 11.11) */
365 #define REP_REQ_REPORT_REQUEST 1
366 /* REP-REQ report request subtypes */
367 #define REP_REQ_REPORT_TYPE 1
368 #define REP_REQ_CHANNEL_NUMBER 2
369 #define REP_REQ_CHANNEL_TYPE 3
370 #define REP_REQ_ZONE_SPEC_PHY_CINR_REQ 4
371 #define REP_REQ_PREAMBLE_PHY_CINR_REQ 5
372 #define REP_REQ_ZONE_SPEC_EFF_CINR_REQ 6
373 #define REP_REQ_PREAMBLE_EFF_CINR_REQ 7
374 #define REP_REQ_CHANNEL_SELECTIVITY_REPORT 8
376 /* REP-RSP types (Sections 11.12) */
377 #define REP_RSP_REPORT_TYPE 1
378 #define REP_RSP_CHANNEL_TYPE 2
379 #define REP_RSP_ZONE_SPECIFIC_PHY_CINR 3
380 #define REP_RSP_PREAMBLE_PHY_CINR 4
381 #define REP_RSP_ZONE_SPECIFIC_EFFECTIVE_CINR 5
382 #define REP_RSP_PREAMBLE_EFFECTIVE_CINR 6
383 /* REP-RSP report subtypes */
384 #define REP_RSP_REPORT_CHANNEL_NUMBER 1
385 #define REP_RSP_REPORT_START_FRAME 2
386 #define REP_RSP_REPORT_DURATION 3
387 #define REP_RSP_REPORT_BASIC_REPORT 4
388 #define REP_RSP_REPORT_CINR_REPORT 5
389 #define REP_RSP_REPORT_RSSI_REPORT 6
390 /* REP-RSP channel type report subtypes */
391 #define REP_RSP_CHANNEL_TYPE_SUBCHANNEL 1
392 #define REP_RSP_CHANNEL_TYPE_BAND_AMC 2
393 #define REP_RSP_CHANNEL_TYPE_SAFETY_CHANNEL 3
394 #define REP_RSP_CHANNEL_TYPE_ENHANCED_BAND_AMC 4
395 #define REP_RSP_CHANNEL_TYPE_SOUNDING 5
396 /* REP-RSP zone-specific physical CINR report subtypes */
397 #define REP_RSP_ZONE_SPECIFIC_PHY_CINR_PUSC_SC0 1
398 #define REP_RSP_ZONE_SPECIFIC_PHY_CINR_PUSC_SC1 2
399 #define REP_RSP_ZONE_SPECIFIC_PHY_CINR_FUSC 3
400 #define REP_RSP_ZONE_SPECIFIC_PHY_CINR_OPTIONAL_FUSC 4
401 #define REP_RSP_ZONE_SPECIFIC_PHY_CINR_SAFETY_CHANNEL 5
402 #define REP_RSP_ZONE_SPECIFIC_PHY_CINR_AMC 6
403 /* REP-RSP preamble physical CINR report subtypes */
404 #define REP_RSP_PREAMBLE_PHY_CINR_CONFIGURATION1 1
405 #define REP_RSP_PREAMBLE_PHY_CINR_CONFIGURATION3 2
406 #define REP_RSP_PREAMBLE_PHY_CINR_BAND_AMC 3
407 /* REP-RSP zone-specific effective CINR report subtypes */
408 #define REP_RSP_ZONE_SPECIFIC_EFFECTIVE_CINR_PUSC_SC0 1
409 #define REP_RSP_ZONE_SPECIFIC_EFFECTIVE_CINR_PUSC_SC1 2
410 #define REP_RSP_ZONE_SPECIFIC_EFFECTIVE_CINR_FUSC 3
411 #define REP_RSP_ZONE_SPECIFIC_EFFECTIVE_CINR_OPTIONAL_FUSC 4
412 #define REP_RSP_ZONE_SPECIFIC_EFFECTIVE_CINR_AMC_AAS 5
413 /* REP-RSP preamble effective CINR report subtypes */
414 #define REP_RSP_PREAMBLE_EFFECTIVE_CINR_CONFIGURATION1 1
415 #define REP_RSP_PREAMBLE_EFFECTIVE_CINR_CONFIGURATION3 2
416 #define REP_RSP_CHANNEL_SELECTIVITY 3
417 /* REP-RSP channel selectivity report subtypes */
418 #define FREQUENCY_SELECTIVITY_REPORT 1
420 /* REG types (Section 11.7) */
421 #define REG_ARQ_PARAMETERS 1
422 #define REG_SS_MGMT_SUPPORT 2
423 #define REG_IP_MGMT_MODE 3
424 #define REG_IP_VERSION 4
425 #define REG_REQ_SECONDARY_MGMT_CID 5
426 #define REG_RSP_SECONDARY_MGMT_CID 5
427 #define REG_UL_TRANSPORT_CIDS_SUPPORTED 6
428 #define REG_IP_PHS_SDU_ENCAP 7
429 #define REG_MAX_CLASSIFIERS_SUPPORTED 8
430 #define REG_PHS_SUPPORT 9
431 #define REG_ARQ_SUPPORT 10
432 #define REG_DSX_FLOW_CONTROL 11
433 #define REG_MAC_CRC_SUPPORT 12
434 #define REG_MCA_FLOW_CONTROL 13
435 #define REG_MCAST_POLLING_CIDS 14
436 #define REG_NUM_DL_TRANS_CID 15
437 #if 0 /* WIMAX_16E_2005 changes this to SBC scope */
438 #define REG_PKM_FLOW_CONTROL 15
439 #define REG_AUTH_POLICY_SUPPORT 16
440 #define REG_MAX_SECURITY_ASSOCIATIONS 17
441 #endif
442 #if 0 /* TODO: scope has been changed to SBC scope */
443 #define REG_DL_TRANSPORT_CIDS_SUPPORTED 15
444 #endif
445 #define REG_MAC_ADDRESS 18
447 #define REG_TLV_T_20_MAX_MAC_DATA_PER_FRAME_SUPPORT 20
448 #define REG_TLV_T_20_1_MAX_MAC_LEVEL_DATA_PER_DL_FRAME 1
449 #define REG_TLV_T_20_2_MAX_MAC_LEVEL_DATA_PER_UL_FRAME 2
450 #define REG_TLV_T_21_PACKING_SUPPORT 21
451 #define REG_TLV_T_22_MAC_EXTENDED_RTPS_SUPPORT 22
452 #define REG_TLV_T_23_MAX_NUM_BURSTS_TRANSMITTED_CONCURRENTLY_TO_THE_MS 23
453 #define REG_RSP_TLV_T_24_CID_UPDATE_ENCODINGS 24
454 #define REG_RSP_TLV_T_24_1_CID_UPDATE_ENCODINGS_NEW_CID 1
455 #define REG_RSP_TLV_T_24_2_CID_UPDATE_ENCODINGS_SFID 2
456 #define REG_RSP_TLV_T_24_3_CID_UPDATE_ENCODINGS_CONNECTION_INFO 3
457 #define REG_RSP_TLV_T_25_COMPRESSED_CID_UPDATE_ENCODINGS 25
458 #define REG_TLV_T_26_METHOD_FOR_ALLOCATING_IP_ADDR_SECONDARY_MGMNT_CONNECTION 26
459 #define REG_TLV_T_27_HANDOVER_SUPPORTED 27
460 #define REG_RSP_TLV_T_28_HO_SYSTEM_RESOURCE_RETAIN_TIME 28
461 #define REG_TLV_T_29_HO_PROCESS_OPTIMIZATION_MS_TIMER 29
462 #define REG_RSP_TLV_T_30_MS_HANDOVER_RETRANSMISSION_TIMER 30
463 #define REG_TLV_T_31_MOBILITY_FEATURES_SUPPORTED 31
464 #define REG_REQ_TLV_T_32_SLEEP_MODE_RECOVERY_TIME 32
465 #define REG_REQ_TLV_T_33_MS_PREV_IP_ADDR 33
466 #define REG_RSP_TLV_T_34_SKIP_ADDR_ACQUISITION 34
467 #define REG_RSP_TLV_T_35_SAID_UPDATE_ENCODINGS 35
468 #define REG_RSP_TLV_T_35_1_NEW_SAID 1
469 #define REG_RSP_TLV_T_35_2_OLD_SAID 2
470 #define REG_RSP_TLV_T_36_TOTAL_PROVISIONED_SERVICE_FLOW_DSAs 36
471 #define REG_TLV_T_37_IDLE_MODE_TIMEOUT 37
472 #define REG_RSP_TLV_T_38_SA_TEK_UPDATE 38
473 #define REG_RSP_TLV_T_38_1_SA_TEK_UPDATE_TYPE 1
474 #define REG_RSP_TLV_T_38_2_NEW_SAID 2
475 #define REG_RSP_TLV_T_38_3_OLD_SAID 3
476 #define REG_RSP_TLV_T_38_4_OLD_TEK_PARAMETERS 4
477 #define REG_RSP_TLV_T_38_5_NEW_TEK_GTEK_PARAMETERS 5
478 #define REG_RSP_TLV_T_38_6_GKEK_PARAMETERS 6
479 #define REG_RSP_TLV_T_39_GKEK_PARAMETERS 39
480 #define REG_TLV_T_40_ARQ_ACK_TYPE 40
481 #define REG_TLV_T_41_MS_HO_CONNECTIONS_PARAM_PROCESSING_TIME 41
482 #define REG_TLV_T_42_MS_HO_TEK_PROCESSING_TIME 42
483 #define REG_TLV_T_43_MAC_HEADER_AND_EXTENDED_SUBHEADER_SUPPORT 43
484 #define REG_RSP_TLV_T_44_SN_REPORTING_BASE 44
485 #define REG_REQ_TLV_T_45_MS_PERIODIC_RANGING_TIMER_INFO 45
486 #define REG_HANDOVER_INDICATION_READINESS_TIMER 46
487 #define REG_REQ_BS_SWITCHING_TIMER 47
488 #define REG_POWER_SAVING_CLASS_CAPABILITY 48
492 /* PKM types (Table 370) */
493 #define PKM_ATTR_DISPLAY_STRING 6
494 #define PKM_ATTR_AUTH_KEY 7
495 #define PKM_ATTR_TEK 8
496 #define PKM_ATTR_KEY_LIFE_TIME 9
497 #define PKM_ATTR_KEY_SEQ_NUM 10
498 #define PKM_ATTR_HMAC_DIGEST 11
499 #define PKM_ATTR_SAID 12
500 #define PKM_ATTR_TEK_PARAM 13
501 #define PKM_ATTR_CBC_IV 15
502 #define PKM_ATTR_ERROR_CODE 16
503 #define PKM_ATTR_CA_CERTIFICATE 17
504 #define PKM_ATTR_SS_CERTIFICATE 18
505 #define PKM_ATTR_SECURITY_CAPABILITIES 19
506 #define PKM_ATTR_CRYPTO_SUITE 20
507 #define PKM_ATTR_CRYPTO_LIST 21
508 #define PKM_ATTR_VERSION 22
509 #define PKM_ATTR_SA_DESCRIPTOR 23
510 #define PKM_ATTR_SA_TYPE 24
511 #define PKM_ATTR_SECURITY_NEGOTIATION_PARAMETERS 25
512 #define PKM_ATTR_PKM_CONFIG_SETTINGS 27
513 #define PKM_ATTR_PKM_EAP_PAYLOAD 28
514 #define PKM_ATTR_PKM_NONCE 29
515 #define PKM_ATTR_AUTH_RESULT_CODE 30
516 #define PKM_ATTR_SA_SERVICE_TYPE 31
517 #define PKM_ATTR_FRAME_NUMBER 32
518 #define PKM_ATTR_SS_RANDOM 33
519 #define PKM_ATTR_BS_RANDOM 34
520 #define PKM_ATTR_PRE_PAK 35
521 #define PKM_ATTR_PAK_AK_SEQ_NUMBER 36
522 #define PKM_ATTR_BS_CERTIFICATE 37
523 #define PKM_ATTR_SIG_BS 38
524 #define PKM_ATTR_MS_MAC_ADDRESS 39
525 #define PKM_ATTR_CMAC_DIGEST 40
526 #define PKM_ATTR_KEY_PUSH_MODES 41
527 #define PKM_ATTR_KEY_PUSH_COUNTER 42
528 #define PKM_ATTR_GKEK 43
529 #define PKM_ATTR_SIG_SS 44
530 #define PKM_ATTR_AKID 45
531 #define PKM_ATTR_ASSOCIATED_GKEK_SEQ_NUM 46
532 #define PKM_ATTR_GKEK_PARAMETERS 47
534 #define PKM_ATTR_PKM_CONFIG_SETTINGS_AUTHORIZE_WAIT_TIMEOUT 1
535 #define PKM_ATTR_PKM_CONFIG_SETTINGS_REAUTHORIZE_WAIT_TIMEOUT 2
536 #define PKM_ATTR_PKM_CONFIG_SETTINGS_AUTHORIZATION_GRACE_TIME 3
537 #define PKM_ATTR_PKM_CONFIG_SETTINGS_OPERATIONAL_WAIT_TIMEOUT 4
538 #define PKM_ATTR_PKM_CONFIG_SETTINGS_REKEY_WAIT_TIMEOUT 5
539 #define PKM_ATTR_PKM_CONFIG_SETTINGS_TEK_GRACE_TIME 6
540 #define PKM_ATTR_PKM_CONFIG_SETTINGS_AUTHORIZE_REJECT_WAIT_TIMEOUT 7
542 #define PKM_ATTR_SECURITY_NEGOTIATION_PARAMETER_SUB_PKM_VERSION_SUPPORT 1
543 #define PKM_ATTR_SECURITY_NEGOTIATION_PARAMETER_SUB_AUTHORIZATION_POLICY_SUPPORT 2
544 #define PKM_ATTR_SECURITY_NEGOTIATION_PARAMETER_SUB_MESSAGE_AUTHENTICATION_CODE 3
545 #define PKM_ATTR_SECURITY_NEGOTIATION_PARAMETER_SUB_PN_WINDOW_SIZE 4
546 #define PKM_ATTR_SECURITY_NEGOTIATION_PARAMETER_SUB_PKM_FLOW_CONTROL 5
547 #define PKM_ATTR_SECURITY_NEGOTIATION_PARAMETER_SUB_MAX_SUPPT_SECURITY_ASSNS 6
549 /* Common TLV Encoding types (Table 346) */
550 #define SHORT_HMAC_TUPLE_COR2 140
551 #define CMAC_TUPLE 141
552 #define VENDOR_SPECIFIC_INFO 143
553 #define VENDOR_ID_ENCODING 144
554 #define DSx_UPLINK_FLOW 145
555 #define DSx_DOWNLINK_FLOW 146
556 #define CURRENT_TX_POWER 147
557 #define MAC_VERSION_ENCODING 148
558 #define HMAC_TUPLE 149
559 #define SHORT_HMAC_TUPLE 150
561 /* Section 11.13.18 */
562 #define ARQ_ENABLE 18
563 #define ARQ_WINDOW_SIZE 19
564 #define ARQ_TRANSMITTER_DELAY 20
565 #define ARQ_RECEIVER_DELAY 21
566 #define ARQ_BLOCK_LIFETIME 22
567 #define ARQ_SYNC_LOSS_TIMEOUT 23
568 #define ARQ_DELIVER_IN_ORDER 24
569 #define ARQ_RX_PURGE_TIMEOUT 25
570 #define ARQ_BLOCK_SIZE 26
572 /* Section 6.2.3.2.26 */
574 /* Service Flow Encodings (SFE) (Table 383) */
575 #define SFE_SF_ID 1
576 #define SFE_CID 2
577 #define SFE_SERVICE_CLASS_NAME 3
578 #define SFE_MBS_SERVICE 4
579 #define SFE_QOS_PARAMS_SET 5
580 #define SFE_TRAFFIC_PRIORITY 6
581 #define SFE_MAX_STR 7
582 #define SFE_MAX_TRAFFIC_BURST 8
583 #define SFE_MIN_RTR 9
584 #define SFE_RESERVED_10 10
585 #define SFE_UL_SCHEDULING 11
586 #define SFE_TX_POLICY 12
587 #define SFE_TOLERATED_JITTER 13
588 #define SFE_MAX_LATENCY 14
589 #define SFE_FIXED_LEN_SDU 15
590 #define SFE_SDU_SIZE 16
591 #define SFE_TARGET_SAID 17
592 #define SFE_ARQ_ENABLE 18
593 #define SFE_ARQ_WINDOW_SIZE 19
594 #define SFE_ARQ_TRANSMITTER_DELAY 20
595 #define SFE_ARQ_RECEIVER_DELAY 21
596 #define SFE_ARQ_BLOCK_LIFETIME 22
597 #define SFE_ARQ_SYNC_LOSS_TIMEOUT 23
598 #define SFE_ARQ_DELIVER_IN_ORDER 24
599 #define SFE_ARQ_RX_PURGE_TIMEOUT 25
600 #define SFE_ARQ_BLOCK_SIZE 26
601 #define SFE_RESERVED_27 27
602 #define SFE_CS_SPECIFICATION 28
603 #define SFE_TYPE_OF_DATA_DELIVERY_SERVICES 29
604 #define SFE_SDU_INTER_ARRIVAL_INTERVAL 30
605 #define SFE_TIME_BASE 31
606 #define SFE_PAGING_PREFERENCE 32
607 #define SFE_MBS_ZONE_IDENTIFIER_ASSIGNMENT 33
608 #define SFE_RESERVED_34 34
609 #define SFE_GLOBAL_SERVICE_CLASS_NAME 35
610 #define SFE_RESERVED_36 36
611 #define SFE_SN_FEEDBACK_ENABLED 37
612 #define SFE_FSN_SIZE 38
613 #define SFE_CID_ALLOCATION_FOR_ACTIVE_BS 39
614 #define SFE_UNSOLICITED_GRANT_INTERVAL 40
615 #define SFE_UNSOLOCITED_POLLING_INTERVAL 41
616 #define SFE_PDU_SN_EXT_SUBHEADER_HARQ_REORDER 42
617 #define SFE_MBS_CONTENTS_ID 43
618 #define SFE_HARQ_SERVICE_FLOWS 44
619 #define SFE_AUTHORIZATION_TOKEN 45
620 #define SFE_HARQ_CHANNEL_MAPPING 46
622 /* Convergence Servicerameter Encoding Rules (Section 11.13.19.2) */
623 #define SFE_CSPER_ATM 99
624 #define SFE_CSPER_PACKET_IPV4 100
625 #define SFE_CSPER_PACKET_IPV6 101
626 #define SFE_CSPER_PACKET_802_3 102
627 #define SFE_CSPER_PACKET_802_1Q 103
628 #define SFE_CSPER_PACKET_IPV4_802_3 104
629 #define SFE_CSPER_PACKET_IPV6_802_3 105
630 #define SFE_CSPER_PACKET_IPV4_802_1Q 106
631 #define SFE_CSPER_PACKET_IPV6_802_1Q 107
632 #define SFE_CSPER_PACKET_IP_ROCH_COMPRESSION 108
633 #define SFE_CSPER_PACKET_IP_ECRTP_COMPRESSION 109
634 #define SFE_CSPER_PACKET_IP_802_3_ROCH_COMPRESSION 110
635 #define SFE_CSPER_PACKET_IP_802_3_ECRTP_COMPRESSION 111
637 /* Section 11.13.19.3 */
638 #define CST_CLASSIFIER_ACTION 1
639 #define CST_CLASSIFIER_ERROR_PARAM_SET 2
640 #define CST_PACKET_CLASSIFICATION_RULE 3
641 #define CST_PHS_DSC_ACTION 4
642 #define CST_PHS_ERROR_PARAM_SET 5
643 #define CST_PHS_RULE 6
645 /* Section 11.13.19.3.3 */
646 #define CST_ERROR_SET_ERRORED_PARAM 1
647 #define CST_ERROR_SET_ERROR_CODE 2
648 #define CST_ERROR_SET_ERROR_MSG 3
650 /* Section 11.13.19.4 */
651 #define CST_ATM_SWITCHING 1
652 #define CST_ATM_CLASSIFIER 2
653 #define CST_ATM_CLASSIFIER_DSC_ACTION 3
654 #define CST_ATM_CLASSIFIER_ERROR_PARAMETER_SET 4
656 #define ATM_VPI_CLASSIFIER 1
657 #define ATM_VCI_CLASSIFIER 2
658 #define ATM_CLASSIFIER_ID 3
660 /* Section 11.13.19.3.4 */
661 #define CST_PKT_CLASS_RULE_PRIORITY 1
662 #define CST_PKT_CLASS_RULE_RANGE_MASK 2
663 #define CST_PKT_CLASS_RULE_PROTOCOL 3
664 #define CST_PKT_CLASS_RULE_SRC_IP 4
665 #define CST_PKT_CLASS_RULE_DST_IP 5
666 #define CST_PKT_CLASS_RULE_SRCPORT_RANGE 6
667 #define CST_PKT_CLASS_RULE_DSTPORT_RANGE 7
668 #define CST_PKT_CLASS_RULE_DST_MAC 8
669 #define CST_PKT_CLASS_RULE_SRC_MAC 9
670 #define CST_PKT_CLASS_RULE_ETHERTYPE 10
671 #define CST_PKT_CLASS_RULE_USER_PRIORITY 11
672 #define CST_PKT_CLASS_RULE_VLAN_ID 12
673 #define CST_PKT_CLASS_RULE_PHSI 13
674 #define CST_PKT_CLASS_RULE_INDEX 14
675 #define CST_PKT_CLASS_RULE_IPv6_FLOW_LABEL 15
676 #define CST_PKT_CLASS_RULE_LARGE_CONTEXT_ID 16
677 #define CST_PKT_CLASS_RULE_SHORT_FORMAT_CONTEXT_ID 18
678 #define CST_CLASSIFIER_ACTION_RULE 19
679 #define CST_PKT_CLASS_RULE_VENDOR_SPEC 143
681 /* Section 11.13.19.3.7 */
682 #define CST_PHS_PHSI 1
683 #define CST_PHS_PHSF 2
684 #define CST_PHS_PHSM 3
685 #define CST_PHS_PHSS 4
686 #define CST_PHS_PHSV 5
687 #define CST_PHS_VENDOR_SPEC 143
689 #endif /* WIMAX_MAC_H */