diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-12-27 16:37:26 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-01-03 04:21:53 +0100 |
commit | a99310bf52a7995dca4acf6bd6305c0b522d3536 (patch) | |
tree | 283e60aa2d69b52e76bb2e851753006d2f2cbcae | |
parent | 6f46dfc776e42a6b5715ca5920b0d0926550b999 (diff) |
35c3 hack: *#102#: add a hint to *#301#, to enable/disable 3G
Change-Id: I338504038cffd4753d21d4ccbec97bad07435481
-rw-r--r-- | src/hlr_ussd.c | 7 |
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"; |