aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gprs/gprs_gmm.c9
1 files changed, 9 insertions, 0 deletions
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;
}