From 4c7609a508fb47978d510c0970c54442647bff80 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Wed, 11 Sep 2019 03:00:47 +0200 Subject: gprs_mm_state_gb_fsm: ensure T3350 is not running when entering IDLE In IDLE there is not further context with the MS. Prevents the Timer from sending packages to a MS which can not respond Change-Id: Ibdd913173af11d0e6d04aa392e047d5d9aee1243 --- src/sgsn/gprs_mm_state_gb_fsm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sgsn/gprs_mm_state_gb_fsm.c b/src/sgsn/gprs_mm_state_gb_fsm.c index 4e1ed48d5..02f67471c 100644 --- a/src/sgsn/gprs_mm_state_gb_fsm.c +++ b/src/sgsn/gprs_mm_state_gb_fsm.c @@ -20,6 +20,10 @@ static const struct osmo_tdef_state_timeout mm_state_gb_fsm_timeouts[32] = { static void st_mm_idle_on_enter(struct osmo_fsm_inst *fi, uint32_t prev_state) { struct sgsn_mm_ctx *ctx = fi->priv; + /* FIXME: remove this timer when RAU has it's own fsm */ + if (ctx->T == 3350 && osmo_timer_pending(&ctx->timer)) + osmo_timer_del(&ctx->timer); + if (ctx->gb.llme) { gprs_llgmm_unassign(ctx->gb.llme); ctx->gb.llme = NULL; -- cgit v1.2.3