aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-24 11:30:06 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-25 16:19:34 +0200
commit7fd09123f899c8d9a9d82af6a2fde2e503eb1b47 (patch)
tree8c806052c33e2e3a351bb2bfc7afc6df339c59eb
parent675d8aeeea8ded0adcfacb2ef20ca2db2fc1388d (diff)
broadband-bearer: log all found PDP contexts before looking for a match
-rw-r--r--src/mm-broadband-bearer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c
index 341f9886..967d078b 100644
--- a/src/mm-broadband-bearer.c
+++ b/src/mm-broadband-bearer.c
@@ -916,6 +916,8 @@ parse_pdp_list (MMBaseModem *modem,
}
cid = 0;
+
+ /* Show all found PDP contexts in debug log */
mm_dbg ("Found '%u' PDP contexts", g_list_length (pdp_list));
for (l = pdp_list; l; l = g_list_next (l)) {
MM3gppPdpContext *pdp = l->data;
@@ -924,6 +926,12 @@ parse_pdp_list (MMBaseModem *modem,
pdp->cid,
mm_bearer_ip_family_get_string (pdp->pdp_type),
pdp->apn ? pdp->apn : "");
+ }
+
+ /* Look for the exact PDP context we want */
+ for (l = pdp_list; l; l = g_list_next (l)) {
+ MM3gppPdpContext *pdp = l->data;
+
if (pdp->pdp_type == mm_bearer_properties_get_ip_type (mm_bearer_peek_config (MM_BEARER (ctx->self)))) {
/* PDP with no APN set? we may use that one if not exact match found */
if (!pdp->apn || !pdp->apn[0]) {