From 4c678418f398fc5f9dcdb216c0ffdffc8524bea2 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 5 Oct 2016 10:42:01 -0500 Subject: 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 --- src/qmicli/qmicli-wds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qmicli/qmicli-wds.c') 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"; -- cgit v1.1