- DU_LOG("\n LOWER MAC: Filling TLVS into MAC API");
- if(paramRsp->error_code == MSG_OK)
- {
- for(index = 0; index < paramRsp->number_of_tlvs; index++)
- {
- switch(paramRsp->tlvs[index].tl.tag)
- {
- case FAPI_RELEASE_CAPABILITY_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_16);
- if(encodedVal != RFAILED && (encodedVal & RELEASE_15) == RELEASE_15)
- {
- cellParam->releaseCapability = RELEASE_15;
- }
- break;
-
- case FAPI_PHY_STATE_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != clGlobalCp.phyState)
- {
- printf("\n PhyState mismatch [%d][%d]", clGlobalCp.phyState, clGlobalCp.event);
- RETVALUE(RFAILED);
- }
- break;
-
- case FAPI_SKIP_BLANK_DL_CONFIG_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->skipBlankDlConfig = SUPPORTED;
- }
- else
- {
- cellParam->skipBlankDlConfig = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_SKIP_BLANK_UL_CONFIG_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->skipBlankUlConfig = SUPPORTED;
- }
- else
- {
- cellParam->skipBlankUlConfig = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_NUM_CONFIG_TLVS_TO_REPORT_TYPE_TAG:
- cellParam->numTlvsToReport = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_16);
- break;
-
- case FAPI_CYCLIC_PREFIX_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillCyclicPrefix(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_SUPPORTED_SUBCARRIER_SPACING_DL_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillSubcarrierSpaceDl(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_SUPPORTED_BANDWIDTH_DL_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_16);
- if(encodedVal != RFAILED)
- {
- fillBandwidthDl(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_SUPPORTED_SUBCARRIER_SPACING_UL_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillSubcarrierSpaceUl(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_SUPPORTED_BANDWIDTH_UL_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_16);
- if(encodedVal != RFAILED)
- {
- fillBandwidthUl(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_CCE_MAPPING_TYPE_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillCCEmaping(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_CORESET_OUTSIDE_FIRST_3_OFDM_SYMS_OF_SLOT_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->coresetOutsideFirst3OfdmSymsOfSlot = SUPPORTED;
- }
- else
- {
- cellParam->coresetOutsideFirst3OfdmSymsOfSlot = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_PRECODER_GRANULARITY_CORESET_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->precoderGranularityCoreset = SUPPORTED;
- }
- else
- {
- cellParam->precoderGranularityCoreset = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_PDCCH_MU_MIMO_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->pdcchMuMimo = SUPPORTED;
- }
- else
- {
- cellParam->pdcchMuMimo = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_PDCCH_PRECODER_CYCLING_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->pdcchPrecoderCycling = SUPPORTED;
- }
- else
- {
- cellParam->pdcchPrecoderCycling = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_MAX_PDCCHS_PER_SLOT_TAG:
- cellParam->maxPdcchsPerSlot = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- break;
-
- case FAPI_PUCCH_FORMATS_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPucchFormat(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_MAX_PUCCHS_PER_SLOT_TAG:
- cellParam->maxPucchsPerSlot = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- break;
-
- case FAPI_PDSCH_MAPPING_TYPE_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPdschMappingType(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PDSCH_ALLOCATION_TYPES_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPdschAllocationType(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PDSCH_VRB_TO_PRB_MAPPING_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPrbMappingType(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PDSCH_CBG_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->pdschCbg = SUPPORTED;
- }
- else
- {
- cellParam->pdschCbg = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_PDSCH_DMRS_CONFIG_TYPES_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPdschDmrsConfigType(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PDSCH_DMRS_MAX_LENGTH_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPdschDmrsLength(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PDSCH_DMRS_ADDITIONAL_POS_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPdschDmrsAddPos(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_MAX_PDSCHS_TBS_PER_SLOT_TAG:
- cellParam->maxPdschsTBsPerSlot = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- break;
-
- case FAPI_MAX_NUMBER_MIMO_LAYERS_PDSCH_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal < FAPI_MAX_NUMBERMIMO_LAYERS_PDSCH)
- {
- cellParam->maxNumberMimoLayersPdsch = encodedVal;
- }
- break;
-
- case FAPI_SUPPORTED_MAX_MODULATION_ORDER_DL_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillModulationOrderDl(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_MAX_MU_MIMO_USERS_DL_TAG:
- cellParam->maxMuMimoUsersDl = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- break;
-
- case FAPI_PDSCH_DATA_IN_DMRS_SYMBOLS_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->pdschDataInDmrsSymbols = SUPPORTED;
- }
- else
- {
- cellParam->pdschDataInDmrsSymbols = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_PREMPTIONSUPPORT_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->premptionSupport = SUPPORTED;
- }
- else
- {
- cellParam->premptionSupport = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_PDSCH_NON_SLOT_SUPPORT_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->pdschNonSlotSupport = SUPPORTED;
- }
- else
- {
- cellParam->pdschNonSlotSupport = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_UCI_MUX_ULSCH_IN_PUSCH_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->uciMuxUlschInPusch = SUPPORTED;
- }
- else
- {
- cellParam->uciMuxUlschInPusch = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_UCI_ONLY_PUSCH_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->uciOnlyPusch = SUPPORTED;
- }
- else
- {
- cellParam->uciOnlyPusch = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_PUSCH_FREQUENCY_HOPPING_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->puschFrequencyHopping = SUPPORTED;
- }
- else
- {
- cellParam->puschFrequencyHopping = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_PUSCH_DMRS_CONFIG_TYPES_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPuschDmrsConfig(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PUSCH_DMRS_MAX_LEN_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPuschDmrsLength(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PUSCH_DMRS_ADDITIONAL_POS_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPuschDmrsAddPos(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PUSCH_CBG_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->puschCbg = SUPPORTED;
- }
- else
- {
- cellParam->puschCbg = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_PUSCH_MAPPING_TYPE_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPuschMappingType(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PUSCH_ALLOCATION_TYPES_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPuschAllocationType(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PUSCH_VRB_TO_PRB_MAPPING_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPuschPrbMappingType(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PUSCH_MAX_PTRS_PORTS_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal < FAPI_PUSCH_MAX_PTRS_PORTS_UB)
- {
- cellParam->puschMaxPtrsPorts = encodedVal;
- }
- break;
-
- case FAPI_MAX_PDUSCHS_TBS_PER_SLOT_TAG:
- cellParam->maxPduschsTBsPerSlot = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- break;
-
- case FAPI_MAX_NUMBER_MIMO_LAYERS_NON_CB_PUSCH_TAG:
- cellParam->maxNumberMimoLayersNonCbPusch = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- break;
-
- case FAPI_SUPPORTED_MODULATION_ORDER_UL_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillModulationOrderUl(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_MAX_MU_MIMO_USERS_UL_TAG:
- cellParam->maxMuMimoUsersUl = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- break;
-
- case FAPI_DFTS_OFDM_SUPPORT_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->dftsOfdmSupport = SUPPORTED;
- }
- else
- {
- cellParam->dftsOfdmSupport = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_PUSCH_AGGREGATION_FACTOR_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPuschAggregationFactor(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PRACH_LONG_FORMATS_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPrachLongFormat(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PRACH_SHORT_FORMATS_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillPrachShortFormat(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_PRACH_RESTRICTED_SETS_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED && encodedVal != 0)
- {
- cellParam->prachRestrictedSets = SUPPORTED;
- }
- else
- {
- cellParam->prachRestrictedSets = NOT_SUPPORTED;
- }
- break;
-
- case FAPI_MAX_PRACH_FD_OCCASIONS_IN_A_SLOT_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillFdOccasions(encodedVal, &cellParam);
- }
- break;
-
- case FAPI_RSSI_MEASUREMENT_SUPPORT_TAG:
- encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
- if(encodedVal != RFAILED)
- {
- fillRssiMeas(encodedVal, &cellParam);
- }
- break;
- default:
- //printf("\n Invalid value for TLV[%x] at index[%d]", paramRsp->tlvs[index].tl.tag, index);
- break;
- }
- }
- MAC_FREE(cellParam, sizeof(ClCellParam));
- sendToLowerMac(FAPI_CONFIG_REQUEST, 0, (void *)NULL);
- return ROK;
- }
- else
- {
- DU_LOG("\n LOWER MAC: Invalid error code %d", paramRsp->error_code);
- return RFAILED;
- }
- }
- else
- {
- DU_LOG("\nLOWER MAC: Failed to allocate memory for cell param");
- return RFAILED;
- }
+ DU_LOG("\n LWR_MAC: Filling TLVS into MAC API");
+ if(paramRsp->error_code == MSG_OK)
+ {
+ for(index = 0; index < paramRsp->number_of_tlvs; index++)
+ {
+ switch(paramRsp->tlvs[index].tl.tag)
+ {
+ case FAPI_RELEASE_CAPABILITY_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_16);
+ if(encodedVal != RFAILED && (encodedVal & RELEASE_15) == RELEASE_15)
+ {
+ cellParam->releaseCapability = RELEASE_15;
+ }
+ break;
+
+ case FAPI_PHY_STATE_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != lwrMacCb.phyState)
+ {
+ printf("\n PhyState mismatch [%d][%d]", lwrMacCb.phyState, lwrMacCb.event);
+ return RFAILED;
+ }
+ break;
+
+ case FAPI_SKIP_BLANK_DL_CONFIG_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->skipBlankDlConfig = SUPPORTED;
+ }
+ else
+ {
+ cellParam->skipBlankDlConfig = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_SKIP_BLANK_UL_CONFIG_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->skipBlankUlConfig = SUPPORTED;
+ }
+ else
+ {
+ cellParam->skipBlankUlConfig = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_NUM_CONFIG_TLVS_TO_REPORT_TYPE_TAG:
+ cellParam->numTlvsToReport = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_16);
+ break;
+
+ case FAPI_CYCLIC_PREFIX_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillCyclicPrefix(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_SUPPORTED_SUBCARRIER_SPACING_DL_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillSubcarrierSpaceDl(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_SUPPORTED_BANDWIDTH_DL_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_16);
+ if(encodedVal != RFAILED)
+ {
+ fillBandwidthDl(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_SUPPORTED_SUBCARRIER_SPACING_UL_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillSubcarrierSpaceUl(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_SUPPORTED_BANDWIDTH_UL_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_16);
+ if(encodedVal != RFAILED)
+ {
+ fillBandwidthUl(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_CCE_MAPPING_TYPE_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillCCEmaping(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_CORESET_OUTSIDE_FIRST_3_OFDM_SYMS_OF_SLOT_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->coresetOutsideFirst3OfdmSymsOfSlot = SUPPORTED;
+ }
+ else
+ {
+ cellParam->coresetOutsideFirst3OfdmSymsOfSlot = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_PRECODER_GRANULARITY_CORESET_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->precoderGranularityCoreset = SUPPORTED;
+ }
+ else
+ {
+ cellParam->precoderGranularityCoreset = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_PDCCH_MU_MIMO_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->pdcchMuMimo = SUPPORTED;
+ }
+ else
+ {
+ cellParam->pdcchMuMimo = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_PDCCH_PRECODER_CYCLING_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->pdcchPrecoderCycling = SUPPORTED;
+ }
+ else
+ {
+ cellParam->pdcchPrecoderCycling = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_MAX_PDCCHS_PER_SLOT_TAG:
+ cellParam->maxPdcchsPerSlot = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ break;
+
+ case FAPI_PUCCH_FORMATS_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPucchFormat(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_MAX_PUCCHS_PER_SLOT_TAG:
+ cellParam->maxPucchsPerSlot = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ break;
+
+ case FAPI_PDSCH_MAPPING_TYPE_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPdschMappingType(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PDSCH_ALLOCATION_TYPES_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPdschAllocationType(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PDSCH_VRB_TO_PRB_MAPPING_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPrbMappingType(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PDSCH_CBG_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->pdschCbg = SUPPORTED;
+ }
+ else
+ {
+ cellParam->pdschCbg = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_PDSCH_DMRS_CONFIG_TYPES_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPdschDmrsConfigType(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PDSCH_DMRS_MAX_LENGTH_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPdschDmrsLength(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PDSCH_DMRS_ADDITIONAL_POS_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPdschDmrsAddPos(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_MAX_PDSCHS_TBS_PER_SLOT_TAG:
+ cellParam->maxPdschsTBsPerSlot = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ break;
+
+ case FAPI_MAX_NUMBER_MIMO_LAYERS_PDSCH_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal < FAPI_MAX_NUMBERMIMO_LAYERS_PDSCH)
+ {
+ cellParam->maxNumberMimoLayersPdsch = encodedVal;
+ }
+ break;
+
+ case FAPI_SUPPORTED_MAX_MODULATION_ORDER_DL_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillModulationOrderDl(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_MAX_MU_MIMO_USERS_DL_TAG:
+ cellParam->maxMuMimoUsersDl = \
+ getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ break;
+
+ case FAPI_PDSCH_DATA_IN_DMRS_SYMBOLS_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->pdschDataInDmrsSymbols = SUPPORTED;
+ }
+ else
+ {
+ cellParam->pdschDataInDmrsSymbols = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_PREMPTIONSUPPORT_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->premptionSupport = SUPPORTED;
+ }
+ else
+ {
+ cellParam->premptionSupport = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_PDSCH_NON_SLOT_SUPPORT_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->pdschNonSlotSupport = SUPPORTED;
+ }
+ else
+ {
+ cellParam->pdschNonSlotSupport = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_UCI_MUX_ULSCH_IN_PUSCH_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->uciMuxUlschInPusch = SUPPORTED;
+ }
+ else
+ {
+ cellParam->uciMuxUlschInPusch = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_UCI_ONLY_PUSCH_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->uciOnlyPusch = SUPPORTED;
+ }
+ else
+ {
+ cellParam->uciOnlyPusch = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_PUSCH_FREQUENCY_HOPPING_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->puschFrequencyHopping = SUPPORTED;
+ }
+ else
+ {
+ cellParam->puschFrequencyHopping = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_PUSCH_DMRS_CONFIG_TYPES_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPuschDmrsConfig(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PUSCH_DMRS_MAX_LEN_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPuschDmrsLength(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PUSCH_DMRS_ADDITIONAL_POS_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPuschDmrsAddPos(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PUSCH_CBG_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->puschCbg = SUPPORTED;
+ }
+ else
+ {
+ cellParam->puschCbg = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_PUSCH_MAPPING_TYPE_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPuschMappingType(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PUSCH_ALLOCATION_TYPES_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPuschAllocationType(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PUSCH_VRB_TO_PRB_MAPPING_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPuschPrbMappingType(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PUSCH_MAX_PTRS_PORTS_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal < FAPI_PUSCH_MAX_PTRS_PORTS_UB)
+ {
+ cellParam->puschMaxPtrsPorts = encodedVal;
+ }
+ break;
+
+ case FAPI_MAX_PDUSCHS_TBS_PER_SLOT_TAG:
+ cellParam->maxPduschsTBsPerSlot = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ break;
+
+ case FAPI_MAX_NUMBER_MIMO_LAYERS_NON_CB_PUSCH_TAG:
+ cellParam->maxNumberMimoLayersNonCbPusch = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ break;
+
+ case FAPI_SUPPORTED_MODULATION_ORDER_UL_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillModulationOrderUl(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_MAX_MU_MIMO_USERS_UL_TAG:
+ cellParam->maxMuMimoUsersUl = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ break;
+
+ case FAPI_DFTS_OFDM_SUPPORT_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->dftsOfdmSupport = SUPPORTED;
+ }
+ else
+ {
+ cellParam->dftsOfdmSupport = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_PUSCH_AGGREGATION_FACTOR_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPuschAggregationFactor(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PRACH_LONG_FORMATS_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPrachLongFormat(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PRACH_SHORT_FORMATS_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillPrachShortFormat(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_PRACH_RESTRICTED_SETS_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED && encodedVal != 0)
+ {
+ cellParam->prachRestrictedSets = SUPPORTED;
+ }
+ else
+ {
+ cellParam->prachRestrictedSets = NOT_SUPPORTED;
+ }
+ break;
+
+ case FAPI_MAX_PRACH_FD_OCCASIONS_IN_A_SLOT_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillFdOccasions(encodedVal, &cellParam);
+ }
+ break;
+
+ case FAPI_RSSI_MEASUREMENT_SUPPORT_TAG:
+ encodedVal = getParamValue(¶mRsp->tlvs[index], FAPI_UINT_8);
+ if(encodedVal != RFAILED)
+ {
+ fillRssiMeas(encodedVal, &cellParam);
+ }
+ break;
+ default:
+ //printf("\n Invalid value for TLV[%x] at index[%d]", paramRsp->tlvs[index].tl.tag, index);
+ break;
+ }
+ }
+ MAC_FREE(cellParam, sizeof(ClCellParam));
+ sendToLowerMac(FAPI_CONFIG_REQUEST, 0, (void *)NULL);
+ return ROK;
+ }
+ else
+ {
+ DU_LOG("\n LWR_MAC: Invalid error code %d", paramRsp->error_code);
+ return RFAILED;
+ }
+ }
+ else
+ {
+ DU_LOG("\nLWR_MAC: Failed to allocate memory for cell param");
+ return RFAILED;
+ }