sec: Do not consider absent SIM state as unknown
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 9 Feb 2013 12:50:22 +0000 (13:50 +0100)
committerPaul Kocialkowski <contact@paulk.fr>
Sat, 9 Feb 2013 12:50:22 +0000 (13:50 +0100)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
sec.c

diff --git a/sec.c b/sec.c
index ceca5ab..dbad1fd 100644 (file)
--- 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;