summaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/sgsn_libgtp.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-05-01 10:59:12 +0200
committerHarald Welte <laforge@gnumonks.org>2016-05-01 15:35:52 +0200
commit3b922064a478f3a403d3a40d3f22c9a5675390fa (patch)
tree4dc1ebe04dcb343ce606925762bae300f2c4f9a8 /openbsc/src/gprs/sgsn_libgtp.c
parent5b3fd465d16547f1175b211dd5366123f260fedb (diff)
SGSN: Use PDP Context NSAPI as RAB ID
As Dieter has pointed out, the RANAP spec requires the RAB ID to be equal to the NSAPI of the PDP context for which it is established.
Diffstat (limited to 'openbsc/src/gprs/sgsn_libgtp.c')
-rw-r--r--openbsc/src/gprs/sgsn_libgtp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c
index 9277a5dcc..214859948 100644
--- a/openbsc/src/gprs/sgsn_libgtp.c
+++ b/openbsc/src/gprs/sgsn_libgtp.c
@@ -370,10 +370,7 @@ 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 */
- uint8_t rab_id;
-
- rab_id = rab_id_from_mm_ctx(pctx);
- iu_rab_act_ps(rab_id, pctx, 1);
+ iu_rab_act_ps(pdp->nsapi, pctx, 1);
return 0;
}
@@ -454,7 +451,6 @@ static int delete_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
sndcp_sm_deactivate_ind(&pctx->mm->gb.llme->lle[pctx->sapi], pctx->nsapi);
} else {
/* Dectivate a radio bearer */
- /* TODO: Save and use rab_id */
iu_rab_deact(pctx->mm->iu.ue_ctx, 1);
}