diff options
author | Harald Welte <laforge@gnumonks.org> | 2020-10-05 15:49:35 +0000 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-10-05 18:23:06 +0200 |
commit | 90e0c205b5ff4e94c7705cc8f81ccb510c0eb6df (patch) | |
tree | b51b97833e432b692e5df6b0759def93d1118150 /src/common/bts.c | |
parent | 17de4e708f92f0f06ef0ffc4c248c80352861f42 (diff) |
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
Diffstat (limited to 'src/common/bts.c')
-rw-r--r-- | src/common/bts.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |