From 949ce965c7c9365a8b99bfdc1b3ed5bbea4cf617 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Mon, 26 Apr 2021 11:44:19 +0200 Subject: [PATCH] Fix SCH NR CRC check --- lib/src/phy/phch/sch_nr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/phy/phch/sch_nr.c b/lib/src/phy/phch/sch_nr.c index ed067fb9d..64f430b90 100644 --- a/lib/src/phy/phch/sch_nr.c +++ b/lib/src/phy/phch/sch_nr.c @@ -687,6 +687,7 @@ static int sch_nr_decode(srsran_sch_nr_t* q, // Calculate TB CRC from packed data if (cfg.C == 1) { SCH_INFO_RX("TB: TBS=%d; CRC=%s", tb->tbs, tb->softbuffer.rx->cb_crc[0] ? "OK" : "KO"); + res->crc = true; } else { // More than one uint32_t checksum1 = srsran_crc_checksum_byte(crc_tb, res->payload, tb->tbs);