From 87c83f72cb25578e0a4ed2f65b0522f9b3229259 Mon Sep 17 00:00:00 2001 From: Francesco Mani Date: Tue, 18 Feb 2025 10:25:02 +0100 Subject: [PATCH] Fix to receive SIB1 in re-establishment During re-establishment we still have a valid SIB1 so we don't decode it again. Then the UE never moves out of UE_RECEIVING_SIB, making re-establishment impossible. This fixes addresses this. Fixes: 11b87d8744b5 ("NR UE: RRC layer now explicitly tells MAC layer when the RA procedure can be started)" --- openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c b/openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c index 1a59a89aed..4748a65c3d 100644 --- a/openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c +++ b/openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c @@ -226,7 +226,7 @@ void nr_ue_decode_mib(NR_UE_MAC_INST_t *mac, int cc_id) if (get_softmodem_params()->phy_test) mac->state = UE_CONNECTED; else if (mac->state == UE_NOT_SYNC) { - if (IS_SA_MODE(get_softmodem_params())) + if (IS_SA_MODE(get_softmodem_params()) && mac->get_sib1) mac->state = UE_RECEIVING_SIB; else mac->state = UE_PERFORMING_RA;