X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_cfg_hdl.c;h=c36c72ebd70b7355ab32a42cd66d7cd3cd14848f;hb=refs%2Fchanges%2F07%2F9007%2F5;hp=f354fa430620d1c8220b1715398d4160e054ba16;hpb=54b723e4e533c3bfd0c2258c33f26689b392acbb;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_cfg_hdl.c b/src/5gnrmac/mac_cfg_hdl.c index f354fa430..c36c72ebd 100644 --- a/src/5gnrmac/mac_cfg_hdl.c +++ b/src/5gnrmac/mac_cfg_hdl.c @@ -387,6 +387,28 @@ uint8_t MacSchCellCfgReq(Pst *pst, MacCellCfg *macCellCfg) } } } +#ifdef NR_DRX + /* Drx configuration */ + + schCellCfg.drxInfo.drxOnDurationTimer.onDurationTimerValInMs = macCellCfg->drxInfo.drxOnDurationTimer.onDurationTimerValInMs; + if(!macCellCfg->drxInfo.drxOnDurationTimer.onDurationTimerValInMs) + schCellCfg.drxInfo.drxOnDurationTimer.onDurationtimerValue.subMilliSeconds = \ + macCellCfg->drxInfo.drxOnDurationTimer.onDurationtimerValue.subMilliSeconds; + else + schCellCfg.drxInfo.drxOnDurationTimer.onDurationtimerValue.milliSeconds = \ + macCellCfg->drxInfo.drxOnDurationTimer.onDurationtimerValue.milliSeconds; + schCellCfg.drxInfo.drxInactivityTimer = macCellCfg->drxInfo.drxInactivityTimer; + schCellCfg.drxInfo.drxHarqRttTimerDl = macCellCfg->drxInfo.drxHarqRttTimerDl; + schCellCfg.drxInfo.drxHarqRttTimerUl = macCellCfg->drxInfo.drxHarqRttTimerUl; + schCellCfg.drxInfo.drxRetransmissionTimerDl = macCellCfg->drxInfo.drxRetransmissionTimerDl; + schCellCfg.drxInfo.drxRetransmissionTimerUl = macCellCfg->drxInfo.drxRetransmissionTimerUl; + schCellCfg.drxInfo.drxLongCycleStartOffset.drxLongCycleStartOffsetChoice = macCellCfg->drxInfo.drxLongCycleStartOffset.\ + drxLongCycleStartOffsetChoice; + schCellCfg.drxInfo.drxLongCycleStartOffset.drxLongCycleStartOffsetVal = macCellCfg->drxInfo.drxLongCycleStartOffset.drxLongCycleStartOffsetVal; + schCellCfg.drxInfo.shortDrx.drxShortCycle = macCellCfg->drxInfo.shortDrx.drxShortCycle; + schCellCfg.drxInfo.shortDrx.drxShortCycleTimer = macCellCfg->drxInfo.shortDrx.drxShortCycleTimer; + schCellCfg.drxInfo.drxSlotOffset = macCellCfg->drxInfo.drxSlotOffset; +#endif #ifdef NR_TDD memcpy(&schCellCfg.tddCfg, &macCellCfg->tddCfg, sizeof(TDDCfg));