From: Felix Fietkau Date: Sun, 23 Jun 2013 22:44:27 +0000 (+0200) Subject: add --reset-dms X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1c39b551f3b74d342238d7ae1b4921f7c1e41d94;p=oweals%2Fuqmi.git add --reset-dms --- diff --git a/commands-dms.c b/commands-dms.c index a77bc6b..af8b3ce 100644 --- a/commands-dms.c +++ b/commands-dms.c @@ -90,3 +90,11 @@ cmd_dms_get_imsi_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qm qmi_set_dms_uim_get_imsi_request(msg); return QMI_CMD_REQUEST; } + +#define cmd_dms_reset_cb no_cb +static enum qmi_cmd_result +cmd_dms_reset_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg) +{ + qmi_set_dms_reset_request(msg); + return QMI_CMD_REQUEST; +} diff --git a/commands-dms.h b/commands-dms.h index 9d62947..df0d91b 100644 --- a/commands-dms.h +++ b/commands-dms.h @@ -2,11 +2,13 @@ __uqmi_command(dms_get_pin_status, get-pin-status, no, QMI_SERVICE_DMS), \ __uqmi_command(dms_verify_pin1, verify-pin1, required, QMI_SERVICE_DMS), \ __uqmi_command(dms_verify_pin2, verify-pin2, required, QMI_SERVICE_DMS), \ - __uqmi_command(dms_get_imsi, get-imsi, no, QMI_SERVICE_DMS) \ + __uqmi_command(dms_get_imsi, get-imsi, no, QMI_SERVICE_DMS), \ + __uqmi_command(dms_reset, reset-dms, no, QMI_SERVICE_DMS) \ #define dms_helptext \ " --get-pin-status: Get PIN verification status\n" \ " --verify-pin1 : Verify PIN1\n" \ " --verify-pin2 : Verify PIN2\n" \ " --get-imsi: Get International Mobile Subscriber ID\n" \ + " --reset-dms: Reset the DMS service\n" \