diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-03-10 11:49:35 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-08-17 16:31:35 +0200 |
commit | 4d4944a07d09a21d79e18f321eaa1fdcaddd7964 (patch) | |
tree | 774f418cd07214c62d1402daac60010395046955 /openbsc/include/openbsc/gsm_04_08.h | |
parent | 93e795c1fdee782efa3856baf0abdc21fe3edc7f (diff) |
Add option to set RADIO LINK TIMEOUT value via VTY
Diffstat (limited to 'openbsc/include/openbsc/gsm_04_08.h')
-rw-r--r-- | openbsc/include/openbsc/gsm_04_08.h | 14 |
1 files changed, 14 insertions, 0 deletions
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); |