add --reset-dms
authorFelix Fietkau <nbd@openwrt.org>
Sun, 23 Jun 2013 22:44:27 +0000 (00:44 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 23 Jun 2013 22:44:27 +0000 (00:44 +0200)
commands-dms.c
commands-dms.h

index a77bc6bb2f8f1cf9d0865a6701c0ab9f1c2ae129..af8b3cebeaefc7b68193738fd7c1f76503b9216b 100644 (file)
@@ -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;
+}
index 9d62947a71470578114312f8e3a01835fa3bd226..df0d91b672e05d4760e44587cfd5a6d072412f43 100644 (file)
@@ -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 <pin>:              Verify PIN1\n" \
                "  --verify-pin2 <pin>:              Verify PIN2\n" \
                "  --get-imsi:                       Get International Mobile Subscriber ID\n" \
+               "  --reset-dms:                      Reset the DMS service\n" \