aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-09-11 02:44:06 +0200
committerlynxis lazus <lynxis@fe80.eu>2019-10-08 10:34:28 +0000
commit62f6f9aebf78cec59e8f68a4c49697a6d36b2fe9 (patch)
treedd00426d78f6285762a0737cc9de18e35942cc27
parent3bad31bcb42c3449e6847ea7495578817029a2e1 (diff)
gprs_ranap: on Iu release, stop the attach fsm if running
A Iu release should stop any active procedure. Change-Id: I78c6c0c4024657212d6abef51e226ce233018fee
-rw-r--r--src/sgsn/gprs_ranap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sgsn/gprs_ranap.c b/src/sgsn/gprs_ranap.c
index 8f456504..6ebbd692 100644
--- a/src/sgsn/gprs_ranap.c
+++ b/src/sgsn/gprs_ranap.c
@@ -137,6 +137,9 @@ int sgsn_ranap_iu_event(struct ranap_ue_conn_ctx *ctx, enum ranap_iu_event_type
else
sgsn_ranap_iu_free(mm);
+ /* TODO: move this into FSM */
+ if (mm->ran_type == MM_CTX_T_UTRAN_Iu && mm->gmm_att_req.fsm->state != ST_INIT)
+ osmo_fsm_inst_dispatch(mm->gmm_att_req.fsm, E_REJECT, (void *) GMM_DISCARD_MS_WITHOUT_REJECT);
rc = 0;
break;
case RANAP_IU_EVENT_SECURITY_MODE_COMPLETE: