From 20bb9a83a8a6a1e8457194511620743727eed44b Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Sat, 27 May 2017 22:41:34 +0200 Subject: Revert "allow SIM_IO request also if the SIM is locked or absent" This reverts commit a698df09a7dbdcf41ee680f69735dcd50054f469. Signed-off-by: Wolfgang Wiedmeyer --- sim.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sim.c b/sim.c index c59aa40..df5ba9f 100644 --- a/sim.c +++ b/sim.c @@ -1087,13 +1087,8 @@ int ril_request_sim_io(void *data, size_t size, RIL_Token token) goto error; rc = ril_radio_state_check(RADIO_STATE_SIM_READY); - if (rc < 0) { - rc = ril_radio_state_check(RADIO_STATE_SIM_LOCKED_OR_ABSENT); - if (rc < 0) - return RIL_REQUEST_UNHANDLED; - else - RIL_LOGE("%s: SIM is locked or absent.", __func__); - } + if (rc < 0) + return RIL_REQUEST_UNHANDLED; request = ril_request_find_request_status(RIL_REQUEST_SIM_IO, RIL_REQUEST_HANDLED); if (request != NULL) -- cgit v1.1