From f1c8134d4f2abcf0cb828e03ad9fcebafdf79c9f Mon Sep 17 00:00:00 2001 From: francescomani Date: Tue, 10 Sep 2024 14:56:15 +0200 Subject: [PATCH] prevent UE to declare RLF in phy-test mode --- openair2/RRC/NR_UE/rrc_timers_and_constants.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openair2/RRC/NR_UE/rrc_timers_and_constants.c b/openair2/RRC/NR_UE/rrc_timers_and_constants.c index 9e734a3188..7ee8ed2d38 100644 --- a/openair2/RRC/NR_UE/rrc_timers_and_constants.c +++ b/openair2/RRC/NR_UE/rrc_timers_and_constants.c @@ -20,6 +20,7 @@ */ #include "openair2/RRC/NR_UE/rrc_proto.h" +#include "executables/softmodem-common.h" void init_SI_timers(NR_UE_RRC_SI_INFO *SInfo) { @@ -573,7 +574,8 @@ void handle_rlf_sync(NR_UE_Timers_Constants_t *tac, else { // OUT_OF_SYNC tac->N311_cnt = 0; - if(nr_timer_is_active(&tac->T300) || + if(get_softmodem_params()->phy_test || + nr_timer_is_active(&tac->T300) || nr_timer_is_active(&tac->T301) || nr_timer_is_active(&tac->T304) || nr_timer_is_active(&tac->T310) ||