summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-06-09 20:25:05 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-06-09 20:25:05 +0200
commit6e19fb326c8a4988cecbfc5490037a6041aca095 (patch)
tree4d146055337a4e52cb3dde67d664f24152c00fbe
parentbd09c4e6198c4d6ca2fde9d63899d4befd16e7ca (diff)
add wds reset command
-rw-r--r--commands-wds.c8
-rw-r--r--commands-wds.h3
2 files changed, 10 insertions, 1 deletions
diff --git a/commands-wds.c b/commands-wds.c
index 526c1dd..8571550 100644
--- a/commands-wds.c
+++ b/commands-wds.c
@@ -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;
+}
diff --git a/commands-wds.h b/commands-wds.h
index 045e881..27d7776 100644
--- a/commands-wds.h
+++ b/commands-wds.h
@@ -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 \