aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2020-06-06 00:58:04 +0300
committerKirill Zakharenko <earwin@gmail.com>2020-06-06 02:22:34 +0300
commitf7e70b5228affca2dfa2ce1fac57195acd06d0b9 (patch)
tree930ef9729b141f61810f2bc530b3abd6c616a3df
parent8dee5b7aacd3fea3186208e24c72592ede2b1382 (diff)
TRX can't be usable when the RSL link is down.
-rw-r--r--src/osmo-bsc/gsm_data.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bsc/gsm_data.c b/src/osmo-bsc/gsm_data.c
index 46e26acff..0df45bf5c 100644
--- a/src/osmo-bsc/gsm_data.c
+++ b/src/osmo-bsc/gsm_data.c
@@ -1373,6 +1373,10 @@ bool ts_is_tch(struct gsm_bts_trx_ts *ts)
bool trx_is_usable(const struct gsm_bts_trx *trx)
{
+ /* not usable when RSL link is down */
+ if (trx->rsl_link == NULL)
+ return false;
+
/* FIXME: How does this behave for BS-11 ? */
if (is_ipaccess_bts(trx->bts)) {
if (!nm_is_running(&trx->mo.nm_state) ||