X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Frg_sch_cmn.c;h=924c48831ff000c2e3aca5121fb12ca6921aa1ea;hb=41eaaec52d3fe0d5c003e6c0676e9a18fc8ba37a;hp=2a6cf68bebae8e58de1486476d2985300484a233;hpb=834004e09017b5b86cb738be98a7a1be79c0a9b0;p=o-du%2Fl2.git diff --git a/src/5gnrsch/rg_sch_cmn.c b/src/5gnrsch/rg_sch_cmn.c index 2a6cf68be..924c48831 100755 --- a/src/5gnrsch/rg_sch_cmn.c +++ b/src/5gnrsch/rg_sch_cmn.c @@ -44,9 +44,6 @@ #include "rg_sch_inf.h" #include "rg_sch.h" #include "rg_sch_cmn.h" -#include "rl_interface.h" -#include "rl_common.h" - /* header/extern include files (.x) */ #include "tfu.x" /* TFU types */ #include "lrg.x" /* layer management typedefs for MAC */ @@ -55,6 +52,7 @@ #include "rg_sch_inf.x" /* typedefs for Scheduler */ #include "rg_sch.x" /* typedefs for Scheduler */ #include "rg_sch_cmn.x" /* typedefs for Scheduler */ +#include "sch_utils.h" #ifdef MAC_SCH_STATS #include "lrg.x" /* Stats Structures */ #endif /* MAC_SCH_STATS */ @@ -28100,10 +28098,10 @@ uint8_t newTxMode if(!(ueDl->mimoInfo.forceTD & RG_SCH_CMN_TD_TXMODE_RECFG)) { /* Mem Alloc */ - if(SGetSBuf(cell->rgmSap->sapCfg.sapPst.region, - cell->rgmSap->sapCfg.sapPst.pool, (Data**)&txModeChgInd, - sizeof(RgmTransModeInd)) != ROK) + SCH_ALLOC(txModeChgInd, sizeof(RgmTransModeInd)); + if(txModeChgInd == NULLP) { + DU_LOG("ERROR --> SCH : rgSCHCmnSendTxModeInd(): Memory allocation failed"); return; } RG_SCH_FILL_RGM_TRANSMODE_IND(ue->ueId, cell->cellId, newTxMode, txModeChgInd);