aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2020-01-28 17:05:33 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2020-02-04 10:21:17 +0100
commit0a76d4e265b7b3f797daed1b69cf7976a49ee7bf (patch)
tree03ef27a221e66cab3929be0be1ba8bcf08ac7aa3
parent91a8bbd5db47bae83c4b63f58536eeae73738b4a (diff)
mm_state_gb_fsm: Handle implicit detach from mm_standbydaniel/os3727
-rw-r--r--src/sgsn/gprs_mm_state_gb_fsm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sgsn/gprs_mm_state_gb_fsm.c b/src/sgsn/gprs_mm_state_gb_fsm.c
index 811f0c2f..d3f2ea32 100644
--- a/src/sgsn/gprs_mm_state_gb_fsm.c
+++ b/src/sgsn/gprs_mm_state_gb_fsm.c
@@ -68,6 +68,9 @@ static void st_mm_standby(struct osmo_fsm_inst *fi, uint32_t event, void *data)
case E_MM_PDU_RECEPTION:
mm_state_gb_fsm_state_chg(fi, ST_MM_READY);
break;
+ case E_MM_IMPLICIT_DETACH:
+ mm_state_gb_fsm_state_chg(fi, ST_MM_IDLE);
+ break;
}
}
@@ -86,7 +89,7 @@ static struct osmo_fsm_state mm_state_gb_fsm_states[] = {
.action = st_mm_ready,
},
[ST_MM_STANDBY] = {
- .in_event_mask = X(E_MM_PDU_RECEPTION),
+ .in_event_mask = X(E_MM_PDU_RECEPTION) | X(E_MM_IMPLICIT_DETACH),
.out_state_mask = X(ST_MM_IDLE) | X(ST_MM_READY),
.name = "Standby",
.action = st_mm_standby,