From a03c78a7771330a4f9770812af8bed6f125dfa98 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Mon, 8 Mar 2021 16:50:47 +0100 Subject: [PATCH] Fix NR-PUSCH defect --- lib/src/phy/phch/pusch_nr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/phy/phch/pusch_nr.c b/lib/src/phy/phch/pusch_nr.c index 89b5159cd..519c3b20c 100644 --- a/lib/src/phy/phch/pusch_nr.c +++ b/lib/src/phy/phch/pusch_nr.c @@ -592,7 +592,6 @@ static int pusch_nr_gen_mux_uci(srslte_pusch_nr_t* q, const srslte_uci_cfg_nr_t* // Check if UCI multiplexing is NOT required if (!q->uci_mux) { - q->G_ulsch = 0; return SRSLTE_SUCCESS; } @@ -1133,7 +1132,7 @@ static inline int pusch_nr_decode_codeword(srslte_pusch_nr_t* q, } // Decode Ul-SCH - if (q->G_ulsch != 0) { + if (tb->nof_bits != 0) { if (srslte_ulsch_nr_decode(&q->sch, &cfg->sch_cfg, tb, llr, res->payload, &res->crc) < SRSLTE_SUCCESS) { ERROR("Error in SCH decoding"); return SRSLTE_ERROR;