aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/e1_input.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-02-13 19:36:18 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-13 19:36:18 +0100
commit15ccc77f62045d5243571a1fe3359432dd16d13b (patch)
treeb69a373771ca1ec5758d4209e6793157ab148945 /openbsc/src/e1_input.c
parent82b03a1f2be327f2b5239dc79b75fced2e642520 (diff)
INPUT: Allow for a per-TRX OML link
So far, all BTS we have interfaced had one OML link per BTS, independent of the number of TRX. In Ericsson RBS 2000, there is an OML link for the DXU/IXU, and one additional OML link for each TRX/TRU.
Diffstat (limited to 'openbsc/src/e1_input.c')
-rw-r--r--openbsc/src/e1_input.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c
index 79c3a5af4..b55fe2e62 100644
--- a/openbsc/src/e1_input.c
+++ b/openbsc/src/e1_input.c
@@ -268,7 +268,12 @@ int _abis_nm_sendmsg(struct msgb *msg)
return -EINVAL;
}
- sign_link = msg->trx->bts->oml_link;
+ /* Check for TRX-specific OML link first */
+ if (msg->trx->oml_link)
+ sign_link = msg->trx->oml_link;
+ else
+ sign_link = msg->trx->bts->oml_link;
+
e1i_ts = sign_link->ts;
if (!bsc_timer_pending(&e1i_ts->sign.tx_timer)) {
/* notify the driver we have something to write */