Add ciUE telnet command to force RLF

This commit is contained in:
Guido Casati
2024-11-17 21:46:23 +01:00
committed by Robert Schmidt
parent 1692e00d4a
commit 882712ffd8
+12
View File
@@ -36,6 +36,7 @@
#include <stdarg.h>
#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},
};