From 09cefee4db4e5dcec3adf75788690189f856b2e6 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 12 Feb 2011 12:29:21 +0100 Subject: [OML] Allow each BTS model to specify the OML callback This allows us to add BTS models that do not use the standard TS 12.21 OML --- openbsc/src/e1_input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openbsc/src/e1_input.c') diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c index 3605f9339..79c3a5af4 100644 --- a/openbsc/src/e1_input.c +++ b/openbsc/src/e1_input.c @@ -475,6 +475,7 @@ int e1inp_rx_ts(struct e1inp_ts *ts, struct msgb *msg, u_int8_t tei, u_int8_t sapi) { struct e1inp_sign_link *link; + struct gsm_bts *bts; int ret; switch (ts->type) { @@ -492,7 +493,8 @@ int e1inp_rx_ts(struct e1inp_ts *ts, struct msgb *msg, switch (link->type) { case E1INP_SIGN_OML: msg->trx = link->trx; - ret = abis_nm_rcvmsg(msg); + bts = msg->trx->bts; + ret = bts->model->oml_rcvmsg(msg); break; case E1INP_SIGN_RSL: msg->trx = link->trx; -- cgit v1.2.3