X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_cell_mgr.c;h=6182d6a86df345f92b86be2b37949d482d4651ee;hb=3eb33bcb19a8e47fcf8b58b417d6fa05919952cf;hp=4762d6545b718dfdea6bd1946de32ccaf2866d9b;hpb=f85fe1240cfd15efa41597ba278e2c6bcafb502d;p=o-du%2Fl2.git diff --git a/src/du_app/du_cell_mgr.c b/src/du_app/du_cell_mgr.c index 4762d6545..6182d6a86 100644 --- a/src/du_app/du_cell_mgr.c +++ b/src/du_app/du_cell_mgr.c @@ -192,7 +192,7 @@ uint8_t duGetCellCb(uint16_t cellId, DuCellCb **cellCb) * * @params[in] DuCellCb *cellCb * -* @return void +* @return ROK/RFAILURE (uint8_t return) * * ******************************************************************************/ @@ -212,7 +212,7 @@ uint8_t checkPagingRecord(DuCellCb *cellCb) /*No Page is present for pf thus exiting*/ return ROK; } - + do { pagInfo = handlePageInfoLL(pf, NULLD, &(pagInfoLLFromPF->pagInfoList), TRAVERSE_ALL); @@ -225,6 +225,10 @@ uint8_t checkPagingRecord(DuCellCb *cellCb) } handlePageInfoLL(pf, pagInfo->i_s, &(pagInfoLLFromPF->pagInfoList), DELETE); } + if(pagInfoLLFromPF->pagInfoList.first == NULLP) + { + break; + } }while(pagInfo != NULLP); cmHashListDelete(&(cellCb->pagingInfoMap), (PTR)pagInfoLLFromPF); @@ -258,7 +262,6 @@ uint8_t sendDlPcchIndToMac(MacPcchInd *pcchInd) /* Fill Pst */ FILL_PST_DUAPP_TO_MAC(pst, EVENT_MAC_DL_PCCH_IND); - DU_LOG("\nDEBUG --> DU_APP: Sending DL PCCH indication to MAC for cellId[%d]", pcchInd->cellId); ret = (*packMacDlPcchIndOpts[pst.selector])(&pst, pcchInd); if(ret == RFAILED) { @@ -267,7 +270,7 @@ uint8_t sendDlPcchIndToMac(MacPcchInd *pcchInd) } else { - DU_LOG("\nERROR --> DU_APP: sendDlPcchIndToMac(): Received pcchInd is NULLP"); + DU_LOG("\nERROR --> DU APP: sendDlPcchIndToMac(): Received pcchInd is NULLP"); ret = RFAILED; } return ret; @@ -866,7 +869,7 @@ uint8_t insertPagingRecord(DuCellCb* cellCb, DuPagingMsg *rcvdF1apPagingParam, u #if 0 printPageList(&(cellCb->pagingInfoMap)); #endif - + return ROK; @@ -1007,7 +1010,6 @@ uint8_t calcAndFillPagingInfoInCellCb(DuCellCb* cellCb, DuPagingMsg *rcvdF1apPag rcvdF1apPagingParam->pagingFrame = (sfn % MAX_SFN); rcvdF1apPagingParam->i_s = ((uint32_t)(floor(rcvdF1apPagingParam->pagUeId / N)) % ns); - DU_LOG("\nINFO --> DU APP : Successfully filled paging parameter in DuCellCb"); memcpy(&cellCb->tmpPagingInfoOfUe, rcvdF1apPagingParam, sizeof(DuPagingMsg)); } else