X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_cell_mgr.c;h=961ea31ef81dd5c0cbd42ef738bb7fcb2c0f8d1e;hb=ef711b0830aedde36f4a1beceed146d08e77ce58;hp=296c2592faeeb956770f6ea7631b4bff01b965c8;hpb=3235ecfc7414aa0b72d0ad50db63ae8b5626045b;p=o-du%2Fl2.git diff --git a/src/du_app/du_cell_mgr.c b/src/du_app/du_cell_mgr.c index 296c2592f..961ea31ef 100644 --- a/src/du_app/du_cell_mgr.c +++ b/src/du_app/du_cell_mgr.c @@ -18,13 +18,14 @@ /* This file contains message handling functionality for DU APP */ #include "du_cell_mgr.h" -#include "du_cfg_hdl.h" extern DuCfgParams duCfgParam; extern S16 cmPkRgrCfgReq(Pst* pst, RgrCfgTransId transId, \ RgrCfgReqInfo *cfgReqInfo); +extern S16 duBuildAndSendMacCellCfg(); + /******************************************************************* * * @brief Processes cells to be activated @@ -48,7 +49,7 @@ S16 procCellsToBeActivated(Cells_to_be_Activated_List_t cellsToActivate) for(idx=0; idx DU_MAX_CELLS) { - pci = *cell.nRPCI; + DU_LOG("\nDU APP : Invalid NCI %d", nci); + return RFAILED; } - if(ROK != (cmHashListFind(&(duCb.cellLst), (U8*) &nci, sizeof(nci), - 0, (PTR*)cellCb))) + + if(cell.nRPCI) { - return RFAILED; + pci = *cell.nRPCI; } + + cellCb = duCb.cfgCellLst[nci-1]; + if(!cellCb) { - DU_LOG("\nDU_APP : HashList Find failed for nci [%d]", nci); + DU_LOG("\nDU APP : No Cell found for NCI %d", nci); return RFAILED; } cellCb->cellStatus = ACTIVATION_IN_PROGRESS; cellCb->cellInfo.nrPci = pci; /* Now remove this cell from configured list and move to active list */ - ret = cmHashListDelete(&(duCb.actvCellLst), (PTR)(cellCb)); - if(ret != ROK) - { - DU_LOG("\nDU_APP : HashListInsert into ActvCellLst failed for [%d]", nci); - } - ret = cmHashListInsert(&(duCb.actvCellLst), (PTR)(cellCb), - (U8 *)&(nci), (U16) sizeof(nci)); - - if(ret != ROK) - { - DU_LOG("\nDU_APP : HashListInsert into ActvCellLst failed for [%d]", nci); - break; - } - else - { - DU_LOG("\nDU_APP : HashListInsert into ActvCellLst successful for [%d]", nci); - } + duCb.cfgCellLst[nci-1] = NULLP; + duCb.actvCellLst[nci-1] = cellCb; } /* Start sending scheduler config */ @@ -180,8 +170,10 @@ S16 procF1SetupRsp(F1AP_PDU_t *f1apMsg) SPutSBuf(DU_APP_MEM_REGION, DU_POOL,(Data *)&f1apMsg,(Size)sizeof(F1AP_PDU_t)); #endif - /* Build and send GNB-DU config update */ + /* Build and send Mac Cell Cfg Paramaters */ + //ret = duBuildAndSendMacCellCfg(); ret = BuildAndSendDUConfigUpdate(); + return ret; }