From aef0397658e81dd56061bbf2e30c3fc65722f300 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 5 Feb 2021 09:51:12 +0100 Subject: [PATCH] SRSUE: NR worker reset Tx buffer and PUSCH data payload bytes from 0 to 255 --- srsue/src/phy/nr/cc_worker.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srsue/src/phy/nr/cc_worker.cc b/srsue/src/phy/nr/cc_worker.cc index bf57aaf5b..4ba26f551 100644 --- a/srsue/src/phy/nr/cc_worker.cc +++ b/srsue/src/phy/nr/cc_worker.cc @@ -53,7 +53,7 @@ cc_worker::cc_worker(uint32_t cc_idx_, srslog::basic_logger& log, state* phy_sta // Initialise data with numbers tx_data.resize(SRSLTE_SCH_NR_MAX_NOF_CB_LDPC * SRSLTE_LDPC_MAX_LEN_ENCODED_CB / 8); for (uint32_t i = 0; i < SRSLTE_SCH_NR_MAX_NOF_CB_LDPC * SRSLTE_LDPC_MAX_LEN_ENCODED_CB / 8; i++) { - tx_data[i] = i % 8; + tx_data[i] = i % 255U; } } @@ -263,6 +263,7 @@ bool cc_worker::work_ul() // Notify MAC about PUSCH found grant // ... + srslte_softbuffer_tx_reset(&softbuffer_tx); pusch_cfg.grant.tb[0].softbuffer.tx = &softbuffer_tx; // Encode PUSCH transmission