mirror of https://github.com/PentHertz/srsLTE.git
Fix SCH NR CRC check
This commit is contained in:
parent
e1ff824cc2
commit
949ce965c7
|
@ -687,6 +687,7 @@ static int sch_nr_decode(srsran_sch_nr_t* q,
|
||||||
// Calculate TB CRC from packed data
|
// Calculate TB CRC from packed data
|
||||||
if (cfg.C == 1) {
|
if (cfg.C == 1) {
|
||||||
SCH_INFO_RX("TB: TBS=%d; CRC=%s", tb->tbs, tb->softbuffer.rx->cb_crc[0] ? "OK" : "KO");
|
SCH_INFO_RX("TB: TBS=%d; CRC=%s", tb->tbs, tb->softbuffer.rx->cb_crc[0] ? "OK" : "KO");
|
||||||
|
res->crc = true;
|
||||||
} else {
|
} else {
|
||||||
// More than one
|
// More than one
|
||||||
uint32_t checksum1 = srsran_crc_checksum_byte(crc_tb, res->payload, tb->tbs);
|
uint32_t checksum1 = srsran_crc_checksum_byte(crc_tb, res->payload, tb->tbs);
|
||||||
|
|
Loading…
Reference in New Issue