From 574fd8594831f3d516d097ae29e3172b3c208b71 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Mon, 18 Jul 2016 13:46:02 +0200 Subject: [PATCH] working on ul --- srslte/include/srslte/enb/enb_ul.h | 1 + srslte/lib/phch/sch.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/srslte/include/srslte/enb/enb_ul.h b/srslte/include/srslte/enb/enb_ul.h index bb22cb8f0..f3c320f15 100644 --- a/srslte/include/srslte/enb/enb_ul.h +++ b/srslte/include/srslte/enb/enb_ul.h @@ -82,6 +82,7 @@ typedef struct { srslte_dci_location_t location; uint32_t rv_idx; uint32_t current_tx_nb; + bool needs_pdcch; uint8_t *data; srslte_softbuffer_rx_t *softbuffer; } srslte_enb_ul_pusch_t; diff --git a/srslte/lib/phch/sch.c b/srslte/lib/phch/sch.c index 6d759783f..0550a492f 100644 --- a/srslte/lib/phch/sch.c +++ b/srslte/lib/phch/sch.c @@ -463,10 +463,10 @@ static int decode_tb(srslte_sch_t *q, par_tx = ((uint32_t) parity[0])<<16 | ((uint32_t) parity[1])<<8 | ((uint32_t) parity[2]); if (!par_rx) { - INFO("\n\tCAUTION!! Received all-zero transport block\n\n", 0); + printf("Warning: Received all-zero transport block\n\n", 0); } - if (par_rx == par_tx) { + if (par_rx == par_tx && par_rx) { INFO("TB decoded OK\n",i); return SRSLTE_SUCCESS; } else {