diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-02-12 12:29:21 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-02-13 15:49:09 +0100 |
commit | 09cefee4db4e5dcec3adf75788690189f856b2e6 (patch) | |
tree | d7f31002c5b2b7e5795a0bd551b506894c417f11 /openbsc/src/e1_input.c | |
parent | a4898a868b85e31c63fcec6330e605d5e696072b (diff) |
[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
Diffstat (limited to 'openbsc/src/e1_input.c')
-rw-r--r-- | openbsc/src/e1_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |