diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-05-27 22:41:34 +0200 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-05-27 22:41:34 +0200 |
commit | 20bb9a83a8a6a1e8457194511620743727eed44b (patch) | |
tree | 25f4f6bf75f0dcad4c4a167e15e65892aff4ee58 | |
parent | 56be0888c38565e230d1c2e310a4e1ff9d946211 (diff) | |
download | hardware_ril_samsung-ril-20bb9a83a8a6a1e8457194511620743727eed44b.zip hardware_ril_samsung-ril-20bb9a83a8a6a1e8457194511620743727eed44b.tar.gz hardware_ril_samsung-ril-20bb9a83a8a6a1e8457194511620743727eed44b.tar.bz2 |
Revert "allow SIM_IO request also if the SIM is locked or absent"
This reverts commit a698df09a7dbdcf41ee680f69735dcd50054f469.
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r-- | sim.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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) |