From bd92d668b182dc70f7df106848b642fec70e4716 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 20 Aug 2019 15:07:26 +0200 Subject: set_mm_state: unassign llme when switching to MM_IDLE Change-Id: I032fe4260b48476ff42b96fd9df840ec7478145a --- src/gprs/gprs_gmm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c index 617cf50c6..51fab0bb0 100644 --- a/src/gprs/gprs_gmm.c +++ b/src/gprs/gprs_gmm.c @@ -250,6 +250,10 @@ static void mmctx_set_mm_state(struct sgsn_mm_ctx *ctx, enum gprs_pmm_state stat case MM_IDLE: if (ctx->pmm_state == MM_READY) mmctx_state_timer_stop(ctx, 3314); + if (ctx->gb.llme) { + gprs_llgmm_unassign(ctx->gb.llme); + ctx->gb.llme = NULL; + } break; case MM_STANDBY: if (ctx->pmm_state == MM_READY) @@ -260,6 +264,11 @@ static void mmctx_set_mm_state(struct sgsn_mm_ctx *ctx, enum gprs_pmm_state stat break; } + switch (state) { + case MM_IDLE: + break; + } + ctx->pmm_state = state; } -- cgit v1.2.3