diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2019-09-11 03:00:47 +0200 |
---|---|---|
committer | lynxis lazus <lynxis@fe80.eu> | 2019-10-08 10:34:57 +0000 |
commit | 4c7609a508fb47978d510c0970c54442647bff80 (patch) | |
tree | 0cd5f5acc917f11d8be57e4b9695763f25a340e0 /src | |
parent | 62f6f9aebf78cec59e8f68a4c49697a6d36b2fe9 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/sgsn/gprs_mm_state_gb_fsm.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |