aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/e1_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/e1_input.c')
-rw-r--r--openbsc/src/e1_input.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c
index 916bb5611..e5dd11b94 100644
--- a/openbsc/src/e1_input.c
+++ b/openbsc/src/e1_input.c
@@ -255,7 +255,7 @@ int abis_rsl_sendmsg(struct msgb *msg)
return 0;
}
-int _abis_nm_sendmsg(struct msgb *msg)
+int _abis_nm_sendmsg(struct msgb *msg, int to_trx_oml)
{
struct e1inp_sign_link *sign_link;
struct e1inp_driver *e1inp_driver;
@@ -268,12 +268,12 @@ int _abis_nm_sendmsg(struct msgb *msg)
return -EINVAL;
}
-#if 0
/* Check for TRX-specific OML link first */
- if (msg->trx->oml_link)
+ if (to_trx_oml) {
+ if (!msg->trx->oml_link)
+ return -ENODEV;
sign_link = msg->trx->oml_link;
- else
-#endif
+ } else
sign_link = msg->trx->bts->oml_link;
e1i_ts = sign_link->ts;