aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-07-20 14:41:40 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-23 04:30:44 +0200
commitecd8c048fc5e1bc9cd3da8a155dea02dfdc06efe (patch)
tree295aebb0ad8623ea338e47c26c6eddcf89d31d37 /src/gprs
parented739b9dac4d67c6daadc7fc85c40a82e768be3b (diff)
IuPS: explicitly check RAN type; move comment
Diffstat (limited to 'src/gprs')
-rw-r--r--src/gprs/gprs_gmm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index 83b1a7023..577af1bf3 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -971,10 +971,12 @@ static int gsm48_tx_gmm_service_rej(struct sgsn_mm_ctx *mm,
static int gsm48_tx_gmm_ra_upd_ack(struct sgsn_mm_ctx *mm);
#ifdef BUILD_IU
+/* Send RAB activation requests for all PDP contexts */
void activate_pdp_rabs(struct sgsn_mm_ctx *ctx)
{
- /* Send RAB activation requests for all PDP contexts */
struct sgsn_pdp_ctx *pdp;
+ if (ctx->ran_type != MM_CTX_T_UTRAN_Iu)
+ return;
llist_for_each_entry(pdp, &ctx->pdp_list, list) {
iu_rab_act_ps(pdp->nsapi, pdp, 1);
}