diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-08-17 22:43:54 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-08-19 22:38:33 +0200 |
commit | 7abecfcfc9ef94c1367cd88ac858b79d20f75db0 (patch) | |
tree | b9df6f561a169ec9ca174217ac6b0a7eafda0686 /openbsc/src/libabis/input/hsl.c | |
parent | c45a8045a645d64782ab2afbce79732d3f9d12a1 (diff) |
src: use new msg->dst pointer instead of deprecated msg->trx
This patch modifies openBSC code to use msg->dst which stores the
pointer to the signalling link structure instead of the pointer to
the transceiver structure.
This patch prepares the introduction of libosmo-abis.
Diffstat (limited to 'openbsc/src/libabis/input/hsl.c')
-rw-r--r-- | openbsc/src/libabis/input/hsl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/libabis/input/hsl.c b/openbsc/src/libabis/input/hsl.c index c98a22cb4..7f2e75d62 100644 --- a/openbsc/src/libabis/input/hsl.c +++ b/openbsc/src/libabis/input/hsl.c @@ -250,20 +250,20 @@ static int handle_ts1_read(struct osmo_fd *bfd) msgb_free(msg); return -EIO; } - msg->trx = link->trx; + msg->dst = link; switch (link->type) { case E1INP_SIGN_RSL: - if (!(msg->trx->bts->ip_access.flags & (RSL_UP << msg->trx->nr))) { + if (!(link->trx->bts->ip_access.flags & (RSL_UP << link->trx->nr))) { e1inp_event(e1i_ts, S_INP_TEI_UP, link->tei, link->sapi); - msg->trx->bts->ip_access.flags |= (RSL_UP << msg->trx->nr); + link->trx->bts->ip_access.flags |= (RSL_UP << link->trx->nr); } ret = abis_rsl_rcvmsg(msg); break; case E1INP_SIGN_OML: - if (!(msg->trx->bts->ip_access.flags & OML_UP)) { + if (!(link->trx->bts->ip_access.flags & OML_UP)) { e1inp_event(e1i_ts, S_INP_TEI_UP, link->tei, link->sapi); - msg->trx->bts->ip_access.flags |= OML_UP; + link->trx->bts->ip_access.flags |= OML_UP; } ret = abis_nm_rcvmsg(msg); break; |