Skip to content
Snippets Groups Projects
open-nfapi.oai.patch 895 KiB
Newer Older
6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000
-	{ 0x204B, "HARQ Information (UCI) Release 13 FDD/TDD", dissect_ul_config_harq_info_uci_rel13_fdd_tdd_value },
-	{ 0x201B, "SRS Information Release 8", dissect_ul_config_srs_info_rel8_value },
-	{ 0x201C, "SRS Information Release 10", dissect_ul_config_srs_info_rel10_value },
-	{ 0x204C, "SRS Information Release 13", dissect_ul_config_srs_info_rel13_value },
-
-	{ 0x201D, "HI DCI0 Request Body", dissect_hi_dci0_request_body_value },
-	{ 0x201E, "HI PDU Release 8", dissect_hi_dci0_hi_rel8_value },
-	{ 0x201F, "HI PDU Release 10", dissect_hi_dci0_hi_rel10_value },
-	{ 0x2020, "DCI UL PDU Release 8", dissect_hi_dci0_dci_ul_rel8_value },
-	{ 0x2021, "DCI UL PDU Release 10", dissect_hi_dci0_dci_ul_rel10_value },
-	{ 0x204D, "DCI UL PDU Release 12", dissect_hi_dci0_dci_ul_rel12_value },
-	//{ 0x2041, "EDPCCH DCI UL PDU Release 11", dissect_hi_dci0_edpcch_dci_ul_rel11_value },
-	{ 0x204E, "MDPCCH DCI UL PDU Release 13", dissect_hi_dci0_mdpcch_dci_ul_rel13_value },
-
-	{ 0x2022, "Tx Request Body", dissect_tx_request_body_value },
-
-	{ 0x2038, "RX UE Information", dissect_rx_ue_info_value },
-
-	{ 0x2023, "RX Indication Body", dissect_rx_indication_body_value },
-	{ 0x2024, "RX PDU Release 8", dissect_rx_indication_rel8_value },
-	{ 0x2025, "RX PDU Release 9", dissect_rx_indication_rel9_value },
-
-	{ 0x2026, "HARQ Indication Body", dissect_harq_indication_body_value },
-	{ 0x2027, "HARQ PDU Release 8 TDD", dissect_harq_indication_rel8_tdd_value },
-	{ 0x2028, "HARQ PDU Release 9 or later TDD", dissect_harq_indication_rel9_later_tdd_value },
-	{ 0x204F, "HARQ PDU Release 13 or later TDD", dissect_harq_indication_rel13_later_tdd_value },
-	{ 0x2029, "HARQ PDU Release 8 FDD", dissect_harq_indication_rel8_fdd_value },
-	{ 0x202A, "HARQ PDU Release 9 or later FDD", dissect_harq_indication_rel9_later_fdd_value },
-	{ 0x2050, "HARQ PDU Release 13 or later FDD", dissect_harq_indication_rel13_later_fdd_value },
-	{ 0x2052, "UL CQI Information", dissect_ul_cqi_information_value },
-
-	{ 0x202B, "CRC Indication Body", dissect_crc_indication_body_value },
-	{ 0x202C, "CRC PDU Release 8", dissect_crc_indication_rel8_value },
-
-	{ 0x202D, "RX SR Indication Body", dissect_rx_sr_indication_body_value },
-
-	{ 0x202E, "RX CQI Indication Body", dissect_rx_cqi_indication_body_value },
-	{ 0x202F, "CQI PDU Release 8", dissect_rx_cqi_indication_rel8_value },
-	{ 0x2030, "CQI PDU Release 9", dissect_rx_cqi_indication_rel9_value },
-
-	{ 0x2031, "RACH Indication Body", dissect_rach_indication_body_value },
-	{ 0x2032, "Preamable PDU Release 8", dissect_rach_indication_rel8_value },
-	{ 0x2033, "Preamable PDU Release 9", dissect_rach_indication_rel9_value },
-	{ 0x2051, "Preamable PDU Release 13", dissect_rach_indication_rel13_value },
-
-	{ 0x2034, "SRS Indication Body", dissect_srs_indication_body_value },
-	{ 0x2035, "SRS PDU Release 8", dissect_srs_indication_rel8_value },
-	{ 0x2036, "SRS PDU Release 9", dissect_srs_indication_rel9_value },
-	{ 0x2037, "SRS PDU Release 10 TDD", dissect_srs_indication_rel10_tdd_value },
-	{ 0x2054, "TDD Channel Measurement", dissect_tdd_channel_measuerment_value },
-	{ 0x2053, "SRS PDU Release 11", dissect_srs_indication_rel11_value },
-
-
-	{ 0x2055, "LBT DL Config Request Body", dissect_lbt_dl_config_request_body_value },
-	{ 0x2056, "LBT PDSCH Req PDU Release 13", dissect_lbt_dl_config_request_pdsch_req_rel13_value },
-	{ 0x2057, "LBT DRS req PDU Release 13", dissect_lbt_dl_config_request_drs_req_rel13_value },
-
-	{ 0x2058, "LBT DL Indication Message Body", dissect_lbt_indication_message_body_value },
-	{ 0x2056, "LBT PDSCH Resp PDU Release 13", dissect_lbt_dl_config_request_pdsch_resp_rel13_value },
-	{ 0x2057, "LBT DRS Resp PDU Release 13", dissect_lbt_dl_config_request_drs_resp_rel13_value },
-
-	{ 0x3000, "LTE RSSI Request", dissect_lte_rssi_request_value },
-	{ 0x3001, "UTRAN RSSI Request", dissect_utran_rssi_request_value },
-	{ 0x3002, "GERAN RSSI Request", dissect_geran_rssi_request_value },
-	{ 0x3003, "RSSI Indication", dissect_rssi_indication_value },
-	{ 0x3004, "LTE CELL SEARCH Request", dissect_lte_cell_search_value },
-	{ 0x3005, "UTRAN CELL SEARCH Request", dissect_utran_cell_search_value },
-	{ 0x3006, "GERAN CELL SEARCH Request", dissect_geran_cell_search_value },
-	{ 0x3007, "LTE CELL SEARCH Indication", dissect_lte_cell_search_indication_value },
-	{ 0x3008, "UTRAN CELL SEARCH Indication", dissect_utran_cell_search_indication_value },
-	{ 0x3009, "GERAN CELL SEARCH Indication", dissect_geran_cell_search_indication_value },
-	{ 0x300a, "PNF CELL SEARCH STATE", dissect_pnf_cell_search_state_value },
-	{ 0x300b, "LTE BROADCAST DETECT Request", dissect_lte_broadcast_detect_request_value },
-	{ 0x300c, "UTRAN BROADCAST DETECT Request", dissect_utran_broadcast_detect_request_value },
-	{ 0x300d, "PNF CELL SEARCH STATE", dissect_pnf_cell_search_state_value },
-	{ 0x300e, "LTE BROADCAST DETECT Indication", dissect_lte_broadcast_detect_indication_value },
-	{ 0x300f, "UTRAN BROADCAST DETECT Indication", dissect_utran_broadcast_detect_indication_value },
-	{ 0x3010, "PNF CELL BROADCAST STATE", dissect_pnf_cell_broadcast_state_value },
-	{ 0x3011, "LTE SYSTEM INFORMATION SCHEDULE Request", dissect_lte_system_information_schedule_request_value },
-	{ 0x3012, "PNF CELL BROADCAST STATE", dissect_pnf_cell_broadcast_state_value },
-	{ 0x3013, "LTE SYSTEM INFORMATION SCHEDULE Indication", dissect_lte_system_information_schedule_indication_value },
-	{ 0x3014, "LTE SYSTEM INFORMATION Request", dissect_lte_system_information_request_value },
-	{ 0x3015, "UTRAN SYSTEM INFORMATION Request", dissect_utran_system_information_request_value },
-	{ 0x3016, "GERAN SYSTEM INFORMATION Request", dissect_geran_system_information_request_value },
-	{ 0x3017, "PNF CELL BROADCAST STATE", dissect_pnf_cell_broadcast_state_value },
-	{ 0x3018, "LTE SYSTEM INFORMATION Indication", dissect_lte_system_information_indication_value },
-	{ 0x3019, "UTRAN SYSTEM INFORMATION Indication", dissect_utran_system_information_indication_value },
-	{ 0x301a, "GERAN SYSTEM INFORMATION Indication", dissect_geran_system_information_indication_value },
-
-
-
-
-};
-
-int look_up_tlv(int tag_id)
-{
-	int i;
-	int num_tags = sizeof(tags) / sizeof(tlv_t);
-
-	for (i = 0; i < num_tags; i++)
-	{
-		if (tag_id == tags[i].tag_id)
-			return i;
-	}
-	return -1;
-}
-
-static int dissect_tl_header(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data, guint* offset)
-{
-	proto_item *tl_ti = proto_tree_add_string_format(tree, hf_nfapi_tl, tvb, *offset, 4, "", "TL");
-	proto_tree *tl_tree = proto_item_add_subtree(tl_ti, ett_nfapi_tl);
-
-	proto_tree_add_uint16(tl_tree, hf_nfapi_tl_tag, tvb, offset, 0);
-	proto_tree_add_uint16(tl_tree, hf_nfapi_tl_length, tvb, offset, "bytes");
-
-	return 0;
-
-}
-
-static int dissect_tlv_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data, guint* offset, guint len)
-{	
-	while (*offset < len)
-	{
-		guint16 tlv_id = tvb_get_guint16(tvb, *offset, ENC_NA);
-		guint16 tlv_len = tvb_get_guint16(tvb, *offset + 2, ENC_NA);
-
-		int tlv_index = look_up_tlv(tlv_id);
-
-		char* tlv_name = tlv_index != -1 ? tags[tlv_index].name : "Unknown";
-
-		proto_item *tlv_ti = proto_tree_add_string_format(tree, hf_nfapi_tlv_tree, tvb, *offset, tlv_len + 4, "", tlv_name);
-		proto_tree *tlv_tree = proto_item_add_subtree(tlv_ti, ett_nfapi_tlv_tree);
-
-		dissect_tl_header(tvb, pinfo, tlv_tree, data, offset);
-
-		if (tags[tlv_index].decode != NULL)
-		{
-			guint tmp = *offset;
-			guint end = *offset + tlv_len;
-			tags[tlv_index].decode(tvb, pinfo, tlv_tree, data, &tmp, &end);
-			*offset += tlv_len;
-		}
-		else
-		{
-			*offset += tlv_len;
-		}
-	}
-
-	return 0;
-}
-
-static int dissect_rx_indication_body_value(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data, guint* offset, guint* end)
-{
-	guint number_of_pdu_addr = *offset;
-	guint16 count = proto_tree_add_uint16(tree, hf_nfapi_number_pdus, tvb, offset, 0);
-	//dissect_array_value(tvb, pinfo, tree, data, offset, "RX PDU List", hf_nfapi_rx_indication_pdu_list, ett_nfapi_rx_indication_pdu_list, num_pdu, dissect_rx_pdu);
-
-	guint16* lengths = malloc(count * 2);
-	memset(lengths, 0, count * 2);
-
-	guint16 i = 0;
-
-	if (count > 0)
-	{
-		proto_item *list_ti = proto_tree_add_string_format(tree, hf_nfapi_rx_indication_pdu_list, tvb, *offset, 2, "", "RX PDU List");
-		proto_tree *list_tree = proto_item_add_subtree(list_ti, ett_nfapi_rx_indication_pdu_list);
-
-		//for (i = 0; i < count; ++i)
-		proto_tree *item_tree = 0;
-
-		guint pdu_end = *end;
-		while (*offset < *end && *offset < pdu_end)
-		{
-
-			guint16 tlv_id = tvb_get_guint16(tvb, *offset, ENC_NA);
-			guint16 tlv_len = tvb_get_guint16(tvb, *offset + 2, ENC_NA);
-
-			if (tlv_id == 0x2038)
-			{
-				proto_item *item_ti = proto_tree_add_string_format(list_tree, hf_nfapi_rx_indication_pdu_list, tvb, *offset, 2, "", "[%d]", i);
-				item_tree = proto_item_add_subtree(item_ti, ett_nfapi_rx_indication_pdu_list);
-
-				i++;
-			}
-
-			int tlv_index = look_up_tlv(tlv_id);
-
-			char* tlv_name = tlv_index != -1 ? tags[tlv_index].name : "Unknown";
-
-			proto_item *tlv_ti = proto_tree_add_string_format(item_tree, hf_nfapi_tlv_tree, tvb, *offset, tlv_len + 4, "", tlv_name);
-			proto_tree *tlv_tree = proto_item_add_subtree(tlv_ti, ett_nfapi_tlv_tree);
-
-
-	
-
-			dissect_tl_header(tvb, pinfo, tlv_tree, data, offset);
-
-			guint tmp_offset = *offset;
-
-			if (tlv_id == 0x2038)
-			{
-				dissect_rx_ue_info_value(tvb, pinfo, tlv_tree, data, &tmp_offset, end);
-			}
-
-			else if (tlv_id == 0x2024)
-			{
-				//int data_offset = dissect_rx_indication_rel8_value(tvb, pinfo, tlv_tree, data, &tmp_offset, end);
-
-				lengths[i-1] = proto_tree_add_uint16(tlv_tree, hf_nfapi_length, tvb, &tmp_offset, 0);
-				int data_offset = proto_tree_add_uint16(tlv_tree, hf_nfapi_data_offset, tvb, &tmp_offset, 0);
-				proto_tree_add_uint8(tlv_tree, hf_nfapi_ul_cqi, tvb, &tmp_offset, 0);
-				proto_tree_add_uint16(tlv_tree, hf_nfapi_timing_advance, tvb, &tmp_offset, 0);
-				
-				if ((data_offset > 0) && (pdu_end == *end))
-				{
-					pdu_end = number_of_pdu_addr + data_offset;
-				}
-
-			}
-			else if (tlv_id == 0x2025)
-			{
-				dissect_rx_indication_rel9_value(tvb, pinfo, tlv_tree, data, &tmp_offset, end);
-			}
-
-
-			*offset += tlv_len;
-		}
-
-	}
-
-	for (i = 0; i < count; ++i)
-	{
-		proto_tree_add_uint8_array(tree, hf_nfapi_pdu, lengths[i], tvb, offset);
-	}
-
-	free(lengths);
-
-	// more to follow here ??
-	return 0;
-
-}
-
-
-// ----------------------------------------------------------------------------|
-
-
-static int dissect_p45_header(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data, guint* offset)
-{
-	proto_item *p4_p5_header_ti = proto_tree_add_string_format(tree, hf_nfapi_p4_p5_message_header, tvb, *offset, NFAPI_HEADER_LENGTH, "", "P4 P5 Header");
-	proto_tree *p4_p5_header_tree = proto_item_add_subtree(p4_p5_header_ti, ett_nfapi_p4_p5_message_header);
-
-	proto_tree_add_uint16(p4_p5_header_tree, hf_nfapi_p4_p5_message_header_phy_id, tvb, offset, 0);
-	proto_tree_add_uint16(p4_p5_header_tree, hf_nfapi_p4_p5_message_header_message_id, tvb, offset, 0);
-	proto_tree_add_uint16(p4_p5_header_tree, hf_nfapi_p4_p5_message_header_message_length, tvb, offset, 0);
-	proto_tree_add_uint16(p4_p5_header_tree, hf_nfapi_p4_p5_message_header_spare, tvb, offset, 0);
-
-	return 0;
-}
-
-static int dissect_p7_header_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data, guint* offset, guint8* m, guint8* seg, guint8* seq)
-{
-	proto_item *p7_header_ti = proto_tree_add_string_format(tree, hf_nfapi_p7_message_header, tvb, *offset, NFAPI_P7_HEADER_LENGTH, "", "P7 Header");
-	proto_tree *p7_header_tree = proto_item_add_subtree(p7_header_ti, ett_nfapi_p7_message_header);
-
-	proto_tree_add_uint16(p7_header_tree, hf_nfapi_p7_message_header_phy_id, tvb, offset, 0);
-	proto_tree_add_uint16(p7_header_tree, hf_nfapi_p7_message_header_message_id, tvb, offset, 0);
-	proto_tree_add_uint16(p7_header_tree, hf_nfapi_p7_message_header_message_length, tvb, offset, "bytes");
-
-	// decoding bits for p7 header
-
-	guint8 m_seg = tvb_get_guint8(tvb, *offset);
-	*m = (m_seg & 0x80) >> 7;
-	*seg = m_seg & 0x7F;
-
-
-	proto_tree_add_bits_item(p7_header_tree, hf_nfapi_p7_message_header_m, tvb, (*offset) * 8, 1, ENC_NA);
-	proto_tree_add_bits_item(p7_header_tree, hf_nfapi_p7_message_header_segment, tvb, ((*offset) * 8) + 1, 7, ENC_NA);
-	*offset += 1;
-
-	*seq = tvb_get_guint8(tvb, *offset);
-	proto_tree_add_uint8(p7_header_tree, hf_nfapi_p7_message_header_sequence_number, tvb, offset, 0);
-
-
-	proto_tree_add_uint32(p7_header_tree, hf_nfapi_p7_message_header_checksum, tvb, offset, 0);
-	proto_tree_add_uint32(p7_header_tree, hf_nfapi_p7_message_header_transmit_timestamp, tvb, offset, "microseconds");
-
-	return 0;
-
-}
-
-
-
-
-static int dissect_p7_header(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data, guint* offset)
-{
-	proto_item *p7_header_ti = proto_tree_add_string_format(tree, hf_nfapi_p7_message_header, tvb, *offset, NFAPI_P7_HEADER_LENGTH, "", "P7 Header");
-	proto_tree *p7_header_tree = proto_item_add_subtree(p7_header_ti, ett_nfapi_p7_message_header);
-
-	proto_tree_add_uint16(p7_header_tree, hf_nfapi_p7_message_header_phy_id, tvb, offset, 0);
-	proto_tree_add_uint16(p7_header_tree, hf_nfapi_p7_message_header_message_id, tvb, offset, 0);
-	proto_tree_add_uint16(p7_header_tree, hf_nfapi_p7_message_header_message_length, tvb, offset, "bytes");
-
-
-	proto_tree_add_bits_item(p7_header_tree, hf_nfapi_p7_message_header_m, tvb, (*offset) * 8, 1, ENC_NA);
-	proto_tree_add_bits_item(p7_header_tree, hf_nfapi_p7_message_header_segment, tvb, ((*offset) * 8) + 1, 7, ENC_NA);
-	*offset += 1;
-
-	proto_tree_add_uint8(p7_header_tree, hf_nfapi_p7_message_header_sequence_number, tvb, offset, 0);
-	
-
-	proto_tree_add_uint32(p7_header_tree, hf_nfapi_p7_message_header_checksum, tvb, offset, 0);
-	proto_tree_add_uint32(p7_header_tree, hf_nfapi_p7_message_header_transmit_timestamp, tvb, offset, "microseconds");
-
-	return 0;
-
-}
-
-static reassembly_table ul_p7_reassemble_table;
-static reassembly_table dl_p7_reassemble_table;
-
-
-
-static int hf_msg_fragments = -1;
-static int hf_msg_fragment = -1;
-static int hf_msg_fragment_overlap = -1;
-static int hf_msg_fragment_overlap_conflicts = -1;
-static int hf_msg_fragment_multiple_tails = -1;
-static int hf_msg_fragment_too_long_fragment = -1;
-static int hf_msg_fragment_error = -1;
-static int hf_msg_fragment_count = -1;
-static int hf_msg_reassembled_in = -1;
-static int hf_msg_reassembled_length = -1;
-static int hf_msg_reassembled_data = -1;
-static gint ett_msg_fragment = -1;
-static gint ett_msg_fragments = -1;
-
-static const fragment_items msg_frag_items = {
-	/* Fragment subtrees */
-	&ett_msg_fragment,
-	&ett_msg_fragments,
-	/* Fragment fields */
-	&hf_msg_fragments,
-	&hf_msg_fragment,
-	&hf_msg_fragment_overlap,
-	&hf_msg_fragment_overlap_conflicts,
-	&hf_msg_fragment_multiple_tails,
-	&hf_msg_fragment_too_long_fragment,
-	&hf_msg_fragment_error,
-	&hf_msg_fragment_count,
-	/* Reassembled in field */
-	&hf_msg_reassembled_in,
-	/* Reassembled length field */
-	&hf_msg_reassembled_length,
-	NULL,
-	/* Tag */
-	"Message fragments"
-};
-
-static int dissect_nfapi_ul_p7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
-{
-	guint8 m;
-	guint8 seg;
-	guint8 seq;
-	guint offset = 0;
-
-	guint16 msg_id = tvb_get_guint16(tvb, 2, ENC_NA);
-	guint16 msg_len	= tvb_get_guint16(tvb, 4, ENC_NA);
-
-	dissect_p7_header_new(tvb, pinfo, tree, data, &offset, &m, &seg, &seq);
-	
-	guint8 save_fragmented = pinfo->fragmented;
-
-	// not sure why I need to do this, but if I don't it does not reasses the protocol
-	pinfo->fd->flags.visited = 0;
-
-	if (m == 1 || (m == 0 && seg > 0))
-	{
-		pinfo->fragmented = TRUE;
-
-		fragment_head *fd_head = fragment_add_seq_check(&ul_p7_reassemble_table, tvb, offset, pinfo, seq, NULL, seg, msg_len - offset, (m == 1));
-
-		guint8 reassembled = 0;
-		if (fd_head)
-		{
-			tvbuff_t * new_tvb = process_reassembled_data(tvb, offset, pinfo, "Reassembled UL P7", fd_head, &msg_frag_items, NULL, tree);
-
-			if (new_tvb)
-			{ 
-				// set the tvb to the new reassembled buffer.
-				tvb = new_tvb;
-				reassembled = 1;
-				col_append_fstr(pinfo->cinfo, COL_INFO, "[NFAPI P7 Reassembled %d]", seg);
-
-				// reset the offset for the new tvb
-				offset = 0;
-			}
-			else
-			{
-				// Is this a failure to reassemble the data
-				return 0;
-			}
-		}
-		else
-		{
-			// this is a segement skip the body
-			col_append_fstr(pinfo->cinfo, COL_INFO, "[NFAPI P7 Segment %d]", seg);
-			return 0;
-		}
-	}
-		
-	pinfo->fragmented = save_fragmented;
-	
-	{
-		switch (msg_id)
-		{
-			//HARQ.indication
-			case 0x85: 
-			{
-				proto_tree_add_uint16_with_conversion(tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-				dissect_tlv_list(tvb, pinfo, tree, data, &offset, tvb_reported_length(tvb));
-			}
-			break;
-			//CRC.indication
-			case 0x86:
-			{
-				proto_tree_add_uint16_with_conversion(tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-				dissect_tlv_list(tvb, pinfo, tree, data, &offset, tvb_reported_length(tvb));
-			}
-			break;
-			//RX_ULSCH.indication
-			case 0x87:
-			{
-				proto_tree_add_uint16_with_conversion(tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-				dissect_tlv_list(tvb, pinfo, tree, data, &offset, tvb_reported_length(tvb));
-			}
-			break;
-			//RACH.indication
-			case 0x88:
-			{
-				proto_tree_add_uint16_with_conversion(tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-				dissect_tlv_list(tvb, pinfo, tree, data, &offset, tvb_reported_length(tvb));
-			}
-			break;
-			//SRS.indication
-			case 0x89:
-			{
-				proto_tree_add_uint16_with_conversion(tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-				dissect_tlv_list(tvb, pinfo, tree, data, &offset, tvb_reported_length(tvb));
-			}
-			break;
-			//RX_SR.indication
-			case 0x8A:
-			{
-				proto_tree_add_uint16_with_conversion(tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-				dissect_tlv_list(tvb, pinfo, tree, data, &offset, tvb_reported_length(tvb));
-			}
-			break;
-			//RX_CQI.indication
-			case 0x8B:
-			{
-				proto_tree_add_uint16_with_conversion(tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-				dissect_tlv_list(tvb, pinfo, tree, data, &offset, tvb_reported_length(tvb));
-			}
-			break;
-		};
-	}
-	
-	return 0;
-}
-
-static int dissect_nfapi_dl_p7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
-{
-	guint8 m;
-	guint8 seg;
-	guint8 seq;
-	guint offset = 0;
-
-	guint16 msg_id = tvb_get_guint16(tvb, 2, ENC_NA);
-	guint16 msg_len = tvb_get_guint16(tvb, 4, ENC_NA);
-
-	dissect_p7_header_new(tvb, pinfo, tree, data, &offset, &m, &seg, &seq);
-
-	guint8 save_fragmented = pinfo->fragmented;
-
-	// not sure why I need to do this, but if I don't it does not reasses the protocol
-	pinfo->fd->flags.visited = 0;
-
-	if (m == 1 || (m == 0 && seg > 0))
-	{
-		pinfo->fragmented = TRUE;
-
-		fragment_head *fd_head = fragment_add_seq_check(&dl_p7_reassemble_table, tvb, offset, pinfo, seq, NULL, seg, msg_len - offset, (m == 1));
-
-		guint8 reassembled = 0;
-		if (fd_head)
-		{
-			tvbuff_t * new_tvb = process_reassembled_data(tvb, offset, pinfo, "Reassembled DL P7", fd_head, &msg_frag_items, NULL, tree);
-
-			if (new_tvb)
-			{
-				// set the tvb to the new reassembled buffer.
-				tvb = new_tvb;
-				reassembled = 1;
-				col_append_fstr(pinfo->cinfo, COL_INFO, "[NFAPI P7 Reassembled %d]", seg);
-
-				// reset the offset for the new tvb
-				offset = 0;
-			}
-			else
-			{
-				// Is this a failure to reassemble the data
-				return 0;
-			}
-		}
-		else
-		{
-			// this is a segement skip the body
-			col_append_fstr(pinfo->cinfo, COL_INFO, "[NFAPI P7 Segment %d]", seg);
-			return 0;
-		}
-	}
-
-	pinfo->fragmented = save_fragmented;
-
-	{
-		switch (msg_id)
-		{
-			// DL_CONFIG.request
-			case 0x80:
-			{
-				//dissect_p7_header(tvb, pinfo, tree, data, &offset);
-				proto_tree_add_uint16_with_conversion(tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-				dissect_tlv_list(tvb, pinfo, tree, data, &offset, tvb_reported_length(tvb));
-				break;
-			}
-	
-		};
-	}
-
-	return 0;
-}
-
-
-static int dissect_nfapi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
-{
-	col_set_str(pinfo->cinfo, COL_PROTOCOL, "NFAPI");
-
-	guint16 msg_id = tvb_get_guint16(tvb, 2, ENC_NA);
-	guint16 msg_len = tvb_get_guint16(tvb, 4, ENC_NA);
-
-	const gchar* message_str = val_to_str_const(msg_id, message_id_vals, "Unknown");
-
-	col_clear(pinfo->cinfo,COL_INFO);
-	col_append_fstr(pinfo->cinfo, COL_INFO, " %s ", message_str);
-
-	proto_item *msg_tree_ti = proto_tree_add_string_format(tree, hf_nfapi_message_tree,
-															tvb, 0, msg_len,
-															"", message_str);
-
-	proto_tree *msg_tree = proto_item_add_subtree(msg_tree_ti, ett_nfapi_message_tree);
-
-	guint offset = 0;
-
-
-	switch (msg_id)
-	{
-		// HARQ.indication
-		case 0x85:
-		// CRC.indication
-		case 0x86:
-		// RX_ULSCH.indicatoin
-		case 0x87:
-		// RACH.indication
-		case 0x88:
-		// SRS.indication
-		case 0x89:
-		// RX_SR.indication
-		case 0x8A:
-		// RX_CQI.indication
-		case 0x8B:
-		{
-			dissect_nfapi_ul_p7(tvb, pinfo, msg_tree, data);
-		}
-		break;
-
-		// DL_CONFIG.request
-		case 0x80:
-		{
-			dissect_nfapi_dl_p7(tvb, pinfo, msg_tree, data);
-			//dissect_p7_header(tvb, pinfo, msg_tree, data, &offset);
-			//proto_tree_add_uint16_with_conversion(msg_tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-			//dissect_tlv_list(tvb, pinfo, msg_tree, data, &offset, tvb_reported_length(tvb));
-			break;
-		}
-	
-		// UL_CONFIG.request
-		case 0x81:
-		{
-			dissect_p7_header(tvb, pinfo, msg_tree, data, &offset);
-			proto_tree_add_uint16_with_conversion(msg_tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-			dissect_tlv_list(tvb, pinfo, msg_tree, data, &offset, tvb_reported_length(tvb));
-		}
-		break;
-		// HI_DCI0.request
-		case 0x83:
-		{
-			dissect_p7_header(tvb, pinfo, msg_tree, data, &offset);
-			proto_tree_add_uint16_with_conversion(msg_tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-			dissect_tlv_list(tvb, pinfo, msg_tree, data, &offset, tvb_reported_length(tvb));
-		}
-		break;
-		// TX.request
-		case 0x84:
-		{
-			dissect_p7_header(tvb, pinfo, msg_tree, data, &offset);
-			proto_tree_add_uint16_with_conversion(msg_tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-			dissect_tlv_list(tvb, pinfo, msg_tree, data, &offset, tvb_reported_length(tvb));
-		}
-		break;
-
-		// LBT_DL_CONFIG.request
-		case 0x8C:
-		{
-			dissect_p7_header(tvb, pinfo, msg_tree, data, &offset);
-			proto_tree_add_uint16_with_conversion(msg_tree, hf_nfapi_sfn_sf, tvb, &offset, sfn_sf_conversion);
-			dissect_tlv_list(tvb, pinfo, msg_tree, data, &offset, tvb_reported_length(tvb));
-		}
+#define NFAPI_P7_HEADER_LENGTH 16
+
+static const unit_name_string khz_100_units_db = { " (100)khz", NULL };
+
+typedef enum{
+	NFAPI_DL_CONFIG_REQUEST_MSG_ID = 0x0080,
+	NFAPI_UL_CONFIG_REQUEST_MSG_ID,
+	NFAPI_SUBFRAME_INDICATION_MSG_ID,
+	NFAPI_HI_DCI0_REQUEST_MSG_ID,
+	NFAPI_TX_REQUEST_MSG_ID,
+	NFAPI_HARQ_INDICATION_MSG_ID,
+	NFAPI_CRC_INDICATION_MSG_ID,
+	NFAPI_RX_ULSCH_INDICATION_MSG_ID,
+	NFAPI_RACH_INDICATION_MSG_ID,
+	NFAPI_SRS_INDICATION_MSG_ID,
+	NFAPI_RX_SR_INDICATION_MSG_ID,
+	NFAPI_RX_CQI_INDICATION_MSG_ID,
+	NFAPI_LBT_DL_CONFIG_REQUEST_MSG_ID,
+	NFAPI_LBT_DL_INDICATION_MSG_ID,
+
+	NFAPI_PNF_PARAM_REQUEST_MSG_ID = 0x0100,
+	NFAPI_PNF_PARAM_RESPONSE_MSG_ID,
+	NFAPI_PNF_CONFIG_REQUEST_MSG_ID,
+	NFAPI_PNF_CONFIG_RESPONSE_MSG_ID,
+	NFAPI_PNF_START_REQUEST_MSG_ID,
+	NFAPI_PNF_START_RESPONSE_MSG_ID,
+	NFAPI_PNF_STOP_REQUEST_MSG_ID,
+	NFAPI_PNF_STOP_RESPONSE_MSG_ID,
+	NFAPI_PARAM_REQUEST_MSG_ID,
+	NFAPI_PARAM_RESPONSE_MSG_ID,
+	NFAPI_CONFIG_REQUEST_MSG_ID,
+	NFAPI_CONFIG_RESPONSE_MSG_ID,
+	NFAPI_START_REQUEST_MSG_ID,
+	NFAPI_START_RESPONSE_MSG_ID,
+	NFAPI_STOP_REQUEST_MSG_ID,
+	NFAPI_STOP_RESPONSE_MSG_ID,
+	NFAPI_MEASUREMENT_REQUEST_MSG_ID,
+	NFAPI_MEASUREMENT_RESPONSE_MSG_ID,
+
+	NFAPI_DL_NODE_SYNC_MSG_ID = 0x0180,
+	NFAPI_UL_NODE_SYNC_MSG_ID,
+	NFAPI_TIMING_INFO_MSG_ID,
+
+	NFAPI_RSSI_REQUEST_MSG_ID = 0x0200,
+	NFAPI_RSSI_RESPONSE_MSG_ID,
+	NFAPI_RSSI_INDICATION_MSG_ID,
+	NFAPI_CELL_SEARCH_REQUEST_MSG_ID,
+	NFAPI_CELL_SEARCH_RESPONSE_MSG_ID,
+	NFAPI_CELL_SEARCH_INDICATION_MSG_ID,
+	NFAPI_BROADCAST_DETECT_REQUEST_MSG_ID,
+	NFAPI_BROADCAST_DETECT_RESPONSE_MSG_ID,
+	NFAPI_BROADCAST_DETECT_INDICATION_MSG_ID,
+	NFAPI_SYSTEM_INFORMATION_SCHEDULE_REQUEST_MSG_ID,
+	NFAPI_SYSTEM_INFORMATION_SCHEDULE_RESPONSE_MSG_ID,
+	NFAPI_SYSTEM_INFORMATION_SCHEDULE_INDICATION_MSG_ID,
+	NFAPI_SYSTEM_INFORMATION_REQUEST_MSG_ID,
+	NFAPI_SYSTEM_INFORMATION_RESPONSE_MSG_ID,
+	NFAPI_SYSTEM_INFORMATION_INDICATION_MSG_ID,
+	NFAPI_NMM_STOP_REQUEST_MSG_ID,
+	NFAPI_NMM_STOP_RESPONSE_MSG_ID,
+} nfapi_message_id_e;
+
+static const value_string nfapi_error_vals[] = {
+	{ 0x0, "MSG_OK" },
+	{ 0x1, "MSG_INVALID_STATE" },
+	{ 0x2, "MSG_INVALID_CONFIG" },
+	{ 0x3, "SFN_OUT_OF_SYNC" },
+	{ 0x4, "MSG_SUBFRAME_ERR" },
+	{ 0x5, "MSG_BCH_MISSING" },
+	{ 0x6, "MSG_BCH_MISSING" },
+	{ 0x7, "MSG_HI_ERR" },
+	{ 0x8, "MSG_TX_ERR" },
+	{ 0, NULL },
+};
+
+static const value_string nfapi_p4_error_vals[] = {
+	{ 100, "MSG_OK" },
+	{ 101, "MSG_INVALID_STATE" },
+	{ 102, "MSG_INVALID_CONFIG" },
+	{ 103, "MSG_RAT_NOT_SUPPORTED" },
+	{ 200, "MSG_NMM_STOP_OK" },
+	{ 201, "MSG_NMM_STOP_IGNORED" },
+	{ 202, "MSG_NMM_STOP_INVALID_STATE" },
+	{ 300, "MSG_PROCEDURE_COMPLETE" },
+	{ 301, "MSG_PROCEDURE_STOPPED" },
+	{ 302, "MSG_PARTIAL_RESULTS" },
+	{ 303, "MSG_TIMEOUT" },
+	{ 0, NULL },
+};
+
+static const value_string nfapi_rat_type_vals[] = {
+	{ 0, "LTE" },
+	{ 1, "UTRAN" },
+	{ 2, "GERAN" },
+	{ 0, NULL },
+};
+
+typedef enum{
+	UN_ALIGNED_SYNCHRONIZATION = 0,
+	INTERNAL_PNF_FRAME_ALIGNMENT,
+	ABSOLUTE_TIME_ALIGNED_SYNCHRONIZATION
+} nfapi_sync_mode_e;
+
+static const value_string nfapi_sync_mode_vals[] = {
+	{ UN_ALIGNED_SYNCHRONIZATION, "UN-ALIGNED SYNCHRONIZATION" },
+	{ INTERNAL_PNF_FRAME_ALIGNMENT, "INTERNAL PNF FRAME ALIGNMENT" },
+	{ ABSOLUTE_TIME_ALIGNED_SYNCHRONIZATION, "ABSOLUTE TIME ALIGNED SYNCHRONIZATION" },
+	{ 0, NULL },
+};
+
+typedef enum {
+	NONE = 0,
+	GPS,
+	GLONASS,
+	BEIDOU
+} location_mode_e;
+
+static const value_string location_mode_vals[] = {
+	{ NONE, "NONE" },
+	{ GPS, "GPS" },
+	{ GLONASS, "GLONASS" },
+	{ BEIDOU, "BeiDou" },
+	{ 0, NULL }
+};
+
+static const value_string nfapi_uplink_rs_hopping_vals[] = {
+	{ 0, "RS_NO_HOPPING" },
+	{ 1, "RS_GROUP_HOPPING" },
+	{ 2, "RS_SEQUENCE_HOPPING" },
+	{ 0, NULL }
+};
+
+static const value_string nfapi_laa_carrier_type_vals[] = {
+	{ 0, "No multi carrier support" },
+	{ 1, "Mode A1" },
+	{ 2, "Mode A12" },
+	{ 3, "Mode B1" },
+	{ 4, "Mode B2" },
+	{ 0, NULL }
+};
+
+static const value_string nfapi_mutli_carrier_lbt_support_vals[] = {
+	{ 0, "Multi carrier Mode A1" },
+	{ 1, "Multi carrier Mode A2" },
+	{ 2, "Multi carrier Mode B1" },
+	{ 3, "Multi carrier Mode B2" },
+	{ 0, NULL }
+};
+
+static const value_string nfapi_lbt_dl_req_pdu_type[] = {
+	{ 0, "LBT_PDSCH_REQ PDU" },
+	{ 1, "LBT_DRS_REQ PDU" },
+	{ 0, NULL }
+};
+
+
+static const value_string nfapi_lbt_dl_ind_pdu_type[] = {
+	{ 0, "LBT_PDSCH_RSP PDU" },
+	{ 1, "LBT_DRS_RSP PDU" },
+	{ 0, NULL }
+};
+
+static const value_string nfapi_phy_state_vals[] = {
+	{ 0, "IDLE" },
+	{ 1, "CONFIGURED" },
+	{ 2, "RUNNING" },
+	{ 0, NULL },
+};
+
+
+/* These are definitions where data 0 & 1 represent/provide a string name*/
+static const true_false_string  nfapi_csi_report_type_strname = {
+	"Periodic",
+	"Aperiodic",
+};
+
+static const true_false_string nfapi_control_type_string_name = {
+	"CQI/PMI",
+	"RI",
+};
+
+static const true_false_string cyclic_prefix_type_strname = {
+	"CP_NORMAL",
+	"CP_EXTENDED"
+};
+
+static const true_false_string support_strname = {
+	"No Support",
+	"Support"
+};
+
+static const true_false_string partial_sf_support_strname =
+{
+	"Start partial SF support",
+	"End partial SF support"
+};
+
+static const true_false_string phich_duration_strname = {
+	"PHICH_D_NORMAL",
+	"PHICH_D_EXTENDED"
+};
+
+static const true_false_string high_speed_flag_strname = {
+	"HS_UNRESTRICTED_SET",
+	"HS_RESTRICTED_SET"
+};
+
+static const true_false_string hopping_mode_strname = {
+	"HM_INTER_SF",
+	"HM_INTRA_INTER_SF"
+};
+
+static const true_false_string srs_simult_tx_strname = {
+	"No Simultaneous Transmission",
+	"Simultaneous Transmission"
+};
+
+static const true_false_string crc_flag_strname = {
+	"CRC_ERROR",
+	"CRC_CORRECT"
+};
+
+static const true_false_string hi_value_strname = {
+	"HI_ACK",
+	"HI_NACK"
+};
+
+static const true_false_string flag_tb2_strname = {
+	"HI_NOT_PRESENT",
+	"HI_PRESENT"
+};
+
+static const true_false_string nfapi_multi_carrier_tx_strname = {
+	"Mutual transmission (self-deferral support for current carrier)",
+	"Transmit on channel access win (no self-deferral)"
+};
+
+static const true_false_string nfapi_multi_carrier_freeze_strname = {
+	"Absence of other technology is not guaranteed",
+	"Absence of other technology is guaranteed"
+};
+
+static const true_false_string initial_partial_sf_strname = {
+	"Full SF",
+	"Partial SF"
+};
+
+static const true_false_string lbt_mode_strname = {
+	"Full LBT",
+	"Partial LBT"
+};
+
+static const true_false_string data_report_mode_vals = {
+	"Crc reported in CRC.indication",
+	"Crc reported in RX.indication"
+};
+
+static const true_false_string mcch_flag_string_name = {
+	"MCCH or SC-MCCH change notification field is not valid",
+	"MCCH or SC-MCCH change notification field is valid"
+};
+
+static const true_false_string cross_carrier_scheduling_flag_strname = {
+	"Carrier indicator field is not valid",
+	"Carrier indicator field is valid"
+};
+
+static const true_false_string srs_flag_strname = {
+	"SRS request field is not valid",
+	"SRS request field is valid"
+};
+static const true_false_string srs_request_strname = {
+	"SRS not requested",
+	"SRS requested"
+};
+
+static const true_false_string ul_dl_configuration_flag_strname = {
+	"UL/DL configuration field is not valid",
+	"UL/DL configuration field is valid"
+};
+
+static const true_false_string prs_cyclic_prefix_type_strname = {
+	"normal cyclic prefix",
+	"extended cyclic prefix"
+};
+
+static const true_false_string prs_muting_strname = {
+	"no muting",
+	"muting"
+};
+
+
+static const value_string nfapi_dl_config_pdu_type_vals[] = {
+	{ 0, "DL_CONFIG_DCI_DL_PDU" },
+	{ 1, "DL_CONFIG_BCH_PDU" },
+	{ 2, "DL_CONFIG_MCH_PDU" },
+	{ 3, "DL_CONFIG_DLSCH_PDU" },
+	{ 4, "DL_CONFIG_PCH_PDU" },
+	{ 5, "DL_CONFIG_PRS_PDU" },
+	{ 6, "DL_CONFIG_CSI_RS_PDU" },
+	{ 7, "DL_CONFIG_EPDCCH_DL_PDU" },
+	{ 8, "DL_CONFIG_EPDCCH_DL_PDU" },
+	{ 0, NULL }
+};
+
+static const value_string nfapi_duplex_mode_vals[] = {
+	{ 0, "TDD" },
+	{ 1, "FDD" },
+	{ 2, "HD-FDD" },
+	{ 0, NULL }
+};
+
+static const value_string modulation_vals[] = {
+	{ 2, "QPSK" },
+	{ 4, "16QAM" },
+	{ 6, "64QAM" },
+	{ 8, "256QAM" },
+	{ 0, NULL }
+};
+
+static const value_string pch_modulation_vals[] = {
+	{ 0, "QPSK" },
+	{ 0, NULL }
+};
+
+static const value_string ue_mode_vals[] = {
+	{ 0, "non LC/CE UE" },
+	{ 1, "LC/CE UE" },
+	{ 0, NULL }
+};
+
+static const value_string csi_rs_class_vals[] = {
+	{ 0, "not used" },
+	{ 1, "Class A" },
+	{ 1, "Class B" },
+	{ 0, NULL }
+};
+
+static const value_string csi_rs_cdm_type_vals[] = {
+	{ 0, "cdm 2" },
+	{ 1, "cdm 4" },
+	{ 0, NULL }
+};
+
+static const value_string antenna_ports_vals[] = {
+	{ 0, "1 antenna ports" },
+	{ 1, "2 antenna ports" },
+	{ 2, "4 antenna ports" },
+	{ 0, NULL }
+};
+
+static const value_string combs_vals[] = {
+	{ 0, "2 TC" },
+	{ 1, "4 TC" },
+	{ 0, NULL }
+};
+
+static const value_string resource_allocation_type_vals[] = {
+	{ 0, "type 0" },
+	{ 1, "type 1" },
+	{ 2, "type 2 1A/1B/1D" },
+	{ 3, "type 2 1C" },
+	{ 4, "type 2 6-1A" },
+	{ 5, "type UEModeB" },
+	{ 6, "NB index" },
+	{ 0, NULL }
+};
+
+static const value_string transmission_scheme_vals[] = {
+	{ 0, "SINGLE_ANTENNA_PORT_0" },
+	{ 1, "TX_DIVERSITY" },
+	{ 2, "LARGE_DELAY_CDD" },
+	{ 3, "CLOSED_LOOP_SPATIAL_MULTIPLEXING" },