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-516][Task-ID: ODUHIGH-523] Statistics Request API and Timer Based...
[o-du/l2.git]
/
src
/
5gnrsch
/
sch_rach.c
diff --git
a/src/5gnrsch/sch_rach.c
b/src/5gnrsch/sch_rach.c
index
a4a48a0
..
e4f6fb4
100644
(file)
--- a/
src/5gnrsch/sch_rach.c
+++ b/
src/5gnrsch/sch_rach.c
@@
-40,6
+40,7
@@
#include "du_app_mac_inf.h"
#include "mac_sch_interface.h"
#include "sch.h"
#include "du_app_mac_inf.h"
#include "mac_sch_interface.h"
#include "sch.h"
+#include "sch_tmr.h"
#include "sch_utils.h"
/**
#include "sch_utils.h"
/**
@@
-74,7
+75,7
@@
bool schCheckPrachOcc(SchCellCb *cell, SlotTimingInfo prachOccasionTimingInfo)
if((prachOccasionTimingInfo.sfn%x) == y)
{
if((prachOccasionTimingInfo.sfn%x) == y)
{
- subFrame = prachOccasionTimingInfo.slot/pow(2, cell->
cellCfg.
numerology);
+ subFrame = prachOccasionTimingInfo.slot/pow(2, cell->numerology);
/* check for subFrame number */
if ((1 << subFrame) & prachSubframe)
/* check for subFrame number */
if ((1 << subFrame) & prachSubframe)
@@
-555,15
+556,15
@@
bool schProcessRaReq(Inst schInst, SchCellCb *cell, SlotTimingInfo currTime, uin
RaRspWindowStatus windowStatus=0;
#ifdef NR_TDD
RaRspWindowStatus windowStatus=0;
#ifdef NR_TDD
- totalCfgSlot = calculateSlotPatternLength(cell->cellCfg.s
csCommon
, cell->cellCfg.tddCfg.tddPeriod);
+ totalCfgSlot = calculateSlotPatternLength(cell->cellCfg.s
sbScs
, cell->cellCfg.tddCfg.tddPeriod);
#endif
k0K1InfoTbl = &cell->k0K1InfoTbl;
if(cell->raReq[ueId-1]->isCFRA == false)
{
msg3K2InfoTbl = &cell->msg3K2InfoTbl;
#endif
k0K1InfoTbl = &cell->k0K1InfoTbl;
if(cell->raReq[ueId-1]->isCFRA == false)
{
msg3K2InfoTbl = &cell->msg3K2InfoTbl;
- puschMu = cell->
cellCfg.
numerology;
+ puschMu = cell->numerology;
msg3Delta = puschDeltaTable[puschMu];
msg3Delta = puschDeltaTable[puschMu];
- msg3MinSchTime = minMsg3SchTime[cell->
cellCfg.
numerology];
+ msg3MinSchTime = minMsg3SchTime[cell->numerology];
}
/* Calculating time frame to send DCI for RAR */
}
/* Calculating time frame to send DCI for RAR */
@@
-861,7
+862,7
@@
uint8_t SchProcRachInd(Pst *pst, RachIndInfo *rachInd)
raReq->winStartTime.slot = rachInd->timingInfo.slot;
/* Converting window size from ms to number of slots */
raReq->winStartTime.slot = rachInd->timingInfo.slot;
/* Converting window size from ms to number of slots */
- slotDuration = (1 / pow(2, cell->
cellCfg.
numerology));
+ slotDuration = (1 / pow(2, cell->numerology));
winNumSlots = (float)cell->cellCfg.ulCfgCommon.schInitialUlBwp.schRachCfg.prachCfgGeneric.raRspWindow / slotDuration;
/* Adding window size to window start time to get window end time */
winNumSlots = (float)cell->cellCfg.ulCfgCommon.schInitialUlBwp.schRachCfg.prachCfgGeneric.raRspWindow / slotDuration;
/* Adding window size to window start time to get window end time */