X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_cell_mgr.c;h=32e8e7941a351f349355cdac586403c990272d3c;hb=5bca27d3d33c085718de6e894b875c845d7456d2;hp=a86d418f2837172c065a549dbaa1b1d6a5c8bc99;hpb=6ffefa70d25f1f2e9a5879d4eb8f3af6379b54a9;p=o-du%2Fl2.git diff --git a/src/du_app/du_cell_mgr.c b/src/du_app/du_cell_mgr.c index a86d418f2..32e8e7941 100644 --- a/src/du_app/du_cell_mgr.c +++ b/src/du_app/du_cell_mgr.c @@ -158,6 +158,52 @@ uint8_t duGetCellCb(uint16_t cellId, DuCellCb **cellCb) return ROK; } +/***************************************************************** +* @brief Handles slot indication from MAC +* +* @details +* +* Function : duHandleSlotInd +* +* Functionality: +* Handles slot indication from MAC +* +* @params[in] Post structure pointer +* SlotTimingInfo *slotIndInfo +* @return ROK - success +* RFAILED - failure +* +* +*****************************************************************/ +uint8_t duHandleSlotInd(Pst *pst, SlotTimingInfo *slotIndInfo) +{ + uint8_t cellIdx = 0, ret = ROK; + DuCellCb *duCellCb; + + if(slotIndInfo) + { + GET_CELL_IDX(slotIndInfo->cellId, cellIdx); + duCellCb = duCb.actvCellLst[cellIdx]; + + if(duCellCb) + { + duCellCb->currSlotInfo.sfn = slotIndInfo->sfn; + duCellCb->currSlotInfo.slot = slotIndInfo->slot; + } + else + { + DU_LOG("\nERROR --> DU APP : CellId[%d] doesnot exist", slotIndInfo->cellId); + ret = RFAILED; + } + DU_FREE_SHRABL_BUF(pst->region, pst->pool, slotIndInfo, sizeof(SlotTimingInfo)); + } + else + { + DU_LOG("\nERROR --> DU APP : Recevied null pointer from MAC"); + ret = RFAILED; + } + return(ret); +} /******************************************************************* * * @brief Handles cell up indication from MAC