Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[Epic-ID: ODUHIGH-462][Task-ID: ODUHIGH-481] Adding Trigger for Ul/Dl data
[o-du/l2.git]
/
src
/
5gnrmac
/
mac_rach.c
diff --git
a/src/5gnrmac/mac_rach.c
b/src/5gnrmac/mac_rach.c
index
0100631
..
5190ea8
100644
(file)
--- a/
src/5gnrmac/mac_rach.c
+++ b/
src/5gnrmac/mac_rach.c
@@
-146,8
+146,13
@@
uint8_t createMacRaCb(MacCellCb *cellCb, RachIndInfo *rachIndInfo)
GET_CRNTI(crnti, ueIdx+1);
/* Store in raCb */
GET_CRNTI(crnti, ueIdx+1);
/* Store in raCb */
+ memset(&cellCb->macRaCb[ueIdx], 0, sizeof(MacRaCbInfo));
cellCb->macRaCb[ueIdx].cellId = rachIndInfo->cellId;
cellCb->macRaCb[ueIdx].crnti = crnti;
cellCb->macRaCb[ueIdx].cellId = rachIndInfo->cellId;
cellCb->macRaCb[ueIdx].crnti = crnti;
+
+ /* Initialize MSG4 HARQ PROC CB */
+ cellCb->macRaCb[ueIdx].msg4HqInfo.procId = MAX_NUM_HARQ_PROC;
+
}
/* Store in Rach Indication message to be sent to SCH */
}
/* Store in Rach Indication message to be sent to SCH */
@@
-493,7
+498,7
@@
uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo)
if(ulSchedInfo != NULLP)
{
MacUlSlot *currUlSlot =
if(ulSchedInfo != NULLP)
{
MacUlSlot *currUlSlot =
- &macCb.macCell[cellIdx]->ulSlot[ulSchedInfo->slotIndInfo.slot %
MAX_SLOTS
];
+ &macCb.macCell[cellIdx]->ulSlot[ulSchedInfo->slotIndInfo.slot %
macCb.macCell[cellIdx]->numOfSlots
];
memcpy(&currUlSlot->ulInfo, ulSchedInfo, sizeof(UlSchedInfo));
}
return ROK;
memcpy(&currUlSlot->ulInfo, ulSchedInfo, sizeof(UlSchedInfo));
}
return ROK;