aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/bts.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-02-05 09:06:49 +0100
committerHarald Welte <laforge@gnumonks.org>2013-03-11 11:47:41 +0100
commit294fd1b650e4482775fdd604288fc928e66ef81c (patch)
tree506a480f0f000d7cea082e104d39cc5873164a5c /src/common/bts.c
parent19f212951af720bc5ad415d8347838f3ac222442 (diff)
Added radio link timeout procedure according to TS 05.08 Chapter 5.2
Chapter 5.2 applies to MS procedure, but 5.3 (BSS procedure) defines no exact criterion, so I decided to use the procedure equivalent to MS. The criterion is based on a counter S, which is initialized to a preset RADIO_LINK_TIMEOUT, which can be configured via VTY. Whenever a received SACCH block is bad, S is counted down by one. If SACCH block is successfully decoded, S is counted up by two, but never above initial RADIO_LINK_TIMEOUT value. If S reaches 0, an RSL Connection Failure Indication with cause RF Radio Link Failure is sent to BSC, which then aborts channel. Use link timeout value from BSC via OML attribute. How to test: - Set "debug" for "meas" logging. - Start silent call to an attached mobile. - Remove battery from mobile or shield mobile. - Watch S count down.
Diffstat (limited to 'src/common/bts.c')
-rw-r--r--src/common/bts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/bts.c b/src/common/bts.c
index db58e12f..8cb64c46 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -75,6 +75,9 @@ int bts_init(struct gsm_bts *bts)
btsb->rtp_jitter_buf_ms = 100;
btsb->max_ta = 63;
+ /* default RADIO_LINK_TIMEOUT */
+ btsb->radio_link_timeout = 32;
+
/* set BTS to dependency */
oml_mo_state_chg(&bts->mo, -1, NM_AVSTATE_DEPENDENCY);
oml_mo_state_chg(&bts->gprs.nse.mo, -1, NM_AVSTATE_DEPENDENCY);