From 6e19fb326c8a4988cecbfc5490037a6041aca095 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 9 Jun 2013 20:25:05 +0200 Subject: [PATCH] add wds reset command --- commands-wds.c | 8 ++++++++ commands-wds.h | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 \ -- 2.25.1