From d9a47b45f913c6d3d8c7d5727d89cab69beb91ed Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 26 May 2013 19:28:02 +0200 Subject: =?UTF-8?q?fixup!=20modem-helpers:=20new=20CGDCONT=3D=3F=20test=20?= =?UTF-8?q?response=20parser?= --- src/mm-modem-helpers.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index f038f183b..07c87c7aa 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -686,9 +686,10 @@ mm_3gpp_parse_cgdcont_test_response (const gchar *response, /* Read PDP type */ pdp_type_str = mm_get_string_unquoted_from_match_info (match_info, 3); pdp_type = mm_3gpp_get_ip_family_from_pdp_type (pdp_type_str); - if (pdp_type == MM_BEARER_IP_FAMILY_NONE) - mm_warn ("Invalid PDP type in CGDCONT=? reply: '%s'", pdp_type_str); - else { + + /* Don't warn about unknown PDP types... 'PPP' type is actually very + * common and we still ignore it */ + if (pdp_type != MM_BEARER_IP_FAMILY_NONE) { /* Read min CID */ if (!mm_get_uint_from_match_info (match_info, 1, &min_cid)) mm_warn ("Invalid min CID in CGDCONT=? reply for PDP type '%s'", pdp_type_str); -- cgit v1.2.1