From 8140e62a7f318f0f1330a150e7f4a8fae429691d Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 11 Feb 2022 15:17:50 +0100 Subject: [PATCH] GNB-PHY: fix max PUSCH LDPC iterations --- lib/src/phy/gnb/gnb_ul.c | 2 +- srsenb/src/phy/nr/slot_worker.cc | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/src/phy/gnb/gnb_ul.c b/lib/src/phy/gnb/gnb_ul.c index 13fd7a0cc..f3f77c4bb 100644 --- a/lib/src/phy/gnb/gnb_ul.c +++ b/lib/src/phy/gnb/gnb_ul.c @@ -359,4 +359,4 @@ uint32_t srsran_gnb_ul_pusch_info(srsran_gnb_ul_t* q, len += srsran_csi_meas_info_short(&q->dmrs.csi, &str[len], str_len - len); return len; -} \ No newline at end of file +} diff --git a/srsenb/src/phy/nr/slot_worker.cc b/srsenb/src/phy/nr/slot_worker.cc index 0dba28c1b..c887a1d1a 100644 --- a/srsenb/src/phy/nr/slot_worker.cc +++ b/srsenb/src/phy/nr/slot_worker.cc @@ -80,13 +80,14 @@ bool slot_worker::init(const args_t& args) } // Prepare UL arguments - srsran_gnb_ul_args_t ul_args = {}; - ul_args.pusch.measure_time = true; - ul_args.pusch.measure_evm = true; - ul_args.pusch.max_layers = args.nof_rx_ports; - ul_args.pusch.max_prb = args.nof_max_prb; - ul_args.nof_max_prb = args.nof_max_prb; - ul_args.pusch_min_snr_dB = args.pusch_min_snr_dB; + srsran_gnb_ul_args_t ul_args = {}; + ul_args.pusch.measure_time = true; + ul_args.pusch.measure_evm = true; + ul_args.pusch.max_layers = args.nof_rx_ports; + ul_args.pusch.sch.max_nof_iter = args.pusch_max_its; + ul_args.pusch.max_prb = args.nof_max_prb; + ul_args.nof_max_prb = args.nof_max_prb; + ul_args.pusch_min_snr_dB = args.pusch_min_snr_dB; // Initialise UL if (srsran_gnb_ul_init(&gnb_ul, rx_buffer[0], &ul_args) < SRSRAN_SUCCESS) {