aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-20 23:19:19 +0100
committerHarald Welte <laforge@osmocom.org>2020-12-21 16:50:18 +0100
commit2d5fa294bd68dde3e069713de90cfbbfd358935d (patch)
treed24381d54de9aa17d446c9d12b5a4176de40db06 /src
parent7887dc2fc907aa8fbd8315fd5b6a8746aea78c05 (diff)
abis_om2000: Force TRX NM state to UNLOCKED once TRX is up
In I68ae0bc51a565f903b47cf72f3e3dd6f1a2d2651 we started to initialize all (TS 12.21) NM MO state to LOCKED by default, which means BTSs not using TS 12.21 are stumbling across a general check in bts_isdn_sign_link() and will fail to process and uplink RSL messages. Change-Id: I4450cc47ede4005bf4bbd4af8d5a22c78377d4cd Related: OSE4914
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bsc/abis_om2000.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osmo-bsc/abis_om2000.c b/src/osmo-bsc/abis_om2000.c
index a3f689add..a1b8e53ee 100644
--- a/src/osmo-bsc/abis_om2000.c
+++ b/src/osmo-bsc/abis_om2000.c
@@ -2212,6 +2212,11 @@ static void om2k_trx_s_send_si(struct osmo_fsm_inst *fi, uint32_t prev_state)
static void om2k_trx_s_done_onenter(struct osmo_fsm_inst *fi, uint32_t prev_state)
{
+ struct om2k_trx_fsm_priv *otfp = fi->priv;
+
+ /* See e1_config:bts_isdn_sign_link() / OS#4914 */
+ otfp->trx->mo.nm_state.administrative = NM_STATE_UNLOCKED;
+
osmo_fsm_inst_term(fi, OSMO_FSM_TERM_REGULAR, NULL);
}