X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_common.c;h=448434cad5e9838c6779572e12dfa2ff6f9d5d8b;hb=62605166db94fd7d52f32de84dea8c7006e0f4c5;hp=f6c8011de05ea4b5ae24e1550ac9d4374a1931e3;hpb=093afd2e854d73d697233396fb9c74ed67bdd615;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_common.c b/src/5gnrsch/sch_common.c index f6c8011de..448434cad 100644 --- a/src/5gnrsch/sch_common.c +++ b/src/5gnrsch/sch_common.c @@ -806,7 +806,7 @@ uint8_t schDlRsrcAllocDlMsg(DlMsgAlloc *dlMsgAlloc, SchCellCb *cell, uint16_t cr pdsch->codeword[cwCount].rvIndex = 0; tbSize = schCalcTbSize(*accumalatedSize + TX_PAYLOAD_HDR_LEN); if(tbSize < *accumalatedSize) - *accumalatedSize = tbSize; + *accumalatedSize = tbSize - TX_PAYLOAD_HDR_LEN; pdsch->codeword[cwCount].tbSize = tbSize; } pdsch->dataScramblingId = cell->cellCfg.phyCellId;