xer_fprint(stdout, &asn_DEF_BCCH_BCH_Message, bcchMsg);
memset(encBuf, 0, ENC_BUF_MAX_LEN);
encBufSize = 0;
- encRetVal = aper_encode(&asn_DEF_BCCH_BCH_Message, 0,
+ encRetVal = uper_encode(&asn_DEF_BCCH_BCH_Message, 0,
bcchMsg, PrepFinalEncBuf, encBuf);
printf("\nencbufSize:%d\n", encBufSize);
if(encRetVal.encoded == -1)
break;
}
+#ifdef DEBUG_ASN_PRINT
/* Print encoded buffer */
for(int i=0; i< encBufSize; i++)
{
printf("%x\t",encBuf[i]);
}
printf("\n");
+#endif
ret = ROK;
break;
xer_fprint(stdout, &asn_DEF_MIB, mibMsg);
memset(encBuf, 0, ENC_BUF_MAX_LEN);
encBufSize = 0;
- encRetVal = aper_encode(&asn_DEF_MIB, 0,
+ encRetVal = uper_encode(&asn_DEF_MIB, 0,
mibMsg, PrepFinalEncBuf, encBuf);
printf("\nencbufSize:%d\n", encBufSize);
if(encRetVal.encoded == -1)
break;
}
+#ifdef DEBUG_ASN_PRINT
/* Print encoded buffer */
for(int i=0; i< encBufSize; i++)
{
printf("%x\t",encBuf[i]);
}
printf("\n");
+#endif
/* Free allocated memory */
ret = ROK;
uint8_t BuildCellIdentity(CellIdentity_t *cellIdentity)
{
cellIdentity->size = ODU_VALUE_FIVE*sizeof(uint8_t);
- cellIdentity->bits_unused = ODU_VALUE_FOUR;
DU_ALLOC(cellIdentity->buf, cellIdentity->size);
if(!cellIdentity->buf)
DU_LOG("\nERROR --> DU APP: CellIdentity memory allocation failure");
return RFAILED;
}
- memset(cellIdentity->buf, 0, cellIdentity->size);
- cellIdentity->buf[4] = duCfgParam.sib1Params.cellIdentity;
+ fillBitString(cellIdentity, ODU_VALUE_FOUR, ODU_VALUE_FIVE, duCfgParam.sib1Params.cellIdentity);
return ROK;
}
DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed");
return RFAILED;
}
-
+
+ searchSpace->searchSpaceType->choice.common->dci_Format0_0_AndFormat1_0 = NULLP;
DU_ALLOC(searchSpace->searchSpaceType->choice.common->dci_Format0_0_AndFormat1_0, \
sizeof(struct SearchSpace__searchSpaceType__common__dci_Format0_0_AndFormat1_0));
if(!searchSpace->searchSpaceType->choice.common->dci_Format0_0_AndFormat1_0)
DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed");
return RFAILED;
}
+
+ searchSpace->searchSpaceType->choice.common->dci_Format2_0 = NULLP;
+ searchSpace->searchSpaceType->choice.common->dci_Format2_1 = NULLP;
+ searchSpace->searchSpaceType->choice.common->dci_Format2_2 = NULLP;
+ searchSpace->searchSpaceType->choice.common->dci_Format2_3 = NULLP;
break;
}
case SearchSpace__searchSpaceType_PR_ue_Specific:
return RFAILED;
}
}
-
return ROK;
}/* BuildCommonSerachSpaceList */
return RFAILED;
}
*pdcchSetup->ra_SearchSpace = duPdcchCfg.raSearchSpc;
-
break;
}
default :
/* Encode the F1SetupRequest type as APER */
memset(encBuf, 0, ENC_BUF_MAX_LEN);
encBufSize = 0;
- encRetVal = aper_encode(&asn_DEF_SIB1, 0, sib1Msg, PrepFinalEncBuf,\
+ encRetVal = uper_encode(&asn_DEF_SIB1, 0, sib1Msg, PrepFinalEncBuf,\
encBuf);
printf("\nencbufSize: %d\n", encBufSize);
if(encRetVal.encoded == -1)
"unknown");
break;
}
+#ifdef DEBUG_ASN_PRINT
for(int i=0; i< encBufSize; i++)
{
printf("%x\t",encBuf[i]);
}
printf("\n");
+#endif
ret = ROK;
break;
/* P0 Nominal with grant */
DU_FREE(setup->p0_NominalWithGrant, sizeof(long));
- DU_ALLOC(puschCfg->choice.setup, sizeof(PUSCH_ConfigCommon_t));
+ DU_FREE(puschCfg->choice.setup, sizeof(PUSCH_ConfigCommon_t));
}
}/* BuildPuschCfgCommon */