diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-05-26 19:28:02 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-05-26 19:28:02 +0200 |
commit | d9a47b45f913c6d3d8c7d5727d89cab69beb91ed (patch) | |
tree | 3523d84c0c1fb2059079ceb85578402462ebb00e | |
parent | 401d944ecccb446d68de6fa868cb5c4eb6621569 (diff) | |
download | ModemManager-d9a47b45f913c6d3d8c7d5727d89cab69beb91ed.tar.gz |
fixup! modem-helpers: new CGDCONT=? test response parseraleksander/ip-family-flags
-rw-r--r-- | src/mm-modem-helpers.c | 7 |
1 files 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); |