aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-12 02:53:55 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-23 20:28:56 +0100
commit2554ffa8b5492076aa0ca331d9657c8611a55d5a (patch)
tree95be1589f62dd0a36cb30dcb3c14863fcc4b48b8
parentc502611d537f87785e72b451104395e7da809d2d (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 fd2e321a0..7c6e4e025 100644
--- a/openbsc/src/gprs/gprs_gmm.c
+++ b/openbsc/src/gprs/gprs_gmm.c
@@ -825,10 +825,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);
}