X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuqmi.git;a=blobdiff_plain;f=commands-wds.h;h=3076bae2d94b55bcc245c1e045ca7716be8c6b12;hp=045e8811321d711abb32b2fffcff7856acd3116d;hb=423a7e9c9448a247e121a9e79f9ac1a1e8bb5e56;hpb=bd09c4e6198c4d6ca2fde9d63899d4befd16e7ca diff --git a/commands-wds.h b/commands-wds.h index 045e881..3076bae 100644 --- a/commands-wds.h +++ b/commands-wds.h @@ -1,15 +1,52 @@ +/* + * uqmi -- tiny QMI support implementation + * + * Copyright (C) 2014-2015 Felix Fietkau + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + */ + #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), \ - __uqmi_command(wds_get_packet_service_status, get-data-status, no, QMI_SERVICE_WDS) \ + __uqmi_command(wds_set_ip_family_pref, ip-family, required, CMD_TYPE_OPTION), \ + __uqmi_command(wds_set_autoconnect, autoconnect, no, CMD_TYPE_OPTION), \ + __uqmi_command(wds_stop_network, stop-network, required, QMI_SERVICE_WDS), \ + __uqmi_command(wds_get_packet_service_status, get-data-status, no, QMI_SERVICE_WDS), \ + __uqmi_command(wds_set_ip_family, set-ip-family, required, QMI_SERVICE_WDS), \ + __uqmi_command(wds_set_autoconnect_setting, set-autoconnect, required, QMI_SERVICE_WDS), \ + __uqmi_command(wds_reset, reset-wds, no, QMI_SERVICE_WDS), \ + __uqmi_command(wds_get_current_settings, get-current-settings, no, QMI_SERVICE_WDS) \ #define wds_helptext \ - " --start-network : Start network connection (use with options below)\n" \ + " --start-network: Start network connection (use with options below)\n" \ + " --apn : Use APN\n" \ " --auth-type pap|chap|both|none: Use network authentication type\n" \ " --username : Use network username\n" \ " --password : Use network password\n" \ + " --ip-family : Use ip-family for the connection (ipv4, ipv6, unspecified)\n" \ + " --autoconnect: Enable automatic connect/reconnect\n" \ + " --stop-network : Stop network connection (use with option below)\n" \ + " --autoconnect: Disable automatic connect/reconnect\n" \ " --get-data-status: Get current data access status\n" \ + " --set-ip-family : Set ip-family (ipv4, ipv6, unspecified)\n" \ + " --set-autoconnect : Set automatic connect/reconnect (disabled, enabled, paused)\n" \ + " --get-current-settings: Get current connection settings\n" \