diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2019-03-15 12:08:05 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-03-27 11:10:57 +0000 |
commit | a5a03d6b355437df1d7c5213236b0096b12640af (patch) | |
tree | 1b8c6e87436519ff772cc3c5441cc6aee78d6e06 /src/common/bts.c | |
parent | 891ba1568ad595c92bd885d417e34a78272f664f (diff) |
oml: use oml_tx_failure_event_rep() instead of oml_fail_rep()
The function oml_tx_failure_event_rep() replaces oml_fail_rep(), so lets
use only oml_tx_failure_event_rep() and remove oml_fail_rep()
Change-Id: I83c4fa9ebd519299fd54b37b5d95d6d7c1da24f6
Related: OS#3843
Diffstat (limited to 'src/common/bts.c')
-rw-r--r-- | src/common/bts.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/bts.c b/src/common/bts.c index abbaeb46..8c2b2fea 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -309,10 +309,13 @@ int trx_link_estab(struct gsm_bts_trx *trx) rc = rsl_tx_rf_res(trx); else rc = bts_model_trx_deact_rf(trx); - if (rc < 0) - oml_fail_rep(OSMO_EVT_MAJ_RSL_FAIL, - link ? "Failed to establish RSL link (%d)" : - "Failed to deactivate RF (%d)", rc); + if (rc < 0) { + oml_tx_failure_event_rep(&trx->bb_transc.mo, OSMO_EVT_MAJ_RSL_FAIL, + link ? + "Failed to establish RSL link (%d)" : + "Failed to deactivate RF (%d)", rc); + } + return 0; } |