X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_lmm.c;h=7c7275523acbebbd3e37e85374ee271ca026400e;hb=43f9a063a851c5318a609e9966cdc0b30f0abaf5;hp=0e744585620e39461310e4310271d8fb5a78ba01;hpb=bb8df345963bb5ef2e035ead7731c1171e4cbbe0;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_lmm.c b/src/5gnrmac/rg_lmm.c index 0e7445856..7c7275523 100755 --- a/src/5gnrmac/rg_lmm.c +++ b/src/5gnrmac/rg_lmm.c @@ -57,6 +57,7 @@ static int RLOG_MODULE_ID=4096; #include "rgr.h" /* LRG Interface defines */ #include "rg.h" /* MAC defines */ #include "rg_err.h" /* MAC error defines */ +#include "du_log.h" /* header/extern include files (.x) */ #include "gen.x" /* general */ @@ -130,13 +131,13 @@ RgMngmt *cfm, Pst *cfmPst )); -extern U16 cmPackMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm); +extern U16 packMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm); -packMacCellCfgCfm packMacCellCfmOpts[] = +packMacCellCfgConfirm packMacCellCfmOpts[] = { - cmPackMacCellCfgCfm, /* packing for loosely coupled */ + packMacCellCfgCfm, /* packing for loosely coupled */ duHandleMacCellCfgCfm, /* packing for tightly coupled */ - cmPackMacCellCfgCfm, /* packing for light weight loosly coupled */ + packMacCellCfgCfm, /* packing for light weight loosly coupled */ }; /** @@ -2133,6 +2134,14 @@ S16 MacHdlCellCfgReq Inst inst = pst->dstInst; cellCb = rgCb[inst].cell; + MAC_ALLOC(cellCb,sizeof(RgCellCb)); + + if(cellCb == NULLP) + { + DU_LOG("\nMAC : cellCb is NULL at handling of macCellCfg\n"); + return RFAILED; + } + memcpy(&cellCb->macCellCfg,macCellCfg,sizeof(MacCellCfg)); macCellCfgFillCfmPst(pst,&cnfPst);