[LEDE-DEV] uqmi: Add sync command to release all cids.

Nickolay Ledovskikh nledovskikh at gmail.com
Wed Dec 7 07:14:20 PST 2016


Signed-off-by: Nickolay Ledovskikh <nledovskikh at gmail.com>
---
 commands.c | 8 ++++++++
 commands.h | 1 +
 2 files changed, 9 insertions(+)

diff --git a/commands.c b/commands.c
index b1b54d7..eb19280 100644
--- a/commands.c
+++ b/commands.c
@@ -64,6 +64,14 @@ cmd_version_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg
 	return QMI_CMD_REQUEST;
 }
 
+#define cmd_sync_cb no_cb
+static enum qmi_cmd_result
+cmd_sync_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
+{
+	qmi_set_ctl_sync_request(msg);
+	return QMI_CMD_DONE;
+}
+
 #define cmd_get_client_id_cb no_cb
 static enum qmi_cmd_result
 cmd_get_client_id_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
diff --git a/commands.h b/commands.h
index 1c9b5d6..30c59d6 100644
--- a/commands.h
+++ b/commands.h
@@ -54,6 +54,7 @@ struct uqmi_cmd {
 
 #define __uqmi_commands \
 	__uqmi_command(version, get-versions, no, QMI_SERVICE_CTL), \
+	__uqmi_command(sync, sync, no, QMI_SERVICE_CTL), \
 	__uqmi_command(set_client_id, set-client-id, required, CMD_TYPE_OPTION), \
 	__uqmi_command(get_client_id, get-client-id, required, QMI_SERVICE_CTL), \
 	__uqmi_command(ctl_set_data_format, set-data-format, required, QMI_SERVICE_CTL), \
-- 
2.7.3




More information about the Lede-dev mailing list