aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-10-26 10:48:49 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-10-26 10:48:52 +0100
commitc4c6ba4b0717c44315f81a0246e8c4e78e4f4a1d (patch)
treeab94aa2e186661e2978beb66831017c1f8aeb702
parentc5a0ab6efdcff6e0bb5dbf2984c94399a14ea267 (diff)
nm_channel_fsm: Fix innocuous transition not permitted log error
Event NM_EV_OML_DOWN in allstate will transition to Disabled NotInstalled state. In the case where that is the current state, there's really no change but we didn't allow the transition. Let's allow it since it doesn't hurt and get rid of error messages when a BTS disconnects. Fixes: OS#4831 Change-Id: Ia5b7c88ff89e68ec5086d24f6ee20a8b3b2d994d
-rw-r--r--src/osmo-bsc/nm_channel_fsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bsc/nm_channel_fsm.c b/src/osmo-bsc/nm_channel_fsm.c
index 1d798a6e0..676c471e6 100644
--- a/src/osmo-bsc/nm_channel_fsm.c
+++ b/src/osmo-bsc/nm_channel_fsm.c
@@ -296,6 +296,7 @@ static struct osmo_fsm_state nm_chan_fsm_states[] = {
X(NM_EV_SW_ACT_REP) |
X(NM_EV_STATE_CHG_REP),
.out_state_mask =
+ X(NM_CHAN_ST_OP_DISABLED_NOTINSTALLED) |
X(NM_CHAN_ST_OP_DISABLED_DEPENDENCY) |
X(NM_CHAN_ST_OP_DISABLED_OFFLINE) |
X(NM_CHAN_ST_OP_ENABLED),