X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_common.c;h=bde41bc6e74c70a0d4a990f1177114d9c1c566bd;hb=cad4905437d02b16c3916903a42f501eb8f7b1ac;hp=9027d75a1399b881bf6cae74567b2191d3d95bb9;hpb=15c1e4f846f9935150615a5e9e7f94500bd62790;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_common.c b/src/5gnrsch/sch_common.c index 9027d75a1..bde41bc6e 100644 --- a/src/5gnrsch/sch_common.c +++ b/src/5gnrsch/sch_common.c @@ -463,7 +463,7 @@ uint8_t schDlRsrcAllocMsg4(DlMsgAlloc *msg4Alloc, SchCellCb *cell, uint16_t slot uint16_t schAllocPucchResource(SchCellCb *cell,uint16_t crnti, uint16_t slot) { uint8_t k1 = 1; /* dl-DataToUL-ACK RRC parameter will received from DU-APP msg4-pucch config */ - uint16_t pucchSlot = (slot + k1) % SCH_NUM_SLOTS; + uint16_t pucchSlot = (slot + k1) % cell->numSlots; SchUlSlotInfo *schUlSlotInfo = NULLP; schUlSlotInfo = cell->schUlSlotInfo[pucchSlot];