diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2019-08-20 15:07:26 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2019-08-23 23:03:31 +0200 |
commit | bd92d668b182dc70f7df106848b642fec70e4716 (patch) | |
tree | 697ff9d50b616023aea25fee28c54fb8d798927a | |
parent | 5fb0ea1bbf920f272144799980a0b848c5d02f15 (diff) |
set_mm_state: unassign llme when switching to MM_IDLE
Change-Id: I032fe4260b48476ff42b96fd9df840ec7478145a
-rw-r--r-- | src/gprs/gprs_gmm.c | 9 |
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; } |