Change in osmo-sgsn[master]: gsup: send RAT type on LU

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/.

neels gerrit-no-reply at lists.osmocom.org
Mon Jan 6 17:06:40 UTC 2020


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/16745 )


Change subject: gsup: send RAT type on LU
......................................................................

gsup: send RAT type on LU

At 36c3, osmo-hlr was run with a patch that records the RAN type of attached
subscribers. Even though this is not in osmo-hlr master, it is nice information
to send along.

Note that the "Supported RAT Types" IE is used to send the actually attached
RAT. Could be a reason to not merge this to master as-is.

Change-Id: I5dbe610738aed7ea1edf6b33543b1c03818cc274
---
M src/sgsn/gprs_subscriber.c
1 file changed, 16 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/45/16745/1

diff --git a/src/sgsn/gprs_subscriber.c b/src/sgsn/gprs_subscriber.c
index 484c7ef..d19ee56 100644
--- a/src/sgsn/gprs_subscriber.c
+++ b/src/sgsn/gprs_subscriber.c
@@ -812,7 +812,7 @@
 	return gprs_subscr_tx_gsup_message(subscr, &gsup_msg);
 }
 
-int gprs_subscr_location_update(struct gprs_subscr *subscr)
+int gprs_subscr_location_update(struct gprs_subscr *subscr, enum sgsn_ran_type ran_type)
 {
 	struct osmo_gsup_message gsup_msg = {0};
 
@@ -820,6 +820,20 @@
 		"subscriber data is not available\n");
 
 	gsup_msg.message_type = OSMO_GSUP_MSGT_UPDATE_LOCATION_REQUEST;
+
+	switch (ran_type) {
+	case MM_CTX_T_GERAN_Gb:
+		gsup_msg.supported_rat_types[0] = OSMO_RAT_GERAN_A;
+		gsup_msg.supported_rat_types_len = 1;
+		break;
+	case MM_CTX_T_UTRAN_Iu:
+		gsup_msg.supported_rat_types[0] = OSMO_RAT_UTRAN_IU;
+		gsup_msg.supported_rat_types_len = 1;
+		break;
+	default:
+		break;
+	}
+
 	return gprs_subscr_tx_gsup_message(subscr, &gsup_msg);
 }
 
@@ -884,7 +898,7 @@
 
 	subscr->flags |= GPRS_SUBSCRIBER_UPDATE_LOCATION_PENDING;
 
-	rc = gprs_subscr_location_update(subscr);
+	rc = gprs_subscr_location_update(subscr, mmctx->ran_type);
 	gprs_subscr_put(subscr);
 	return rc;
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/16745
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I5dbe610738aed7ea1edf6b33543b1c03818cc274
Gerrit-Change-Number: 16745
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200106/c8cbff2a/attachment.htm>


More information about the gerrit-log mailing list