X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_slot_ind.c;h=130ed2b1fa0cd3c83188e585c34a5eb5fbbef315;hb=694d8fa8539d4b69710b61d01d5a0535bb98716e;hp=47346c3bdef3685ca6cd10908f8ec6e118adec69;hpb=fe93cf1cdce9f0e03264028b09660dc44e9b03e6;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_slot_ind.c b/src/5gnrsch/sch_slot_ind.c index 47346c3bd..130ed2b1f 100644 --- a/src/5gnrsch/sch_slot_ind.c +++ b/src/5gnrsch/sch_slot_ind.c @@ -118,6 +118,9 @@ uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst) { int ret = ROK; uint8_t ssb_rep; + uint16_t sfn = slotInd->sfn; + uint16_t slot = slotInd->slot; + uint16_t sfnSlot = 0; DlBrdcstAlloc dlBrdcstAlloc; dlBrdcstAlloc.ssbTrans = NO_SSB; dlBrdcstAlloc.sib1Trans = NO_SIB1; @@ -130,11 +133,18 @@ uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst) cell = schCb[schInst].cells[schInst]; ssb_rep = cell->cellCfg.ssbSchCfg.ssbPeriod; memcpy(&cell->slotInfo, slotInd, sizeof(SlotIndInfo)); - memcpy(&dlBrdcstAlloc.slotIndInfo, slotInd, sizeof(SlotIndInfo)); dlBrdcstAlloc.cellId = cell->cellId; dlBrdcstAlloc.ssbIdxSupported = 1; - uint16_t sfnSlot = (slotInd->sfn * 10) + slotInd->slot; + if((slot + SCHED_DELTA) >= 10) + { + sfn++; + } + slot = ((slot + SCHED_DELTA) % 10 ); + sfnSlot = ((sfn * 10) + slot); + + dlBrdcstAlloc.slotIndInfo.sfn = sfn; + dlBrdcstAlloc.slotIndInfo.slot = slot; /* Identify SSB ocassion*/ if (sfnSlot % SCH_MIB_TRANS == 0)