X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_cfg_hdl.c;h=2293082cb55c26a4e53b2a60b5f9f777c7de7595;hb=65443172dd60a6ea312bd3a15959dbf54ad7f045;hp=08de5389d3a8c996a6ce149aef5530e5ca82a828;hpb=aee73991f728cc127d1ed76d5a52571d916235a4;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_cfg_hdl.c b/src/5gnrmac/mac_cfg_hdl.c index 08de5389d..2293082cb 100644 --- a/src/5gnrmac/mac_cfg_hdl.c +++ b/src/5gnrmac/mac_cfg_hdl.c @@ -20,12 +20,11 @@ #include "common_def.h" #include "lrg.h" #include "lrg.x" -#include "rgu.h" -#include "rgu.x" #include "du_app_mac_inf.h" #include "mac_sch_interface.h" #include "lwr_mac_upr_inf.h" #include "mac.h" +#include "rlc_mac_inf.h" #include "mac_upr_inf_api.h" #include "lwr_mac.h" #include "lwr_mac_fsm.h" @@ -63,7 +62,7 @@ SchCellCfgFunc SchCellCfgOpts[] = * @return * -# ROK **/ -PUBLIC uint8_t MacSchGenCfgReq(Pst *pst, RgMngmt *cfg) +uint8_t MacSchGenCfgReq(Pst *pst, RgMngmt *cfg) { printf("\nReceived Scheduler gen config at MAC"); pst->dstInst = DEFAULT_CELLS + 1; @@ -87,7 +86,7 @@ PUBLIC uint8_t MacSchGenCfgReq(Pst *pst, RgMngmt *cfg) * @return * -# ROK **/ -PUBLIC uint8_t SchSendCfgCfm(Pst *pst, RgMngmt *cfm) +uint8_t SchSendCfgCfm(Pst *pst, RgMngmt *cfm) { printf("\nSending Scheduler config confirm to DU APP"); pst->dstEnt = ENTDUAPP; @@ -119,10 +118,10 @@ uint8_t MacProcCellCfgReq(Pst *pst, MacCellCfg *macCellCfg) { Pst cfmPst; uint16_t cellIdx; - uint16_t ret = ROK; + uint8_t ret = ROK; MacCellCb *macCellCb; - memset((uint8_t *)&cfmPst, 0, sizeof(Pst)); + memset(&cfmPst, 0, sizeof(Pst)); MAC_ALLOC(macCellCb, sizeof(MacCellCb)); if(macCellCb == NULLP) @@ -196,7 +195,7 @@ uint8_t MacSchCellCfgReq(Pst *pst, MacCellCfg *macCellCfg) Pst cfgPst; uint8_t ret; - memset((uint8_t *)&cfgPst, 0, sizeof(Pst)); + memset(&cfgPst, 0, sizeof(Pst)); schCellCfg.cellId = macCellCfg->cellId; schCellCfg.phyCellId = macCellCfg->phyCellId; schCellCfg.bandwidth = macCellCfg->dlCarrCfg.bw; @@ -312,7 +311,7 @@ void MacSendCellCfgCfm(uint16_t cellId, uint8_t response) uint16_t cellIdx; MacCellCfgCfm macCellCfgCfm; - memset((uint8_t *)&pst, 0, sizeof(Pst)); + memset(&pst, 0, sizeof(Pst)); GET_CELL_IDX(cellId, cellIdx); macCellCfgCfm.cellId = macCb.macCell[cellIdx]->macCellCfg.cellId;