From bfe77c7f296df0583910e45393e134ce997ad4e2 Mon Sep 17 00:00:00 2001 From: francescomani Date: Fri, 6 Oct 2023 17:36:53 +0200 Subject: [PATCH] Actions following cell selection while T311 is running --- openair2/RRC/NR_UE/rrc_UE.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/openair2/RRC/NR_UE/rrc_UE.c b/openair2/RRC/NR_UE/rrc_UE.c index 75f7e40fce..bee8e293c9 100644 --- a/openair2/RRC/NR_UE/rrc_UE.c +++ b/openair2/RRC/NR_UE/rrc_UE.c @@ -308,11 +308,10 @@ NR_UE_RRC_INST_t* nr_rrc_init_ue(char* uecap_file, int nb_inst) rrc->ue_id = nr_ue; // fill UE-NR-Capability @ UE-CapabilityRAT-Container here. rrc->selected_plmn_identity = 1; - + rrc->ra_trigger = RA_NOT_RUNNING; rrc->dl_bwp_id = 0; rrc->ul_bwp_id = 0; rrc->as_security_activated = false; - rrc->ra_trigger = RA_NOT_RUNNING; FILE *f = NULL; if (uecap_file) @@ -445,6 +444,20 @@ static void nr_rrc_ue_decode_NR_BCCH_BCH_Message(NR_UE_RRC_INST_t *rrc, return; } + // Actions following cell selection while T311 is running + NR_UE_Timers_Constants_t *timers = &rrc->timers_and_constants; + if (is_nr_timer_active(timers->T311)) { + nr_timer_stop(&timers->T311); + nr_timer_start(&timers->T301); + rrc->ra_trigger = RRC_CONNECTION_REESTABLISHMENT; + + // apply the default MAC Cell Group configuration + // (done at MAC by calling nr_ue_mac_default_configs) + + // apply the timeAlignmentTimerCommon included in SIB1 + // not used + } + int get_sib = 0; if (get_softmodem_params()->sa && bcch_message->message.choice.mib->cellBarred == NR_MIB__cellBarred_notBarred &&