aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmicli/qmicli-wds.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2016-10-05 10:42:01 -0500
committerDan Williams <dcbw@redhat.com>2016-10-05 10:49:43 -0500
commit4c678418f398fc5f9dcdb216c0ffdffc8524bea2 (patch)
tree2189913dfaee1775bd2f207176f18eab06cb00fd /src/qmicli/qmicli-wds.c
parentb7bd0ffc1fe9bc0889d4bc5836b38cea0c58d3f1 (diff)
downloadexternal_libqmi-4c678418f398fc5f9dcdb216c0ffdffc8524bea2.zip
external_libqmi-4c678418f398fc5f9dcdb216c0ffdffc8524bea2.tar.gz
external_libqmi-4c678418f398fc5f9dcdb216c0ffdffc8524bea2.tar.bz2
qmicli: fix handling of unspecified ip_type in --wds-start-network
QMI_WDS_IP_FAMILY_UNSPECIFIED = 8 but ip_type gets initialized to 0, so the "IP Family Preference" was always being sent with an unrecognized value. Fixes: 81c21379 qmicli: add support for IP type to --wds-start-networ
Diffstat (limited to 'src/qmicli/qmicli-wds.c')
-rw-r--r--src/qmicli/qmicli-wds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmicli/qmicli-wds.c b/src/qmicli/qmicli-wds.c
index 7259fe6..3fc964c 100644
--- a/src/qmicli/qmicli-wds.c
+++ b/src/qmicli/qmicli-wds.c
@@ -509,7 +509,7 @@ start_network_input_create (const gchar *str)
qmi_message_wds_start_network_input_set_profile_index_3gpp2 (input, props.profile_index_3gpp2, NULL);
/* Set IP Type */
- if (props.ip_type != QMI_WDS_IP_FAMILY_UNSPECIFIED) {
+ if (props.ip_type != 0) {
qmi_message_wds_start_network_input_set_ip_family_preference (input, props.ip_type, NULL);
if (props.ip_type == QMI_WDS_IP_FAMILY_IPV4)
ip_type_str = "4";