summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-05-04 18:56:33 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2016-05-04 19:05:05 +0200
commitcf2ca648e9f8b9ed753b4ffb588305b0a3430208 (patch)
tree1e4f26a3a43e2232d82069fe8785f9efaa0dd534
parent62ee416d95711298da23e3c48019bf05e6a60299 (diff)
gprs: Update mm_ctx ra_id from ue_ctx
-rw-r--r--openbsc/src/gprs/gprs_sgsn.c5
1 files changed, 5 insertions, 0 deletions
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 <openbsc/gprs_utils.h>
#include <openbsc/signal.h>
#include "openbsc/gprs_llc.h"
+#include <openbsc/iu.h>
#include <pdp.h>
@@ -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);