diff options
-rw-r--r-- | include/sec.h | 2 | ||||
-rw-r--r-- | tools/modemctrl.c | 8 | ||||
-rw-r--r-- | vapi/samsung-ipc-1.0.vapi | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/sec.h b/include/sec.h index b95f3cc..0e1245d 100644 --- a/include/sec.h +++ b/include/sec.h @@ -78,7 +78,7 @@ struct ipc_message_info; #define IPC_SEC_RSIM_COMMAND_UPDATE_BINARY 0xd6 #define IPC_SEC_RSIM_COMMAND_STATUS 0xf2 -struct ipc_sec_pin_status_response { +struct ipc_sec_sim_status_response { /* IPC_SEC_SIM_STATUS_... */ unsigned char status; /* IPC_SEC_FACILITY_LOCK_TYPE_... */ diff --git a/tools/modemctrl.c b/tools/modemctrl.c index f928d58..eb8808f 100644 --- a/tools/modemctrl.c +++ b/tools/modemctrl.c @@ -149,7 +149,7 @@ void modem_set_sec_pin_status(struct ipc_client *client, char *pin1, char *pin2) void modem_response_sec(struct ipc_client *client, struct ipc_message_info *resp) { - struct ipc_sec_pin_status_response *pin_status; + struct ipc_sec_sim_status_response *sim_status; unsigned char type; int status; char *data; @@ -157,9 +157,9 @@ void modem_response_sec(struct ipc_client *client, struct ipc_message_info *resp switch(IPC_COMMAND(resp)) { case IPC_SEC_SIM_STATUS : - pin_status = (struct ipc_sec_pin_status_response *)resp->data; + sim_status = (struct ipc_sec_sim_status_response *)resp->data; - switch(pin_status->status) + switch(sim_status->status) { case IPC_SEC_SIM_STATUS_INITIALIZING: printf("[I] SIM is initializing\n"); @@ -168,7 +168,7 @@ void modem_response_sec(struct ipc_client *client, struct ipc_message_info *resp printf("[I] SIM card is definitely absent\n"); break; case IPC_SEC_SIM_STATUS_LOCK_SC: - switch(pin_status->facility_lock) + switch(sim_status->facility_lock) { case IPC_SEC_FACILITY_LOCK_TYPE_SC_PIN1_REQ: printf("[I] We need the PIN1 to unlock the card!\n"); diff --git a/vapi/samsung-ipc-1.0.vapi b/vapi/samsung-ipc-1.0.vapi index a12823e..b53cc06 100644 --- a/vapi/samsung-ipc-1.0.vapi +++ b/vapi/samsung-ipc-1.0.vapi @@ -273,7 +273,7 @@ namespace SamsungIpc STATUS, } - [CCode (cname = "struct ipc_sec_pin_status_response", destroy_function = "")] + [CCode (cname = "struct ipc_sec_sim_status_response", destroy_function = "")] public struct SimStatusMessage { public SimStatus status; |