X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_cell_mgr.c;h=c7f17e662bdddf95ff621ea87a774a0328fb6712;hb=5831bf6b3454aa200a92cd3e84209650734e4863;hp=12a967217448f0a1f5700f5df0e5170efeada2a3;hpb=eb178a8cc45a9cebc65df73f128f88b3a3dfefbb;p=o-du%2Fl2.git diff --git a/src/du_app/du_cell_mgr.c b/src/du_app/du_cell_mgr.c index 12a967217..c7f17e662 100644 --- a/src/du_app/du_cell_mgr.c +++ b/src/du_app/du_cell_mgr.c @@ -22,10 +22,18 @@ #include "legtp.h" #include "lrg.x" #include "lkw.x" -#include "du_cfg.h" +#include "rgr.h" +#include "rgr.x" #include "E2AP-PDU.h" #include #include "F1AP-PDU.h" +#include "du_f1ap_msg_hdl.h" +#include "du_e2ap_msg_hdl.h" +#include "du_app_mac_inf.h" +#include "du_app_rlc_inf.h" +#include "du_cfg.h" +#include "du_mgr.h" +#include "odu_common_codec.h" #include "du_cell_mgr.h" extern DuCfgParams duCfgParam; @@ -62,7 +70,7 @@ S16 procCellsToBeActivated(Cells_to_be_Activated_List_t cellsToActivate) value.choice.Cells_to_be_Activated_List_Item; bitStringToInt(&cell.nRCGI.nRCellIdentity, &nci); - if(nci <= 0 || nci > DU_MAX_CELLS) + if(nci <= 0 || nci > MAX_NUM_CELL) { DU_LOG("\nDU APP : Invalid NCI %d", nci); return RFAILED; @@ -86,7 +94,7 @@ S16 procCellsToBeActivated(Cells_to_be_Activated_List_t cellsToActivate) /* Now remove this cell from configured list and move to active list */ duCb.cfgCellLst[nci-1] = NULL; duCb.actvCellLst[nci-1] = cellCb; - + duCb.numActvCells++; /* Build and send Mac Cell Cfg for the number of active cells */ ret = duBuildAndSendMacCellCfg(); if(ret != ROK)