diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-02-10 10:21:12 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-06-30 15:30:15 +0200 |
commit | 372e2d53df49407734f5f979266d146515fa96c2 (patch) | |
tree | daf39ae9217f44e891239f76913e8bbe0ba9489b /src/common/bts.c | |
parent | 6404a766617ba3dac02374b4e0d6cbc8b7b9770d (diff) |
migrate away from our own abis.c code to libosmoabis
libosmoabis has a BTS-side implementation of the IPA protocol for years,
and osmo-bts should have used that all the time. Unfortunately it had
its own local hack, this patch is migrating to the libosmocore
implementation.
Diffstat (limited to 'src/common/bts.c')
-rw-r--r-- | src/common/bts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/bts.c b/src/common/bts.c index e899ebd5..63560c2f 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -182,15 +182,15 @@ int bts_link_estab(struct gsm_bts *bts) /* RSL link is established, send status report */ int trx_link_estab(struct gsm_bts_trx *trx) { - struct ipabis_link *link = (struct ipabis_link *) trx->rsl_link; - uint8_t radio_state = (link->state == LINK_STATE_CONNECT) ? NM_OPSTATE_ENABLED : NM_OPSTATE_DISABLED; + struct e1inp_sign_link *link = trx->rsl_link; + uint8_t radio_state = link ? NM_OPSTATE_ENABLED : NM_OPSTATE_DISABLED; LOGP(DSUM, LOGL_INFO, "RSL link (TRX %02x) state changed to %s, sending Status'.\n", - trx->nr, (link->state == LINK_STATE_CONNECT) ? "up" : "down"); + trx->nr, link ? "up" : "down"); oml_mo_state_chg(&trx->mo, radio_state, NM_AVSTATE_OK); - if (link->state == LINK_STATE_CONNECT) + if (link) rsl_tx_rf_res(trx); return 0; |