aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-12-06 03:31:44 +0100
committerlaforge <laforge@osmocom.org>2020-12-07 13:13:06 +0000
commite03d863e1fa65f3587499cb50d1e04537d215611 (patch)
treeacdc5873c2941466e77afa1bcec740d794c15173
parentd41800c7ec60eafced5242c1c6964f18a5c5e6ea (diff)
gprs_ns2_sns: add missing transistion UNCONFIGURED -> SIZE
The SNS FSM can go into the SIZE state when all NS-VC are failing. This is the case if the network connection to the SGSN got interrupted. Change-Id: I7e7da9451458505c1c2d73836dd916aee7704fda
-rw-r--r--src/gb/gprs_ns2_sns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2_sns.c b/src/gb/gprs_ns2_sns.c
index 31f8a5f5..9091c9a9 100644
--- a/src/gb/gprs_ns2_sns.c
+++ b/src/gb/gprs_ns2_sns.c
@@ -1169,7 +1169,8 @@ static const struct osmo_fsm_state ns2_sns_bss_states[] = {
.in_event_mask = S(GPRS_SNS_EV_ADD) |
S(GPRS_SNS_EV_DELETE) |
S(GPRS_SNS_EV_CHANGE_WEIGHT),
- .out_state_mask = S(GPRS_SNS_ST_UNCONFIGURED),
+ .out_state_mask = S(GPRS_SNS_ST_UNCONFIGURED) |
+ S(GPRS_SNS_ST_SIZE),
.name = "CONFIGURED",
.action = ns2_sns_st_configured,
.onenter = ns2_sns_st_configured_onenter,