aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-12 02:53:55 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-16 15:32:30 +0100
commita81fbf00918e742d9a4f5ac47eca875918043c2f (patch)
treef432a8fe3a1dc89ed8ec4f57ed31e447edeb9e59
parent7a4632c67cd6abe114d4c4094272b7493cd3c57a (diff)
IuPS: cosmetic: explicitly check RAN type; move comment
-rw-r--r--openbsc/src/gprs/gprs_gmm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c
index 62d32c0c9..5aa22dca5 100644
--- a/openbsc/src/gprs/gprs_gmm.c
+++ b/openbsc/src/gprs/gprs_gmm.c
@@ -973,10 +973,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);
}