From 90e0c205b5ff4e94c7705cc8f81ccb510c0eb6df Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 5 Oct 2020 15:49:35 +0000 Subject: bts: Add VTY command to manually override Radio Link Timeout There are some situations where it is useful to be able to change the Radio Link Timeout at runtime, without restarting the BTS. This adds a new (hidden) command for this: "bts <0-255> radio-link-timeout (oml|infinite|<4-64>)" Change-Id: I64674a432cf7751b16d5d0b52f66766fa6e37028 --- src/common/bts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common/bts.c') diff --git a/src/common/bts.c b/src/common/bts.c index c900428c..c121609d 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -324,7 +324,8 @@ int bts_init(struct gsm_bts *bts) bts->t200_ms[i] = oml_default_t200_ms[i]; /* default RADIO_LINK_TIMEOUT */ - bts->radio_link_timeout = 32; + bts->radio_link_timeout.oml = 32; + bts->radio_link_timeout.current = bts->radio_link_timeout.oml; /* Start with the site manager */ oml_mo_state_init(&bts->site_mgr.mo, NM_OPSTATE_ENABLED, NM_AVSTATE_OK); -- cgit v1.2.3