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-488][Task-ID: ODUHIGH-501] WG8 Alignment | RLC Max Retransmission...
[o-du/l2.git]
/
src
/
5gnrsch
/
sch_crc.c
diff --git
a/src/5gnrsch/sch_crc.c
b/src/5gnrsch/sch_crc.c
index
4aa9f81
..
3730988
100644
(file)
--- a/
src/5gnrsch/sch_crc.c
+++ b/
src/5gnrsch/sch_crc.c
@@
-31,7
+31,7
@@
*
* @details
*
*
* @details
*
- * Function :
schProcess
CrcInd
+ * Function :
SchProc
CrcInd
*
* This function process CRC indication
*
*
* This function process CRC indication
*
@@
-41,13
+41,14
@@
* -# ROK
* -# RFAILED
**/
* -# ROK
* -# RFAILED
**/
-uint8_t
schProcessCrcInd(CrcIndInfo *crcInd, Inst schInst
)
+uint8_t
SchProcCrcInd(Pst *pst, CrcIndInfo *crcInd
)
{
{
- SchCellCb *cell = schCb[schInst].cells[schInst];
uint16_t count=0;
uint8_t ueId=0;
SchUlHqProcCb *hqP = NULLP;
uint16_t count=0;
uint8_t ueId=0;
SchUlHqProcCb *hqP = NULLP;
-
+ Inst schInst = pst->dstInst - SCH_INST_START;
+ SchCellCb *cell = schCb[schInst].cells[schInst];
+
while(count <crcInd->numCrcInd)
{
GET_UE_ID(crcInd->crnti, ueId);
while(count <crcInd->numCrcInd)
{
GET_UE_ID(crcInd->crnti, ueId);
@@
-56,9
+57,9
@@
uint8_t schProcessCrcInd(CrcIndInfo *crcInd, Inst schInst)
if (crcInd->crcInd[count])
{
/* failure case*/
if (crcInd->crcInd[count])
{
/* failure case*/
- if (cell->raCb[ueId-1].msg3HqProc.tbInfo.txCntr < cell->
cellCfg.schRachCfg.
maxMsg3Tx)
+ if (cell->raCb[ueId-1].msg3HqProc.tbInfo.txCntr < cell->maxMsg3Tx)
{
{
-
addUeToBeSchedule
d(cell, ueId);
+
cell->api->SchCrcIn
d(cell, ueId);
cell->raCb[ueId - 1].retxMsg3HqProc = &cell->raCb[ueId - 1].msg3HqProc;
}
else
cell->raCb[ueId - 1].retxMsg3HqProc = &cell->raCb[ueId - 1].msg3HqProc;
}
else
@@
-112,4
+113,4
@@
uint8_t schProcessCrcInd(CrcIndInfo *crcInd, Inst schInst)
}
/**********************************************************************
End of file
}
/**********************************************************************
End of file
- **********************************************************************/
\ No newline at end of file
+ **********************************************************************/