aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmicli
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2016-08-23 10:07:53 -0500
committerDan Williams <dcbw@redhat.com>2016-08-23 10:08:26 -0500
commitb2420e3386d6046012f812983b111b2b5c5a8ddc (patch)
tree22e4eaa7e4a06f6e01bbdf35d8d80ab583749be8 /src/qmicli
parenta9aab00392457b99efcc237ba2f14e45ad9c981c (diff)
downloadexternal_libqmi-b2420e3386d6046012f812983b111b2b5c5a8ddc.zip
external_libqmi-b2420e3386d6046012f812983b111b2b5c5a8ddc.tar.gz
external_libqmi-b2420e3386d6046012f812983b111b2b5c5a8ddc.tar.bz2
qmicli: show IP type in --wds-start-network output
Diffstat (limited to 'src/qmicli')
-rw-r--r--src/qmicli/qmicli-wds.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/qmicli/qmicli-wds.c b/src/qmicli/qmicli-wds.c
index cd1debf..7259fe6 100644
--- a/src/qmicli/qmicli-wds.c
+++ b/src/qmicli/qmicli-wds.c
@@ -442,6 +442,7 @@ static QmiMessageWdsStartNetworkInput *
start_network_input_create (const gchar *str)
{
gchar *aux_auth_str = NULL;
+ gchar *ip_type_str = NULL;
gchar **split = NULL;
QmiMessageWdsStartNetworkInput *input = NULL;
StartNetworkProperties props = {
@@ -508,8 +509,13 @@ 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 != QMI_WDS_IP_FAMILY_UNSPECIFIED) {
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";
+ else if (props.ip_type == QMI_WDS_IP_FAMILY_IPV6)
+ ip_type_str = "6";
+ }
/* Set authentication method */
if (props.auth_set) {
@@ -529,11 +535,12 @@ start_network_input_create (const gchar *str)
if (props.autoconnect_set)
qmi_message_wds_start_network_input_set_enable_autoconnect (input, props.autoconnect, NULL);
- g_debug ("Network start parameters set (apn: '%s', 3gpp_profile: '%u', 3gpp2_profile: '%u', auth: '%s', username: '%s', password: '%s', autoconnect: '%s')",
+ g_debug ("Network start parameters set (apn: '%s', 3gpp_profile: '%u', 3gpp2_profile: '%u', auth: '%s', ip-type: '%s', username: '%s', password: '%s', autoconnect: '%s')",
props.apn ? props.apn : "unspecified",
props.profile_index_3gpp,
props.profile_index_3gpp2,
aux_auth_str ? aux_auth_str : "unspecified",
+ ip_type_str ? ip_type_str : "unspecified",
(props.username && props.username[0]) ? props.username : "unspecified",
(props.password && props.password[0]) ? props.password : "unspecified",
props.autoconnect_set ? (props.autoconnect ? "yes" : "no") : "unspecified");