diff options
author | Harald Welte <laforge@netfilter.org> | 2009-10-21 21:16:00 +0200 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-10-21 21:16:00 +0200 |
commit | e73501a4f689b658554ad8b5b511fb8576ac4034 (patch) | |
tree | f40521bbe66facf368f7dccd0a505327f7eb5184 /openbsc/src/input | |
parent | 17ddc50338048473ae046eca94783af64bece191 (diff) |
[ipaccess] revert commit 9bd7bc1b4c4a3ba42da46931df650837c1a7e889
Commit 9bd7bc1b4c4a3ba42da46931df650837c1a7e889 caused the RSL
initialization to happen too early, resulting in the BTS
bootstrapping but missing [some of?] the system information
types.
Diffstat (limited to 'openbsc/src/input')
-rw-r--r-- | openbsc/src/input/ipaccess.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/input/ipaccess.c b/openbsc/src/input/ipaccess.c index 386d2374e..1265982d2 100644 --- a/openbsc/src/input/ipaccess.c +++ b/openbsc/src/input/ipaccess.c @@ -236,7 +236,6 @@ static int ipaccess_rcvmsg(struct e1inp_line *line, struct msgb *msg, trx->rsl_link = e1inp_sign_link_create(e1i_ts, E1INP_SIGN_RSL, trx, trx->rsl_tei, 0); - e1inp_event(e1i_ts, EVT_E1_TEI_UP, trx->rsl_tei, 0); /* get rid of our old temporary bfd */ memcpy(newbfd, bfd, sizeof(*newbfd)); bsc_unregister_fd(bfd); @@ -250,6 +249,7 @@ static int ipaccess_rcvmsg(struct e1inp_line *line, struct msgb *msg, /* FIXME: this is per BTS */ static int oml_up = 0; +static int rsl_up = 0; /* * read one ipa message from the socket @@ -347,6 +347,10 @@ static int handle_ts1_read(struct bsc_fd *bfd) switch (link->type) { case E1INP_SIGN_RSL: + if (!rsl_up) { + e1inp_event(e1i_ts, EVT_E1_TEI_UP, link->tei, link->sapi); + rsl_up = 1; + } ret = abis_rsl_rcvmsg(msg); break; case E1INP_SIGN_OML: |