From 6cc7e22132b5665aead20558c929b477fd899ffd Mon Sep 17 00:00:00 2001 From: Cedric Roux Date: Tue, 22 Sep 2020 12:44:51 +0200 Subject: [PATCH] nr: bugfix: set ul_valid_re_per_slot properly After the UE disconnects, the next connection fails because the gNB cannot decode Msg3. The root cause seems to be this ul_valid_re_per_slot not set to 0. Setting it before the test fixes the problem and does not seem to impact anything else. --- openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c b/openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c index 3fd7966ce7..b27e7496f7 100644 --- a/openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c +++ b/openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c @@ -1147,9 +1147,9 @@ int nr_rx_pusch(PHY_VARS_gNB *gNB, //--------------------- RBs extraction --------------------- //---------------------------------------------------------- - if (nb_re_pusch > 0) { + gNB->pusch_vars[ulsch_id]->ul_valid_re_per_slot[symbol] = nb_re_pusch; - gNB->pusch_vars[ulsch_id]->ul_valid_re_per_slot[symbol] = nb_re_pusch; + if (nb_re_pusch > 0) { start_meas(&gNB->ulsch_rbs_extraction_stats); nr_ulsch_extract_rbs_single(gNB->common_vars.rxdataF,