summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-05-26 19:28:02 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-05-26 19:28:02 +0200
commitd9a47b45f913c6d3d8c7d5727d89cab69beb91ed (patch)
tree3523d84c0c1fb2059079ceb85578402462ebb00e
parent401d944ecccb446d68de6fa868cb5c4eb6621569 (diff)
downloadModemManager-d9a47b45f913c6d3d8c7d5727d89cab69beb91ed.tar.gz
fixup! modem-helpers: new CGDCONT=? test response parseraleksander/ip-family-flags
-rw-r--r--src/mm-modem-helpers.c7
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);