Removed all zero condition from LDPC decoding

master
Xavier Arteaga 4 years ago committed by Andre Puschmann
parent 248a52b33d
commit 35840d6bc1

@ -647,18 +647,9 @@ static int sch_nr_decode(srsran_sch_nr_t* q,
// Check if CB is all zeros // Check if CB is all zeros
uint32_t cb_len = cfg.Kp - cfg.L_cb; uint32_t cb_len = cfg.Kp - cfg.L_cb;
bool all_zeros = true;
for (uint32_t i = 0; i < cb_len && all_zeros; i++) {
all_zeros = (q->temp_cb[i] == 0);
}
tb->softbuffer.rx->cb_crc[r] = (ret != 0) && (!all_zeros); tb->softbuffer.rx->cb_crc[r] = (ret != 0);
SCH_INFO_RX("CB %d/%d iter=%d CRC=%s all_zeros=%s", SCH_INFO_RX("CB %d/%d iter=%d CRC=%s", r, cfg.C, n_iter_cb, tb->softbuffer.rx->cb_crc[r] ? "OK" : "KO");
r,
cfg.C,
n_iter_cb,
tb->softbuffer.rx->cb_crc[r] ? "OK" : "KO",
all_zeros ? "yes" : "no");
// CB Debug trace // CB Debug trace
if (SRSRAN_DEBUG_ENABLED && srsran_verbose >= SRSRAN_VERBOSE_DEBUG && !handler_registered) { if (SRSRAN_DEBUG_ENABLED && srsran_verbose >= SRSRAN_VERBOSE_DEBUG && !handler_registered) {

Loading…
Cancel
Save