X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fdu_app%2Fdu_cfg.c;h=72af42156ac27227efceee5319f222d03111f803;hb=c1a71fadad9bca810391ab3eb4963147ef6f0502;hp=872a42653ba5ea42fbfb54a8762dd20d21d86444;hpb=bbec4b5e924e6f9e76438412d7704bbd61f23b3a;p=o-du%2Fl2.git diff --git a/src/du_app/du_cfg.c b/src/du_app/du_cfg.c index 872a42653..72af42156 100644 --- a/src/du_app/du_cfg.c +++ b/src/du_app/du_cfg.c @@ -106,20 +106,20 @@ uint8_t readMacCfg() #ifdef O1_ENABLE duCfgParam.macCellCfg.cellId = cellParams.cellLocalId; duCfgParam.macCellCfg.carrCfg.dlBw = cellParams.bSChannelBwDL; - duCfgParam.macCellCfg.carrCfg.dlFreq = convertArfcnToFreqKhz(cellParams.arfcnDL); + duCfgParam.macCellCfg.carrCfg.arfcnDL = cellParams.arfcnDL; #else duCfgParam.macCellCfg.cellId = NR_CELL_ID; duCfgParam.macCellCfg.carrCfg.dlBw = NR_BANDWIDTH; - duCfgParam.macCellCfg.carrCfg.dlFreq = convertArfcnToFreqKhz(NR_DL_ARFCN); + duCfgParam.macCellCfg.carrCfg.arfcnDL = NR_DL_ARFCN; #endif duCfgParam.macCellCfg.carrCfg.numTxAnt = NUM_TX_ANT; /* UL Carrier configuration */ #ifdef O1_ENABLE duCfgParam.macCellCfg.carrCfg.ulBw = cellParams.bSChannelBwUL; - duCfgParam.macCellCfg.carrCfg.ulFreq = convertArfcnToFreqKhz(cellParams.arfcnUL); + duCfgParam.macCellCfg.carrCfg.arfcnUL = cellParams.arfcnUL; #else duCfgParam.macCellCfg.carrCfg.ulBw = NR_BANDWIDTH; - duCfgParam.macCellCfg.carrCfg.ulFreq = convertArfcnToFreqKhz(NR_UL_ARFCN); + duCfgParam.macCellCfg.carrCfg.arfcnUL = NR_UL_ARFCN; #endif duCfgParam.macCellCfg.carrCfg.numRxAnt = NUM_RX_ANT; @@ -735,6 +735,8 @@ uint8_t readCfg() duCb.e2apDb.ranFunction[ranFuncIdx].ricIndicationHeaderFormat = RIC_INDICATION_HEADER_FORMAT; duCb.e2apDb.ranFunction[ranFuncIdx].ricIndicationMessageFormat = RIC_INDICATION_MESSAGE_FORMAT; + + cmLListInit(&duCb.e2apDb.ranFunction[ranFuncIdx].subscriptionList); } memset(duCb.e2apDb.e2TransInfo.e2InitTransaction, 0, MAX_NUM_TRANSACTION * sizeof(E2TransInfo)); memset(duCb.e2apDb.e2TransInfo.ricInitTransaction, 0, MAX_NUM_TRANSACTION * sizeof(E2TransInfo)); @@ -1166,6 +1168,8 @@ uint8_t duReadCfg() /* Initialize the timer blocks */ cmInitTimers(&(duCb.e2apDb.e2TimersInfo.e2Timers.e2SetupTimer), 1); + cmInitTimers(&(duCb.e2apDb.e2TimersInfo.e2Timers.ricServiceUpdateTimer.timer), 1); + cmInitTimers(&(duCb.e2apDb.e2TimersInfo.e2Timers.e2NodeConfigUpdate.timer), 1); /* Initialzie the timer queue */ memset(&(duCb.duTimersInfo.tmrTq), 0, sizeof(CmTqType) * DU_TQ_SIZE);