+ duCfgParam.srvdCellLst[0].duCellInfo.measTimeCfg;
+
+ /* GNB DU System Information */
+ DU_ALLOC(srvCellItem->gNB_DU_System_Information,
+ sizeof(GNB_DU_System_Information_t));
+ if(!srvCellItem->gNB_DU_System_Information)
+ {
+ DU_LOG("\nF1AP: Memory allocation failure for GNB_DU_System_Information");
+ return RFAILED;
+ }
+ /* MIB */
+ srvCellItem->gNB_DU_System_Information->mIB_message.size =\
+ strlen(( char *)duCfgParam.srvdCellLst[0].duSysInfo.mibMsg);
+ DU_ALLOC(srvCellItem->gNB_DU_System_Information->mIB_message.buf,
+ srvCellItem->gNB_DU_System_Information->mIB_message.size);
+ if(!srvCellItem->gNB_DU_System_Information->mIB_message.buf)
+ {
+ DU_LOG("\nF1AP: Memory allocation failure for mIB message");
+ return RFAILED;
+ }
+ strcpy((char *)srvCellItem->gNB_DU_System_Information->mIB_message.buf,
+ (char *)duCfgParam.srvdCellLst[0].duSysInfo.mibMsg);
+
+ /* SIB1 */
+ srvCellItem->gNB_DU_System_Information->sIB1_message.size =\
+ duCfgParam.srvdCellLst[0].duSysInfo.sib1Len;
+ DU_ALLOC(srvCellItem->gNB_DU_System_Information->sIB1_message.buf,
+ srvCellItem->gNB_DU_System_Information->sIB1_message.size);
+ if(!srvCellItem->gNB_DU_System_Information->sIB1_message.buf)
+ {
+ DU_LOG("\nF1AP: Memory allocation failure for SIB1 message");
+ return RFAILED;
+ }
+ for(int x=0; x<srvCellItem->gNB_DU_System_Information->sIB1_message.size; x++)
+ {
+ srvCellItem->gNB_DU_System_Information->sIB1_message.buf[x]=\
+ duCfgParam.srvdCellLst[0].duSysInfo.sib1Msg[x];
+ }
+ /* Free memory */
+ DU_FREE(duCfgParam.srvdCellLst[0].duSysInfo.sib1Msg,
+ srvCellItem->gNB_DU_System_Information->sIB1_message.size);
+ DU_FREE(duCfgParam.srvdCellLst[0].duSysInfo.mibMsg,
+ strlen((char *)duCfgParam.srvdCellLst[0].duSysInfo.mibMsg));
+ return ROK;