diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-10-24 18:42:30 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-10-24 18:43:45 +0200 |
commit | 9982b95069c58a3cb9b97bb6bc75932db81886ad (patch) | |
tree | e87d4141100a15bdfbb4a9b712d13bbbd55aa2a9 | |
parent | bf9298eb0f087b3b16fd08e04310d8d2e156dc8d (diff) |
Fix Downlink AMR FSM name to avoid illegal space character
Since libosmocore Change-Id I9ef59432f43a3cdb94e4cbb0c44ac3f9b2aac0f2
we enforce that FSM names do not contain illegal characteers such as
spaces. Let's change the DL TX FSM for AMR to comply to this. Also,
actually do check the result of the FSM registration.
Change-Id: Ieccd1dc32c0faf5e544d17daca4a417d1d168c21
-rw-r--r-- | src/common/bts.c | 4 | ||||
-rw-r--r-- | src/common/dtx_dl_amr_fsm.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/common/bts.c b/src/common/bts.c index cb5284dd..6747f50b 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -180,7 +180,9 @@ int bts_init(struct gsm_bts *bts) INIT_LLIST_HEAD(&btsb->oml_queue); /* register DTX DL FSM */ - osmo_fsm_register(&dtx_dl_amr_fsm); + rc = osmo_fsm_register(&dtx_dl_amr_fsm); + OSMO_ASSERT(rc == 0); + return rc; } diff --git a/src/common/dtx_dl_amr_fsm.c b/src/common/dtx_dl_amr_fsm.c index d5990489..38e22c95 100644 --- a/src/common/dtx_dl_amr_fsm.c +++ b/src/common/dtx_dl_amr_fsm.c @@ -469,7 +469,7 @@ const struct value_string dtx_dl_amr_fsm_event_names[] = { }; struct osmo_fsm dtx_dl_amr_fsm = { - .name = "DTX DL AMR FSM", + .name = "DTX_DL_AMR_FSM", .states = dtx_dl_amr_fsm_states, .num_states = ARRAY_SIZE(dtx_dl_amr_fsm_states), .event_names = dtx_dl_amr_fsm_event_names, |