modem-helpers: handle "IPV4" pdp type response

My modem (Samsung GI B3740) responded "IPV4" to "CGDCONT=?". This was
not handled in mm-modem-helpers.c. The obvious fix was to return
MM_BEARER_IP_FAMILY_IPV4.
This commit is contained in:
Oskar Enoksson
2014-10-29 23:12:26 +01:00
committed by Aleksander Morgado
parent 555ec15a16
commit 01bd5006f5

View File

@@ -1899,6 +1899,8 @@ mm_3gpp_get_ip_family_from_pdp_type (const gchar *pdp_type)
{
if (g_str_equal (pdp_type, "IP"))
return MM_BEARER_IP_FAMILY_IPV4;
if (g_str_equal (pdp_type, "IP4"))
return MM_BEARER_IP_FAMILY_IPV4;
if (g_str_equal (pdp_type, "IPV6"))
return MM_BEARER_IP_FAMILY_IPV6;
if (g_str_equal (pdp_type, "IPV4V6"))