summaryrefslogtreecommitdiffstats
path: root/plugins/epan/wimax/msg_dlmap.c
blob: 4df5f213d228bf8705104f30033efb49d9b5330b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
/* msg_dlmap.c
 * WiMax MAC Management DL-MAP Message decoder
 *
 * Copyright (c) 2007 by Intel Corporation.
 *
 * Author: Mike Harvey <michael.harvey@intel.com>
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1999 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

/* Include files */

#include "config.h"

#include <epan/packet.h>
#include <epan/expert.h>
#include "wimax_mac.h"
#include "crc.h"
#include "wimax_bits.h"
#include "wimax_utils.h"

extern	gboolean include_cor2_changes;

void proto_register_mac_mgmt_msg_dlmap(void);
void proto_reg_handoff_mac_mgmt_msg_dlmap(void);

static dissector_handle_t dlmap_handle;

#define MAC_MGMT_MSG_DLMAP 2

#define XBIT_HF(bits, hf) \
	proto_tree_add_bits_item(tree, hf, tvb, bit, bits, ENC_BIG_ENDIAN); bit += bits;

#define XBIT_HF_VALUE(var, bits, hf) \
	do { \
	var = TVB_BIT_BITS(bit, tvb, bits); \
	proto_tree_add_bits_item(tree, hf, tvb, bit, bits, ENC_BIG_ENDIAN); \
	bit += bits; \
	} while(0)

#define VBIT(var, bits, hf) \
	do { \
	var = TVB_BIT_BITS(bit, tvb, bits); \
	proto_tree_add_uint(tree, hf, tvb, BITHI(bit,bits), var); \
	bit += bits; \
	} while(0)

#define VNIB(var, nibs, hf) \
	do { \
	var = TVB_NIB_NIBS(nib, tvb, nibs); \
	proto_tree_add_uint(tree, hf, tvb, NIBHI(nib, nibs), var); \
	nib += nibs; \
	} while(0)

gint harq = 0; /* 1 if HARQ enabled (TODO) */
gint fusc = 0; /* 1 if current zone permutation is FUSC or optional FUSC (TODO) */
gint tusc = 0; /* 1 if current zone permutation is AMC, TUSC1 or TUSC2 (TODO) */
gint ir_type = 0; /* reduced AAS map (TODO) */
gint RCID_Type = 0;
gint N_layer = 0;
gint STC_Zone_Dedicated_Pilots = 0;
gint STC_Zone_Matrix = 0;
gint INC_CID = 0;
gint sub_dl_ul_map = 0;

static gint proto_mac_mgmt_msg_dlmap_decoder = -1;

static gint ett_dlmap = -1;
static gint ett_dlmap_ie = -1;
/* static gint ett_dlmap_c_ie = -1; */
static gint ett_109x = -1; /* SUB-DL-UL-MAP */
static gint ett_109x_dl = -1;
static gint ett_109x_ul = -1;
static gint ett_275_phy = -1;
static gint ett_275_1 = -1;
static gint ett_277 = -1;
static gint ett_277b = -1;
static gint ett_278 = -1;
static gint ett_279 = -1;
static gint ett_280 = -1;
static gint ett_281 = -1;
static gint ett_282 = -1;
static gint ett_283 = -1;
static gint ett_284 = -1;
static gint ett_285 = -1;
static gint ett_286 = -1;
static gint ett_286a = -1;
static gint ett_286b = -1;
static gint ett_286c = -1;
static gint ett_286d = -1;
static gint ett_286e = -1;
static gint ett_286f = -1;
static gint ett_286g = -1;
static gint ett_286h = -1;
static gint ett_286i = -1;
static gint ett_286j = -1;
static gint ett_286k = -1;
static gint ett_286l = -1;
static gint ett_286m = -1;
static gint ett_286n = -1;
static gint ett_286o = -1;
static gint ett_286p = -1;
static gint ett_286q = -1;
static gint ett_286r = -1;
static gint ett_286s = -1;
static gint ett_286t = -1;
static gint ett_286u = -1;
static gint ett_286v = -1;
static gint ett_286w = -1;
static gint ett_286x = -1;
static gint ett_286y = -1;
static gint ett_286z = -1;
static gint ett_305  = -1;
/* static gint ett_305_dl = -1; */
static gint ett_308a = -1;

#define DCD_DOWNLINK_BURST_PROFILE	  1
#define DCD_BS_EIRP			  2
#define DCD_FRAME_DURATION		  3
#define DCD_PHY_TYPE			  4
#define DCD_POWER_ADJUSTMENT		  5
#define DCD_CHANNEL_NR			  6
#define DCD_TTG				  7
#define DCD_RTG				  8
#define DCD_RSS				  9
#define DCD_CHANNEL_SWITCH_FRAME_NR	 10
#define DCD_FREQUENCY			 12
#define DCD_BS_ID			 13
#define DCD_FRAME_DURATION_CODE		 14
#define DCD_FRAME_NR			 15
#define DCD_SIZE_CQICH_ID		 16
#define DCD_H_ARQ_ACK_DELAY		 17
#define DCD_MAC_VERSION			148
#define DCD_RESTART_COUNT		154

#define DCD_BURST_FREQUENCY		  1
#define DCD_BURST_FEC_CODE_TYPE		150
#define DCD_BURST_DIUC_EXIT_THRESHOLD	151
#define DCD_BURST_DIUC_ENTRY_THRESHOLD	152
#define DCD_BURST_TCS_ENABLE		153

#define DCD_TLV_T_541_TYPE_FUNCTION_ACTION				  1
#define DCD_TLV_T542_TRIGGER_VALUE					  2
#define DCD_TLV_T_543_TRIGGER_AVERAGING_DURATION			  3
#define DCD_TLV_T_19_PERMUTATION_TYPE_FOR_BROADCAST_REGION_IN_HARQ_ZONE	 19
#define DCD_TLV_T_20_MAXIMUM_RETRANSMISSION				 20
#define DCD_TLV_T_21_DEFAULT_RSSI_AND_CINR_AVERAGING_PARAMETER		 21
#define DCD_TLV_T_22_DL_AMC_ALLOCATED_PHYSICAL_BANDS_BITMAP		 22
#define DCD_TLV_T_31_H_ADD_THRESHOLD					 31
#define DCD_TLV_T_32_H_DELETE_THRESHOLD					 32
#define DCD_TLV_T_33_ASR						 33
#define DCD_TLV_T_34_DL_REGION_DEFINITION				 34
#define DCD_TLV_T_35_PAGING_GROUP_ID					 35
#define DCD_TLV_T_36_TUSC1_PERMUTATION_ACTIVE_SUBCHANNELS_BITMAP	 36
#define DCD_TLV_T_37_TUSC2_PERMUTATION_ACTIVE_SUBCHANNELS_BITMAP	 37
#define DCD_TLV_T_45_PAGING_INTERVAL_LENGTH				 45
#define DCD_TLV_T_50_HO_TYPE_SUPPORT					 50
#define DCD_TLV_T_51_HYSTERSIS_MARGIN					 51
#define DCD_TLV_T_52_TIME_TO_TRIGGER_DURATION				 52
#define DCD_TLV_T_54_TRIGGER						 54
#define DCD_TLV_T_153_DOWNLINK_BURST_PROFILE_FOR_MULTIPLE_FEC_TYPES	153

#define DL_MAP_NCT_PMP	0
#define DL_MAP_NCT_DM	1
#define DL_MAP_NCT_PTP	2

#if 0
/* NCT messages */
static const value_string nct_msgs[] =
{
	{ DL_MAP_NCT_PMP, "PMP" },
	{ DL_MAP_NCT_PMP, "DM" },
	{ DL_MAP_NCT_PMP, "PTP" },
	{ 0, NULL }
};
#endif

/* Repetition Coding Indications */
static const value_string rep_msgs[] =
{
	{ 0, "No Repetition Coding" },
	{ 1, "Repetition Coding of 2 Used" },
	{ 2, "Repetition Coding of 4 Used" },
	{ 3, "Repetition Coding of 6 Used" },
	{ 0, NULL }
};

/* DL Frame Prefix Coding Indications */
static const value_string boost_msgs[] =
{
	{ 0, "Normal (not boosted)" },
	{ 1, "+6dB" },
	{ 2, "-6dB" },
	{ 3, "+9dB" },
	{ 4, "+3dB" },
	{ 5, "-3dB" },
	{ 6, "-9dB" },
	{ 7, "-12dB" },
	{ 0, NULL }
};

/* OFDMA frame duration ms (Table 320)*/
static const value_string frame_duration[] =
{
	{ 0, "reserved"},
	{ 1, "2 ms"},
	{ 2, "2.5 ms"},
	{ 3, "4 ms"},
	{ 4, "5 ms"},
	{ 5, "8 ms"},
	{ 6, "10 ms"},
	{ 7, "12.5 ms"},
	{ 8, "20 ms"},
	{ 0, NULL}
};

/* OFDMA frames per second (Table 320)*/
static const value_string frames_per_second[] =
{
	{ 0, "reserved"},
	{ 1, "500"},
	{ 2, "400"},
	{ 3, "250"},
	{ 4, "200"},
	{ 5, "125"},
	{ 6, "100"},
	{ 7, "80"},
	{ 8, "50"},
	{ 0, NULL}
};

/* dl-map fields */
static gint hf_dlmap_phy_fdur = -1;
static gint hf_dlmap_phy_fdur_ms = -1;
static gint hf_dlmap_phy_fdur_per_sec = -1;
static gint hf_dlmap_phy_fnum = -1;
/* static gint hf_dlmap_fch_expected = -1; */
static gint hf_dlmap_dcd = -1;
static gint hf_dlmap_bsid = -1;
static gint hf_dlmap_ofdma_sym = -1;
/* static gint hf_dlmap_ie = -1; */
static gint hf_dlmap_ie_diuc = -1;
static gint hf_dlmap_ie_reserved_extended2_duic = -1;
static gint hf_dlmap_ie_reserved_extended_duic = -1;
static gint hf_dlmap_ie_diuc_ext = -1;
static gint hf_dlmap_ie_diuc_ext2 = -1;
static gint hf_dlmap_ie_length = -1;
static gint hf_dlmap_ie_bitmap = -1;
static gint hf_dlmap_ie_bitmap_cqi = -1;
static gint hf_dlmap_ie_bitmap_pusc = -1;
static gint hf_dlmap_ie_bitmap_opt_pusc = -1;
static gint hf_dlmap_ie_bitmap_amc = -1;
static gint hf_dlmap_ie_bitmap_aas = -1;
static gint hf_dlmap_ie_bitmap_periodic_ranging = -1;
static gint hf_dlmap_ie_bitmap_sounding = -1;
static gint hf_dlmap_ie_bitmap_mimo = -1;
static gint hf_dlmap_ie_ncid = -1;
static gint hf_dlmap_ie_cid = -1;
static gint hf_dlmap_ie_offsym = -1;
static gint hf_dlmap_ie_offsub = -1;
static gint hf_dlmap_ie_boosting = -1;
static gint hf_dlmap_ie_numsym = -1;
static gint hf_dlmap_ie_numsub = -1;
static gint hf_dlmap_ie_rep = -1;
static gint hf_dlmap_ie_offsym2 = -1;
static gint hf_dlmap_ie_offsub2 = -1;
static gint hf_dlmap_ie_boosting2 = -1;
static gint hf_dlmap_ie_numsym2 = -1;
static gint hf_dlmap_ie_numsub2 = -1;
static gint hf_dlmap_ie_rep2 = -1;

/* static gint hf_dlmap_xie_diuc = -1; */
/* static gint hf_dlmap_xie_len = -1; */

static gint hf_dlmapc_compr = -1;
static gint hf_dlmapc_ulmap = -1;
static gint hf_dlmapc_rsv = -1;
static gint hf_dlmapc_len = -1;
/* static gint hf_dlmapc_sync = -1; */
static gint hf_dlmapc_opid = -1;
static gint hf_dlmapc_secid = -1;
static gint hf_dlmapc_count = -1;

#if 0
static gint hf_109x_cmi = -1;
static gint hf_109x_len = -1;
static gint hf_109x_rcid = -1;
static gint hf_109x_haoi = -1;
static gint hf_109x_dl = -1;
static gint hf_109x_ul = -1;
static gint hf_109x_dlie = -1;
static gint hf_109x_symofs = -1;
static gint hf_109x_subofs = -1;
static gint hf_109x_rsv = -1;
#endif

static gint hf_308a_cmi = -1;
static gint hf_308a_ulmap = -1;
static gint hf_308a_type = -1;
static gint hf_308a_mult = -1;
static gint hf_308a_rsv = -1;
static gint hf_mac_header_compress_dlmap_crc = -1;
static gint hf_mac_header_compress_dlmap_crc_status = -1;
static gint hf_crc16 = -1;
static gint hf_crc16_status = -1;
static gint hf_padding = -1;
static gint hf_cid_mask = -1;
static gint hf_reserved = -1;

/* Generated via "one time" script to help create filterable fields */
static int hf_dlmap_rcid_ie_cid = -1;
static int hf_dlmap_rcid_ie_prefix = -1;
static int hf_dlmap_rcid_ie_cid11 = -1;
static int hf_dlmap_rcid_ie_cid7 = -1;
static int hf_dlmap_rcid_ie_cid3 = -1;
static int hf_dlmap_dedicated_dl_control_length = -1;
static int hf_dlmap_dedicated_dl_control_control_header = -1;
static int hf_dlmap_dedicated_dl_control_num_sdma_layers = -1;
static int hf_dlmap_dedicated_mimo_dl_control_length = -1;
static int hf_dlmap_dedicated_mimo_dl_control_control_header_mimo_control_info = -1;
static int hf_dlmap_dedicated_mimo_dl_control_control_header_cqi_control_info = -1;
static int hf_dlmap_dedicated_mimo_dl_control_control_header_closed_mimo_control_info = -1;
static int hf_dlmap_dedicated_mimo_dl_control_n_layer = -1;
static int hf_dlmap_dedicated_mimo_dl_control_matrix = -1;
static int hf_dlmap_dedicated_mimo_dl_control_num_beamformed_streams = -1;
static int hf_dlmap_dedicated_mimo_dl_control_period = -1;
static int hf_dlmap_dedicated_mimo_dl_control_frame_offset = -1;
static int hf_dlmap_dedicated_mimo_dl_control_duration = -1;
static int hf_dlmap_dedicated_mimo_dl_control_allocation_index = -1;
static int hf_dlmap_dedicated_mimo_dl_control_cqich_num = -1;
static int hf_dlmap_dedicated_mimo_dl_control_feedback_type = -1;
static int hf_dlmap_dedicated_mimo_dl_control_antenna_grouping_index = -1;
static int hf_dlmap_dedicated_mimo_dl_control_num_stream = -1;
static int hf_dlmap_dedicated_mimo_dl_control_antenna_selection_index = -1;
static int hf_dlmap_dedicated_mimo_dl_control_codebook_precoding_index = -1;
static int hf_dlmap_n_sub_burst_isi = -1;
static int hf_dlmap_harq_chase_n_ack_channel = -1;
static int hf_dlmap_harq_chase_duration = -1;
static int hf_dlmap_harq_chase_sub_burst_diuc_indicator = -1;
static int hf_dlmap_reserved_uint = -1;
static int hf_dlmap_harq_chase_diuc = -1;
static int hf_dlmap_harq_chase_repetition_coding_indication = -1;
static int hf_dlmap_harq_chase_acid = -1;
static int hf_dlmap_harq_chase_ai_sn = -1;
static int hf_dlmap_harq_chase_ack_disable = -1;
static int hf_dlmap_harq_chase_dedicated_dl_control_indicator = -1;
static int hf_dlmap_harq_chase_allocation_index = -1;
static int hf_dlmap_harq_chase_period = -1;
static int hf_dlmap_harq_chase_frame_offset = -1;
static int hf_dlmap_harq_ir_ctc_n_ack_channel = -1;
static int hf_dlmap_harq_ir_ctc_nep = -1;
static int hf_dlmap_harq_ir_ctc_nsch = -1;
static int hf_dlmap_harq_ir_ctc_spid = -1;
static int hf_dlmap_harq_ir_ctc_acid = -1;
static int hf_dlmap_harq_ir_ctc_ai_sn = -1;
static int hf_dlmap_harq_ir_ctc_ack_disable = -1;
static int hf_dlmap_harq_ir_ctc_dedicated_dl_control_indicator = -1;
static int hf_dlmap_harq_ir_ctc_duration = -1;
static int hf_dlmap_harq_ir_ctc_allocation_index = -1;
static int hf_dlmap_harq_ir_ctc_period = -1;
static int hf_dlmap_harq_ir_ctc_frame_offset = -1;
static int hf_dlmap_harq_ir_cc_n_ack_channel = -1;
static int hf_dlmap_harq_ir_cc_duration = -1;
static int hf_dlmap_harq_ir_cc_sub_burst_diuc_indicator = -1;
static int hf_dlmap_harq_ir_cc_diuc = -1;
static int hf_dlmap_harq_ir_cc_repetition_coding_indication = -1;
static int hf_dlmap_harq_ir_cc_acid = -1;
static int hf_dlmap_harq_ir_cc_ai_sn = -1;
static int hf_dlmap_harq_ir_cc_spid = -1;
static int hf_dlmap_harq_ir_cc_ack_disable = -1;
static int hf_dlmap_harq_ir_cc_dedicated_dl_control_indicator = -1;
static int hf_dlmap_harq_ir_cc_allocation_index = -1;
static int hf_dlmap_harq_ir_cc_period = -1;
static int hf_dlmap_harq_ir_cc_frame_offset = -1;
static int hf_dlmap_mimo_dl_chase_harq_n_ack_channel = -1;
static int hf_dlmap_mimo_dl_chase_harq_mu_indicator = -1;
static int hf_dlmap_mimo_dl_chase_harq_dedicated_mimo_dl_control_indicator = -1;
static int hf_dlmap_mimo_dl_chase_harq_ack_disable = -1;
static int hf_dlmap_mimo_dl_chase_harq_duration = -1;
static int hf_dlmap_mimo_dl_chase_harq_diuc = -1;
static int hf_dlmap_mimo_dl_chase_harq_repetition_coding_indication = -1;
static int hf_dlmap_mimo_dl_chase_harq_acid = -1;
static int hf_dlmap_mimo_dl_chase_harq_ai_sn = -1;
static int hf_dlmap_mimo_dl_ir_harq_n_ack_channel = -1;
static int hf_dlmap_mimo_dl_ir_harq_mu_indicator = -1;
static int hf_dlmap_mimo_dl_ir_harq_dedicated_mimo_dl_control_indicator = -1;
static int hf_dlmap_mimo_dl_ir_harq_ack_disable = -1;
static int hf_dlmap_mimo_dl_ir_harq_nsch = -1;
static int hf_dlmap_mimo_dl_ir_harq_nep = -1;
static int hf_dlmap_mimo_dl_ir_harq_spid = -1;
static int hf_dlmap_mimo_dl_ir_harq_acid = -1;
static int hf_dlmap_mimo_dl_ir_harq_ai_sn = -1;
static int hf_dlmap_mimo_dl_ir_harq_cc_n_ack_channel = -1;
static int hf_dlmap_mimo_dl_ir_harq_cc_mu_indicator = -1;
static int hf_dlmap_mimo_dl_ir_harq_cc_dedicated_mimo_dl_control_indicator = -1;
static int hf_dlmap_mimo_dl_ir_harq_cc_ack_disable = -1;
static int hf_dlmap_mimo_dl_ir_harq_cc_duration = -1;
static int hf_dlmap_mimo_dl_ir_harq_cc_diuc = -1;
static int hf_dlmap_mimo_dl_ir_harq_cc_repetition_coding_indication = -1;
static int hf_dlmap_mimo_dl_ir_harq_cc_acid = -1;
static int hf_dlmap_mimo_dl_ir_harq_cc_ai_sn = -1;
static int hf_dlmap_mimo_dl_ir_harq_cc_spid = -1;
static int hf_dlmap_mimo_dl_stc_harq_n_ack_channel = -1;
static int hf_dlmap_mimo_dl_stc_harq_tx_count = -1;
static int hf_dlmap_mimo_dl_stc_harq_duration = -1;
static int hf_dlmap_mimo_dl_stc_harq_sub_burst_offset_indication = -1;
static int hf_dlmap_mimo_dl_stc_harq_sub_burst_offset = -1;
static int hf_dlmap_mimo_dl_stc_harq_ack_disable = -1;
static int hf_dlmap_mimo_dl_stc_harq_dedicated_mimo_dl_control_indicator = -1;
static int hf_dlmap_mimo_dl_stc_harq_diuc = -1;
static int hf_dlmap_mimo_dl_stc_harq_repetition_coding_indication = -1;
static int hf_dlmap_mimo_dl_stc_harq_acid = -1;
static int hf_dlmap_mbs_map_extended_2_diuc = -1;
static int hf_dlmap_mbs_map_mbs_zone_identifier = -1;
static int hf_dlmap_mbs_map_macro_diversity_enhanced = -1;
static int hf_dlmap_mbs_map_permutation = -1;
static int hf_dlmap_mbs_map_dl_permbase = -1;
static int hf_dlmap_mbs_map_prbs_id = -1;
static int hf_dlmap_mbs_map_ofdma_symbol_offset = -1;
static int hf_dlmap_mbs_map_diuc_change_indication = -1;
static int hf_dlmap_mbs_map_boosting = -1;
static int hf_dlmap_mbs_map_diuc = -1;
static int hf_dlmap_mbs_map_num_subchannels = -1;
static int hf_dlmap_mbs_map_num_ofdma_symbols = -1;
static int hf_dlmap_mbs_map_repetition_coding_indication = -1;
static int hf_dlmap_mbs_map_cid = -1;
static int hf_dlmap_mbs_map_ofdma_symbols_offset = -1;
static int hf_dlmap_mbs_map_subchannel_offset = -1;
static int hf_dlmap_mbs_map_slc_3_indication = -1;
static int hf_dlmap_mbs_map_next_mbs_map_ie_frame_offset = -1;
static int hf_dlmap_skip_extended_2_diuc = -1;
static int hf_dlmap_skip_mode = -1;
static int hf_dlmap_harq_dl_map_extended_2_diuc = -1;
static int hf_dlmap_harq_dl_map_rcid_type = -1;
static int hf_dlmap_harq_dl_map_boosting = -1;
static int hf_dlmap_harq_dl_map_region_id_use_indicator = -1;
static int hf_dlmap_harq_dl_map_ofdma_symbol_offset = -1;
static int hf_dlmap_harq_dl_map_subchannel_offset = -1;
static int hf_dlmap_harq_dl_map_number_of_ofdma_symbols = -1;
static int hf_dlmap_harq_dl_map_number_of_subchannels = -1;
static int hf_dlmap_harq_dl_map_rectangular_sub_burst_indicator = -1;
static int hf_dlmap_harq_dl_map_region_id = -1;
static int hf_dlmap_harq_dl_map_mode = -1;
static int hf_dlmap_harq_dl_map_sub_burst_ie_length = -1;
static int hf_dlmap_harq_dl_map_reserved_mode = -1;
static int hf_dlmap_harq_ack_bitmap_data = -1;
static int hf_dlmap_enhanced_dl_map_extended_2_diuc = -1;
static int hf_dlmap_enhanced_dl_map_num_assignment = -1;
static int hf_dlmap_enhanced_dl_map_n_cid = -1;
static int hf_dlmap_enhanced_dl_map_cid = -1;
static int hf_dlmap_enhanced_dl_map_diuc = -1;
static int hf_dlmap_enhanced_dl_map_boosting = -1;
static int hf_dlmap_enhanced_dl_map_repetition_coding_indication = -1;
static int hf_dlmap_enhanced_dl_map_region_id = -1;
static int hf_dlmap_aas_sdma_dl_extended_2_diuc = -1;
static int hf_dlmap_aas_sdma_dl_rcid_type = -1;
static int hf_dlmap_aas_sdma_dl_num_burst_region = -1;
static int hf_dlmap_aas_sdma_dl_ofdma_symbol_offset = -1;
static int hf_dlmap_aas_sdma_dl_subchannel_offset = -1;
static int hf_dlmap_aas_sdma_dl_num_ofdma_triple_symbols = -1;
static int hf_dlmap_aas_sdma_dl_num_subchannels = -1;
static int hf_dlmap_aas_sdma_dl_number_of_users = -1;
static int hf_dlmap_aas_sdma_dl_encoding_mode = -1;
static int hf_dlmap_aas_sdma_dl_cqich_allocation = -1;
static int hf_dlmap_aas_sdma_dl_ackch_allocation = -1;
static int hf_dlmap_aas_sdma_dl_pilot_pattern_modifier = -1;
static int hf_dlmap_aas_sdma_dl_preamble_modifier_index = -1;
static int hf_dlmap_aas_sdma_dl_pilot_pattern = -1;
static int hf_dlmap_aas_sdma_dl_diuc = -1;
static int hf_dlmap_aas_sdma_dl_repetition_coding_indication = -1;
static int hf_dlmap_aas_sdma_dl_ack_ch_index = -1;
static int hf_dlmap_aas_sdma_dl_acid = -1;
static int hf_dlmap_aas_sdma_dl_ai_sn = -1;
static int hf_dlmap_aas_sdma_dl_nep = -1;
static int hf_dlmap_aas_sdma_dl_nsch = -1;
static int hf_dlmap_aas_sdma_dl_spid = -1;
static int hf_dlmap_aas_sdma_dl_allocation_index = -1;
static int hf_dlmap_aas_sdma_dl_period = -1;
static int hf_dlmap_aas_sdma_dl_frame_offset = -1;
static int hf_dlmap_aas_sdma_dl_duration = -1;
static int hf_dlmap_channel_measurement_channel_nr = -1;
static int hf_dlmap_channel_measurement_ofdma_symbol_offset = -1;
static int hf_dlmap_channel_measurement_cid = -1;
static int hf_dlmap_stc_zone_ofdma_symbol_offset = -1;
static int hf_dlmap_stc_zone_permutations = -1;
static int hf_dlmap_stc_zone_use_all_sc_indicator = -1;
static int hf_dlmap_stc_zone_stc = -1;
static int hf_dlmap_stc_zone_matrix_indicator = -1;
static int hf_dlmap_stc_zone_dl_permbase = -1;
static int hf_dlmap_stc_zone_prbs_id = -1;
static int hf_dlmap_stc_zone_amc_type = -1;
static int hf_dlmap_stc_zone_midamble_presence = -1;
static int hf_dlmap_stc_zone_midamble_boosting = -1;
static int hf_dlmap_stc_zone_2_3_antenna_select = -1;
static int hf_dlmap_stc_zone_dedicated_pilots = -1;
static int hf_dlmap_aas_dl_ofdma_symbol_offset = -1;
static int hf_dlmap_aas_dl_permutation = -1;
static int hf_dlmap_aas_dl_dl_permbase = -1;
static int hf_dlmap_aas_dl_downlink_preamble_config = -1;
static int hf_dlmap_aas_dl_preamble_type = -1;
static int hf_dlmap_aas_dl_prbs_id = -1;
static int hf_dlmap_aas_dl_diversity_map = -1;
static int hf_dlmap_data_location_another_bs_segment = -1;
static int hf_dlmap_data_location_another_bs_used_subchannels = -1;
static int hf_dlmap_data_location_another_bs_diuc = -1;
static int hf_dlmap_data_location_another_bs_frame_advance = -1;
static int hf_dlmap_data_location_another_bs_ofdma_symbol_offset = -1;
static int hf_dlmap_data_location_another_bs_subchannel_offset = -1;
static int hf_dlmap_data_location_another_bs_boosting = -1;
static int hf_dlmap_data_location_another_bs_preamble_index = -1;
static int hf_dlmap_data_location_another_bs_num_ofdma_symbols = -1;
static int hf_dlmap_data_location_another_bs_num_subchannels = -1;
static int hf_dlmap_data_location_another_bs_repetition_coding_indication = -1;
static int hf_dlmap_data_location_another_bs_cid = -1;
static int hf_dlmap_harq_map_pointer_diuc = -1;
static int hf_dlmap_harq_map_pointer_num_slots = -1;
static int hf_dlmap_harq_map_pointer_repetition_coding_indication = -1;
static int hf_dlmap_harq_map_pointer_map_version = -1;
static int hf_dlmap_harq_map_pointer_idle_users = -1;
static int hf_dlmap_harq_map_pointer_sleep_users = -1;
static int hf_dlmap_harq_map_pointer_cid_mask_length = -1;
static int hf_dlmap_phymod_dl_preamble_modifier_type = -1;
static int hf_dlmap_phymod_dl_preamble_frequency_shift_index = -1;
static int hf_dlmap_phymod_dl_preamble_time_shift_index = -1;
static int hf_dlmap_phymod_dl_pilot_pattern_modifier = -1;
static int hf_dlmap_phymod_dl_pilot_pattern_index = -1;
static int hf_dlmap_broadcast_ctrl_ptr_dcd_ucd_transmission_frame = -1;
static int hf_dlmap_broadcast_ctrl_ptr_skip_broadcast_system_update = -1;
static int hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_type = -1;
static int hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_transmission_frame = -1;
static int hf_dlmap_dl_pusc_burst_allocation_cid = -1;
static int hf_dlmap_dl_pusc_burst_allocation_diuc = -1;
static int hf_dlmap_dl_pusc_burst_allocation_segment = -1;
static int hf_dlmap_dl_pusc_burst_allocation_boosting = -1;
static int hf_dlmap_dl_pusc_burst_allocation_idcell = -1;
static int hf_dlmap_dl_pusc_burst_allocation_dl_permbase = -1;
static int hf_dlmap_dl_pusc_burst_allocation_prbs_id = -1;
static int hf_dlmap_dl_pusc_burst_allocation_repetition_coding_indication = -1;
static int hf_dlmap_dl_pusc_burst_allocation_used_subchannels = -1;
static int hf_dlmap_dl_pusc_burst_allocation_ofdma_symbol_offset = -1;
static int hf_dlmap_dl_pusc_burst_allocation_num_ofdma_symbols = -1;
static int hf_dlmap_dl_pusc_burst_allocation_subchannel_offset = -1;
static int hf_dlmap_dl_pusc_burst_allocation_num_subchannels = -1;
static int hf_dlmap_pusc_asca_alloc_diuc = -1;
static int hf_dlmap_pusc_asca_alloc_short_basic_cid = -1;
static int hf_dlmap_pusc_asca_alloc_ofdma_symbol_offset = -1;
static int hf_dlmap_pusc_asca_alloc_subchannel_offset = -1;
static int hf_dlmap_pusc_asca_alloc_num_ofdma_symbols = -1;
static int hf_dlmap_pusc_asca_alloc_num_symbols = -1;
static int hf_dlmap_pusc_asca_alloc_repetition_coding_information = -1;
static int hf_dlmap_pusc_asca_alloc_permutation_id = -1;
static int hf_dlmap_reduced_aas_num_ie = -1;
static int hf_dlmap_reduced_aas_periodicity = -1;
static int hf_dlmap_reduced_aas_cid_included = -1;
static int hf_dlmap_reduced_aas_dcd_count_included = -1;
static int hf_dlmap_reduced_aas_phy_modification_included = -1;
static int hf_dlmap_reduced_aas_cqich_control_indicator = -1;
static int hf_dlmap_reduced_aas_encoding_mode = -1;
static int hf_dlmap_reduced_aas_separate_mcs_enabled = -1;
static int hf_dlmap_reduced_aas_duration = -1;
static int hf_dlmap_reduced_aas_diuc = -1;
static int hf_dlmap_reduced_aas_repetition_coding_indication = -1;
static int hf_dlmap_reduced_aas_cid = -1;
static int hf_dlmap_reduced_aas_allocation_index = -1;
static int hf_dlmap_reduced_aas_report_period = -1;
static int hf_dlmap_reduced_aas_frame_offset = -1;
static int hf_dlmap_reduced_aas_report_duration = -1;
static int hf_dlmap_reduced_aas_cqi_measurement_type = -1;
static int hf_dlmap_reduced_aas_dcd_count = -1;
static int hf_dlmap_reduced_aas_preamble_select = -1;
static int hf_dlmap_reduced_aas_preamble_shift_index = -1;
static int hf_dlmap_reduced_aas_pilot_pattern_modifier = -1;
static int hf_dlmap_reduced_aas_pilot_pattern_index = -1;
static int hf_dlmap_reduced_aas_dl_frame_offset = -1;
static int hf_dlmap_reduced_aas_zone_symbol_offset = -1;
static int hf_dlmap_reduced_aas_ofdma_symbol_offset = -1;
static int hf_dlmap_reduced_aas_subchannel_offset = -1;
static int hf_dlmap_reduced_aas_num_ofdma_triple_symbol = -1;
static int hf_dlmap_reduced_aas_num_subchannels = -1;
static int hf_dlmap_reduced_aas_num_ofdma_symbols = -1;
static int hf_dlmap_reduced_aas_diuc_nep = -1;
static int hf_dlmap_reduced_aas_dl_harq_ack_bitmap = -1;
static int hf_dlmap_reduced_aas_ack_allocation_index = -1;
static int hf_dlmap_reduced_aas_acid = -1;
static int hf_dlmap_reduced_aas_ai_sn = -1;
static int hf_dlmap_reduced_aas_nsch = -1;
static int hf_dlmap_reduced_aas_spid = -1;



static expert_field ei_dlmap_not_implemented = EI_INIT;
static expert_field ei_crc16 = EI_INIT;
static expert_field ei_mac_header_compress_dlmap_crc = EI_INIT;
static expert_field ei_mac_header_invalid_length = EI_INIT;

/* Copied and renamed from proto.c because global value_strings don't work for plugins */
static const value_string plugin_proto_checksum_vals[] = {
	{ PROTO_CHECKSUM_E_BAD,        "Bad"  },
	{ PROTO_CHECKSUM_E_GOOD,       "Good" },
	{ PROTO_CHECKSUM_E_UNVERIFIED, "Unverified" },
	{ PROTO_CHECKSUM_E_NOT_PRESENT, "Not present" },

	{ 0,        NULL }
};

/********************************************************************
 * DL-MAP Miscellaneous IEs and TLVs
 *******************************************************************/

gint RCID_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb, gint RCID_Type_lcl)
{
	/* RCID_IE 8.4.5.3 and 8.4.5.3.20.1 */
	/* offset of IE in bits, length is variable  */
	gint bit = offset;
	proto_item *ti = NULL;
	proto_tree *tree = NULL;
	gint Prefix = 0;
	gint cid = 0;

	if (RCID_Type_lcl == 0)
		length = 16;
	else {
		Prefix = TVB_BIT_BIT(bit, tvb);
		if (Prefix == 1) length = 12;
		else if (RCID_Type_lcl == 1) length = 12;
		else if (RCID_Type_lcl == 2) length = 8;
		else if (RCID_Type_lcl == 3) length = 4;
	}

	tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, length), ett_286j, &ti, "RCID_IE");

	if (RCID_Type_lcl == 0) {
		XBIT_HF_VALUE(cid, 16, hf_dlmap_rcid_ie_cid);
	} else {
		XBIT_HF_VALUE(Prefix, 1, hf_dlmap_rcid_ie_prefix);

		if (Prefix == 1) {
			/* RCID 11 */
			XBIT_HF_VALUE(cid, 11, hf_dlmap_rcid_ie_cid11);
		} else {
			if (RCID_Type_lcl == 1) {
				/* RCID 11 */
				XBIT_HF_VALUE(cid, 11, hf_dlmap_rcid_ie_cid11);
			} else if (RCID_Type_lcl == 2) {
				/* RCID 7 */
				XBIT_HF_VALUE(cid, 7, hf_dlmap_rcid_ie_cid7);
			} else if (RCID_Type_lcl == 3) {
				/* RCID 3 */
				XBIT_HF_VALUE(cid, 3, hf_dlmap_rcid_ie_cid3);
			}
		}
	}

	proto_item_append_text(ti, " (CID = %d)", cid);

	return length; /* return length in bits */
}

/********************************************************************
 * DL-MAP Extended-2 HARQ sub-burst IEs (8.4.5.3.21)
 *******************************************************************/

static gint Dedicated_DL_Control_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* 8.4.5.3.20 */
	/* offset of IE in nibbles, length is variable */
	gint nib;
	gint nibble;
	proto_tree *tree;
	gint len;

	nib = offset;

	length = TVB_NIB_NIBBLE(nib, tvb); /* length in nibbles */

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(nib, length+1), ett_286i, NULL, "Dedicated_DL_Control_IE");

	VNIB(length, 1, hf_dlmap_dedicated_dl_control_length);
	VNIB(nibble, 1, hf_dlmap_dedicated_dl_control_control_header);

	if ((nibble & 1) == 1) {
		nibble = TVB_NIB_NIBBLE(nib, tvb);
		proto_tree_add_uint(tree, hf_dlmap_dedicated_dl_control_num_sdma_layers, tvb, NIBHI(nib,1), (nibble >> 2) & 0x3);
		/* Bit padding */
		if ((nib*4)+2 < (offset+length)*4) {
			len = ((offset + length - nib) * 4) - 2;
			proto_tree_add_bytes_format(tree, hf_reserved, tvb, BITHI(nib*4, len), NULL, "Reserved bits");
		}
	} else {
		/* Nibble padding */
		if (nib < offset+length) {
			len = (offset + length) - nib;
			proto_tree_add_bytes_format(tree, hf_reserved, tvb, NIBHI(nib,len), NULL, "Reserved bits");
		}
	}
	return (length + 1);
}

static gint Dedicated_MIMO_DL_Control_IE(proto_tree *diuc_tree, gint offset, gint length _U_, tvbuff_t *tvb)
{
	/* offset of IE in bits, length is variable */
	gint bit;
	proto_tree *tree;
	gint mci, cqi, cmi, matrix = 0, pad, CQICH_num, mimo_mode;
	gint j;

	bit = offset;

	/* 8.4.5.3.21 table 286t */
	tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 1), ett_286t, NULL, "Dedicated MIMO DL Control IE");

	XBIT_HF_VALUE(length, 5, hf_dlmap_dedicated_mimo_dl_control_length);
	XBIT_HF_VALUE(mci, 1, hf_dlmap_dedicated_mimo_dl_control_control_header_mimo_control_info);
	XBIT_HF_VALUE(cqi, 1, hf_dlmap_dedicated_mimo_dl_control_control_header_cqi_control_info);
	XBIT_HF_VALUE(cmi, 1, hf_dlmap_dedicated_mimo_dl_control_control_header_closed_mimo_control_info);
	XBIT_HF_VALUE(N_layer, 2, hf_dlmap_dedicated_mimo_dl_control_n_layer);

	/* MIMO Control Info */
	if (mci == 1) {
		XBIT_HF_VALUE(matrix, 2, hf_dlmap_dedicated_mimo_dl_control_matrix);
		if (STC_Zone_Dedicated_Pilots == 1) {
			XBIT_HF(2, hf_dlmap_dedicated_mimo_dl_control_num_beamformed_streams);
		}
	}

	/* CQICH Control Info */
	if (cqi == 1) {
		XBIT_HF(3, hf_dlmap_dedicated_mimo_dl_control_period);
		XBIT_HF(3, hf_dlmap_dedicated_mimo_dl_control_frame_offset);
		XBIT_HF(4, hf_dlmap_dedicated_mimo_dl_control_duration);
		for (j = 0; j < N_layer; j++) {
			XBIT_HF(6, hf_dlmap_dedicated_mimo_dl_control_allocation_index);
		}
		XBIT_HF_VALUE(CQICH_num, 2, hf_dlmap_dedicated_mimo_dl_control_cqich_num);
		for (j = 0; j < CQICH_num; j++) {
			XBIT_HF(3, hf_dlmap_dedicated_mimo_dl_control_feedback_type);
			XBIT_HF(6, hf_dlmap_dedicated_mimo_dl_control_allocation_index);
		}
	}

	/* Closed MIMO Control Info */
	if (cmi == 1) {
		if (mci == 1) {
			mimo_mode = matrix;
		} else {
			mimo_mode = STC_Zone_Matrix;
		}
		if (mimo_mode == 0 || mimo_mode == 1) {
			XBIT_HF(3, hf_dlmap_dedicated_mimo_dl_control_antenna_grouping_index);
		} else if (mimo_mode == 2) {
			XBIT_HF(2, hf_dlmap_dedicated_mimo_dl_control_num_stream);
			XBIT_HF(3, hf_dlmap_dedicated_mimo_dl_control_antenna_selection_index);
		} else if (mimo_mode == 3) {
			XBIT_HF(2, hf_dlmap_dedicated_mimo_dl_control_num_stream);
			XBIT_HF(6, hf_dlmap_dedicated_mimo_dl_control_codebook_precoding_index);
		}
	}

	/* padding to nibble */
	pad = BIT_PADDING(bit,4);
	if(pad){
		proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,pad), NULL, "%d bits", pad);
		bit += pad;
	}

	return (bit - offset);
}

static gint DL_HARQ_Chase_sub_burst_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* 8.4.5.3.21 DL_HARQ_Chase_sub_burst_IE */
	/* offset of IE in nibbles, length is variable */
	gint bit;
	proto_tree *tree;
	gint nsub, ddci, dur, sbi;
	gint j;

	bit = NIB_TO_BIT(offset);

	/* 8.4.5.3.21 table 286m */
	tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, length), ett_286m, NULL, "DL_HARQ_Chase_sub_burst_IE");

	XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
	XBIT_HF(4, hf_dlmap_harq_chase_n_ack_channel);

	nsub += 1;
	for (j = 0; j < nsub; j++) {
		bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
		XBIT_HF_VALUE(dur, 10, hf_dlmap_harq_chase_duration);
		XBIT_HF_VALUE(sbi, 1, hf_dlmap_harq_chase_sub_burst_diuc_indicator);
		XBIT_HF(1, hf_dlmap_reserved_uint);

		if (sbi == 1) {
			XBIT_HF(4, hf_dlmap_harq_chase_diuc);
			XBIT_HF(2, hf_dlmap_harq_chase_repetition_coding_indication);
			XBIT_HF(2, hf_dlmap_reserved_uint);
		}

		XBIT_HF(4, hf_dlmap_harq_chase_acid);
		XBIT_HF(1, hf_dlmap_harq_chase_ai_sn);
		XBIT_HF(1, hf_dlmap_harq_chase_ack_disable);
		XBIT_HF_VALUE(ddci, 2, hf_dlmap_harq_chase_dedicated_dl_control_indicator);

		if ((ddci & 1) == 1) {
			XBIT_HF_VALUE(dur, 4, hf_dlmap_harq_chase_duration);
			if (dur != 0) {
				XBIT_HF(6, hf_dlmap_harq_chase_allocation_index);
				XBIT_HF(3, hf_dlmap_harq_chase_period);
				XBIT_HF(3, hf_dlmap_harq_chase_frame_offset);
			}
		}

		if ((ddci & 2) == 2) {
			bit += Dedicated_DL_Control_IE(tree, BIT_TO_NIB(bit), length, tvb) * 4;
		}
	}

	/* XBIT_HF(data, 4, "(DL HARQ Chase sub-burst IE)"); */
	return (BIT_TO_NIB(bit) - offset);
}

static gint DL_HARQ_IR_CTC_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* offset of IE in nibbles, length is variable */
	gint bit;
	proto_tree *tree;
	gint nsub, ddci, dur;
	gint j;
	guint32 calculated_crc;

	bit = NIB_TO_BIT(offset);

	/* 8.4.5.3.21 table 286n */
	tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 4), ett_286n, NULL, "DL HARQ IR CTC sub-burst IE");

	XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
	XBIT_HF(4, hf_dlmap_harq_ir_ctc_n_ack_channel);

	nsub += 1;
	for (j = 0; j < nsub; j++) {
		bit += RCID_IE(tree, bit, length, tvb, RCID_Type);

		XBIT_HF(4, hf_dlmap_harq_ir_ctc_nep);
		XBIT_HF(4, hf_dlmap_harq_ir_ctc_nsch);
		XBIT_HF(2, hf_dlmap_harq_ir_ctc_spid);
		XBIT_HF(4, hf_dlmap_harq_ir_ctc_acid);
		XBIT_HF(1, hf_dlmap_harq_ir_ctc_ai_sn);
		XBIT_HF(1, hf_dlmap_harq_ir_ctc_ack_disable);
		XBIT_HF(2, hf_dlmap_reserved_uint);
		XBIT_HF_VALUE(ddci, 2, hf_dlmap_harq_ir_ctc_dedicated_dl_control_indicator);

		if ((ddci & 1) == 1) {
			XBIT_HF_VALUE(dur, 4, hf_dlmap_harq_ir_ctc_duration);

			if (dur != 0) {
				XBIT_HF(6, hf_dlmap_harq_ir_ctc_allocation_index);
				XBIT_HF(3, hf_dlmap_harq_ir_ctc_period);
				XBIT_HF(3, hf_dlmap_harq_ir_ctc_frame_offset);
			}
		}
		if ((ddci & 2) == 2) {
			bit += Dedicated_DL_Control_IE(tree, BIT_TO_NIB(bit), length, tvb);
		}
	}

	if (include_cor2_changes)
	{
		/* CRC-16 is always appended */
		calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
		proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
		bit += 16;
	}

	return (BIT_TO_NIB(bit) - offset);
}

static gint DL_HARQ_IR_CC_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* offset of IE in nibbles, length is variable */
	gint bit;
	proto_tree *tree;
	gint nsub, sbdi, ddci, dur;
	gint j;
	guint16 calculated_crc;

	bit = NIB_TO_BIT(offset);

	/* 8.4.5.3.21 table 286o */
	tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 4), ett_286o, NULL, "DL HARQ IR CC sub-burst IE");

	XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
	XBIT_HF(4, hf_dlmap_harq_ir_cc_n_ack_channel);

	nsub += 1;
	for (j = 0; j < nsub; j++) {
		bit += RCID_IE(tree, bit, length, tvb, RCID_Type) / 4;

		XBIT_HF(10, hf_dlmap_harq_ir_cc_duration);
		XBIT_HF_VALUE(sbdi, 1, hf_dlmap_harq_ir_cc_sub_burst_diuc_indicator);
		XBIT_HF(1, hf_dlmap_reserved_uint);

		if (sbdi) {
			XBIT_HF(4, hf_dlmap_harq_ir_cc_diuc);
			XBIT_HF(2, hf_dlmap_harq_ir_cc_repetition_coding_indication);
			XBIT_HF(2, hf_dlmap_reserved_uint);
		}

		XBIT_HF(4, hf_dlmap_harq_ir_cc_acid);
		XBIT_HF(1, hf_dlmap_harq_ir_cc_ai_sn);
		XBIT_HF(2, hf_dlmap_harq_ir_cc_spid);
		XBIT_HF(1, hf_dlmap_harq_ir_cc_ack_disable);
		XBIT_HF_VALUE(ddci, 2, hf_dlmap_harq_ir_cc_dedicated_dl_control_indicator);
		XBIT_HF(2, hf_dlmap_reserved_uint);

		if (ddci & 1) {
			XBIT_HF_VALUE(dur, 4, hf_dlmap_harq_ir_cc_duration);

			if (dur != 0) {
				XBIT_HF(6, hf_dlmap_harq_ir_cc_allocation_index);
				XBIT_HF(3, hf_dlmap_harq_ir_cc_period);
				XBIT_HF(3, hf_dlmap_harq_ir_cc_frame_offset);
			}
		}
		if ((ddci & 2) == 2) {
			bit += Dedicated_DL_Control_IE(tree, BIT_TO_NIB(bit), length, tvb);
		}
	}

	if (include_cor2_changes)
	{
		/* CRC-16 is always appended */
		calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
		proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
		bit += 16;
	}

	return (BIT_TO_NIB(bit) - offset);
}

static gint MIMO_DL_Chase_HARQ_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* offset of IE in nibbles, length is variable */
	gint bit;
	gint data;
	proto_tree *tree;
	gint nsub, mui, dci, akd;
	gint i, j;
	guint16 calculated_crc;

	bit = NIB_TO_BIT(offset);

	/* 8.4.5.3.21 table 286p */
	tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 1), ett_286p, NULL, "MIMO DL Chase HARQ sub-burst IE");

	XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
	XBIT_HF(6, hf_dlmap_mimo_dl_chase_harq_n_ack_channel);

	nsub += 1;
	for (j = 0; j < nsub; j++) {
		XBIT_HF_VALUE(mui, 1, hf_dlmap_mimo_dl_chase_harq_mu_indicator);
		XBIT_HF_VALUE(dci, 1, hf_dlmap_mimo_dl_chase_harq_dedicated_mimo_dl_control_indicator);
		XBIT_HF_VALUE(akd, 1, hf_dlmap_mimo_dl_chase_harq_ack_disable);
		if (mui == 0) {
			bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
		}
		if (dci == 1) {
			bit += Dedicated_MIMO_DL_Control_IE(tree, bit, length, tvb);
		}
		XBIT_HF(10, hf_dlmap_mimo_dl_chase_harq_duration);
		for (i = 0; i < N_layer; i++) {
			if (mui == 1) {
				bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
			}
			XBIT_HF(4, hf_dlmap_mimo_dl_chase_harq_diuc);
			XBIT_HF(2, hf_dlmap_mimo_dl_chase_harq_repetition_coding_indication);
			if (akd == 0) {
				XBIT_HF(4, hf_dlmap_mimo_dl_chase_harq_acid);
				XBIT_HF(1, hf_dlmap_mimo_dl_chase_harq_ai_sn);
			}
		}
	}
	/* Padding to nibble */
	data = BIT_PADDING(bit, 4);
	if (data) {
		proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,data), NULL, "%d bits", data);
		bit += data;
	}

	if (include_cor2_changes)
	{
		/* CRC-16 is always appended */
		calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
		proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
		bit += 16;
	}

	return (BIT_TO_NIB(bit) - offset);
}

static gint MIMO_DL_IR_HARQ_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* offset of IE in nibbles, length is variable */
	gint bit;
	proto_tree *tree;
	gint nsub, mui, dci, akd;
	gint i, j;
	guint16 calculated_crc;

	bit = NIB_TO_BIT(offset);

	/* 8.4.5.3.21 table 286q */
	tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 4), ett_286q, NULL, "MIMO DL IR HARQ sub-burst IE");

	XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
	XBIT_HF(6, hf_dlmap_mimo_dl_ir_harq_n_ack_channel);

	nsub += 1;
	for (j = 0; j < nsub; j++) {
		XBIT_HF_VALUE(mui, 1, hf_dlmap_mimo_dl_ir_harq_mu_indicator);
		XBIT_HF_VALUE(dci, 1, hf_dlmap_mimo_dl_ir_harq_dedicated_mimo_dl_control_indicator);
		XBIT_HF_VALUE(akd, 1, hf_dlmap_mimo_dl_ir_harq_ack_disable);
		if (mui == 0) {
			bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
		}
		if (dci == 1) {
			bit += Dedicated_MIMO_DL_Control_IE(tree, bit, length, tvb);
		}
		XBIT_HF(4, hf_dlmap_mimo_dl_ir_harq_nsch);
		for (i = 0; i < N_layer; i++) {
			if (mui == 1) {
				bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
			}
			XBIT_HF(4, hf_dlmap_mimo_dl_ir_harq_nep);
			if (akd) {
				XBIT_HF(2, hf_dlmap_mimo_dl_ir_harq_spid);
				XBIT_HF(4, hf_dlmap_mimo_dl_ir_harq_acid);
				XBIT_HF(1, hf_dlmap_mimo_dl_ir_harq_ai_sn);
			}
		}
	}

	if (include_cor2_changes)
	{
		/* CRC-16 is always appended */
		calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
		proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
		bit += 16;
	}

	return (BIT_TO_NIB(bit) - offset);
}

static gint MIMO_DL_IR_HARQ_for_CC_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* offset of IE in nibbles, length is variable */
	gint bit;
	proto_tree *tree;
	gint nsub, mui, dci, akd;
	gint i, j;
	guint16 calculated_crc;

	bit = NIB_TO_BIT(offset);

	/* 8.4.5.3.21 table 286r */
	tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 1), ett_286r, NULL, "MIMO DL IR HARQ for CC sub-burst IE");

	XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
	XBIT_HF(6, hf_dlmap_mimo_dl_ir_harq_cc_n_ack_channel);

	nsub += 1;
	for (j = 0; j < nsub; j++) {
		XBIT_HF_VALUE(mui, 1, hf_dlmap_mimo_dl_ir_harq_cc_mu_indicator);
		XBIT_HF_VALUE(dci, 1, hf_dlmap_mimo_dl_ir_harq_cc_dedicated_mimo_dl_control_indicator);
		XBIT_HF_VALUE(akd, 1, hf_dlmap_mimo_dl_ir_harq_cc_ack_disable);
		if (mui == 0) {
			bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
		}
		if (dci == 1) {
			bit += Dedicated_MIMO_DL_Control_IE(tree, bit, length, tvb);
		}
		XBIT_HF(10, hf_dlmap_mimo_dl_ir_harq_cc_duration);
		for (i = 0; i < N_layer; i++) {
			if (mui == 1) {
				bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
			}
			XBIT_HF(4, hf_dlmap_mimo_dl_ir_harq_cc_diuc);
			XBIT_HF(2, hf_dlmap_mimo_dl_ir_harq_cc_repetition_coding_indication);
			if (akd == 0) {
				XBIT_HF(4, hf_dlmap_mimo_dl_ir_harq_cc_acid);
				XBIT_HF(1, hf_dlmap_mimo_dl_ir_harq_cc_ai_sn);
				XBIT_HF(2, hf_dlmap_mimo_dl_ir_harq_cc_spid);
			}
		}
	}

	if (include_cor2_changes)
	{
		/* CRC-16 is always appended */
		calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
		proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
		bit += 16;
	}

	return (BIT_TO_NIB(bit) - offset);
}

static gint MIMO_DL_STC_HARQ_sub_burst_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* offset of IE in nibbles, length is variable */
	gint bit;
	proto_tree *tree;
	gint nsub, sbi, txc, akd, dmci;
	gint j;
	guint16 calculated_crc;

	bit = NIB_TO_BIT(offset);

	/* 8.4.5.3.21 table 286s */
	tree = proto_tree_add_subtree(diuc_tree, tvb, BITHI(bit, 1), ett_286s, NULL, "MIMO DL STC HARQ sub-burst IE");

	XBIT_HF_VALUE(nsub, 4, hf_dlmap_n_sub_burst_isi);
	XBIT_HF(6, hf_dlmap_mimo_dl_stc_harq_n_ack_channel);

	nsub += 1;
	for (j = 0; j < nsub; j++) {
		XBIT_HF_VALUE(txc, 2, hf_dlmap_mimo_dl_stc_harq_tx_count);
		XBIT_HF(10, hf_dlmap_mimo_dl_stc_harq_duration);
		XBIT_HF_VALUE(sbi, 1, hf_dlmap_mimo_dl_stc_harq_sub_burst_offset_indication);
		XBIT_HF(3, hf_dlmap_reserved_uint);
		if (sbi == 1) {
			XBIT_HF(8, hf_dlmap_mimo_dl_stc_harq_sub_burst_offset);
		}
		bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
		XBIT_HF_VALUE(akd, 1, hf_dlmap_mimo_dl_stc_harq_ack_disable);
		if (txc == 0) {
			XBIT_HF_VALUE(dmci, 1, hf_dlmap_mimo_dl_stc_harq_dedicated_mimo_dl_control_indicator);
			if (dmci == 1) {
				bit += Dedicated_MIMO_DL_Control_IE(tree, bit, length, tvb);
			}
			XBIT_HF(4, hf_dlmap_mimo_dl_stc_harq_diuc);
			XBIT_HF(2, hf_dlmap_mimo_dl_stc_harq_repetition_coding_indication);
		}
		if (akd == 0) {
			XBIT_HF(4, hf_dlmap_mimo_dl_stc_harq_acid);
		}
	}

	if (include_cor2_changes)
	{
		/* CRC-16 is always appended */
		calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
		proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
									ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
		bit += 16;
	}

	return (BIT_TO_NIB(bit) - offset);
}

/********************************************************************
 * DL-MAP Extended-2 IEs
 *******************************************************************/

static gint MBS_MAP_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 0 */
	/* 8.4.5.3.12 MBS_MAP_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;
	gint mde, dci, s3i;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286a, NULL, "MBS_MAP_IE");

	XBIT_HF(4, hf_dlmap_mbs_map_extended_2_diuc);
	VBIT(data, 8, hf_dlmap_ie_length);

	XBIT_HF(7, hf_dlmap_mbs_map_mbs_zone_identifier);
	XBIT_HF_VALUE(mde, 1, hf_dlmap_mbs_map_macro_diversity_enhanced);
	if (mde == 1)
	{
		XBIT_HF(2, hf_dlmap_mbs_map_permutation);
		XBIT_HF(5, hf_dlmap_mbs_map_dl_permbase);
		XBIT_HF(2, hf_dlmap_mbs_map_prbs_id);
		XBIT_HF(7, hf_dlmap_mbs_map_ofdma_symbol_offset);
		XBIT_HF_VALUE(dci, 1, hf_dlmap_mbs_map_diuc_change_indication);
		XBIT_HF(3, hf_dlmap_reserved_uint);
		if (dci == 1) {
			XBIT_HF(3, hf_dlmap_reserved_uint);
			XBIT_HF(3, hf_dlmap_mbs_map_boosting);
			XBIT_HF(4, hf_dlmap_mbs_map_diuc);
			XBIT_HF(6, hf_dlmap_mbs_map_num_subchannels);
			XBIT_HF(6, hf_dlmap_mbs_map_num_ofdma_symbols);
			XBIT_HF(2, hf_dlmap_mbs_map_repetition_coding_indication);
		}
	} else {
		XBIT_HF(4, hf_dlmap_mbs_map_diuc);
		XBIT_HF(16, hf_dlmap_mbs_map_cid);
		XBIT_HF(8, hf_dlmap_mbs_map_ofdma_symbols_offset);
		XBIT_HF(6, hf_dlmap_mbs_map_subchannel_offset);
		XBIT_HF(3, hf_dlmap_mbs_map_boosting);
		XBIT_HF_VALUE(s3i, 1, hf_dlmap_mbs_map_slc_3_indication);
		XBIT_HF(6, hf_dlmap_mbs_map_num_ofdma_symbols);
		XBIT_HF(6, hf_dlmap_mbs_map_num_subchannels);
		XBIT_HF(2, hf_dlmap_mbs_map_repetition_coding_indication);
		if (s3i == 1) {
			XBIT_HF(8, hf_dlmap_mbs_map_next_mbs_map_ie_frame_offset);
		}
	}
	data = BIT_PADDING(bit, 4);
	if (data) {
		proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,data), NULL, "%d bits", data);
		bit += data;
	}
	return BIT_TO_NIB(bit);
}

static gint HO_Anchor_Active_DL_MAP_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 1 */
	/* 8.4.5.3.14 [2] HO_Anchor_Active_DL-MAP_IE TODO 1.1 */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint nib;
	gint data;
	proto_tree *tree;

	nib = offset;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286c, NULL, "HO_Anchor_Active_DL_MAP_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
	VNIB(data, 2, hf_dlmap_ie_length);
	proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
	return nib;
}

static gint HO_Active_Anchor_DL_MAP_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 2 */
	/* 8.4.5.3.15 HO_Active_Anchor_DL_MAP_IE TODO 1.1 */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint nib;
	gint data;
	proto_tree *tree;

	nib = offset;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286d, NULL, "HO_Active_Anchor_DL_MAP_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
	VNIB(data, 2, hf_dlmap_ie_length);
	proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
	return nib;
}

static gint HO_CID_Translation_MAP_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 3 */
	/* 8.4.5.3.16 HO_CID_Translation_MAP_IE TODO 1.1 */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint nib;
	gint data;
	proto_tree *tree;

	nib = offset;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286e, NULL, "CID_Translation_MAP_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
	VNIB(data, 2, hf_dlmap_ie_length);
	proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
	return nib;
}

static gint MIMO_in_another_BS_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 4 */
	/* 8.4.5.3.17 [2] MIMO_in_another_BS_IE (not implemented)*/
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint nib;
	gint data;
	proto_tree *tree;

	nib = offset;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286f, NULL, "MIMO_in_another_BS_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
	VNIB(data, 2, hf_dlmap_ie_length);
	proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
	return nib;
}

static gint Macro_MIMO_DL_Basic_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* dl-map extended-2 ie = 5 */
	/* 8.4.5.3.18 [2] Macro-MIMO_DL_Basic_IE (not implemented) */
	/* offset of tlv in nibbles, length of tlv in nibbles */
	gint nib;
	gint data;
	proto_tree *tree;

	nib = offset;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286g, NULL, "Macro_MIMO_DL_Basic_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
	VNIB(data, 2, hf_dlmap_ie_length);
	proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
	return nib;
}

static gint Skip_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 6 */
	/* 8.4.5.3.20.2 Skip_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286k, NULL, "Skip_IE");

	XBIT_HF(4, hf_dlmap_skip_extended_2_diuc);
	VBIT(data, 8, hf_dlmap_ie_length);

	XBIT_HF(1, hf_dlmap_skip_mode);
	XBIT_HF(7, hf_dlmap_reserved_uint);

	return BIT_TO_NIB(bit);
}

static gint HARQ_DL_MAP_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 7 */
	/* 8.4.5.3.21 [2] HARQ_DL_MAP_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	proto_tree *tree;
	gint len, lastbit, rui, mode, sub_len, pad;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286l, NULL, "HARQ_DL_MAP_IE");

	XBIT_HF(4, hf_dlmap_harq_dl_map_extended_2_diuc);
	VBIT(len, 2, hf_dlmap_ie_length);

	XBIT_HF_VALUE(RCID_Type, 2, hf_dlmap_harq_dl_map_rcid_type);
	XBIT_HF(2, hf_dlmap_reserved_uint);

	/* while data remains */
	length = NIB_TO_BIT(length);
	/* Subtract extra nibble to be sure to stop in time. */
	lastbit = bit + BYTE_TO_BIT(len) - 14 - 4;
	while (bit < lastbit) {
		XBIT_HF(3, hf_dlmap_harq_dl_map_boosting);
		XBIT_HF_VALUE(rui, 1, hf_dlmap_harq_dl_map_region_id_use_indicator);

		if (rui == 0) {
			XBIT_HF(8, hf_dlmap_harq_dl_map_ofdma_symbol_offset);
			XBIT_HF(7, hf_dlmap_harq_dl_map_subchannel_offset);
			XBIT_HF(7, hf_dlmap_harq_dl_map_number_of_ofdma_symbols);
			XBIT_HF(7, hf_dlmap_harq_dl_map_number_of_subchannels);
			if (include_cor2_changes)
			{
				XBIT_HF(1, hf_dlmap_harq_dl_map_rectangular_sub_burst_indicator); /* Implemented: "Rectangular Sub-Burst Indicator" field added */
				XBIT_HF(2, hf_dlmap_reserved_uint);   /* and "Reserved" field resized from 3 bits to 2 bits		 */
			}
			else
			{
				XBIT_HF(3, hf_dlmap_reserved_uint);
			}
		} else {
			XBIT_HF(8, hf_dlmap_harq_dl_map_region_id);
		}
		XBIT_HF_VALUE(mode, 4, hf_dlmap_harq_dl_map_mode);
		XBIT_HF_VALUE(sub_len, 8, hf_dlmap_harq_dl_map_sub_burst_ie_length);

		/* 8.4.5.3.21 */
		/* length of these are variable, each returns length in nibbles */
		if (mode == 0) {
			DL_HARQ_Chase_sub_burst_IE(tree, BIT_TO_NIB(bit), length, tvb);
		} else if (mode == 1) {
			DL_HARQ_IR_CTC_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
		} else if (mode == 2) {
			DL_HARQ_IR_CC_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
		} else if (mode == 3) {
			MIMO_DL_Chase_HARQ_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
		} else if (mode == 4) {
			MIMO_DL_IR_HARQ_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
		} else if (mode == 5) {
			MIMO_DL_IR_HARQ_for_CC_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
		} else if (mode == 6) {
			MIMO_DL_STC_HARQ_sub_burst_IE(tree, pinfo, BIT_TO_NIB(bit), length, tvb);
		} else {
			proto_tree_add_bits_item(tree, hf_dlmap_harq_dl_map_reserved_mode, tvb, bit, 1, ENC_BIG_ENDIAN);
			break; /* cannot continue */
		}
		bit += NIB_TO_BIT(sub_len);
	}

	pad = NIB_TO_BIT(offset) + length - bit;
	if (pad) {
		proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,pad), NULL, "%d bits",pad);
		bit += pad;
	}

	return BIT_TO_NIB(bit);
}

static gint HARQ_ACK_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 8 */
	/* 8.4.5.3.22 HARQ_ACK IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint data;
	gint nib;
	proto_tree *tree;

	nib = offset;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286u, NULL, "HARQ_ACK_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
	VNIB(data, 2, hf_dlmap_ie_length);

	proto_tree_add_item(diuc_tree, hf_dlmap_harq_ack_bitmap_data, tvb, NIBHI(nib,length-3), ENC_NA);

	return nib;
}

static gint Enhanced_DL_MAP_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 9 */
	/* 8.4.5.3.23 Enhanced DL MAP IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;
	gint numass, n_cid;
	gint i, n;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286v, NULL, "Enhanced_DL-MAP_IE");

	XBIT_HF(4, hf_dlmap_enhanced_dl_map_extended_2_diuc);
	VBIT(data, 8, hf_dlmap_ie_length);

	XBIT_HF_VALUE(numass, 4, hf_dlmap_enhanced_dl_map_num_assignment);
	for (i = 0; i < numass; i++) {
		if (INC_CID == 1) {
			XBIT_HF_VALUE(n_cid, 8, hf_dlmap_enhanced_dl_map_n_cid);
			for (n = 0; n < n_cid; n++) {
				XBIT_HF(16, hf_dlmap_enhanced_dl_map_cid);
			}
		}
		XBIT_HF(4, hf_dlmap_enhanced_dl_map_diuc);
		XBIT_HF(3, hf_dlmap_enhanced_dl_map_boosting);
		XBIT_HF(2, hf_dlmap_enhanced_dl_map_repetition_coding_indication);
		XBIT_HF(8, hf_dlmap_enhanced_dl_map_region_id);
		XBIT_HF(3, hf_dlmap_reserved_uint);
	}
	return BIT_TO_NIB(bit);
}

static gint Closed_loop_MIMO_DL_Enhanced_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 0xA */
	/* 8.4.5.3.24 Closed-loop MIMO DL Enhanced IE (not implemented) */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint nib;
	gint data;
	proto_tree *tree;

	nib = offset;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286w, NULL, "CL_MIMO_DL_Enhanced_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
	VNIB(data, 2, hf_dlmap_ie_length);
	proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-3));
	return nib;
}

static gint AAS_SDMA_DL_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended-2 IE = 0xE */
	/* 8.4.5.3.26 AAS_SDMA_DL_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;
	gint num_region, num_users, pilot_pattern, encoding_mode, ackch_alloc, cqich_alloc;
	gint aas_preamble = 1;
	gint zone_permut = 0; /* TODO */
	gint i, j;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286y, NULL, "AAS_SDMA_DL_IE");

	XBIT_HF(4, hf_dlmap_aas_sdma_dl_extended_2_diuc);
	VBIT(data, 8, hf_dlmap_ie_length);

	XBIT_HF_VALUE(RCID_Type, 2, hf_dlmap_aas_sdma_dl_rcid_type);
	XBIT_HF_VALUE(num_region, 4, hf_dlmap_aas_sdma_dl_num_burst_region);
	XBIT_HF(2, hf_dlmap_reserved_uint);
	for (i = 0; i < num_region; i++) {
		XBIT_HF(8, hf_dlmap_aas_sdma_dl_ofdma_symbol_offset);
		if (zone_permut == 0) {
			XBIT_HF(8, hf_dlmap_aas_sdma_dl_subchannel_offset);
			XBIT_HF(5, hf_dlmap_aas_sdma_dl_num_ofdma_triple_symbols);
			XBIT_HF(6, hf_dlmap_aas_sdma_dl_num_subchannels);
		} else {
			XBIT_HF(6, hf_dlmap_aas_sdma_dl_subchannel_offset);
			XBIT_HF(7, hf_dlmap_aas_sdma_dl_num_ofdma_triple_symbols);
			XBIT_HF(6, hf_dlmap_aas_sdma_dl_num_subchannels);
		}
		XBIT_HF_VALUE(num_users, 3, hf_dlmap_aas_sdma_dl_number_of_users);
		XBIT_HF(2, hf_dlmap_reserved_uint);
		for (j = 0; j < num_users; j++) {
			bit += RCID_IE(tree, bit, length, tvb, RCID_Type);
			XBIT_HF_VALUE(encoding_mode, 2, hf_dlmap_aas_sdma_dl_encoding_mode);
			XBIT_HF_VALUE(cqich_alloc, 1, hf_dlmap_aas_sdma_dl_cqich_allocation);
			XBIT_HF_VALUE(ackch_alloc, 1, hf_dlmap_aas_sdma_dl_ackch_allocation);
			XBIT_HF_VALUE(pilot_pattern, 1, hf_dlmap_aas_sdma_dl_pilot_pattern_modifier);
			if (aas_preamble) {
				XBIT_HF(4, hf_dlmap_aas_sdma_dl_preamble_modifier_index);
			}
			if (pilot_pattern) {
				XBIT_HF(2, hf_dlmap_aas_sdma_dl_pilot_pattern);
				XBIT_HF(1, hf_dlmap_reserved_uint);
			} else {
				XBIT_HF(3, hf_dlmap_reserved_uint);
			}
			if (encoding_mode == 0x0) {
				XBIT_HF(4, hf_dlmap_aas_sdma_dl_diuc);
				XBIT_HF(2, hf_dlmap_aas_sdma_dl_repetition_coding_indication);
				XBIT_HF(2, hf_dlmap_reserved_uint);
			}
			if (encoding_mode == 0x1) {
				if (ackch_alloc) {
					XBIT_HF(5, hf_dlmap_aas_sdma_dl_ack_ch_index);
				} else {
					XBIT_HF(1, hf_dlmap_reserved_uint);
				}
				XBIT_HF(4, hf_dlmap_aas_sdma_dl_diuc);
				XBIT_HF(2, hf_dlmap_aas_sdma_dl_repetition_coding_indication);
				XBIT_HF(4, hf_dlmap_aas_sdma_dl_acid);
				XBIT_HF(1, hf_dlmap_aas_sdma_dl_ai_sn);
			}
			if (encoding_mode == 0x2) {
				if (ackch_alloc) {
					XBIT_HF(5, hf_dlmap_aas_sdma_dl_ack_ch_index);
				} else {
					XBIT_HF(1, hf_dlmap_reserved_uint);
				}
				XBIT_HF(4, hf_dlmap_aas_sdma_dl_nep);
				XBIT_HF(4, hf_dlmap_aas_sdma_dl_nsch);
				XBIT_HF(2, hf_dlmap_aas_sdma_dl_spid);
				XBIT_HF(4, hf_dlmap_aas_sdma_dl_acid);
				XBIT_HF(1, hf_dlmap_aas_sdma_dl_ai_sn);
			}
			if (encoding_mode == 0x3) {
				if (ackch_alloc) {
					XBIT_HF(5, hf_dlmap_aas_sdma_dl_ack_ch_index);
					XBIT_HF(2, hf_dlmap_reserved_uint);
				} else {
					XBIT_HF(3, hf_dlmap_reserved_uint);
				}
				XBIT_HF(4, hf_dlmap_aas_sdma_dl_diuc);
				XBIT_HF(2, hf_dlmap_aas_sdma_dl_repetition_coding_indication);
				XBIT_HF(2, hf_dlmap_aas_sdma_dl_spid);
				XBIT_HF(4, hf_dlmap_aas_sdma_dl_acid);
				XBIT_HF(1, hf_dlmap_aas_sdma_dl_ai_sn);
			}
			if (cqich_alloc) {
				XBIT_HF(6, hf_dlmap_aas_sdma_dl_allocation_index);
				XBIT_HF(3, hf_dlmap_aas_sdma_dl_period);
				XBIT_HF(3, hf_dlmap_aas_sdma_dl_frame_offset);
				XBIT_HF(4, hf_dlmap_aas_sdma_dl_duration);
			}
		}
	}
	data = BIT_PADDING(bit,4);
	/* Should this be an optional field? Or do we want it, even if it has a length of zero? */
	proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,data), NULL, "%d bits", data);
	bit += data;

	return BIT_TO_NIB(bit);
}



/********************************************************************
 * DL-MAP Extended IEs
 *******************************************************************/

static gint Channel_Measurement_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 0 */
	/* 8.4.5.3.5 [1] Channel_Measurement_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint nib;
	gint data;
	proto_tree *tree;

	nib = offset;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_280, NULL, "Channel_Measurement_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext);
	VNIB(data, 1, hf_dlmap_ie_length);

	VNIB(data, 2, hf_dlmap_channel_measurement_channel_nr);
	VNIB(data, 2, hf_dlmap_channel_measurement_ofdma_symbol_offset);
	VNIB(data, 4, hf_dlmap_channel_measurement_cid);
	return nib;
}

static gint STC_Zone_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 1 */
	/* 8.4.5.3.4 STC_Zone_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	/* set globals: STC_Zone_Dedicated_Pilots, STC_Zone_Matrix
	 * used in 8.4.5.3.21.1 Dedicated MIMO Control IE 286t */
	gint bit;
	gint data;
	proto_tree *tree;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_279, NULL, "STC_Zone_IE");

	VBIT(data, 4, hf_dlmap_ie_diuc_ext);
	VBIT(data, 4, hf_dlmap_ie_length);

	XBIT_HF(8, hf_dlmap_stc_zone_ofdma_symbol_offset);
	XBIT_HF(2, hf_dlmap_stc_zone_permutations);
	XBIT_HF(1, hf_dlmap_stc_zone_use_all_sc_indicator);
	XBIT_HF(2, hf_dlmap_stc_zone_stc);
	XBIT_HF_VALUE(STC_Zone_Matrix, 2, hf_dlmap_stc_zone_matrix_indicator);
	XBIT_HF(5, hf_dlmap_stc_zone_dl_permbase);
	XBIT_HF(2, hf_dlmap_stc_zone_prbs_id);
	XBIT_HF(2, hf_dlmap_stc_zone_amc_type);
	XBIT_HF(1, hf_dlmap_stc_zone_midamble_presence);
	XBIT_HF(1, hf_dlmap_stc_zone_midamble_boosting);
	XBIT_HF(1, hf_dlmap_stc_zone_2_3_antenna_select);
	XBIT_HF_VALUE(STC_Zone_Dedicated_Pilots, 1, hf_dlmap_stc_zone_dedicated_pilots);
	XBIT_HF(4, hf_dlmap_reserved_uint);

	return BIT_TO_NIB(bit);
}

static gint AAS_DL_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 2 */
	/* 8.4.5.3.3 AAS_DL_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_278, NULL, "AAS_DL_IE");

	VBIT(data, 4, hf_dlmap_ie_diuc_ext);
	VBIT(data, 4, hf_dlmap_ie_length);

	XBIT_HF(8, hf_dlmap_aas_dl_ofdma_symbol_offset);
	XBIT_HF(3, hf_dlmap_aas_dl_permutation);
	XBIT_HF(6, hf_dlmap_aas_dl_dl_permbase);
	XBIT_HF(2, hf_dlmap_aas_dl_downlink_preamble_config);
	XBIT_HF(1, hf_dlmap_aas_dl_preamble_type);
	XBIT_HF(2, hf_dlmap_aas_dl_prbs_id);
	XBIT_HF(1, hf_dlmap_aas_dl_diversity_map);
	XBIT_HF(1, hf_dlmap_reserved_uint);

	return BIT_TO_NIB(bit);
}

static gint Data_location_in_another_BS_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 3 */
	/* 8.4.5.3.6 Data_location_in_another_BS_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_281, NULL, "Data location in another BS IE");

	VBIT(data, 4, hf_dlmap_ie_diuc_ext);
	VBIT(data, 4, hf_dlmap_ie_length);

	XBIT_HF(2, hf_dlmap_data_location_another_bs_segment);
	XBIT_HF(6, hf_dlmap_data_location_another_bs_used_subchannels);
	XBIT_HF(4, hf_dlmap_data_location_another_bs_diuc);
	XBIT_HF(3, hf_dlmap_data_location_another_bs_frame_advance);
	XBIT_HF(1, hf_dlmap_reserved_uint);
	XBIT_HF(8, hf_dlmap_data_location_another_bs_ofdma_symbol_offset);
	XBIT_HF(6, hf_dlmap_data_location_another_bs_subchannel_offset);
	XBIT_HF(3, hf_dlmap_data_location_another_bs_boosting);
	XBIT_HF(7, hf_dlmap_data_location_another_bs_preamble_index);
	XBIT_HF(8, hf_dlmap_data_location_another_bs_num_ofdma_symbols);
	XBIT_HF(6, hf_dlmap_data_location_another_bs_num_subchannels);
	XBIT_HF(2, hf_dlmap_data_location_another_bs_repetition_coding_indication);
	XBIT_HF(16, hf_dlmap_data_location_another_bs_cid);

	return BIT_TO_NIB(bit);
}

static gint CID_Switch_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 4 */
	/* 8.4.5.3.7 [1] CID_Switch_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint nib;
	gint data;
	proto_tree *tree;

	nib = offset;

	INC_CID = INC_CID ? 0 : 1;

	tree = proto_tree_add_subtree_format(diuc_tree, tvb, NIBHI(offset, length), ett_282, NULL, "CID_Switch_IE (INC_CID = %d)", INC_CID);

	VNIB(data, 1, hf_dlmap_ie_diuc_ext);
	VNIB(data, 1, hf_dlmap_ie_length);

	return nib;
}

static gint MIMO_DL_Basic_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 5 */
	/* 8.4.5.3.8 MIMO_DL_Basic_IE (not implemented) */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint nib;
	gint data;
	proto_tree *tree;

	nib = offset;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_283, NULL, "MIMO_DL_Basic_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
	VNIB(data, 2, hf_dlmap_ie_length);
	proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-2));
	return nib;
}

static gint MIMO_DL_Enhanced_IE(proto_tree *diuc_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 6 */
	/* 8.4.5.3.9 MIMO_DL_Enhanced_IE (not implemented) */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint nib;
	gint data;
	proto_tree *tree;

	nib = offset;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_284, NULL, "MIMO_DL_Enhanced_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext2);
	VNIB(data, 2, hf_dlmap_ie_length);
	proto_tree_add_expert(diuc_tree, pinfo, &ei_dlmap_not_implemented, tvb, NIBHI(nib, length-2));
	return nib;
}

static gint HARQ_Map_Pointer_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 7 */
	/* 8.4.5.3.10 [2] HARQ_Map_Pointer_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;
	gint length_in_bits, map, mask_len;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_285, NULL, "HARQ_Map_Pointer_IE");

	VBIT(data, 4, hf_dlmap_ie_diuc_ext);
	VBIT(data, 4, hf_dlmap_ie_length);

	length_in_bits = NIB_TO_BIT(length-1);
	while (bit < length_in_bits) {
		XBIT_HF(4, hf_dlmap_harq_map_pointer_diuc);
		XBIT_HF(8, hf_dlmap_harq_map_pointer_num_slots);
		XBIT_HF(2, hf_dlmap_harq_map_pointer_repetition_coding_indication);
		XBIT_HF_VALUE(map, 2, hf_dlmap_harq_map_pointer_map_version);
		if (map == 2) {
			XBIT_HF(1, hf_dlmap_harq_map_pointer_idle_users);
			XBIT_HF(1, hf_dlmap_harq_map_pointer_sleep_users);
			XBIT_HF_VALUE(mask_len, 2, hf_dlmap_harq_map_pointer_cid_mask_length);
			if (mask_len == 0) {
				/* 12 bits */
				proto_tree_add_bytes_format_value(diuc_tree, hf_cid_mask, tvb, BITHI(bit,12), NULL, "12 bits");
				bit += 12;
			} else if (mask_len == 1) {
				/* 20 bits */
				proto_tree_add_bytes_format_value(diuc_tree, hf_cid_mask, tvb, BITHI(bit,20), NULL, "20 bits");
				bit += 20;
			} else if (mask_len == 2) {
				/* 36 bits */
				proto_tree_add_bytes_format_value(diuc_tree, hf_cid_mask, tvb, BITHI(bit,36), NULL, "36 bits");
				bit += 36;
			} else if (mask_len == 3) {
				/* 52 bits */
				proto_tree_add_bytes_format_value(diuc_tree, hf_cid_mask, tvb, BITHI(bit,52), NULL, "52 bits");
				bit += 52;
			}
		}
	}
	return BIT_TO_NIB(bit);
}

static gint PHYMOD_DL_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 8 */
	/* 8.4.5.3.11 PHYMOD_DL_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;
	gint pmt;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286, NULL, "PHYMOD_DL_IE");

	VBIT(data, 4, hf_dlmap_ie_diuc_ext);
	VBIT(data, 4, hf_dlmap_ie_length);

	XBIT_HF_VALUE(pmt, 1, hf_dlmap_phymod_dl_preamble_modifier_type);
	if (pmt == 0) {
		XBIT_HF(4, hf_dlmap_phymod_dl_preamble_frequency_shift_index);
	} else {
		XBIT_HF(4, hf_dlmap_phymod_dl_preamble_time_shift_index);
	}
	XBIT_HF(1, hf_dlmap_phymod_dl_pilot_pattern_modifier);
	XBIT_HF(2, hf_dlmap_phymod_dl_pilot_pattern_index);

	return BIT_TO_NIB(bit);
}

static gint Broadcast_Control_Pointer_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 0xA */
	/* 8.4.5.3.25 Broadcast Control Pointer IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;
	gint skip;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286x, NULL, "Broadcast Control Pointer IE");

	VBIT(data, 4, hf_dlmap_ie_diuc_ext);
	VBIT(data, 4, hf_dlmap_ie_length);

	XBIT_HF(7, hf_dlmap_broadcast_ctrl_ptr_dcd_ucd_transmission_frame);
	XBIT_HF_VALUE(skip, 1, hf_dlmap_broadcast_ctrl_ptr_skip_broadcast_system_update);
	if (skip == 0) {
		XBIT_HF(1, hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_type);
		XBIT_HF(7, hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_transmission_frame);
	}
	return BIT_TO_NIB(bit);
}

static gint DL_PUSC_Burst_Allocation_in_Other_Segment_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 0xB */
	/* 8.4.5.3.13 DL PUSC Burst Allocation in Other Segment IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286b, NULL, "DL_PUSC_Burst_Allocation_in_Other_Segment_IE");

	VBIT(data, 4, hf_dlmap_ie_diuc_ext);
	VBIT(data, 4, hf_dlmap_ie_length);

	XBIT_HF(16, hf_dlmap_dl_pusc_burst_allocation_cid);
	XBIT_HF(4, hf_dlmap_dl_pusc_burst_allocation_diuc);
	XBIT_HF(2, hf_dlmap_dl_pusc_burst_allocation_segment);
	XBIT_HF(3, hf_dlmap_dl_pusc_burst_allocation_boosting);
	XBIT_HF(5, hf_dlmap_dl_pusc_burst_allocation_idcell);
	XBIT_HF(5, hf_dlmap_dl_pusc_burst_allocation_dl_permbase);
	XBIT_HF(2, hf_dlmap_dl_pusc_burst_allocation_prbs_id);
	XBIT_HF(2, hf_dlmap_dl_pusc_burst_allocation_repetition_coding_indication);
	XBIT_HF(6, hf_dlmap_dl_pusc_burst_allocation_used_subchannels);
	XBIT_HF(8, hf_dlmap_dl_pusc_burst_allocation_ofdma_symbol_offset);
	XBIT_HF(1, hf_dlmap_reserved_uint);
	XBIT_HF(7, hf_dlmap_dl_pusc_burst_allocation_num_ofdma_symbols);
	XBIT_HF(6, hf_dlmap_dl_pusc_burst_allocation_subchannel_offset);
	XBIT_HF(6, hf_dlmap_dl_pusc_burst_allocation_num_subchannels);
	XBIT_HF(7, hf_dlmap_reserved_uint);
	return BIT_TO_NIB(bit);
}

static gint PUSC_ASCA_Alloc_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 0xC */
	/* 8.4.5.3.27 PUSC_ASCA_Alloc_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	gint bit;
	gint data;
	proto_tree *tree;

	bit = NIB_TO_BIT(offset);

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286z, NULL, "PUSC_ASCA_Alloc_IE");

	VBIT(data, 4, hf_dlmap_ie_diuc_ext);
	VBIT(data, 4, hf_dlmap_ie_length);
	XBIT_HF(4, hf_dlmap_pusc_asca_alloc_diuc);
	XBIT_HF(12, hf_dlmap_pusc_asca_alloc_short_basic_cid);
	XBIT_HF(8, hf_dlmap_pusc_asca_alloc_ofdma_symbol_offset);
	XBIT_HF(6, hf_dlmap_pusc_asca_alloc_subchannel_offset);
	XBIT_HF(7, hf_dlmap_pusc_asca_alloc_num_ofdma_symbols);
	XBIT_HF(6, hf_dlmap_pusc_asca_alloc_num_symbols);
	XBIT_HF(2, hf_dlmap_pusc_asca_alloc_repetition_coding_information);
	XBIT_HF(4, hf_dlmap_pusc_asca_alloc_permutation_id);
	XBIT_HF(7, hf_dlmap_reserved_uint);

	return BIT_TO_NIB(bit);
}

static gint UL_interference_and_noise_level_IE(proto_tree *diuc_tree, gint offset, gint length, tvbuff_t *tvb)
{
	/* DL-MAP Extended IE = 0xF */
	/* 8.4.5.3.19 UL_interference_and_noise_level_IE */
	/* offset of TLV in nibbles, length of TLV in nibbles */
	proto_tree *tree;
	gint nib = offset;
	gint bitmap, data;

	tree = proto_tree_add_subtree(diuc_tree, tvb, NIBHI(offset, length), ett_286h, NULL, "UL_interference_and_noise_level_IE");

	VNIB(data, 1, hf_dlmap_ie_diuc_ext);
	VNIB(data, 1, hf_dlmap_ie_length);
	VNIB(bitmap, 2, hf_dlmap_ie_bitmap);

	if (bitmap & 0x01) {
		VNIB(data, 2, hf_dlmap_ie_bitmap_cqi);
	}
	if (bitmap & 0x02) {
		VNIB(data, 2, hf_dlmap_ie_bitmap_pusc);
	}
	if (bitmap & 0x04) {
		VNIB(data, 2, hf_dlmap_ie_bitmap_opt_pusc);
	}
	if (bitmap & 0x08) {
		VNIB(data, 2, hf_dlmap_ie_bitmap_amc);
	}
	if (bitmap & 0x10) {
		VNIB(data, 2, hf_dlmap_ie_bitmap_aas);
	}
	if (bitmap & 0x20) {
		VNIB(data, 2, hf_dlmap_ie_bitmap_periodic_ranging);
	}
	if (bitmap & 0x40) {
		VNIB(data, 2, hf_dlmap_ie_bitmap_sounding);
	}
	if (bitmap & 0x80) {
		VNIB(data, 2, hf_dlmap_ie_bitmap_mimo);
	}

	return nib;
}

/********************************************************************
 * DL-MAP Plugin
 *******************************************************************/

static gint dissect_dlmap_ie(proto_tree *ie_tree, packet_info *pinfo, gint offset, gint length, tvbuff_t *tvb)
{
	/* decode a single DL-MAP IE and return the
	 * length of the IE in nibbles
	 * offset = start of IE (nibbles)
	 * length = total length of IE (nibbles) */
	proto_item *ti = NULL;
	proto_tree *tree = NULL;

	gint nibble = offset;
	gint diuc;
	gint ext2_diuc;
	gint len;
	gint ext_diuc;

	gint alt_format = 0;
	guint data = 0;
	gint i;
	/*gint papr = 0;*/
	gint ie_len = 9;

	gint n_cid;

	/* 8.4.5.3 DL-MAP IE format - table 275 */
	diuc = TVB_NIB_NIBBLE(nibble, tvb);
	if (diuc == 14)
	{
		/* 8.4.5.3.2.2 [2] Extended-2 DIUC dependent IE table 277b */
		ext2_diuc = TVB_NIB_NIBBLE(1+nibble, tvb);
		len = TVB_NIB_BYTE(1+nibble+1, tvb);

		ti = proto_tree_add_uint(ie_tree, hf_dlmap_ie_diuc, tvb, NIBHI(nibble, 1+3+len*2), diuc);
		proto_item_append_text(ti, " (Extended-2)");
		tree = proto_item_add_subtree(ti, ett_277b);
		nibble++;

		len = 3 + BYTE_TO_NIB(len);

		/* table 277c [2] */
		switch (ext2_diuc)
		{
			case 0x00:
				/* 8.4.5.3.12 MBS_MAP_IE */
				nibble = MBS_MAP_IE(tree, nibble, len, tvb);
				break;
			case 0x01:
				/* 8.4.5.3.14 HO_Anchor_Active_DL-MAP_IE */
				nibble = HO_Anchor_Active_DL_MAP_IE(tree, pinfo, nibble, len, tvb);
				break;
			case 0x02:
				/* 8.4.5.3.15 HO_Active_Anchor_DL_MAP_IE */
				nibble = HO_Active_Anchor_DL_MAP_IE(tree, pinfo, nibble, len, tvb);
				break;
			case 0x03:
				/* 8.4.5.3.16 HO_CID_Translation_MAP_IE */
				nibble = HO_CID_Translation_MAP_IE(tree, pinfo, nibble, len, tvb);
				break;
			case 0x04:
				/* 8.4.5.3.17 MIMO_in_another_BS_IE */
				nibble = MIMO_in_another_BS_IE(tree, pinfo, nibble, len, tvb);
				break;
			case 0x05:
				/* 8.4.5.3.18 Macro-MIMO_DL_Basic_IE */
				nibble = Macro_MIMO_DL_Basic_IE(tree, pinfo, nibble, len, tvb);
				break;
			case 0x06:
				/* 8.4.5.3.20.2 Skip_IE */
				nibble = Skip_IE(tree, nibble, len, tvb);
				break;
			case 0x07:
				/* 8.4.5.3.21 HARQ_DL_MAP_IE */
				nibble = HARQ_DL_MAP_IE(tree, pinfo, nibble, len, tvb);
				break;
			case 0x08:
				/* 8.4.5.3.22 HARQ_ACK IE */
				nibble = HARQ_ACK_IE(tree, nibble, len, tvb);
				break;
			case 0x09:
				/* 8.4.5.3.23 Enhanced DL MAP IE */
				nibble = Enhanced_DL_MAP_IE(tree, nibble, len, tvb);
				break;
			case 0x0a:
				/* 8.4.5.3.24 Closed-loop MIMO DL Enhanced IE */
				nibble = Closed_loop_MIMO_DL_Enhanced_IE(tree, pinfo, nibble, len, tvb);
				break;
			case 0x0b:
				nibble = MIMO_DL_Basic_IE(tree, pinfo, nibble, len, tvb);
				break;
			case 0x0c:
				nibble = MIMO_DL_Enhanced_IE(tree, pinfo, nibble, len, tvb);
				break;

			case 0x0e:
				nibble = AAS_SDMA_DL_IE(tree, nibble, len, tvb);
				break;

			default:
				proto_tree_add_bytes_format(tree, hf_dlmap_ie_reserved_extended2_duic, tvb, NIBHI(nibble,len), NULL, "(reserved Extended-2 DIUC: %d)", ext2_diuc);
				nibble += len;
				break;

		}
	}
	else if (diuc == 15)
	{
		/* 8.4.5.3.2.1 [1] Extended DIUC dependent IE - table 277 */
		ext_diuc = TVB_NIB_NIBBLE(1+nibble, tvb);
		len = TVB_NIB_NIBBLE(1+nibble+1, tvb);

		ti = proto_tree_add_uint(ie_tree, hf_dlmap_ie_diuc, tvb, NIBHI(nibble, 1+2+len*2), diuc);
		proto_item_append_text(ti, " (Extended)");
		tree = proto_item_add_subtree(ti, ett_277);
		nibble++;

		len = 2 + BYTE_TO_NIB(len);

		/* TODO 8.4.5.3.27 PUSC_ASCA_IE -- unspecified ExtDIUC? */

		/* 8.4.5.3.2.1 table 277a */
		switch (ext_diuc)
		{
			case 0x00:
				/* 8.4.5.3.? Channel_Measurement_IE */
				nibble = Channel_Measurement_IE(tree, nibble, len, tvb);
				break;
			case 0x01:
				/* 8.4.5.3.4 STC_Zone_IE */
				nibble = STC_Zone_IE(tree, nibble, len, tvb);
				break;
			case 0x02:
				/* 8.4.5.3.3 AAS_DL_IE */
				nibble = AAS_DL_IE(tree, nibble, len, tvb);
				break;
			case 0x03:
				/* 8.4.5.3.6 Data_location_in_another_BS_IE */
				nibble = Data_location_in_another_BS_IE(tree, nibble, len, tvb);
				break;
			case 0x04:
				/* 8.4.5.3.7 CID_Switch_IE */
				nibble = CID_Switch_IE(tree, nibble, len, tvb);
				break;
			case 0x07:
				/* 8.4.5.3.10 HARQ_Map_Pointer_IE */
				nibble = HARQ_Map_Pointer_IE(tree, nibble, len, tvb);
				break;
			case 0x08:
				/* 8.4.5.3.11 PHYMOD_DL_IE */
				nibble = PHYMOD_DL_IE(tree, nibble, len, tvb);
				break;
			case 0x0a:
				/* 8.4.5.3.25 Broadcast Control Pointer IE */
				nibble = Broadcast_Control_Pointer_IE(tree, nibble, len, tvb);
				break;
			case 0x0b:
				/* 8.4.5.3.13 DL PUSC Burst Allocation in Other Segment IE */
				nibble = DL_PUSC_Burst_Allocation_in_Other_Segment_IE(tree, nibble, len, tvb);
				break;
			case 0x0c:
				nibble = PUSC_ASCA_Alloc_IE(tree, nibble, len, tvb);
				break;

			case 0x0f:
				/* 8.4.5.3.19 UL_interference_and_noise_level_IE */
				nibble = UL_interference_and_noise_level_IE(tree, nibble, len, tvb);
				break;

			default:
				proto_tree_add_bytes_format(tree, hf_dlmap_ie_reserved_extended_duic, tvb, NIBHI(nibble,len), NULL, "(reserved Extended DIUC: %d)", ext_diuc);
				nibble += len;
				break;
		}
	}
	else
	{
		/* Downlink IE */
		alt_format = 0;
		/*papr = 0; XX: not used ? */
		ie_len = 9;

		/* TODO: alt_format = 1 if (Permutation == 0x11) and (AMC type is 2x3 or 1x6) */

		/* precalculate IE len for correct highlighting */
		if (INC_CID && !sub_dl_ul_map) {
			ie_len += 2 + (TVB_NIB_BYTE(nibble+1, tvb) * 4);
		}

		/* DL-MAP_IE */
		ti = proto_tree_add_uint(ie_tree, hf_dlmap_ie_diuc, tvb, NIBHI(nibble, ie_len), diuc);
		tree = proto_item_add_subtree(ti, ett_275_1);
		nibble += 1;

		if (diuc == 13) {
			/* 8.4.5.3.1 [1] Gap/PAPR Reduction */
			/*papr = 1; XX: not used ? */
			proto_item_append_text(ti, " (Gap/PAPR Reduction)");
		}


		if (INC_CID)
		{
			n_cid = TVB_NIB_BYTE(nibble, tvb);
			proto_tree_add_uint(tree, hf_dlmap_ie_ncid, tvb, NIBHI(nibble, 2), n_cid);
			nibble += 2;

			for (i = 0; i < n_cid; i++)
			{
				if (sub_dl_ul_map) {
					/* RCID_IE 8.4.5.3 and 8.4.5.3.20.1, only part of SUB-DL-UL-MAP */
					/* RCID_Type comes from 6.3.2.3.43.2 [2] Format_configuration_IE in Compact_DL-MAP_IE */
					nibble += RCID_IE(tree, nibble*4, length, tvb, RCID_Type) / 4;
				} else {
					data = TVB_NIB_WORD(nibble, tvb);
					proto_tree_add_uint(tree, hf_dlmap_ie_cid, tvb, NIBHI(nibble, 4), data);
					nibble += 4;
				}
			}
		}

		data = TVB_NIB_LONG(nibble, tvb);
		if (alt_format) {
			proto_tree_add_uint(tree, hf_dlmap_ie_offsym2, tvb, NIBHI(nibble, 8), data);
			proto_tree_add_uint(tree, hf_dlmap_ie_offsub2, tvb, NIBHI(nibble, 8), data);
			proto_tree_add_uint(tree, hf_dlmap_ie_boosting2, tvb, NIBHI(nibble, 8), data);
			proto_tree_add_uint(tree, hf_dlmap_ie_numsym2, tvb, NIBHI(nibble, 8), data);
			proto_tree_add_uint(tree, hf_dlmap_ie_numsub2, tvb, NIBHI(nibble, 8), data);
			proto_tree_add_uint(tree, hf_dlmap_ie_rep2, tvb, NIBHI(nibble, 8), data);
		} else {
			proto_tree_add_uint(tree, hf_dlmap_ie_offsym, tvb, NIBHI(nibble, 8), data);
			proto_tree_add_uint(tree, hf_dlmap_ie_offsub, tvb, NIBHI(nibble, 8), data);
			proto_tree_add_uint(tree, hf_dlmap_ie_boosting, tvb, NIBHI(nibble, 8), data);
			proto_tree_add_uint(tree, hf_dlmap_ie_numsym, tvb, NIBHI(nibble, 8), data);
			proto_tree_add_uint(tree, hf_dlmap_ie_numsub, tvb, NIBHI(nibble, 8), data);
			proto_tree_add_uint(tree, hf_dlmap_ie_rep, tvb, NIBHI(nibble, 8), data);
		}
		nibble += 8;
	}

	/* length in nibbles */
	return (nibble - offset);
}


static int dissect_mac_mgmt_msg_dlmap_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree, void* data _U_)
{
	/* 6.3.2.3.2 [2] DL-MAP table 16 */
	guint offset = 0;
	gint length, nib, pad;
	proto_item *ti = NULL;
	proto_tree *dlmap_tree = NULL;
	proto_tree *ie_tree = NULL;
	proto_tree *phy_tree = NULL;
	gint tvb_len = tvb_reported_length(tvb);

	INC_CID = 0;

	/* add protocol */
	ti = proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_dlmap_decoder, tvb, offset, -1, "DL-MAP");
	dlmap_tree = proto_item_add_subtree(ti, ett_dlmap);

	/* PHY Synchronization Field 8.4.5.1 */
	{
		phy_tree = proto_tree_add_subtree(dlmap_tree, tvb, offset, 4, ett_275_phy, NULL, "Phy Synchronization Field");
		proto_tree_add_item(phy_tree, hf_dlmap_phy_fdur_ms, tvb, offset, 1, ENC_BIG_ENDIAN);
		proto_tree_add_item(phy_tree, hf_dlmap_phy_fdur_per_sec, tvb, offset, 1, ENC_BIG_ENDIAN);
		proto_tree_add_item(phy_tree, hf_dlmap_phy_fdur, tvb, offset, 1, ENC_BIG_ENDIAN);
		offset++;
		proto_tree_add_item(phy_tree, hf_dlmap_phy_fnum, tvb, offset, 3, ENC_BIG_ENDIAN);
		offset += 3;
	}
	proto_tree_add_item(dlmap_tree, hf_dlmap_dcd, tvb, offset, 1, ENC_BIG_ENDIAN);
	offset++;
	proto_tree_add_item(dlmap_tree, hf_dlmap_bsid, tvb, offset, 6, ENC_NA);
	offset += 6;
	proto_tree_add_item(dlmap_tree, hf_dlmap_ofdma_sym, tvb, offset, 1, ENC_BIG_ENDIAN);
	offset++;

	/* DL-MAP IEs */
	length = tvb_len - offset; /* remaining length in bytes */
	ie_tree = proto_tree_add_subtree_format(dlmap_tree, tvb, offset, length, ett_dlmap_ie, NULL, "DL-MAP IEs (%d bytes)", length);

	/* length = BYTE_TO_NIB(length); */ /* convert length to nibbles */

	nib = BYTE_TO_NIB(offset);
	while (nib < ((tvb_len*2)-1)) {
		nib += dissect_dlmap_ie(ie_tree, pinfo, nib, tvb_len * 2, tvb);
	}
	pad = NIB_PADDING(nib);
	if (pad) {
		proto_tree_add_bytes_format(dlmap_tree, hf_padding, tvb, NIBHI(nib,1), NULL, "Padding nibble");
		nib++;
	}
	return tvb_captured_length(tvb);
}

gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree)
{
	/* 8.4.5.6.1 [2] Compressed DL-MAP */
	/* decode a compressed dl-map and return the length in bytes; */
	/* if there is a compressed ul-map, also decode that and include in the length */
	guint offset = 0;
	proto_item *ti = NULL;
	proto_item *ti_phy = NULL;
	proto_item *ti_dlmap_ies = NULL;
	proto_tree *tree = NULL;
	proto_tree *ie_tree = NULL;
	proto_tree *phy_tree = NULL;
	gint ulmap_appended;
	guint length, lennib, pad;
	guint mac_len, dl_ie_count;
	guint tvb_len = tvb_reported_length(tvb);
	guint nib = 0;
	guint32 mac_crc, calculated_crc;

	/* update the info column */
	col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "Compressed DL-MAP");

	INC_CID = 0;

	length = tvb_get_ntohs(tvb, offset) & 0x07FF; /* compressed map length is 11 bits */
	mac_len = length;
	lennib = BYTE_TO_NIB(length);

	ulmap_appended = (tvb_get_guint8(tvb, offset) >> 4) & 1; /* UL MAP appended? */

	/* display MAC Compressed DL-MAP and create subtree */
	ti = proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_dlmap_decoder, tvb, offset, length, "Compressed DL-MAP (%u bytes)", length);
	tree = proto_item_add_subtree(ti, ett_305);

	/* decode dlmap fields */
	proto_tree_add_item(tree, hf_dlmapc_compr, tvb, offset, 2, ENC_BIG_ENDIAN);
	proto_tree_add_item(tree, hf_dlmapc_ulmap, tvb, offset, 2, ENC_BIG_ENDIAN);
	proto_tree_add_item(tree, hf_dlmapc_rsv, tvb, offset, 2, ENC_BIG_ENDIAN);
	proto_tree_add_item(tree, hf_dlmapc_len, tvb, offset, 2, ENC_BIG_ENDIAN);
	/* PHY Synchronization Field 8.4.5.1 */
	{
		phy_tree = proto_tree_add_subtree(tree, tvb, offset+2, 4, ett_275_phy, &ti_phy, "Phy Synchronization Field");
		proto_tree_add_item(phy_tree, hf_dlmap_phy_fdur_ms, tvb, offset+2, 1, ENC_BIG_ENDIAN);
		proto_tree_add_item(phy_tree, hf_dlmap_phy_fdur_per_sec, tvb, offset+2, 1, ENC_BIG_ENDIAN);
		proto_tree_add_item(phy_tree, hf_dlmap_phy_fnum, tvb, offset+3, 3, ENC_BIG_ENDIAN);
	}
	proto_tree_add_item(tree, hf_dlmap_dcd,	   tvb, offset+6, 1, ENC_BIG_ENDIAN);
	proto_tree_add_item(tree, hf_dlmapc_opid,	 tvb, offset+7, 1, ENC_BIG_ENDIAN);
	proto_tree_add_item(tree, hf_dlmapc_secid,	tvb, offset+8, 1, ENC_BIG_ENDIAN);
	proto_tree_add_item(tree, hf_dlmap_ofdma_sym, tvb, offset+9, 1, ENC_BIG_ENDIAN); /* 2005 */
	proto_tree_add_item(tree, hf_dlmapc_count,	tvb, offset+10,1, ENC_BIG_ENDIAN);
	dl_ie_count = tvb_get_guint8(tvb, offset + 10);
	offset += 11;
	nib = BYTE_TO_NIB(offset);

	/* DL-MAP IEs */
	length -= 15; /* remaining length in bytes (11 bytes above + CRC at end) */
	if (dl_ie_count) {
		ie_tree = proto_tree_add_subtree_format(tree, tvb, offset, length, ett_dlmap_ie, &ti_dlmap_ies, "DL-MAP IEs (%d bytes)", length);

		/* length = BYTE_TO_NIB(mac_len - (int)sizeof(mac_crc) - 1); */ /* convert length to nibbles */

		while (dl_ie_count--) {
			nib += dissect_dlmap_ie(ie_tree, pinfo, nib, tvb_len * 2, tvb);
		}
		pad = NIB_PADDING(nib);
		if (pad) {
			proto_tree_add_bytes_format(tree, hf_padding, tvb, NIBHI(nib,1), NULL, "Padding nibble");
			nib++;
		}
	}

	if (ulmap_appended) {
		/* Replace the text of items to set the correct length in bytes.*/
		proto_item_set_text(ti, "Compressed DL-MAP (%u bytes)", NIB_ADDR(nib));
		proto_item_set_text(ti_dlmap_ies, "DL-MAP IEs (%u bytes)",NIB_ADDR(nib)- offset);

		/* set the length of items */
		proto_item_set_end(ti_dlmap_ies, tvb, NIB_ADDR(nib));
		proto_item_set_end(ti, tvb, NIB_ADDR(nib));

		/* update the info column */
		col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "Compressed UL-MAP");

		/* subtract 8 from lennib (CRC) */
		wimax_decode_ulmapc(base_tree, pinfo, nib, lennib - 8, tvb);
	}

	/* CRC is always appended */
	/* check the length */
	if (mac_len <= sizeof(mac_crc))
	{
		expert_add_info_format(pinfo, ti, &ei_mac_header_invalid_length,
		"Invalid length: %d.", mac_len);
		return sizeof(mac_crc);
	}
	else if (MIN(tvb_len, tvb_reported_length(tvb)) >= mac_len)
	{
		/* calculate the CRC */
		calculated_crc = wimax_mac_calc_crc32(tvb_get_ptr(tvb, 0, mac_len - (int)sizeof(mac_crc)), mac_len - (int)sizeof(mac_crc));
		proto_tree_add_checksum(base_tree, tvb, mac_len - (int)sizeof(mac_crc), hf_mac_header_compress_dlmap_crc, hf_mac_header_compress_dlmap_crc_status, &ei_mac_header_compress_dlmap_crc,
								pinfo, calculated_crc, ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
	}
	else
	{   /* display error message */
		proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_dlmap_decoder, tvb, 0, tvb_len, "CRC missing - the frame is too short (%u bytes)", tvb_len);
	}

	return mac_len;
}
#if 0
static gint wimax_decode_sub_dl_ul_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree)
{
	/* decode a SUB-DL-UL-MAP message 6.3.2.3.60 and return the length in bytes */
	/* first three bits are 0x7, which following a compressed DL map indicates this message */
	proto_tree *tree = NULL;
	proto_tree *ie_tree = NULL;
	proto_item *generic_item = NULL;
	gint data;
	gint i, numie;
	guint16 calculated_crc;

	gint length = tvb_reported_length(tvb);
	gint nib = 0;
	gint lennib = BYTE_TO_NIB(length);

	sub_dl_ul_map = 1; /* set flag */

	tree = proto_tree_add_subtree(base_tree, tvb, NIBHI(nib,lennib-nib), ett_109x, NULL, "SUB-DL-UL-MAP");

	data = TVB_NIB_WORD(nib,tvb);
	proto_tree_add_uint(tree, hf_109x_cmi, tvb, NIBHI(nib,4), data);
	proto_tree_add_uint(tree, hf_109x_len, tvb, NIBHI(nib,4), data);
	proto_tree_add_uint(tree, hf_109x_rcid, tvb, NIBHI(nib,4), data);
	proto_tree_add_uint(tree, hf_109x_haoi, tvb, NIBHI(nib,4), data);
	nib += 4;

	/* HARQ ACK offset indicator */
	if (data & 1) {
		data = TVB_NIB_BYTE(nib,tvb);
		proto_tree_add_uint(tree, hf_109x_dl, tvb, NIBHI(nib,2), data);
		nib += 2;
		data = TVB_NIB_BYTE(nib,tvb);
		proto_tree_add_uint(tree, hf_109x_ul, tvb, NIBHI(nib,2), data);
		nib += 2;
	}

	numie = TVB_NIB_BYTE(nib,tvb);
	proto_tree_add_uint(tree, hf_109x_dlie, tvb, NIBHI(nib,2), numie);
	nib += 2;

	/* DL-MAP IEs */
	ie_tree = proto_tree_add_subtree(tree, tvb, NIBHI(nib,1), ett_109x_dl, NULL, "DL-MAP IEs");
	for (i = 0; i < numie; i++) {
		nib += dissect_dlmap_ie(ie_tree, pinfo, nib, lennib - nib, tvb);
	}

	data = TVB_NIB_BYTE(nib,tvb);
	proto_tree_add_uint(tree, hf_109x_symofs, tvb, NIBHI(nib,2), data);
	nib += 2;
	data = TVB_NIB_BYTE(nib,tvb);
	proto_tree_add_uint(tree, hf_109x_subofs, tvb, NIBHI(nib,2), data);
	proto_tree_add_uint(tree, hf_109x_rsv, tvb, NIBHI(nib,2), data);
	nib += 2;

	/* UL-MAP IEs */
	ie_tree = proto_tree_add_subtree(tree, tvb, NIBHI(nib,lennib-nib), ett_109x_ul, NULL, "UL-MAP IEs");
	for ( ; nib < lennib - 1; ) {
		nib += dissect_ulmap_ie(ie_tree, nib, lennib - nib, tvb);
	}

	/* padding */
	if (nib & 1) {
		proto_tree_add_bytes_format(tree, hf_padding, tvb, NIBHI(nib,1), NULL, "Padding Nibble");
		nib++;
	}

	/* CRC-16 is always appended */
	calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, NIB_TO_BYTE(nib)), NIB_TO_BYTE(nib));
	proto_tree_add_checksum(tree, tvb, NIBHI(nib,4), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
								ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
	/* nib += 4; */

	sub_dl_ul_map = 0; /* clear flag */
	/* return length */
	return length;
}
#endif

gint wimax_decode_dlmap_reduced_aas(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *base_tree)
{
	/* 8.4.5.8.1 [2] Reduced AAS private DL-MAP */
	/* if there is an appended UL-MAP, also decode that */
	guint offset = 0;
	proto_item *ti = NULL;
	proto_tree *tree = NULL;
	gint ulmap_appended;
	gint length;
	gint tvb_len = tvb_reported_length(tvb);
	gint bit = 0;
	guint data, pad, mult;
	gint numie = 1;
	gint i;
	guint16 calculated_crc;
	gint smcs,cidi,dcdi,phyi,cqci;

	length = tvb_len;

	/* display MAC Reduced_AAS_Private_DL-MAP and create subtree */
	ti = proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_dlmap_decoder, tvb, offset, length, "Reduced_AAS_Private_DL-MAP");
	tree = proto_item_add_subtree(ti, ett_308a);

	VBIT(data, 3, hf_308a_cmi);
	VBIT(ulmap_appended, 1, hf_308a_ulmap);
	VBIT(data, 2, hf_308a_type);
	VBIT(mult, 1, hf_308a_mult);
	VBIT(data, 1, hf_308a_rsv);

	if (mult) {
		XBIT_HF_VALUE(numie, 8, hf_dlmap_reduced_aas_num_ie);
	}

	for (i = 0; i < numie; i++) {
		XBIT_HF(2, hf_dlmap_reduced_aas_periodicity);
		XBIT_HF_VALUE(cidi, 1, hf_dlmap_reduced_aas_cid_included);
		XBIT_HF_VALUE(dcdi, 1, hf_dlmap_reduced_aas_dcd_count_included);
		XBIT_HF_VALUE(phyi, 1, hf_dlmap_reduced_aas_phy_modification_included);
		XBIT_HF_VALUE(cqci, 1, hf_dlmap_reduced_aas_cqich_control_indicator);
		XBIT_HF(2, hf_dlmap_reduced_aas_encoding_mode);
		XBIT_HF_VALUE(smcs, 1, hf_dlmap_reduced_aas_separate_mcs_enabled);

		if (smcs) {
			XBIT_HF(10, hf_dlmap_reduced_aas_duration);
			XBIT_HF(4, hf_dlmap_reduced_aas_diuc);
			XBIT_HF(2, hf_dlmap_reduced_aas_repetition_coding_indication);
		}
		if (cidi) {
			XBIT_HF(16, hf_dlmap_reduced_aas_cid);
		}
		if (cqci) {
			XBIT_HF(6, hf_dlmap_reduced_aas_allocation_index);
			XBIT_HF(3, hf_dlmap_reduced_aas_report_period);
			XBIT_HF(3, hf_dlmap_reduced_aas_frame_offset);
			XBIT_HF(4, hf_dlmap_reduced_aas_report_duration);
			XBIT_HF(2, hf_dlmap_reduced_aas_cqi_measurement_type);
			XBIT_HF(2, hf_dlmap_reserved_uint);
		}
		if (dcdi) {
			XBIT_HF(8, hf_dlmap_reduced_aas_dcd_count);
		}
		if (phyi) {
			XBIT_HF(1, hf_dlmap_reduced_aas_preamble_select);
			XBIT_HF(4, hf_dlmap_reduced_aas_preamble_shift_index);
			XBIT_HF(1, hf_dlmap_reduced_aas_pilot_pattern_modifier);
			XBIT_HF(2, hf_dlmap_reduced_aas_pilot_pattern_index);
		}
		XBIT_HF(3, hf_dlmap_reduced_aas_dl_frame_offset);
		if (fusc) {
			XBIT_HF(8, hf_dlmap_reduced_aas_zone_symbol_offset);
		}
		XBIT_HF(8, hf_dlmap_reduced_aas_ofdma_symbol_offset);
		if (tusc) {
			XBIT_HF(8, hf_dlmap_reduced_aas_subchannel_offset);
			XBIT_HF(5, hf_dlmap_reduced_aas_num_ofdma_triple_symbol);
			XBIT_HF(6, hf_dlmap_reduced_aas_num_subchannels);
		} else {
			XBIT_HF(6, hf_dlmap_reduced_aas_subchannel_offset);
			XBIT_HF(7, hf_dlmap_reduced_aas_num_ofdma_symbols);
			XBIT_HF(6, hf_dlmap_reduced_aas_num_subchannels);
		}
		XBIT_HF(4, hf_dlmap_reduced_aas_diuc_nep);
		if (harq) {
			XBIT_HF(1, hf_dlmap_reduced_aas_dl_harq_ack_bitmap);
			XBIT_HF(6, hf_dlmap_reduced_aas_ack_allocation_index);
			XBIT_HF(4, hf_dlmap_reduced_aas_acid);
			XBIT_HF(1, hf_dlmap_reduced_aas_ai_sn);
			if (ir_type) {
				XBIT_HF(4, hf_dlmap_reduced_aas_nsch);
				XBIT_HF(2, hf_dlmap_reduced_aas_spid);
				XBIT_HF(2, hf_dlmap_reserved_uint);
			}
		}
		XBIT_HF(2, hf_dlmap_reduced_aas_repetition_coding_indication);
		if (ulmap_appended) {
			/* offset and length are in bits */
			bit += wimax_decode_ulmap_reduced_aas(tree, offset, length*8, tvb);
		}
		XBIT_HF(3, hf_dlmap_reserved_uint);
	}

	/* padding */
	pad = BIT_PADDING(bit,8);
	if (pad) {
		proto_tree_add_bytes_format_value(tree, hf_padding, tvb, BITHI(bit,pad), NULL, "%d bits",pad);
		bit += pad;
	}

	/* CRC-16 is always appended */
	calculated_crc = wimax_mac_calc_crc16(tvb_get_ptr(tvb, 0, BIT_TO_BYTE(bit)), BIT_TO_BYTE(bit));
	proto_tree_add_checksum(tree, tvb, BIT_ADDR(bit), hf_crc16, hf_crc16_status, &ei_crc16, pinfo, calculated_crc,
								ENC_BIG_ENDIAN, PROTO_CHECKSUM_VERIFY);
	bit += 16;

	return BIT_TO_BYTE(bit) - offset;
}

/* Register Wimax Mac Payload Protocol and Dissector */
void proto_register_mac_mgmt_msg_dlmap(void)
{
	/* DL-MAP fields display */
	static hf_register_info hf[] =
	{
		{
			&hf_dlmap_bsid,
			{
				"Base Station ID", "wmx.dlmap.bsid",
				FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_dcd,
			{
				"DCD Count", "wmx.dlmap.dcd",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
#if 0
		{
			&hf_dlmap_fch_expected,
			{
				"FCH Expected", "wmx.dlmap.fch_expected",
				FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie,
			{
				"DL-MAP IE", "wmx.dlmap.ie",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
#endif
		{
			&hf_dlmap_ie_boosting,
			{
				"Boosting", "wmx.dlmap.ie.boosting",
				FT_UINT32, BASE_DEC, VALS(boost_msgs), 0x00038000, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_boosting2,
			{
				"Boosting", "wmx.dlmap.ie.boosting",
				FT_UINT32, BASE_DEC, VALS(boost_msgs), 0x0000E000, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_cid,
			{
				"CID", "wmx.dlmap.ie.cid",
				FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_diuc,
			{
				"DIUC", "wmx.dlmap.ie.diuc",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_diuc_ext,
			{
				"Extended DIUC", "wmx.dlmap.ie.ext_diuc",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_diuc_ext2,
			{
				"Extended-2 DIUC", "wmx.dlmap.ie.ext2_diuc",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_reserved_extended2_duic,
			{
				"Reserved Extended-2 DIUC", "wmx.dlmap.ie.ext2_diuc_reserved",
				FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_reserved_extended_duic,
			{
				"Reserved Extended DIUC", "wmx.dlmap.ie.ext_diuc_reserved",
				FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_length,
			{
				"Length", "wmx.dlmap.ie.length",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_bitmap,
			{
				"Bitmap", "wmx.dlmap.ie.bitmap",
				FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_bitmap_cqi,
			{
				"CQI/ACK/Periodic Ranging region NI", "wmx.dlmap.ie.bitmap.cqi",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_bitmap_pusc,
			{
				"PUSC region NI", "wmx.dlmap.ie.bitmap.pusc",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_bitmap_opt_pusc,
			{
				"Optional PUSC region NI", "wmx.dlmap.ie.bitmap.opt_pusc",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_bitmap_amc,
			{
				"AMC region NI", "wmx.dlmap.ie.bitmap.amc",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_bitmap_aas,
			{
				"AAS region NI", "wmx.dlmap.ie.bitmap.aas",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_bitmap_periodic_ranging,
			{
				"Periodic Ranging region NI", "wmx.dlmap.ie.bitmap.periodic_ranging",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_bitmap_sounding,
			{
				"Sounding region NI", "wmx.dlmap.ie.bitmap.sounding",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_bitmap_mimo,
			{
				"MIMO region NI", "wmx.dlmap.ie.bitmap.mimo",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_ncid,
			{
				"N_CID", "wmx.dlmap.ie.ncid",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_numsub,
			{
				"Number of Subchannels", "wmx.dlmap.ie.numsub",
				FT_UINT32, BASE_DEC, NULL, 0x000000FC, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_numsym,
			{
				"Number of OFDMA Symbols", "wmx.dlmap.ie.numsym",
				FT_UINT32, BASE_DEC, NULL, 0x00007F00, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_numsub2,
			{
				"Number of Subchannels", "wmx.dlmap.ie.numsub",
				FT_UINT32, BASE_DEC, NULL, 0x000000FC, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_numsym2,
			{
				"Number of OFDMA Symbols", "wmx.dlmap.ie.numsym",
				FT_UINT32, BASE_DEC, NULL, 0x00001F00, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_offsub,
			{
				"Subchannel Offset", "wmx.dlmap.ie.offsub",
				FT_UINT32, BASE_DEC, NULL, 0x00FC0000, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_offsym,
			{
				"OFDMA Symbol Offset", "wmx.dlmap.ie.offsym",
				FT_UINT32, BASE_DEC, NULL, 0xFF000000, NULL, HFILL
			}
		},
		/* alt ie format */
		{
			&hf_dlmap_ie_offsub2,
			{
				"Subchannel Offset", "wmx.dlmap.ie.offsub",
				FT_UINT32, BASE_DEC, NULL, 0x00FF0000, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_offsym2,
			{
				"OFDMA Symbol Offset", "wmx.dlmap.ie.offsym",
				FT_UINT32, BASE_DEC, NULL, 0xFF000000, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_rep,
			{
				"Repetition Coding Indication", "wmx.dlmap.ie.rep",
				FT_UINT32, BASE_DEC, VALS(rep_msgs), 0x00000003, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ie_rep2,
			{
				"Repetition Coding Indication", "wmx.dlmap.ie.rep",
				FT_UINT32, BASE_DEC, VALS(rep_msgs), 0x00000003, NULL, HFILL
			}
		},
		{
			&hf_dlmap_ofdma_sym,
			{
				"Num OFDMA Symbols", "wmx.dlmap.ofdma_sym",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_phy_fdur,
			{
				"Frame Duration Code", "wmx.dlmap.phy_fdur",
				FT_UINT8, BASE_HEX, NULL, 0x00, NULL, HFILL
			}
		},
		{
			&hf_dlmap_phy_fdur_ms,
			{
				"Frame Duration", "wmx.dlmap.phy_fdur",
				FT_UINT8, BASE_HEX, VALS(frame_duration), 0x00, NULL, HFILL
			}
		},
		{
			&hf_dlmap_phy_fdur_per_sec,
			{
				"Frames per second", "wmx.dlmap.phy_fdur",
				FT_UINT8, BASE_HEX, VALS(frames_per_second), 0x00, NULL, HFILL
			}
		},
		{
			&hf_dlmap_phy_fnum,
			{
				"Frame Number", "wmx.dlmap.phy_fnum",
				FT_UINT24, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmapc_compr,
			{
				"Compressed map indicator", "wmx.dlmapc.compr",
				FT_UINT16, BASE_DEC, NULL, 0xe000, NULL, HFILL
			}
		},
		{
			&hf_dlmapc_count,
			{
				"DL IE Count", "wmx.dlmapc.count",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmapc_len,
			{
				"Map message length", "wmx.dlmapc.len",
				FT_UINT16, BASE_DEC, NULL, 0x07FF, NULL, HFILL
			}
		},
		{
			&hf_dlmapc_opid,
			{
				"Operator ID", "wmx.dlmapc.opid",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmapc_rsv,
			{
				"Reserved", "wmx.dlmapc.rsv",
				FT_UINT16, BASE_DEC, NULL, 0x0800, NULL, HFILL
			}
		},
		{
			&hf_dlmapc_secid,
			{
				"Sector ID", "wmx.dlmapc.secid",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
#if 0
		{
			&hf_dlmapc_sync,
			{
				"PHY Synchronization Field", "wmx.dlmapc.sync",
				FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
#endif
		{
			&hf_dlmapc_ulmap,
			{
				"UL-MAP appended", "wmx.dlmapc.ulmap",
				FT_UINT16, BASE_DEC, NULL, 0x1000, NULL, HFILL
			}
		},
#if 0
		{
			&hf_dlmap_xie_diuc,
			{
				"Extended DIUC", "wmx.dlmapc.xie_diuc",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_dlmap_xie_len,
			{
				"Length", "wmx.dlmapc.xie_len",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},

		{
			&hf_109x_cmi,
			{
				"SUB-DL-UL-MAP map indicator", "wmx.dlul.cmi",
				FT_UINT16, BASE_DEC, NULL, 0xE000, NULL, HFILL
			}
		},
		{
			&hf_109x_dl,
			{
				"DL HARQ ACK offset", "wmx.dlul.dl",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_109x_dlie,
			{
				"DL IE Count", "wmx.dlul.dlie",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_109x_haoi,
			{
				"HARQ ACK offset indicator", "wmx.dlul.haoi",
				FT_UINT16, BASE_DEC, NULL, 0x0001, NULL, HFILL
			}
		},
		{
			&hf_109x_len,
			{
				"Map message length - The length is limited to 735 bytes at most", "wmx.dlul.len",
				FT_UINT16, BASE_DEC, NULL, 0x1FF8, NULL, HFILL
			}
		},
		{
			&hf_109x_rcid,
			{
				"RCID_Type", "wmx.dlul.rcid",
				FT_UINT16, BASE_DEC, NULL, 0x0006, NULL, HFILL
			}
		},
		{
			&hf_109x_subofs,
			{
				"Subchannel offset", "wmx.dlul.subofs",
				FT_UINT8, BASE_DEC, NULL, 0xFE, NULL, HFILL
			}
		},
		{
			&hf_109x_symofs,
			{
				"OFDMA Symbol offset of subsequent sub-bursts "
				"in this Sub-DL-UL-MAP message with reference to "
				"the start of UL sub-frame.", "wmx.dlul.symofs",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_109x_rsv,
			{
				"Reserved", "wmx.dlul.rsv",
				FT_UINT8, BASE_DEC, NULL, 0x01, NULL, HFILL
			}
		},
		{
			&hf_109x_ul,
			{
				"UL HARQ ACK offset", "wmx.dlul.ul",
				FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
			}
		},
#endif
		{
			&hf_308a_cmi,
			{
				"Compressed map indicator", "wmx.dlmap.reduced_aas_private.cmi",
				FT_UINT8, BASE_DEC, NULL, 0xe0, NULL, HFILL
			}
		},
		{
			&hf_308a_mult,
			{
				"Multiple IE", "wmx.dlmap.reduced_aas_private.mult",
				FT_UINT8, BASE_DEC, NULL, 0x02, NULL, HFILL
			}
		},
		{
			&hf_308a_rsv,
			{
				"Reserved", "wmx.dlmap.reduced_aas_private.rsv",
				FT_UINT8, BASE_DEC, NULL, 0x01, NULL, HFILL
			}
		},
		{
			&hf_308a_type,
			{
				"Compressed Map Type", "wmx.dlmap.reduced_aas_private.type",
				FT_UINT8, BASE_DEC, NULL, 0x0d, NULL, HFILL
			}
		},
		{
			&hf_308a_ulmap,
			{
				"UL-MAP appended", "wmx.dlmap.reduced_aas_private.ulmap",
				FT_UINT8, BASE_DEC, NULL, 0x10, NULL, HFILL
			}
		},
		{
			&hf_mac_header_compress_dlmap_crc,
			{
				"CRC", "wmx.compress_dlmap_crc",
				FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_mac_header_compress_dlmap_crc_status,
			{
				"CRC Status", "wmx.compress_dlmap_crc.status",
				FT_UINT8, BASE_NONE, VALS(plugin_proto_checksum_vals), 0x0, NULL, HFILL
			}
		},
		{
			&hf_crc16,
			{
				"CRC-16", "wmx.dlmap.crc16",
				FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_crc16_status,
			{
				"CRC-16 Status", "wmx.dlmap.crc16.status",
				FT_UINT8, BASE_NONE, VALS(plugin_proto_checksum_vals), 0x0, NULL, HFILL
			}
		},
		{
			&hf_padding,
			{
				"Padding", "wmx.dlmap.padding",
				FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_cid_mask,
			{
				"CID Mask", "wmx.dlmap.cid_mask",
				FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
			}
		},
		{
			&hf_reserved,
			{
				"Reserved", "wmx.dlmap.reserved",
				FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL
			}
		},
		/* Generated via "one time" script to help create filterable fields */
		{ &hf_dlmap_rcid_ie_cid, { "CID", "wmx.dlmap.rcid_ie.cid", FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_rcid_ie_prefix, { "Prefix", "wmx.dlmap.rcid_ie.prefix", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_rcid_ie_cid11, { "CID11", "wmx.dlmap.rcid_ie.cid11", FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_rcid_ie_cid7, { "CID7", "wmx.dlmap.rcid_ie.cid7", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_rcid_ie_cid3, { "CID3", "wmx.dlmap.rcid_ie.cid3", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_dl_control_length, { "Length", "wmx.dlmap.dedicated_dl_control.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_dl_control_control_header, { "Control Header", "wmx.dlmap.dedicated_dl_control.control_header", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_dl_control_num_sdma_layers, { "Num SDMA Layers", "wmx.dlmap.dedicated_dl_control.num_sdma_layers", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_length, { "Length (nibbles)", "wmx.dlmap.dedicated_mimo_dl_control.length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_control_header_mimo_control_info, { "Control Header (MIMO Control Info)", "wmx.dlmap.dedicated_mimo_dl_control.control_header_mimo_control_info", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_control_header_cqi_control_info, { "Control Header (CQI Control Info)", "wmx.dlmap.dedicated_mimo_dl_control.control_header_cqi_control_info", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_control_header_closed_mimo_control_info, { "Control Header (Closed MIMO Control Info)", "wmx.dlmap.dedicated_mimo_dl_control.control_header_closed_mimo_control_info", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_n_layer, { "N_layer", "wmx.dlmap.dedicated_mimo_dl_control.n_layer", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_matrix, { "Matrix", "wmx.dlmap.dedicated_mimo_dl_control.matrix", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_num_beamformed_streams, { "Num_Beamformed_Streams", "wmx.dlmap.dedicated_mimo_dl_control.num_beamformed_streams", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_period, { "Period", "wmx.dlmap.dedicated_mimo_dl_control.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_frame_offset, { "Frame Offset", "wmx.dlmap.dedicated_mimo_dl_control.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_duration, { "Duration", "wmx.dlmap.dedicated_mimo_dl_control.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_allocation_index, { "Allocation Index", "wmx.dlmap.dedicated_mimo_dl_control.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_cqich_num, { "CQICH_Num", "wmx.dlmap.dedicated_mimo_dl_control.cqich_num", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_feedback_type, { "Feedback type", "wmx.dlmap.dedicated_mimo_dl_control.feedback_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_antenna_grouping_index, { "Antenna Grouping Index", "wmx.dlmap.dedicated_mimo_dl_control.antenna_grouping_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_num_stream, { "Num_stream", "wmx.dlmap.dedicated_mimo_dl_control.num_stream", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_antenna_selection_index, { "Antenna Selection Index", "wmx.dlmap.dedicated_mimo_dl_control.antenna_selection_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dedicated_mimo_dl_control_codebook_precoding_index, { "Codebook Precoding Index", "wmx.dlmap.dedicated_mimo_dl_control.codebook_precoding_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_n_sub_burst_isi, { "N sub burst[ISI]", "wmx.dlmap.n_sub_burst_isi", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_n_ack_channel, { "N ACK channel", "wmx.dlmap.harq_chase.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_duration, { "Duration", "wmx.dlmap.harq_chase.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_sub_burst_diuc_indicator, { "Sub-Burst DIUC Indicator", "wmx.dlmap.harq_chase.sub_burst_diuc_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reserved_uint, { "Reserved", "wmx.dlmap.reserved.uint", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_diuc, { "DIUC", "wmx.dlmap.harq_chase.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.harq_chase.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_acid, { "ACID", "wmx.dlmap.harq_chase.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_ai_sn, { "AI_SN", "wmx.dlmap.harq_chase.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_ack_disable, { "ACK disable", "wmx.dlmap.harq_chase.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_dedicated_dl_control_indicator, { "Dedicated DL Control Indicator", "wmx.dlmap.harq_chase.dedicated_dl_control_indicator", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_allocation_index, { "Allocation Index", "wmx.dlmap.harq_chase.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_period, { "Period (p)", "wmx.dlmap.harq_chase.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_chase_frame_offset, { "Frame offset", "wmx.dlmap.harq_chase.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_n_ack_channel, { "N ACK channel", "wmx.dlmap.harq_ir_ctc.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_nep, { "N(EP)", "wmx.dlmap.harq_ir_ctc.n_ep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_nsch, { "N(SCH)", "wmx.dlmap.harq_ir_ctc.n_sch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_spid, { "SPID", "wmx.dlmap.harq_ir_ctc.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_acid, { "ACID", "wmx.dlmap.harq_ir_ctc.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_ai_sn, { "AI_SN", "wmx.dlmap.harq_ir_ctc.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_ack_disable, { "ACK disable", "wmx.dlmap.harq_ir_ctc.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_dedicated_dl_control_indicator, { "Dedicated DL Control Indicator", "wmx.dlmap.harq_ir_ctc.dedicated_dl_control_indicator", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_duration, { "Duration (d)", "wmx.dlmap.harq_ir_ctc.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_allocation_index, { "Allocation Index", "wmx.dlmap.harq_ir_ctc.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_period, { "Period (p)", "wmx.dlmap.harq_ir_ctc.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_ctc_frame_offset, { "Frame offset", "wmx.dlmap.harq_ir_ctc.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_n_ack_channel, { "N ACK channel", "wmx.dlmap.harq_ir_cc.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_duration, { "Duration", "wmx.dlmap.harq_ir_cc.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_sub_burst_diuc_indicator, { "Sub-Burst DIUC Indicator", "wmx.dlmap.harq_ir_cc.sub_burst_diuc_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_diuc, { "DIUC", "wmx.dlmap.harq_ir_cc.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.harq_ir_cc.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_acid, { "ACID", "wmx.dlmap.harq_ir_cc.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_ai_sn, { "AI_SN", "wmx.dlmap.harq_ir_cc.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_spid, { "SPID", "wmx.dlmap.harq_ir_cc.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_ack_disable, { "ACK disable", "wmx.dlmap.harq_ir_cc.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_dedicated_dl_control_indicator, { "Dedicated DL Control Indicator", "wmx.dlmap.harq_ir_cc.dedicated_dl_control_indicator", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_allocation_index, { "Allocation Index", "wmx.dlmap.harq_ir_cc.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_period, { "Period (p)", "wmx.dlmap.harq_ir_cc.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ir_cc_frame_offset, { "Frame offset", "wmx.dlmap.harq_ir_cc.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_chase_harq_n_ack_channel, { "N ACK channel", "wmx.dlmap.mimo_dl_chase_harq.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_chase_harq_mu_indicator, { "MU Indicator", "wmx.dlmap.mimo_dl_chase_harq.mu_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_chase_harq_dedicated_mimo_dl_control_indicator, { "Dedicated MIMO DL Control Indicator", "wmx.dlmap.mimo_dl_chase_harq.dedicated_mimo_dl_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_chase_harq_ack_disable, { "ACK Disable", "wmx.dlmap.mimo_dl_chase_harq.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_chase_harq_duration, { "Duration", "wmx.dlmap.mimo_dl_chase_harq.duration", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_chase_harq_diuc, { "DIUC", "wmx.dlmap.mimo_dl_chase_harq.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_chase_harq_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.mimo_dl_chase_harq.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_chase_harq_acid, { "ACID", "wmx.dlmap.mimo_dl_chase_harq.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_chase_harq_ai_sn, { "AI_SN", "wmx.dlmap.mimo_dl_chase_harq.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_n_ack_channel, { "N ACK channel", "wmx.dlmap.mimo_dl_ir_harq.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_mu_indicator, { "MU Indicator", "wmx.dlmap.mimo_dl_ir_harq.mu_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_dedicated_mimo_dl_control_indicator, { "Dedicated MIMO DL Control Indicator", "wmx.dlmap.mimo_dl_ir_harq.dedicated_mimo_dl_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_ack_disable, { "ACK Disable", "wmx.dlmap.mimo_dl_ir_harq.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_nsch, { "N(SCH)", "wmx.dlmap.mimo_dl_ir_harq.n_sch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_nep, { "N(EP)", "wmx.dlmap.mimo_dl_ir_harq.n_ep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_spid, { "SPID", "wmx.dlmap.mimo_dl_ir_harq.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_acid, { "ACID", "wmx.dlmap.mimo_dl_ir_harq.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_ai_sn, { "AI_SN", "wmx.dlmap.mimo_dl_ir_harq.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_cc_n_ack_channel, { "N ACK channel", "wmx.dlmap.mimo_dl_ir_harq_cc.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_cc_mu_indicator, { "MU Indicator", "wmx.dlmap.mimo_dl_ir_harq_cc.mu_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_cc_dedicated_mimo_dl_control_indicator, { "Dedicated MIMO DL Control Indicator", "wmx.dlmap.mimo_dl_ir_harq_cc.dedicated_mimo_dl_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_cc_ack_disable, { "ACK Disable", "wmx.dlmap.mimo_dl_ir_harq_cc.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_cc_duration, { "Duration", "wmx.dlmap.mimo_dl_ir_harq_cc.duration", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_cc_diuc, { "DIUC", "wmx.dlmap.mimo_dl_ir_harq_cc.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_cc_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.mimo_dl_ir_harq_cc.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_cc_acid, { "ACID", "wmx.dlmap.mimo_dl_ir_harq_cc.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_cc_ai_sn, { "AI_SN", "wmx.dlmap.mimo_dl_ir_harq_cc.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_ir_harq_cc_spid, { "SPID", "wmx.dlmap.mimo_dl_ir_harq_cc.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_stc_harq_n_ack_channel, { "N ACK channel", "wmx.dlmap.mimo_dl_stc_harq.n_ack_channel", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_stc_harq_tx_count, { "TX Count", "wmx.dlmap.mimo_dl_stc_harq.tx_count", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_stc_harq_duration, { "Duration", "wmx.dlmap.mimo_dl_stc_harq.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_stc_harq_sub_burst_offset_indication, { "Sub-burst offset indication", "wmx.dlmap.mimo_dl_stc_harq.sub_burst_offset_indication", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_stc_harq_sub_burst_offset, { "Sub-burst offset", "wmx.dlmap.mimo_dl_stc_harq.sub_burst_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_stc_harq_ack_disable, { "ACK Disable", "wmx.dlmap.mimo_dl_stc_harq.ack_disable", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_stc_harq_dedicated_mimo_dl_control_indicator, { "Dedicated MIMO DL Control Indicator", "wmx.dlmap.mimo_dl_stc_harq.dedicated_mimo_dl_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_stc_harq_diuc, { "DIUC", "wmx.dlmap.mimo_dl_stc_harq.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_stc_harq_repetition_coding_indication, { "Repetition coding Indication", "wmx.dlmap.mimo_dl_stc_harq.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mimo_dl_stc_harq_acid, { "ACID", "wmx.dlmap.mimo_dl_stc_harq.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_extended_2_diuc, { "Extended-2 DIUC", "wmx.dlmap.mbs_map.extended_2_diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_mbs_zone_identifier, { "MBS Zone identifier", "wmx.dlmap.mbs_map.mbs_zone_identifier", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_macro_diversity_enhanced, { "Macro diversity enhanced", "wmx.dlmap.mbs_map.macro_diversity_enhanced", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_permutation, { "Permutation", "wmx.dlmap.mbs_map.permutation", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_dl_permbase, { "DL_PermBase", "wmx.dlmap.mbs_map.dl_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_prbs_id, { "PRBS_ID", "wmx.dlmap.mbs_map.prbs_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_ofdma_symbol_offset, { "OFDMA_Symbol_Offset", "wmx.dlmap.mbs_map.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_diuc_change_indication, { "DIUC_change_indication", "wmx.dlmap.mbs_map.diuc_change_indication", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_boosting, { "Boosting", "wmx.dlmap.mbs_map.boosting", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_diuc, { "DIUC", "wmx.dlmap.mbs_map.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_num_subchannels, { "No. Subchannels", "wmx.dlmap.mbs_map.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_num_ofdma_symbols, { "No. OFDMA Symbols", "wmx.dlmap.mbs_map.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.mbs_map.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_cid, { "CID", "wmx.dlmap.mbs_map.cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_ofdma_symbols_offset, { "OFDMA Symbols Offset", "wmx.dlmap.mbs_map.ofdma_symbols_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_subchannel_offset, { "Subchannel offset", "wmx.dlmap.mbs_map.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_slc_3_indication, { "SLC_3_indication", "wmx.dlmap.mbs_map.slc_3_indication", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_mbs_map_next_mbs_map_ie_frame_offset, { "Next MBS_MAP_IE frame offset", "wmx.dlmap.mbs_map.next_mbs_map_ie_frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_skip_extended_2_diuc, { "Extended-2 DIUC", "wmx.dlmap.skip.extended_2_diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_skip_mode, { "Mode", "wmx.dlmap.skip.mode", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_extended_2_diuc, { "Extended-2 DIUC", "wmx.dlmap.harq_dl_map.extended_2_diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_rcid_type, { "RCID_Type", "wmx.dlmap.harq_dl_map.rcid_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_boosting, { "Boosting", "wmx.dlmap.harq_dl_map.boosting", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_region_id_use_indicator, { "Region_ID use indicator", "wmx.dlmap.harq_dl_map.region_id_use_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_ofdma_symbol_offset, { "OFDMA symbol offset", "wmx.dlmap.harq_dl_map.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_subchannel_offset, { "Subchannel offset", "wmx.dlmap.harq_dl_map.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_number_of_ofdma_symbols, { "Number of OFDMA symbols", "wmx.dlmap.harq_dl_map.number_of_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_number_of_subchannels, { "Number of subchannels", "wmx.dlmap.harq_dl_map.number_of_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_rectangular_sub_burst_indicator, { "Rectangular Sub-Burst Indicator", "wmx.dlmap.harq_dl_map.rectangular_sub_burst_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_region_id, { "Region_ID", "wmx.dlmap.harq_dl_map.region_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_mode, { "Mode", "wmx.dlmap.harq_dl_map.mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_sub_burst_ie_length, { "Sub-burst IE Length", "wmx.dlmap.harq_dl_map.sub_burst_ie_length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_dl_map_reserved_mode, { "Reserved Mode", "wmx.dlmap.harq_dl_map.reserved_mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_ack_bitmap_data, { "Bitmap data", "wmx.dlmap.harq_ack.bitmap_data", FT_BYTES, BASE_NONE, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_enhanced_dl_map_extended_2_diuc, { "Extended-2 DIUC", "wmx.dlmap.enhanced_dl_map.extended_2_diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_enhanced_dl_map_num_assignment, { "Num_Assignment", "wmx.dlmap.enhanced_dl_map.num_assignment", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_enhanced_dl_map_n_cid, { "N_CID", "wmx.dlmap.enhanced_dl_map.n_cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_enhanced_dl_map_cid, { "CID", "wmx.dlmap.enhanced_dl_map.cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_enhanced_dl_map_diuc, { "DIUC", "wmx.dlmap.enhanced_dl_map.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_enhanced_dl_map_boosting, { "Boosting", "wmx.dlmap.enhanced_dl_map.boosting", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_enhanced_dl_map_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.enhanced_dl_map.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_enhanced_dl_map_region_id, { "Region_ID", "wmx.dlmap.enhanced_dl_map.region_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_extended_2_diuc, { "Extended-2 DIUC", "wmx.dlmap.aas_sdma_dl.extended_2_diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_rcid_type, { "RCID_Type", "wmx.dlmap.aas_sdma_dl.rcid_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_num_burst_region, { "Num_Burst_Region", "wmx.dlmap.aas_sdma_dl.num_burst_region", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.aas_sdma_dl.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_subchannel_offset, { "Subchannel offset", "wmx.dlmap.aas_sdma_dl.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_num_ofdma_triple_symbols, { "No. OFDMA triple symbols", "wmx.dlmap.aas_sdma_dl.num_ofdma_triple_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_num_subchannels, { "No. subchannels", "wmx.dlmap.aas_sdma_dl.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_number_of_users, { "Number of Users", "wmx.dlmap.aas_sdma_dl.number_of_users", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_encoding_mode, { "Encoding Mode", "wmx.dlmap.aas_sdma_dl.encoding_mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_cqich_allocation, { "CQICH Allocation", "wmx.dlmap.aas_sdma_dl.cqich_allocation", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_ackch_allocation, { "ACKCH Allocation", "wmx.dlmap.aas_sdma_dl.ackch_allocation", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_pilot_pattern_modifier, { "Pilot Pattern Modifier", "wmx.dlmap.aas_sdma_dl.pilot_pattern_modifier", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_preamble_modifier_index, { "Preamble Modifier Index", "wmx.dlmap.aas_sdma_dl.preamble_modifier_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_pilot_pattern, { "Pilot Pattern", "wmx.dlmap.aas_sdma_dl.pilot_pattern", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_diuc, { "DIUC", "wmx.dlmap.aas_sdma_dl.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.aas_sdma_dl.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_ack_ch_index, { "ACK CH Index", "wmx.dlmap.aas_sdma_dl.ack_ch_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_acid, { "ACID", "wmx.dlmap.aas_sdma_dl.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_ai_sn, { "AI_SN", "wmx.dlmap.aas_sdma_dl.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_nep, { "N(EP)", "wmx.dlmap.aas_sdma_dl.n_ep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_nsch, { "N(SCH)", "wmx.dlmap.aas_sdma_dl.n_sch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_spid, { "SPID", "wmx.dlmap.aas_sdma_dl.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_allocation_index, { "Allocation Index", "wmx.dlmap.aas_sdma_dl.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_period, { "Period (p)", "wmx.dlmap.aas_sdma_dl.period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_frame_offset, { "Frame offset", "wmx.dlmap.aas_sdma_dl.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_sdma_dl_duration, { "Duration (d)", "wmx.dlmap.aas_sdma_dl.duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_channel_measurement_channel_nr, { "Channel Nr", "wmx.dlmap.channel_measurement.channel_nr", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_channel_measurement_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.channel_measurement.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_channel_measurement_cid, { "CID", "wmx.dlmap.channel_measurement.cid", FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.stc_zone.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_permutations, { "Permutations", "wmx.dlmap.stc_zone.permutations", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_use_all_sc_indicator, { "Use All SC indicator", "wmx.dlmap.stc_zone.use_all_sc_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_stc, { "STC", "wmx.dlmap.stc_zone.stc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_matrix_indicator, { "Matrix indicator", "wmx.dlmap.stc_zone.matrix_indicator", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_dl_permbase, { "DL_PermBase", "wmx.dlmap.stc_zone.dl_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_prbs_id, { "PRBS_ID", "wmx.dlmap.stc_zone.prbs_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_amc_type, { "AMC type", "wmx.dlmap.stc_zone.amc_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_midamble_presence, { "Midamble Presence", "wmx.dlmap.stc_zone.midamble_presence", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_midamble_boosting, { "Midamble Boosting", "wmx.dlmap.stc_zone.midamble_boosting", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_2_3_antenna_select, { "2/3 antenna select", "wmx.dlmap.stc_zone.2_3_antenna_select", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_stc_zone_dedicated_pilots, { "Dedicated Pilots", "wmx.dlmap.stc_zone.dedicated_pilots", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_dl_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.aas_dl.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_dl_permutation, { "Permutation", "wmx.dlmap.aas_dl.permutation", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_dl_dl_permbase, { "DL_PermBase", "wmx.dlmap.aas_dl.dl_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_dl_downlink_preamble_config, { "Downlink_preamble_config", "wmx.dlmap.aas_dl.downlink_preamble_config", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_dl_preamble_type, { "Preamble type", "wmx.dlmap.aas_dl.preamble_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_dl_prbs_id, { "PRBS_ID", "wmx.dlmap.aas_dl.prbs_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_aas_dl_diversity_map, { "Diversity Map", "wmx.dlmap.aas_dl.diversity_map", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_segment, { "Segment", "wmx.dlmap.data_location_another_bs.segment", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_used_subchannels, { "Used subchannels", "wmx.dlmap.data_location_another_bs.used_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_diuc, { "DIUC", "wmx.dlmap.data_location_another_bs.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_frame_advance, { "Frame Advance", "wmx.dlmap.data_location_another_bs.frame_advance", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.data_location_another_bs.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_subchannel_offset, { "Subchannel Offset", "wmx.dlmap.data_location_another_bs.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_boosting, { "Boosting", "wmx.dlmap.data_location_another_bs.boosting", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_preamble_index, { "Preamble Index", "wmx.dlmap.data_location_another_bs.preamble_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_num_ofdma_symbols, { "No. OFDMA Symbols", "wmx.dlmap.data_location_another_bs.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_num_subchannels, { "No. Subchannels", "wmx.dlmap.data_location_another_bs.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.data_location_another_bs.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_data_location_another_bs_cid, { "CID", "wmx.dlmap.data_location_another_bs.cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_map_pointer_diuc, { "DIUC", "wmx.dlmap.harq_map_pointer.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_map_pointer_num_slots, { "No. Slots", "wmx.dlmap.harq_map_pointer.num_slots", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_map_pointer_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.harq_map_pointer.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_map_pointer_map_version, { "Map Version", "wmx.dlmap.harq_map_pointer.map_version", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_map_pointer_idle_users, { "Idle users", "wmx.dlmap.harq_map_pointer.idle_users", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_map_pointer_sleep_users, { "Sleep users", "wmx.dlmap.harq_map_pointer.sleep_users", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_harq_map_pointer_cid_mask_length, { "CID Mask Length", "wmx.dlmap.harq_map_pointer.cid_mask_length", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_phymod_dl_preamble_modifier_type, { "Preamble Modifier Type", "wmx.dlmap.phymod_dl.preamble_modifier_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_phymod_dl_preamble_frequency_shift_index, { "Preamble frequency shift index", "wmx.dlmap.phymod_dl.preamble_frequency_shift_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_phymod_dl_preamble_time_shift_index, { "Preamble Time Shift Index", "wmx.dlmap.phymod_dl.preamble_time_shift_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_phymod_dl_pilot_pattern_modifier, { "Pilot Pattern Modifier", "wmx.dlmap.phymod_dl.pilot_pattern_modifier", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_phymod_dl_pilot_pattern_index, { "Pilot Pattern Index", "wmx.dlmap.phymod_dl.pilot_pattern_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_broadcast_ctrl_ptr_dcd_ucd_transmission_frame, { "DCD_UCD Transmission Frame", "wmx.dlmap.broadcast_ctrl_ptr.dcd_ucd_transmission_frame", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_broadcast_ctrl_ptr_skip_broadcast_system_update, { "Skip Broadcast_System_Update", "wmx.dlmap.broadcast_ctrl_ptr.skip_broadcast_system_update", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_type, { "Broadcast_System_Update_Type", "wmx.dlmap.broadcast_ctrl_ptr.broadcast_system_update_type", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_broadcast_ctrl_ptr_broadcast_system_update_transmission_frame, { "Broadcast_System_Update_Transmission_Frame", "wmx.dlmap.broadcast_ctrl_ptr.broadcast_system_update_transmission_frame", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_cid, { "CID", "wmx.dlmap.dl_pusc_burst_allocation.cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_diuc, { "DIUC", "wmx.dlmap.dl_pusc_burst_allocation.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_segment, { "Segment", "wmx.dlmap.dl_pusc_burst_allocation.segment", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_boosting, { "Boosting", "wmx.dlmap.dl_pusc_burst_allocation.boosting", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_idcell, { "IDcell", "wmx.dlmap.dl_pusc_burst_allocation.idcell", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_dl_permbase, { "DL_PermBase", "wmx.dlmap.dl_pusc_burst_allocation.dl_permbase", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_prbs_id, { "PRBS_ID", "wmx.dlmap.dl_pusc_burst_allocation.prbs_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_repetition_coding_indication, { "Repetition coding indication", "wmx.dlmap.dl_pusc_burst_allocation.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_used_subchannels, { "Used Subchannels", "wmx.dlmap.dl_pusc_burst_allocation.used_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_ofdma_symbol_offset, { "OFDMA symbol offset", "wmx.dlmap.dl_pusc_burst_allocation.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_num_ofdma_symbols, { "# OFDMA symbols", "wmx.dlmap.dl_pusc_burst_allocation.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_subchannel_offset, { "Subchannel offset", "wmx.dlmap.dl_pusc_burst_allocation.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_dl_pusc_burst_allocation_num_subchannels, { "# subchannels", "wmx.dlmap.dl_pusc_burst_allocation.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_pusc_asca_alloc_diuc, { "DIUC", "wmx.dlmap.pusc_asca_alloc.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_pusc_asca_alloc_short_basic_cid, { "Short Basic CID", "wmx.dlmap.pusc_asca_alloc.short_basic_cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_pusc_asca_alloc_ofdma_symbol_offset, { "OFDMA Symbol offset", "wmx.dlmap.pusc_asca_alloc.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_pusc_asca_alloc_subchannel_offset, { "Subchannel offset", "wmx.dlmap.pusc_asca_alloc.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_pusc_asca_alloc_num_ofdma_symbols, { "# OFDMA Symbols", "wmx.dlmap.pusc_asca_alloc.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_pusc_asca_alloc_num_symbols, { "# Symbols", "wmx.dlmap.pusc_asca_alloc.num_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_pusc_asca_alloc_repetition_coding_information, { "Repetition Coding Information", "wmx.dlmap.pusc_asca_alloc.repetition_coding_information", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_pusc_asca_alloc_permutation_id, { "Permutation ID", "wmx.dlmap.pusc_asca_alloc.permutation_id", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_num_ie, { "NUM IE", "wmx.dlmap.reduced_aas.num_ie", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_periodicity, { "Periodicity", "wmx.dlmap.reduced_aas.periodicity", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_cid_included, { "CID Included", "wmx.dlmap.reduced_aas.cid_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_dcd_count_included, { "DCD Count Included", "wmx.dlmap.reduced_aas.dcd_count_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_phy_modification_included, { "PHY modification included", "wmx.dlmap.reduced_aas.phy_modification_included", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_cqich_control_indicator, { "CQICH control indicator", "wmx.dlmap.reduced_aas.cqich_control_indicator", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_encoding_mode, { "Encoding Mode", "wmx.dlmap.reduced_aas.encoding_mode", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_separate_mcs_enabled, { "Separate MCS Enabled", "wmx.dlmap.reduced_aas.separate_mcs_enabled", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_duration, { "Duration", "wmx.dlmap.reduced_aas.duration", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_diuc, { "DIUC", "wmx.dlmap.reduced_aas.diuc", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_repetition_coding_indication, { "Repetition Coding Indication", "wmx.dlmap.reduced_aas.repetition_coding_indication", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_cid, { "CID", "wmx.dlmap.reduced_aas.cid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_allocation_index, { "Allocation Index", "wmx.dlmap.reduced_aas.allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_report_period, { "Report Period", "wmx.dlmap.reduced_aas.report_period", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_frame_offset, { "Frame Offset", "wmx.dlmap.reduced_aas.frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_report_duration, { "Report Duration", "wmx.dlmap.reduced_aas.report_duration", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_cqi_measurement_type, { "CQI Measurement Type", "wmx.dlmap.reduced_aas.cqi_measurement_type", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_dcd_count, { "DCD Count", "wmx.dlmap.reduced_aas.dcd_count", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_preamble_select, { "Preamble Select", "wmx.dlmap.reduced_aas.preamble_select", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_preamble_shift_index, { "Preamble Shift Index", "wmx.dlmap.reduced_aas.preamble_shift_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_pilot_pattern_modifier, { "Pilot Pattern Modifier", "wmx.dlmap.reduced_aas.pilot_pattern_modifier", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_pilot_pattern_index, { "Pilot Pattern Index", "wmx.dlmap.reduced_aas.pilot_pattern_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_dl_frame_offset, { "DL Frame Offset", "wmx.dlmap.reduced_aas.dl_frame_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_zone_symbol_offset, { "Zone Symbol Offset", "wmx.dlmap.reduced_aas.zone_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_ofdma_symbol_offset, { "OFDMA Symbol Offset", "wmx.dlmap.reduced_aas.ofdma_symbol_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_subchannel_offset, { "Subchannel Offset", "wmx.dlmap.reduced_aas.subchannel_offset", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_num_ofdma_triple_symbol, { "No. OFDMA triple symbol", "wmx.dlmap.reduced_aas.num_ofdma_triple_symbol", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_num_subchannels, { "No. subchannels", "wmx.dlmap.reduced_aas.num_subchannels", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_num_ofdma_symbols, { "No. OFDMA symbols", "wmx.dlmap.reduced_aas.num_ofdma_symbols", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_diuc_nep, { "DIUC/N(EP)", "wmx.dlmap.reduced_aas.diuc_nep", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_dl_harq_ack_bitmap, { "DL HARQ ACK bitmap", "wmx.dlmap.reduced_aas.dl_harq_ack_bitmap", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_ack_allocation_index, { "ACK Allocation Index", "wmx.dlmap.reduced_aas.ack_allocation_index", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_acid, { "ACID", "wmx.dlmap.reduced_aas.acid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_ai_sn, { "AI_SN", "wmx.dlmap.reduced_aas.ai_sn", FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_nsch, { "N(SCH)", "wmx.dlmap.reduced_aas.nsch", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
		{ &hf_dlmap_reduced_aas_spid, { "SPID", "wmx.dlmap.reduced_aas.spid", FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL }},
	};

	/* Setup protocol subtree array */
	static gint *ett[] =
		{
			&ett_dlmap,
			&ett_dlmap_ie,
			/* &ett_dlmap_c_ie, */
			&ett_109x,
			&ett_109x_dl,
			&ett_109x_ul,
			&ett_275_phy,
			&ett_275_1,
			&ett_277,
			&ett_277b,
			&ett_278,
			&ett_279,
			&ett_280,
			&ett_281,
			&ett_282,
			&ett_283,
			&ett_284,
			&ett_285,
			&ett_286,
			&ett_286a,
			&ett_286b,
			&ett_286c,
			&ett_286d,
			&ett_286e,
			&ett_286f,
			&ett_286g,
			&ett_286h,
			&ett_286i,
			&ett_286j,
			&ett_286k,
			&ett_286l,
			&ett_286m,
			&ett_286n,
			&ett_286o,
			&ett_286p,
			&ett_286q,
			&ett_286r,
			&ett_286s,
			&ett_286t,
			&ett_286u,
			&ett_286v,
			&ett_286w,
			&ett_286x,
			&ett_286y,
			&ett_286z,
			&ett_305,
			/* &ett_305_dl, */
			&ett_308a,
		};

	static ei_register_info ei[] = {
		{ &ei_dlmap_not_implemented, { "wmx.dlmap.not_implemented", PI_UNDECODED, PI_WARN, "Not implemented", EXPFILL }},
		{ &ei_crc16, { "wmx.dlmap.bad_checksum", PI_CHECKSUM, PI_ERROR, "Bad checksum", EXPFILL }},
		{ &ei_mac_header_compress_dlmap_crc, { "wmx.compress_dlmap.bad_checksum", PI_CHECKSUM, PI_ERROR, "Bad checksum", EXPFILL }},
		{ &ei_mac_header_invalid_length, { "wmx.compress_dlmap.invalid_length", PI_MALFORMED, PI_ERROR, "Invalid length", EXPFILL }},
	};

	expert_module_t* expert_mac_mgmt_msg_dlmap;

	proto_mac_mgmt_msg_dlmap_decoder = proto_register_protocol (
				"WiMax DLMAP Messages",	/* name */
				"WiMax DLMAP",	/* short name */
				"wmx.dlmap"	/* abbrev */
				);

	proto_register_field_array(proto_mac_mgmt_msg_dlmap_decoder, hf, array_length(hf));
	proto_register_subtree_array(ett, array_length(ett));
	expert_mac_mgmt_msg_dlmap = expert_register_protocol(proto_mac_mgmt_msg_dlmap_decoder);
	expert_register_field_array(expert_mac_mgmt_msg_dlmap, ei, array_length(ei));
	dlmap_handle = register_dissector("mac_mgmt_msg_dlmap_handler", dissect_mac_mgmt_msg_dlmap_decoder, proto_mac_mgmt_msg_dlmap_decoder);
}

void proto_reg_handoff_mac_mgmt_msg_dlmap(void)
{
	dissector_add_uint("wmx.mgmtmsg", MAC_MGMT_MSG_DL_MAP, dlmap_handle);
}

/*
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
 *
 * Local variables:
 * c-basic-offset: 8
 * tab-width: 8
 * indent-tabs-mode: t
 * End:
 *
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
 * :indentSize=8:tabSize=8:noTabs=false:
 */