From 7abecfcfc9ef94c1367cd88ac858b79d20f75db0 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 17 Aug 2011 22:43:54 +0200 Subject: 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. --- openbsc/src/libabis/input/hsl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'openbsc/src/libabis/input/hsl.c') 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; -- cgit v1.2.3