summaryrefslogtreecommitdiffstats
path: root/tools/srs-test.c
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-10-15 08:24:47 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-10-15 09:33:52 +0200
commit2250038fe07e923daa9fc4118d92717d56137f64 (patch)
treedbc1fe7366b4c13189e10f74d78ae1d7683c2149 /tools/srs-test.c
parent1f4962b5d11e5e3567e6a78ecce7207ed3ef438e (diff)
downloadhardware_replicant_libsamsung-ril-2250038fe07e923daa9fc4118d92717d56137f64.tar.gz
hardware_replicant_libsamsung-ril-2250038fe07e923daa9fc4118d92717d56137f64.tar.bz2
hardware_replicant_libsamsung-ril-2250038fe07e923daa9fc4118d92717d56137f64.zip
Convert to use separate SIM statusreplicant-6.0-0004-rc3
In 2001, in the RIL repository[1], the SIM states were separated from the radio states by the following commit: 2bc78d614e349574426d198c37e51ccb7455b5bb 2bc78d61 Separate SIM states from Radio States Then in 2016 the SIM states were removed from the RADIO_STATES by the following commit: 2baf72329c43d9e3f7850973f087176f535e31e8 2baf7232 Remove deprecated RADIO_STATES So to be compatible with recent rild, we need to convert the code to use separate SIM states. TODO: - Test this code with Replicant 4.2!!!! [1]https://android.googlesource.com/platform/hardware/ril Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'tools/srs-test.c')
-rw-r--r--tools/srs-test.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/srs-test.c b/tools/srs-test.c
index ac91f1a..e460c57 100644
--- a/tools/srs-test.c
+++ b/tools/srs-test.c
@@ -38,7 +38,7 @@ void display_help(void)
printf("Commands:\n");
printf(" radio-state [STATE] - set radio state\n");
printf("\n");
- printf("States: off, unavailable, sim-not-ready, sim-locked-absent, sim-ready, on\n");
+ printf("States: off, unavailable, on\n");
}
int radio_state(struct srs_client *client, char *string)
@@ -46,9 +46,6 @@ int radio_state(struct srs_client *client, char *string)
struct radio_state_string radio_state_strings[] = {
{ "off", RADIO_STATE_OFF },
{ "unavailable", RADIO_STATE_UNAVAILABLE },
- { "sim-not-ready", RADIO_STATE_SIM_NOT_READY },
- { "sim-locked-absent", RADIO_STATE_SIM_LOCKED_OR_ABSENT },
- { "sim-ready", RADIO_STATE_SIM_READY },
{ "on", RADIO_STATE_ON },
};
struct srs_test_set_radio_state_data data;