aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/gprs_subscriber.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-12-26 06:56:32 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-12-26 18:48:36 +0100
commit55aad3f69479b94d9758adcdc5d20bda06281ea6 (patch)
treebb32d63d3d501eac64026ed7ef87684e65265c29 /src/gprs/gprs_subscriber.c
parent882200929f0f5173086664a77ec88cde34253640 (diff)
send the RAT type (GERAN-A / UTRAN-Iu) to HLR on LUneels/3g_opt_in35c3
Use new OSMO_GSUP_RAT_TYPES_IE to transmit the subscriber's RAT type to the HLR. Depends: I3e399ca8a85421f77a9a15e608413d1507722955 (osmo-hlr) Change-Id: I70641d6eaddddbfbb5d7b7bfb86d27e0bcbeff72
Diffstat (limited to 'src/gprs/gprs_subscriber.c')
-rw-r--r--src/gprs/gprs_subscriber.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gprs/gprs_subscriber.c b/src/gprs/gprs_subscriber.c
index 484c7ef4e..fb45df982 100644
--- a/src/gprs/gprs_subscriber.c
+++ b/src/gprs/gprs_subscriber.c
@@ -820,6 +820,13 @@ int gprs_subscr_location_update(struct gprs_subscr *subscr)
"subscriber data is not available\n");
gsup_msg.message_type = OSMO_GSUP_MSGT_UPDATE_LOCATION_REQUEST;
+#if BUILD_IU
+ if (subscr->sgsn_data->mm->ran_type == MM_CTX_T_UTRAN_Iu)
+ gsup_msg.rat_types[0] = OSMO_RAT_UTRAN_IU;
+ else
+#endif
+ gsup_msg.rat_types[0] = OSMO_RAT_GERAN_A;
+ gsup_msg.rat_types_len = 1;
return gprs_subscr_tx_gsup_message(subscr, &gsup_msg);
}