summaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/sgsn_libgtp.c
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-04-08 12:14:56 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2016-04-08 12:14:56 +0200
commit5e007d9445b1fe0233b8d4618d6c1a01ec446788 (patch)
tree18340eba4ef807351b8770e1e70b35d9d63371ce /openbsc/src/gprs/sgsn_libgtp.c
parent42024336fef37effeb04e61d819ef46e1fd0f2db (diff)
gprs: Use different RAB IDs for activation
Diffstat (limited to 'openbsc/src/gprs/sgsn_libgtp.c')
-rw-r--r--openbsc/src/gprs/sgsn_libgtp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c
index 21e8ebce5..cdda0ad57 100644
--- a/openbsc/src/gprs/sgsn_libgtp.c
+++ b/openbsc/src/gprs/sgsn_libgtp.c
@@ -370,7 +370,10 @@ static int create_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
return send_act_pdp_cont_acc(pctx);
} else {
/* Activate a radio bearer */
- iu_rab_act_ps(1, pctx);
+ uint8_t rab_id;
+
+ rab_id = rab_id_from_mm_ctx(pctx);
+ iu_rab_act_ps(rab_id, pctx);
return 0;
}