X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_cell_mgr.c;h=f5d0373ce8339e1e9f491261514848dd40ae5e53;hb=45d134510deb6902b870b4a0fb574b6075fba601;hp=b974773ba346fb5e99d081cbe4f7926a85d9d1ca;hpb=392607b7a8cbf1b7415b15517275dd1ef4e897a9;p=o-du%2Fl2.git diff --git a/src/du_app/du_cell_mgr.c b/src/du_app/du_cell_mgr.c index b974773ba..f5d0373ce 100644 --- a/src/du_app/du_cell_mgr.c +++ b/src/du_app/du_cell_mgr.c @@ -22,11 +22,13 @@ #include "legtp.h" #include "lrg.x" #include "lkw.x" +#include "du_app_mac_inf.h" #include "du_cfg.h" #include "E2AP-PDU.h" #include #include "F1AP-PDU.h" #include "du_cell_mgr.h" +#include "odu_common_codec.h" extern DuCfgParams duCfgParam; extern S16 duBuildAndSendMacCellCfg(); @@ -62,7 +64,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;