From d2a19c3043e5f62d092d74b3e25291bd60b91193 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Mon, 14 Jun 2021 18:47:08 +0200 Subject: [PATCH] SCH minimum number of iterations to 2 to reduce systematic false alarm probability --- lib/src/phy/phch/sch.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/phy/phch/sch.c b/lib/src/phy/phch/sch.c index 50e41e0ec..aa2499d86 100644 --- a/lib/src/phy/phch/sch.c +++ b/lib/src/phy/phch/sch.c @@ -23,6 +23,7 @@ #include #include +#define SRSRAN_PDSCH_MIN_TDEC_ITERS 2 #define SRSRAN_PDSCH_MAX_TDEC_ITERS 10 #ifdef LV_HAVE_SSE @@ -433,8 +434,9 @@ bool decode_tb_cb(srsran_sch_t* q, crc_ptr = &q->crc_tb; } - // CRC is OK - if (!srsran_crc_checksum_byte(crc_ptr, &data[cb_idx * rlen / 8], len_crc)) { + // CRC is OK and ran the minimum number of iterations + if (!srsran_crc_checksum_byte(crc_ptr, &data[cb_idx * rlen / 8], len_crc) && + (cb_noi >= SRSRAN_PDSCH_MIN_TDEC_ITERS)) { softbuffer->cb_crc[cb_idx] = true; early_stop = true;