diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-26 16:02:04 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-26 16:02:04 +0800 |
commit | d1b19f3308633a9712831264f8ba1e25352dd4bf (patch) | |
tree | 688858571e1f00e53c260e7343829742062e9011 /openbsc/src/input/misdn.c | |
parent | 33f531fd129a68205e97957fcf464130a9c396b7 (diff) |
[ts] Make the e1inp_ts delay configurable
Currently the nanoBTS bootstrap code requires a high delay
otherwise we are not bringing the device up properly. Changing
the init code turns out harder than it seems like. So this is
a workaround for that to allow a high speed RSL/OML connection
after the bringup.
The line driver can have a default TS delay. It is set to the
current default for the nanoBTS and the BS11. For the ipaccess
case we will set the delay lower for the RSL connection and
inside the ipaccess-config we can set it low right away to
have fast firmware flashing and such.
Diffstat (limited to 'openbsc/src/input/misdn.c')
-rw-r--r-- | openbsc/src/input/misdn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/input/misdn.c b/openbsc/src/input/misdn.c index 83b01f2ca..6b10d87ce 100644 --- a/openbsc/src/input/misdn.c +++ b/openbsc/src/input/misdn.c @@ -235,7 +235,7 @@ static int handle_ts1_write(struct bsc_fd *bfd) /* set tx delay timer for next event */ e1i_ts->sign.tx_timer.cb = timeout_ts1_write; e1i_ts->sign.tx_timer.data = e1i_ts; - bsc_schedule_timer(&e1i_ts->sign.tx_timer, 0, 50000); + bsc_schedule_timer(&e1i_ts->sign.tx_timer, 0, e1i_ts->sign.delay); return ret; } @@ -375,6 +375,7 @@ static int activate_bchan(struct e1inp_line *line, int ts, int act) struct e1inp_driver misdn_driver = { .name = "mISDNuser", .want_write = ts_want_write, + .default_delay = 50000, }; static int mi_e1_setup(struct e1inp_line *line, int release_l2) |