summaryrefslogtreecommitdiff
path: root/commands-wds.h
diff options
context:
space:
mode:
authorMatti Laakso <malaakso@elisanet.fi>2016-11-20 23:27:31 +0200
committerJohn Crispin <john@phrozen.org>2016-11-21 11:01:58 +0100
commita7aad0bb7c2e2030d53a8ed0e54f6b347c9ae24f (patch)
treee50a8c158e21fb6ed1d4cdaf96db9fcdb346d608 /commands-wds.h
parent28227a790472f1921869e0df8b19f2bed4d1cade (diff)
wds: add a separate --set-ip-family option
Change the current ip-family option to set the IP Family Preference TLV in the Start Network command, and add a separate set-ip-family option for the Set IP Family command. This is done to match how the autoconnect and set-autoconnect options work. Older modems don't support the Set IP Family command, and they should use the IP Family Preference TLV. On the other hand, newer modems, e.g., from Huawei, don't respect that TLV, and require the use of the separate Set IP Family command. Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
Diffstat (limited to 'commands-wds.h')
-rw-r--r--commands-wds.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands-wds.h b/commands-wds.h
index ba67df9..c603f79 100644
--- a/commands-wds.h
+++ b/commands-wds.h
@@ -24,10 +24,11 @@
__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_ip_family, ip-family, required, CMD_TYPE_OPTION), \
+ __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) \
@@ -43,6 +44,7 @@
" --stop-network <pdh>: 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 <val>: Set ip-family (ipv4, ipv6, unspecified)\n" \
" --set-autoconnect <val>: Set automatic connect/reconnect (disabled, enabled, paused)\n" \
" --get-current-settings: Get current connection settings\n" \