Fix autoconnect
[project/uqmi.git] / commands-wds.c
index 526c1dd..91cf15c 100644 (file)
@@ -48,6 +48,14 @@ cmd_wds_set_password_prepare(struct qmi_dev *qmi, struct qmi_request *req, struc
        return QMI_CMD_DONE;
 }
 
        return QMI_CMD_DONE;
 }
 
+#define cmd_wds_set_autoconnect_cb no_cb
+static enum qmi_cmd_result
+cmd_wds_set_autoconnect_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
+{
+       qmi_set(&wds_sn_req, enable_autoconnect, true);
+       return QMI_CMD_DONE;
+}
+
 static void
 cmd_wds_start_network_cb(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg)
 {
 static void
 cmd_wds_start_network_cb(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg)
 {
@@ -94,3 +102,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;
+}