X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_tom.c;h=e4f3127b60209e74f6e991254b86076bf112ba2c;hb=4fc13842d17b3cce83876c95cba9eef4b2a413dd;hp=dd3b1e0438977409e2d7e31a8277d018a1afb756;hpb=5ea4c59cb4dd37164953218b0bd355284e11d22c;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_tom.c b/src/5gnrmac/rg_tom.c index dd3b1e043..e4f3127b6 100755 --- a/src/5gnrmac/rg_tom.c +++ b/src/5gnrmac/rg_tom.c @@ -76,8 +76,9 @@ invoked by PHY towards MAC #include "rgm.x" /* layer management typedefs for MAC */ #include "rgm.h" /* layer management typedefs for MAC */ #include "du_app_mac_inf.h" +#include "mac.h" #include "rg.x" /* typedefs for MAC */ - +#include "lwr_mac_fsm.h" #ifdef MAC_RLC_UL_RBUF #include "ss_rbuf.h" #include "ss_rbuf.x" @@ -611,6 +612,13 @@ SlotIndInfo slotInd } } #endif + +/* Trigger for DL TTI REQ */ + CmLteTimingInfo timingInfo; + RGADDTOCRNTTIME(cellCb->crntTime, timingInfo, TFU_DELTA); + handleDlTtiReq(&timingInfo); + handleUlTtiReq(&timingInfo); + dlSf = &cellCb->subFrms[(slotInd.slot % RG_NUM_SUB_FRAMES)]; if((dlSf->txDone == TRUE) || @@ -1504,8 +1512,8 @@ Inst inst; #ifdef LTEMAC_SPS Bool isSpsRnti=FALSE; Pst schPst1; - RgInfSpsRelInfo relInfo; - Bool spsToBeActvtd = FALSE; + // RgInfSpsRelInfo relInfo; + Bool spsToBeActvtd = FALSE; U16 sduSize = 0; #endif U32 lcgBytes[RGINF_MAX_LCG_PER_UE]; @@ -1657,10 +1665,12 @@ Inst inst; ueCb->ul.implRelCntr = 0; ueCb->ul.explRelCntr = 0; - relInfo.cellSapId = cellCb->schInstMap.cellSapId; +#if 0 + relInfo.cellSapId = cellCb->schInstMap.cellSapId; relInfo.cRnti = ueCb->ueId; - relInfo.isExplRel = FALSE; + relInfo.isExplRel= FALSE; //TODO: commented for compilation without SCH RgMacSchSpsRel(&schPst1, &relInfo); +#endif } } else