diff options
author | Simon Busch <morphis@gravedo.de> | 2012-08-29 12:33:25 +0200 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2012-08-29 12:33:25 +0200 |
commit | 3baa91e5ca8b5c5e7d6fe52023d6bd7d98e1b672 (patch) | |
tree | da8b8ed7b63d9132bd29b02f8ed2567d6e456eb9 /tools | |
parent | c2509569de22560f8bd5eabdbdebf40eba030a29 (diff) | |
download | hardware_replicant_libsamsung-ipc-3baa91e5ca8b5c5e7d6fe52023d6bd7d98e1b672.tar.gz hardware_replicant_libsamsung-ipc-3baa91e5ca8b5c5e7d6fe52023d6bd7d98e1b672.tar.bz2 hardware_replicant_libsamsung-ipc-3baa91e5ca8b5c5e7d6fe52023d6bd7d98e1b672.zip |
sec: refactor type naming to be clean and not misleading
Diffstat (limited to 'tools')
-rw-r--r-- | tools/modemctrl.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/modemctrl.c b/tools/modemctrl.c index 089375a..e1e27d8 100644 --- a/tools/modemctrl.c +++ b/tools/modemctrl.c @@ -139,7 +139,7 @@ void modem_set_sms_device_ready(struct ipc_client *client) void modem_set_sec_pin_status(struct ipc_client *client, char *pin1, char *pin2) { struct ipc_sec_pin_status_set pin_status; - struct ipc_sec_lock_info_request lock_info_req; + struct ipc_sec_lock_info_get lock_info_req; printf("[I] Sending PIN1 unlock request\n"); @@ -159,18 +159,18 @@ void modem_response_sec(struct ipc_client *client, struct ipc_message_info *resp case IPC_SEC_PIN_STATUS : pin_status = (struct ipc_sec_pin_status_response *)resp->data; - switch(pin_status->type) + switch(pin_status->status) { - case IPC_SEC_PIN_SIM_INITIALIZING: + case IPC_SEC_SIM_STATUS_INITIALIZING: printf("[I] SIM is initializing\n"); break; - case IPC_SEC_PIN_SIM_CARD_NOT_PRESENT: + case IPC_SEC_SIM_STATUS_CARD_NOT_PRESENT: printf("[I] SIM card is definitely absent\n"); break; - case IPC_SEC_PIN_SIM_LOCK_SC: - switch(pin_status->key) + case IPC_SEC_SIM_STATUS_LOCK_SC: + switch(pin_status->facility_lock) { - case IPC_SEC_PIN_SIM_LOCK_SC_PIN1_REQ: + case IPC_SEC_FACILITY_LOCK_TYPE_SC_PIN1_REQ: printf("[I] We need the PIN1 to unlock the card!\n"); if(strlen(sim_pin) > 0) { modem_set_sec_pin_status(client, sim_pin, NULL); @@ -178,21 +178,21 @@ void modem_response_sec(struct ipc_client *client, struct ipc_message_info *resp printf("[E] No SIM Pin, use --pin\n"); } break; - case IPC_SEC_PIN_SIM_LOCK_SC_PUK_REQ: + case IPC_SEC_FACILITY_LOCK_TYPE_SC_PUK_REQ: printf("[I] Please provide the SIM card PUK!\n"); break; - case IPC_SEC_PIN_SIM_LOCK_SC_CARD_BLOCKED: + case IPC_SEC_FACILITY_LOCK_TYPE_SC_CARD_BLOCKED: printf("[I] Ouch, the SIM Card is blocked.\n"); break; } break; - case IPC_SEC_PIN_SIM_INIT_COMPLETE: + case IPC_SEC_SIM_STATUS_INIT_COMPLETE: printf("[3] SIM init complete\n"); if(state == MODEM_STATE_NORMAL) state = MODEM_STATE_SIM_OK; break; - case IPC_SEC_PIN_SIM_PB_INIT_COMPLETE: + case IPC_SEC_SIM_STATUS_PB_INIT_COMPLETE: printf("[I] SIM Phone Book init complete\n"); break; } |