diff options
Diffstat (limited to 'src/mm-bearer-qmi.c')
-rw-r--r-- | src/mm-bearer-qmi.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c index 5a348b26..151d0be9 100644 --- a/src/mm-bearer-qmi.c +++ b/src/mm-bearer-qmi.c @@ -2068,16 +2068,8 @@ _connect (MMBaseBearer *_self, ctx->password = g_strdup (mm_bearer_properties_get_password (properties)); ip_family = mm_bearer_properties_get_ip_type (properties); - if (ip_family == MM_BEARER_IP_FAMILY_NONE || - ip_family == MM_BEARER_IP_FAMILY_ANY) { - gchar *ip_family_str; - - ip_family = mm_base_bearer_get_default_ip_family (_self); - ip_family_str = mm_bearer_ip_family_build_string_from_mask (ip_family); - mm_obj_dbg (self, "no specific IP family requested, defaulting to %s", ip_family_str); + if (mm_3gpp_normalize_ip_family (&ip_family, self)) ctx->no_ip_family_preference = TRUE; - g_free (ip_family_str); - } if (ip_family & MM_BEARER_IP_FAMILY_IPV4) ctx->ipv4 = TRUE; |