From 334c5ab2e6f5a2d086906a5a1624da31b762efe7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 13 Feb 2011 10:40:58 +0100 Subject: RBS2000: Make sure we transmit SABM at 0.3 second intervals This is apparently the right timing to increase the chance that the RBS detects it quickly. (10..15 seconds) --- openbsc/src/bts_ericsson_rbs2000.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'openbsc') diff --git a/openbsc/src/bts_ericsson_rbs2000.c b/openbsc/src/bts_ericsson_rbs2000.c index a849c30d3..4d368c820 100644 --- a/openbsc/src/bts_ericsson_rbs2000.c +++ b/openbsc/src/bts_ericsson_rbs2000.c @@ -31,6 +31,8 @@ #include "input/lapd.h" +#define SABM_INTERVAL 0, 300000 + static struct gsm_bts_model model_rbs2k = { .type = GSM_BTS_TYPE_RBS2000, .name = "rbs2000", @@ -84,7 +86,7 @@ static void sabm_timer_cb(void *_line) /* FIXME: use the TEI that was configured via vty */ lapd_send_sabm(e1i_ts->driver.dahdi.lapd, 62, 62); - bsc_schedule_timer(&sabm_timer, 0, 50); + bsc_schedule_timer(&sabm_timer, SABM_INTERVAL); } /* Callback function to be called every time we receive a signal from INPUT */ @@ -115,7 +117,7 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal, /* FIXME: properly determine the OML signalling timeslot, * or rather: all signalling timeslots and start one timer each */ sabm_timer.data = &isd->line->ts[1-1]; - bsc_schedule_timer(&sabm_timer, 0, 50); + bsc_schedule_timer(&sabm_timer, SABM_INTERVAL); break; } -- cgit v1.2.3