From cf2ca648e9f8b9ed753b4ffb588305b0a3430208 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Wed, 4 May 2016 18:56:33 +0200 Subject: gprs: Update mm_ctx ra_id from ue_ctx --- openbsc/src/gprs/gprs_sgsn.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c index bfa2c4436..6d0596a48 100644 --- a/openbsc/src/gprs/gprs_sgsn.c +++ b/openbsc/src/gprs/gprs_sgsn.c @@ -39,6 +39,7 @@ #include #include #include "openbsc/gprs_llc.h" +#include #include @@ -208,6 +209,10 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_alloc_iu(void *uectx) 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); + + /* Need to get RAID from IU conn */ + ctx->ra = ctx->iu.ue_ctx->ra_id; + INIT_LLIST_HEAD(&ctx->pdp_list); llist_add(&ctx->list, &sgsn_mm_ctxts); -- cgit v1.2.3