From 4d4944a07d09a21d79e18f321eaa1fdcaddd7964 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 10 Mar 2013 11:49:35 +0100 Subject: Add option to set RADIO LINK TIMEOUT value via VTY --- openbsc/include/openbsc/gsm_04_08.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'openbsc/include/openbsc/gsm_04_08.h') diff --git a/openbsc/include/openbsc/gsm_04_08.h b/openbsc/include/openbsc/gsm_04_08.h index 8df7b735f..3df5fc4e0 100644 --- a/openbsc/include/openbsc/gsm_04_08.h +++ b/openbsc/include/openbsc/gsm_04_08.h @@ -23,6 +23,20 @@ static inline struct msgb *gsm48_msgb_alloc(void) "GSM 04.08"); } +static inline int get_radio_link_timeout(struct gsm48_cell_options *cell_options) +{ + return (cell_options->radio_link_timeout + 1) << 2; +} + +static inline void set_radio_link_timeout(struct gsm48_cell_options *cell_options, int value) +{ + if (value < 4) + value = 4; + if (value > 64) + value = 64; + cell_options->radio_link_timeout = (value >> 2) - 1; +} + /* config options controlling the behaviour of the lower leves */ void gsm0408_allow_everyone(int allow); void gsm0408_clear_request(struct gsm_subscriber_connection *conn, uint32_t cause); -- cgit v1.2.3