From: David Bauer Date: Sat, 28 Oct 2023 23:01:46 +0000 (+0200) Subject: uqmi: add slot number to uim-sim-status output X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=eea292401c388a4eb59c0caf5d00aa046c6059f4;p=project%2Fuqmi.git uqmi: add slot number to uim-sim-status output Add the SIM-card slot-number to uim-sim-status output. Signed-off-by: David Bauer --- diff --git a/commands-uim.c b/commands-uim.c index ff01d7b..b29c464 100644 --- a/commands-uim.c +++ b/commands-uim.c @@ -110,6 +110,7 @@ static void cmd_uim_get_sim_state_cb(struct qmi_dev *qmi, struct qmi_request *re if (card_application_state > QMI_UIM_CARD_APPLICATION_STATE_READY) card_application_state = QMI_UIM_CARD_APPLICATION_STATE_UNKNOWN; + blobmsg_add_u32(&status, "card_slot", i + 1); /* Slot is idx + 1 */ blobmsg_add_string(&status, "card_application_state", card_application_states[card_application_state]); blobmsg_add_string(&status, "pin1_status", get_pin_status(pin1_state)); blobmsg_add_u32(&status, "pin1_verify_tries", pin1_retries);