add wds reset command
authorFelix Fietkau <nbd@openwrt.org>
Sun, 9 Jun 2013 18:25:05 +0000 (20:25 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 9 Jun 2013 18:25:05 +0000 (20:25 +0200)
commands-wds.c
commands-wds.h

index 526c1ddc23887e8ef09df0bf9f5114395d81263e..857155017ed4ca2fc8b04f66b3dae2b768aba728 100644 (file)
@@ -94,3 +94,11 @@ cmd_wds_get_packet_service_status_prepare(struct qmi_dev *qmi, struct qmi_reques
        qmi_set_wds_get_packet_service_status_request(msg);
        return QMI_CMD_REQUEST;
 }
+
+#define cmd_wds_reset_cb no_cb
+static enum qmi_cmd_result
+cmd_wds_reset_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
+{
+       qmi_set_wds_reset_request(msg);
+       return QMI_CMD_REQUEST;
+}
index 045e8811321d711abb32b2fffcff7856acd3116d..27d77765e60e7d126162896a9b13bbbc9defb11a 100644 (file)
@@ -3,7 +3,8 @@
        __uqmi_command(wds_set_auth, auth-type, required, CMD_TYPE_OPTION), \
        __uqmi_command(wds_set_username, username, required, CMD_TYPE_OPTION), \
        __uqmi_command(wds_set_password, password, required, CMD_TYPE_OPTION), \
-       __uqmi_command(wds_get_packet_service_status, get-data-status, no, QMI_SERVICE_WDS) \
+       __uqmi_command(wds_get_packet_service_status, get-data-status, no, QMI_SERVICE_WDS), \
+       __uqmi_command(wds_reset, reset-wds, no, QMI_SERVICE_WDS) \
 
 
 #define wds_helptext \