aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gprs_gmm.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/gprs_gmm.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/gprs_gmm.c')
-rw-r--r--openbsc/src/gprs/gprs_gmm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c
index 208faa93a..d734df014 100644
--- a/openbsc/src/gprs/gprs_gmm.c
+++ b/openbsc/src/gprs/gprs_gmm.c
@@ -709,10 +709,8 @@ void activate_pdp_rabs(struct sgsn_mm_ctx *ctx)
{
/* Send RAB activation requests for all PDP contexts */
struct sgsn_pdp_ctx *pdp;
- uint8_t rab_id;
llist_for_each_entry(pdp, &ctx->pdp_list, list) {
- rab_id = rab_id_from_mm_ctx(ctx);
- iu_rab_act_ps(rab_id, pdp, 1);
+ iu_rab_act_ps(pdp->nsapi, pdp, 1);
}
}