X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_cell_mgr.c;h=0a49c0d463def3e17bd3be56b6dad61994a0e228;hb=cfe7ea3ab6cb69d18ed91d79c1bf66b3bc8bdc98;hp=c7f17e662bdddf95ff621ea87a774a0328fb6712;hpb=5831bf6b3454aa200a92cd3e84209650734e4863;p=o-du%2Fl2.git diff --git a/src/du_app/du_cell_mgr.c b/src/du_app/du_cell_mgr.c index c7f17e662..0a49c0d46 100644 --- a/src/du_app/du_cell_mgr.c +++ b/src/du_app/du_cell_mgr.c @@ -27,7 +27,6 @@ #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" @@ -35,9 +34,10 @@ #include "du_mgr.h" #include "odu_common_codec.h" #include "du_cell_mgr.h" +#include "du_f1ap_msg_hdl.h" extern DuCfgParams duCfgParam; -extern S16 duBuildAndSendMacCellCfg(); +extern uint8_t duBuildAndSendMacCellCfg(); /******************************************************************* * @@ -55,15 +55,15 @@ extern S16 duBuildAndSendMacCellCfg(); * RFAILED - failure * * ****************************************************************/ -S16 procCellsToBeActivated(Cells_to_be_Activated_List_t cellsToActivate) +uint8_t procCellsToBeActivated(Cells_to_be_Activated_List_t cellsToActivate) { - U16 idx = 0; - S16 ret = ROK; + uint16_t idx = 0; + uint8_t ret = ROK; for(idx=0; idx\ @@ -117,7 +117,7 @@ S16 procCellsToBeActivated(Cells_to_be_Activated_List_t cellsToActivate) * Functionality: Processes F1 Setup Response sent by CU * * @params[in] F1AP_PDU_t ASN decoded F1AP message -* @return ROK - success +* @return ROK - success * RFAILED - failure * * ****************************************************************/ @@ -129,7 +129,7 @@ uint8_t procF1SetupRsp(F1AP_PDU_t *f1apMsg) F1SetupRsp f1SetRspDb; GNB_CU_Name_t *cuName; RRC_Version_t *rrc_Ver; - U16 idx; + uint16_t idx; DU_LOG("\nDU_APP : F1 Setup Response received"); printf("\nDU_APP : F1 Setup Response received"); @@ -177,47 +177,14 @@ uint8_t procF1SetupRsp(F1AP_PDU_t *f1apMsg) /* TODO :Check the deallocation */ #if 0 - SPutSBuf(DU_APP_MEM_REGION, DU_POOL,(Data *)&(f1SetupRsp->protocolIEs.list.array),\ - (Size)elementCnt * sizeof(F1SetupResponseIEs_t *)); - SPutSBuf(DU_APP_MEM_REGION, DU_POOL,(Data *)&(f1apMsg->choice.successfulOutcome),\ - (Size)sizeof(SuccessfulOutcome_t)); - SPutSBuf(DU_APP_MEM_REGION, DU_POOL,(Data *)&f1apMsg,(Size)sizeof(F1AP_PDU_t)); + DU_FREE(f1SetupRsp->protocolIEs.list.array,(Size)elementCnt * sizeof(F1SetupResponseIEs_t *)); + DU_FREE(f1apMsg->choice.successfulOutcome,(Size)sizeof(SuccessfulOutcome_t)); + DU_FREE(f1apMsg,(Size)sizeof(F1AP_PDU_t)); #endif return ret; } -/******************************************************************* - * - * @brief Processes GNB DU config update ack - * - * @details - * - * Function : procGNBDUCfgUpdAck - * - * Functionality: Processes GNB DU config update ack - * - * @params[in] F1AP_PDU_t ASN decoded F1AP message - * @return ROK - success - * RFAILED - failure - * - * ****************************************************************/ -S16 procGNBDUCfgUpdAck(F1AP_PDU_t *f1apMsg) -{ - DU_LOG("\nF1AP : GNB-DU config update acknowledgment received"); -/* TODO :Check the deallocation */ -#if 0 - SPutSBuf(DU_APP_MEM_REGION,DU_POOL,(Data*)&(gNBDuCfgAck->protocolIEs.list.array),\ - (Size)elementCnt * sizeof(GNBDUConfigurationUpdateAcknowledgeIEs_t -)); - SPutSBuf(DU_APP_MEM_REGION,DU_POOL,(Data*)&(f1apMsg->choice.successfulOutcome),\ - (Size)sizeof(SuccessfulOutcome_t)); - SPutSBuf(DU_APP_MEM_REGION,DU_POOL,(Data*)&f1apMsg,(Size)sizeof(F1AP_PDU_t)); -#endif - return ROK; -} - - /********************************************************************** End of file **********************************************************************/