summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-02-09 12:31:11 +0100
committerPaul Kocialkowski <contact@paulk.fr>2013-02-09 12:46:49 +0100
commit2c657d85c056caaa35e9cbc5c4dd9c81051f9ae1 (patch)
tree73b9bd402d930095fe26d8ff657b846e33f72ca6
parent7c0d9885a60491272c67f03c3efc263a7810e64e (diff)
downloadhardware_ril_samsung-ril-2c657d85c056caaa35e9cbc5c4dd9c81051f9ae1.zip
hardware_ril_samsung-ril-2c657d85c056caaa35e9cbc5c4dd9c81051f9ae1.tar.gz
hardware_ril_samsung-ril-2c657d85c056caaa35e9cbc5c4dd9c81051f9ae1.tar.bz2
sec: Assume SIM is ready when phonebook init is complete
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--sec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sec.c b/sec.c
index 18aa6cb..ceca5ab 100644
--- a/sec.c
+++ b/sec.c
@@ -56,10 +56,8 @@ ril_sim_state ipc2ril_sim_state(struct ipc_sec_sim_status_response *pin_status)
case IPC_SEC_SIM_STATUS_LOCK_PC:
return SIM_STATE_CORPORATE_PERSO;
case IPC_SEC_SIM_STATUS_INIT_COMPLETE:
- return SIM_STATE_READY;
case IPC_SEC_SIM_STATUS_PB_INIT_COMPLETE:
- // Ignore phone book init complete
- return ril_data.state.sim_state;
+ return SIM_STATE_READY;
case IPC_SEC_SIM_STATUS_SIM_LOCK_REQUIRED:
case IPC_SEC_SIM_STATUS_INSIDE_PF_ERROR:
case IPC_SEC_SIM_STATUS_CARD_NOT_PRESENT: