aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/bts.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-02-10 10:21:12 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-06 15:50:36 +0200
commit6d5dc060ea333f372a0df45213936ca742e25176 (patch)
treea01e1b8a1b62bbeb40eb3742d534292c146d8ab2 /src/common/bts.c
parentb469e7314860794aebd904ebc4a63f877c01c3fc (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.c8
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;