From 47233d9133bc657fcb47df4a9d6a447a841a0967 Mon Sep 17 00:00:00 2001 From: sphoorthi Date: Mon, 31 May 2021 20:59:38 +0530 Subject: [PATCH] schGetSlotSymbFrmt fixes for TDD Change-Id: I024c46b4d70ef3125f7fd8caf88b8798eb6e5581 Signed-off-by: sphoorthi --- src/5gnrsch/sch_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/5gnrsch/sch_common.c b/src/5gnrsch/sch_common.c index e064b8376..2e74c88ad 100644 --- a/src/5gnrsch/sch_common.c +++ b/src/5gnrsch/sch_common.c @@ -205,7 +205,8 @@ void schPrachResAlloc(SchCellCb *cell, UlSchedInfo *ulSchedInfo, SlotIndInfo pra { /* prach ocassion present in this subframe */ #ifdef NR_TDD - if(UL_SLOT != schGetSlotSymbFrmt(prachOccasionTimingInfo.slot, cell->slotFrmtBitMap)) + if(UL_SLOT != schGetSlotSymbFrmt(prachOccasionTimingInfo.slot%cell->numSlotsInPeriodicity,\ + cell->slotFrmtBitMap)) { DU_LOG("\nERROR --> SCH : PrachCfgIdx %d doesn't support UL slot", prachCfgIdx); } -- 2.16.6