summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-02-09 13:50:22 +0100
committerPaul Kocialkowski <contact@paulk.fr>2013-02-09 13:50:22 +0100
commit1875ad88e925296397c93396871d7a3fd1c6ef79 (patch)
tree13a718ef3d63a9c46df668785e6eb9973d57d47f
parent2c657d85c056caaa35e9cbc5c4dd9c81051f9ae1 (diff)
downloadhardware_ril_samsung-ril-1875ad88e925296397c93396871d7a3fd1c6ef79.zip
hardware_ril_samsung-ril-1875ad88e925296397c93396871d7a3fd1c6ef79.tar.gz
hardware_ril_samsung-ril-1875ad88e925296397c93396871d7a3fd1c6ef79.tar.bz2
sec: Do not consider absent SIM state as unknown
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--sec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sec.c b/sec.c
index ceca5ab..dbad1fd 100644
--- a/sec.c
+++ b/sec.c
@@ -62,6 +62,7 @@ ril_sim_state ipc2ril_sim_state(struct ipc_sec_sim_status_response *pin_status)
case IPC_SEC_SIM_STATUS_INSIDE_PF_ERROR:
case IPC_SEC_SIM_STATUS_CARD_NOT_PRESENT:
case IPC_SEC_SIM_STATUS_CARD_ERROR:
+ return SIM_STATE_ABSENT;
default:
LOGE("Unknown SIM status: 0x%x", pin_status->status);
return SIM_STATE_ABSENT;