diff --git a/common/utils/telnetsrv/telnetsrv_ciUE.c b/common/utils/telnetsrv/telnetsrv_ciUE.c index 673d904969..4cecd23272 100644 --- a/common/utils/telnetsrv/telnetsrv_ciUE.c +++ b/common/utils/telnetsrv/telnetsrv_ciUE.c @@ -36,6 +36,7 @@ #include #include "openair2/LAYER2/NR_MAC_UE/mac_defs.h" #include "openair2/LAYER2/NR_MAC_UE/mac_proto.h" +#include "openair2/RRC/NR_UE/rrc_proto.h" #define TELNETSERVERCODE #include "telnetsrv.h" @@ -73,9 +74,20 @@ int get_sync_state(char *buf, int debug, telnet_printfunc_t prnt) return 0; } +/** + * Force RLF on UE + */ +int force_rlf(char *buf, int debug, telnet_printfunc_t prnt) +{ + NR_UE_RRC_INST_t *rrc = get_NR_UE_rrc_inst(0); + handle_rlf_detection(rrc); + return 0; +} + /* Telnet shell command definitions */ static telnetshell_cmddef_t cicmds[] = { {"sync_state", "[UE_ID(int,opt)]", get_sync_state}, + {"force_rlf", "", force_rlf}, {"", "", NULL}, };