};
static struct qmi_wds_stop_network_request wds_stn_req;
+#define cmd_wds_set_apn_cb no_cb
+static enum qmi_cmd_result
+cmd_wds_set_apn_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
+{
+ qmi_set_ptr(&wds_sn_req, apn, arg);
+ return QMI_CMD_DONE;
+}
+
#define cmd_wds_set_auth_cb no_cb
static enum qmi_cmd_result
cmd_wds_set_auth_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
static enum qmi_cmd_result
cmd_wds_start_network_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
{
- qmi_set_ptr(&wds_sn_req, apn, arg);
qmi_set_wds_start_network_request(msg, &wds_sn_req);
return QMI_CMD_REQUEST;
}
*/
#define __uqmi_wds_commands \
- __uqmi_command(wds_start_network, start-network, required, QMI_SERVICE_WDS), \
+ __uqmi_command(wds_start_network, start-network, no, QMI_SERVICE_WDS), \
+ __uqmi_command(wds_set_apn, apn, 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), \
#define wds_helptext \
- " --start-network <apn>: Start network connection (use with options below)\n" \
+ " --start-network: Start network connection (use with options below)\n" \
+ " --apn <apn>: Use APN\n" \
" --auth-type pap|chap|both|none: Use network authentication type\n" \
" --username <name>: Use network username\n" \
" --password <password>: Use network password\n" \