projects
/
project
/
uqmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bd09c4e
)
add wds reset command
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 9 Jun 2013 18:25:05 +0000
(20:25 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 9 Jun 2013 18:25:05 +0000
(20:25 +0200)
commands-wds.c
patch
|
blob
|
history
commands-wds.h
patch
|
blob
|
history
diff --git
a/commands-wds.c
b/commands-wds.c
index
526c1dd
..
8571550
100644
(file)
--- 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;
}
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
(file)
--- 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_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 \
#define wds_helptext \