diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2017-01-31 15:34:26 +0100 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2017-01-31 16:53:11 +0100 |
commit | 1b1bf1a4be6400b19758d436389fb380299dd8e8 (patch) | |
tree | de191c44dbd5458e0b74331fa7368567c072e6e7 /openbsc/src/gprs/gprs_sgsn.c | |
parent | 61e51f7ebc2aefcbffe31596995059c89f65cc7e (diff) |
sgsn: rename gprs->mm_state -> gmm_state
GMM is the right term. MM state is already occupied.
Change-Id: I9cfdcf921e4ebd14a5e7ce7489ec4ce5d1f5515f
Diffstat (limited to 'openbsc/src/gprs/gprs_sgsn.c')
-rw-r--r-- | openbsc/src/gprs/gprs_sgsn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c index e5a54d9b4..f37dc77ac 100644 --- a/openbsc/src/gprs/gprs_sgsn.c +++ b/openbsc/src/gprs/gprs_sgsn.c @@ -222,7 +222,7 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_alloc(uint32_t tlli, memcpy(&ctx->ra, raid, sizeof(ctx->ra)); ctx->ran_type = MM_CTX_T_GERAN_Gb; ctx->gb.tlli = tlli; - ctx->mm_state = GMM_DEREGISTERED; + ctx->gmm_state = GMM_DEREGISTERED; ctx->auth_triplet.key_seq = GSM_KEY_SEQ_INVAL; ctx->ciph_algo = sgsn->cfg.cipher; ctx->ctrg = rate_ctr_group_alloc(ctx, &mmctx_ctrg_desc, tlli); @@ -245,7 +245,7 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_alloc_iu(void *uectx) ctx->ran_type = MM_CTX_T_UTRAN_Iu; ctx->iu.ue_ctx = uectx; ctx->iu.new_key = 1; - ctx->mm_state = GMM_DEREGISTERED; + ctx->gmm_state = GMM_DEREGISTERED; ctx->pmm_state = PMM_DETACHED; ctx->auth_triplet.key_seq = GSM_KEY_SEQ_INVAL; ctx->ctrg = rate_ctr_group_alloc(ctx, &mmctx_ctrg_desc, 0); @@ -656,7 +656,7 @@ failed: static void drop_one_pdp(struct sgsn_pdp_ctx *pdp) { - if (pdp->mm->mm_state == GMM_REGISTERED_NORMAL) + if (pdp->mm->gmm_state == GMM_REGISTERED_NORMAL) gsm48_tx_gsm_deact_pdp_req(pdp, GSM_CAUSE_NET_FAIL); else { /* FIXME: GPRS paging in case MS is SUSPENDED */ |