From: Felix Fietkau Date: Sun, 9 Jun 2013 18:25:05 +0000 (+0200) Subject: add wds reset command X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6e19fb326c8a4988cecbfc5490037a6041aca095;p=oweals%2Fuqmi.git add wds reset command --- 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 \