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: 11b87d8744 ("NR UE: RRC layer now explicitly tells MAC layer
when the RA procedure can be started)"
This commit is contained in:
Francesco Mani
2025-02-18 10:27:34 +01:00
committed by Robert Schmidt
parent 1114ee3a2d
commit 87c83f72cb
+1 -1
View File
@@ -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;