summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-02-06 18:54:55 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-02-06 18:54:55 +0100
commita698df09a7dbdcf41ee680f69735dcd50054f469 (patch)
treed92dcc7dc0cdecd6842e87669d42a8793a023507
parent6b28093ccb33f23aed42ea310396535685b1aeca (diff)
downloadhardware_ril_samsung-ril-a698df09a7dbdcf41ee680f69735dcd50054f469.zip
hardware_ril_samsung-ril-a698df09a7dbdcf41ee680f69735dcd50054f469.tar.gz
hardware_ril_samsung-ril-a698df09a7dbdcf41ee680f69735dcd50054f469.tar.bz2
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--sim.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sim.c b/sim.c
index 3d940fa..034c153 100644
--- a/sim.c
+++ b/sim.c
@@ -1088,8 +1088,13 @@ 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)
- return RIL_REQUEST_UNHANDLED;
+ 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__);
+ }
request = ril_request_find_request_status(RIL_REQUEST_SIM_IO, RIL_REQUEST_HANDLED);
if (request != NULL)