[MERGED] osmo-msc[master]: IuPS: explicitly check RAN type; move comment

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Jul 25 14:18:14 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: IuPS: explicitly check RAN type; move comment
......................................................................


IuPS: explicitly check RAN type; move comment

Change-Id: I054d72590dfb2012f6f8506d3a5f8fd2953194e1
---
M src/gprs/gprs_gmm.c
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index 83b1a70..577af1b 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -971,10 +971,12 @@
 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);
 	}

-- 
To view, visit https://gerrit.osmocom.org/3312
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I054d72590dfb2012f6f8506d3a5f8fd2953194e1
Gerrit-PatchSet: 7
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list