diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-02-13 10:40:58 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-02-13 15:49:26 +0100 |
commit | 334c5ab2e6f5a2d086906a5a1624da31b762efe7 (patch) | |
tree | e42d33374b130ff656be0ee9858b60ff57b1be6c | |
parent | b0ec9e3dae70542f328e5a8368ce6c2040e383b4 (diff) |
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)
-rw-r--r-- | openbsc/src/bts_ericsson_rbs2000.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |