Merge "[Epic-ID: ODUHIGH-475][Task-ID: ODUHIGH-572] Fix LWR_MAC creation during PHY...
[o-du/l2.git] / src / 5gnrmac / rg_lmm.c
index a5fa5f0..69fad5b 100755 (executable)
@@ -103,7 +103,7 @@ static Void rgLMMFillCfmPst ARGS((
  *
  * @details
  *
- *     Function : rgActvInit
+ *     Function : macActvInit
  *     
  *     This function is supplied as one of parameters during MAC's 
  *     task registration. SSI will invoke this function once, after
@@ -117,7 +117,7 @@ static Void rgLMMFillCfmPst ARGS((
  *  @return  S16
  *      -# ROK
  **/
-S16 rgActvInit
+uint8_t macActvInit
 (
 Ent entity,            /* entity */
 Inst inst,             /* instance */
@@ -169,15 +169,12 @@ Reason reason          /* reason */
    SAttachSRngBuf(SS_RNG_BUF_ULMAC_TO_ULRLC, SS_RBUF_ENT_ULRLC,SS_RNG_RX);
 #endif
 
-   /* Initialize Scheduler as well */
-   schActvInit(ENTMAC, SCH_INST_START, DFLT_REGION, PWR_UP);
-
    /* Initialize lower mac */
    lwrMacLayerInit(region, 0);
 
    return ROK;
 
-} /* rgActvInit */
+} /* macActvInit */
 \f
 /**
  * @brief Layer Manager Configuration request handler. 
@@ -211,7 +208,7 @@ RgMngmt  *cfg     /* config structure  */
 
 
 
-   DU_LOG("\nINFO  -->  MAC : Received CfgReq for MAC layer, Entity = %d, Instance = %d", pst->srcEnt, pst->srcInst);
+   DU_LOG("\nINFO    -->  MAC : Received CfgReq for MAC layer, Entity = %d, Instance = %d", pst->srcEnt, pst->srcInst);
 
    RG_IS_INST_VALID(pst->dstInst);
    inst = pst->dstInst - RG_INST_START;