aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-09-17 17:44:14 +0200
committerlynxis lazus <lynxis@fe80.eu>2019-10-08 12:38:35 +0000
commit12235310af015fe3f4645ffbfc18950e89d23aa0 (patch)
tree35894d00133052ea90d8264cb20281bd00d4796e
parentd597ee260a4aa1de8235e781f6519c7571d85cbe (diff)
sgsn: MM Gb Fsm: fix event handling for implicit detach
Implicit detach means there won't be any Gb state afterwards. Change-Id: Iececb730e7135e14ebd94f82edb79b03ced1f9e3
-rw-r--r--src/sgsn/gprs_mm_state_gb_fsm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sgsn/gprs_mm_state_gb_fsm.c b/src/sgsn/gprs_mm_state_gb_fsm.c
index 02f67471..f6d680c5 100644
--- a/src/sgsn/gprs_mm_state_gb_fsm.c
+++ b/src/sgsn/gprs_mm_state_gb_fsm.c
@@ -47,9 +47,11 @@ static void st_mm_ready(struct osmo_fsm_inst *fi, uint32_t event, void *data)
switch(event) {
case E_MM_READY_TIMER_EXPIRY:
- case E_MM_IMPLICIT_DETACH:
mm_state_gb_fsm_state_chg(fi, ST_MM_STANDBY);
break;
+ case E_MM_IMPLICIT_DETACH:
+ mm_state_gb_fsm_state_chg(fi, ST_MM_IDLE);
+ break;
case E_MM_PDU_RECEPTION:
/* RE-arm the READY timer upon receival of Gb PDUs */
t_secs = osmo_tdef_get(sgsn->cfg.T_defs, 3314, OSMO_TDEF_S, -1);