X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_lmm.c;h=8e0c398f4da5cd57b6529f61bc326ceeb2afc253;hb=d349ae65e1495488772f87e5cfa1ae71d9eab075;hp=e3dd82ed0f1f11a2f35428b3d64019533de322d0;hpb=5625a52ad68f6ad93684e68bbbdbaef0d462cf9a;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_lmm.c b/src/5gnrmac/rg_lmm.c index e3dd82ed0..8e0c398f4 100755 --- a/src/5gnrmac/rg_lmm.c +++ b/src/5gnrmac/rg_lmm.c @@ -79,6 +79,9 @@ static int RLOG_MODULE_ID=4096; #endif #include "ss_rbuf.h" #include "ss_rbuf.x" + +#include "rg_cl.h" /* MAC CL defines */ + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ @@ -87,6 +90,8 @@ EXTERN Void rgGetSId ARGS((SystemId *s)); } #endif /* __cplusplus */ +/* Public variable declaration */ +ClCb clGlobalCp; /* forward references */ PRIVATE U16 rgLMMGenCfg ARGS(( @@ -202,6 +207,21 @@ Reason reason; /* reason */ SAttachSRngBuf(SS_RNG_BUF_ULMAC_TO_ULRLC, SS_RBUF_ENT_ULMAC,SS_RNG_TX); SAttachSRngBuf(SS_RNG_BUF_ULMAC_TO_ULRLC, SS_RBUF_ENT_ULRLC,SS_RNG_RX); #endif + + /* Initializing CL control block */ + clGlobalCp.region = region; + clGlobalCp.pool = 0; + clGlobalCp.clCfgDone = FALSE; + clGlobalCp.numOfCells = 0; + clGlobalCp.phyState = PHY_STATE_IDLE; + + if( cmHashListInit(&clGlobalCp.cellCbLst, MAX_NUM_CELL_SUPP, 0x0, FALSE, + CM_HASH_KEYTYPE_DEF, clGlobalCp.region, clGlobalCp.pool ) != ROK ) + { + printf("\n Cellcb hash list initialization failed for MAC CL"); + RETVALUE(RFAILED); + } + RETVALUE(ROK); } /* rgActvInit */ @@ -273,6 +293,8 @@ RgMngmt *cfg; /* config structure */ case STTFUSAP: reason = rgLMMSapCfg(inst,&cfg->t.cfg, cfg->hdr.elmId.elmnt); break; + case STCLCELL: + reason = RgClCellCfgReq(&cfg->t.cfg.s.cellCfg); default: ret = LCM_PRIM_NOK; reason = LCM_REASON_INVALID_ELMNT;