PUSCH PDU for msg3 and UL-CCCH Ind flow completion
[o-du/l2.git] / src / 5gnrsch / sch_common.c
index 6c00b57..8a1ad71 100644 (file)
@@ -314,10 +314,12 @@ uint8_t schUlResAlloc(SchCellCb *cell, Inst schInst)
        
        if(ulAlloc->schPuschInfo)
        {
+          ulSchInfo.crnti = cell->raCb[0].tcrnti;
                ulSchInfo.dataType |= SCH_DATATYPE_PUSCH;
                memcpy(&ulSchInfo.schPuschInfo, ulAlloc->schPuschInfo,
                                sizeof(SchPuschInfo));
                SCH_FREE(ulAlloc->schPuschInfo, sizeof(SchPuschInfo));
+               ulAlloc->schPuschInfo = NULL;
        }
 
        //send msg to MAC