aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-27 12:12:39 +0200
committerHarald Welte <laforge@gnumonks.org>2017-06-18 10:00:43 +0000
commitf4544573f84f2fbfd2f11b4c35274c304c05df4b (patch)
tree7854dd35978c7c47bee0f9e3d50dcb4a039cb46d /src/common/l1sap.c
parent186c6bac0758b6f94aa101e151664b0dea5d8975 (diff)
OML Add osmocom-specific way to deactivate radio link timeout
In some situations (e.g. when trying to do measurements/testing on the BTS receiver / uplink) it is useful to have a way to disable the radio link timeout and keep any channel open until deactivated, irrespective of whether (valid) data is received or not. This adds a related feature that can be activated by using an osmocom-specific value of 0xff for the TS 12.21 Connection Failure Criterion (9.4.14). Change-Id: I736f21f6528db5c16fa80cdb905af20673797be5
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index fd8c54eb..b9104b70 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -809,6 +809,10 @@ static void radio_link_timeout(struct gsm_lchan *lchan, int bad_frame)
{
struct gsm_bts_role_bts *btsb = lchan->ts->trx->bts->role;
+ /* Bypass radio link timeout if set to -1 */
+ if (btsb->radio_link_timeout < 0)
+ return;
+
/* if link loss criterion already reached */
if (lchan->s == 0) {
DEBUGP(DMEAS, "%s radio link counter S already 0.\n",