aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-12-27 16:37:26 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2019-01-03 04:21:53 +0100
commita99310bf52a7995dca4acf6bd6305c0b522d3536 (patch)
tree283e60aa2d69b52e76bb2e851753006d2f2cbcae
parent6f46dfc776e42a6b5715ca5920b0d0926550b999 (diff)
35c3 hack: *#102#: add a hint to *#301#, to enable/disable 3G
-rw-r--r--src/hlr_ussd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hlr_ussd.c b/src/hlr_ussd.c
index 0eab395..727a6ce 100644
--- a/src/hlr_ussd.c
+++ b/src/hlr_ussd.c
@@ -329,16 +329,17 @@ static int handle_ussd_get_ran(struct osmo_gsup_conn *conn, struct ss_session *s
int rc;
#define RAN_TYPE_DESC "Available RAN types: "
+#define RAN_TYPE_HINT " (experimental 3G: to enable dial *#301# -- to disable dial *#300#)"
rc = db_subscr_get_by_imsi(g_hlr->dbc, ss->imsi, &subscr);
switch (rc) {
case 0:
if (subscr.rat_types[OSMO_RAT_GERAN_A] && subscr.rat_types[OSMO_RAT_UTRAN_IU])
- response = RAN_TYPE_DESC "GERAN-A (2G) & UTRAN-Iu (3G)";
+ response = RAN_TYPE_DESC "GERAN-A (2G) & UTRAN-Iu (3G)" RAN_TYPE_HINT;
else if (subscr.rat_types[OSMO_RAT_GERAN_A])
- response = RAN_TYPE_DESC "GERAN-A (2G)";
+ response = RAN_TYPE_DESC "GERAN-A (2G)" RAN_TYPE_HINT;
else if (subscr.rat_types[OSMO_RAT_UTRAN_IU])
- response = RAN_TYPE_DESC "UTRAN-Iu (3G)";
+ response = RAN_TYPE_DESC "UTRAN-Iu (3G)" RAN_TYPE_HINT;
else
response = "No RAN types available";