X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_cell_mgr.c;h=cb7439d066fa3450d919d644424e4e371b200c0d;hb=0b405462775bb65021e41dc4494ed38ce3a9c4f4;hp=34c1380916d82a398cc9e66ba2b468902bd90e51;hpb=d97caa5d16b9c6a2960a3b6d94d7737b7263004b;p=o-du%2Fl2.git diff --git a/src/du_app/du_cell_mgr.c b/src/du_app/du_cell_mgr.c index 34c138091..cb7439d06 100644 --- a/src/du_app/du_cell_mgr.c +++ b/src/du_app/du_cell_mgr.c @@ -34,7 +34,7 @@ #ifdef O1_ENABLE #include "AlarmInterface.h" -#include "ConfigInterface.h" +#include "CmInterface.h" #endif @@ -173,8 +173,8 @@ uint8_t duGetCellCb(uint16_t cellId, DuCellCb **cellCb) * ****************************************************************/ uint8_t duHandleCellUpInd(Pst *pst, OduCellId *cellId) { - DuCellCb *cellCb = NULLP; - + DuCellCb *cellCb = NULLP; + if(cellId->cellId <=0 || cellId->cellId > MAX_NUM_CELL) { DU_LOG("\nERROR --> DU APP : Invalid Cell Id %d in duHandleCellUpInd()", cellId->cellId); @@ -189,7 +189,9 @@ uint8_t duHandleCellUpInd(Pst *pst, OduCellId *cellId) DU_LOG("\nINFO --> DU APP : 5G-NR Cell %d is UP", cellId->cellId); cellCb->cellStatus = ACTIVATED; gCellStatus = CELL_UP; - + + if(duCfgParam.tempSliceCfg.rrmPolicy) + BuildAndSendSliceConfigReq(duCfgParam.tempSliceCfg.rrmPolicy, duCfgParam.tempSliceCfg.totalRrmPolicy, duCfgParam.tempSliceCfg.totalSliceCount); #ifdef O1_ENABLE DU_LOG("\nINFO --> DU APP : Raise cell UP alarm for cell id=%d", cellId->cellId); raiseCellAlrm(CELL_UP_ALARM_ID, cellId->cellId);