TRX can't be usable when the RSL link is down.

Change-Id: Ib5137e95efd27e019d80ff6164e1f80615e517a6
This commit is contained in:
Alexander Chemeris 2020-06-06 00:58:04 +03:00 committed by Kirill Zakharenko
parent 8dee5b7aac
commit f7e70b5228
1 changed files with 4 additions and 0 deletions

View File

@ -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) ||