[Epic-ID: ODUHIGH-462][Task-ID: ODUHIGH-472] Implementation of drx timer
[o-du/l2.git] / src / 5gnrmac / mac_ue_mgr.c
index b83130e..2e7e9d6 100644 (file)
@@ -138,7 +138,7 @@ uint8_t fillMacCellGroupCfg(MacCellGrpCfg macCellGrp, SchMacCellGrpCfg  *macCell
 
 #ifdef NR_DRX
    /* Copy Drx configuration */
-
+   macCellGrpCfg->drxCfgPresent = true;
    macCellGrpCfg->drxCfg.drxOnDurationTimer.onDurationTimerValInMs = macCellGrp.drxCfg.drxOnDurationTimer.onDurationTimerValInMs;
    if(!macCellGrp.drxCfg.drxOnDurationTimer.onDurationTimerValInMs)
       macCellGrpCfg->drxCfg.drxOnDurationTimer.onDurationtimerValue.subMilliSeconds = \
@@ -1710,6 +1710,12 @@ uint8_t fillSchUeCfg(Pst *pst, SchUeCfg *schUeCfg, MacUeCfg *ueCfg)
       DU_LOG("\nERROR  -->  MAC : Failed to copy LCs at fillSchUeCfg()");
       return ret;
    }
+#ifdef NR_DRX
+   if(ueCfg->drxConfigIndicatorRelease)
+   {
+      schUeCfg->drxConfigIndicatorRelease = true;
+   }
+#endif
    return ret;
 }