diff options
author | Oskar Enoksson <enok@lysator.liu.se> | 2014-10-29 23:12:26 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-10-29 23:13:22 +0100 |
commit | 01bd5006f5b0fb322fde03e3faa6ead5a80fe40a (patch) | |
tree | 1be9b6d885455ba1c9904227808a45f4e995f28a /src | |
parent | 555ec15a16414414dae1e71b889f38fa159e49fd (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-modem-helpers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index e4967d70..f024695e 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -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")) |