From e9395d83e388aba8b46f2fbe371c247c42bd6452 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 20 Feb 2014 12:29:27 -0600 Subject: broadband-bearer: pass the IP family to subclasses when getting IP config Subclasses may need to know which IP families were used for the setup so they can return the correct IP configuration. We can't just use the MMBearer default_ip_family becuase that isn't the family that was actually used during the connection. --- src/mm-broadband-bearer.c | 1 + src/mm-broadband-bearer.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c index de762d76..dce13f44 100644 --- a/src/mm-broadband-bearer.c +++ b/src/mm-broadband-bearer.c @@ -701,6 +701,7 @@ dial_3gpp_ready (MMBroadbandModem *modem, ctx->secondary, ctx->data, ctx->cid, + ctx->ip_family, (GAsyncReadyCallback)get_ip_config_3gpp_ready, ctx); return; diff --git a/src/mm-broadband-bearer.h b/src/mm-broadband-bearer.h index 4a008cd1..f3869120 100644 --- a/src/mm-broadband-bearer.h +++ b/src/mm-broadband-bearer.h @@ -79,6 +79,7 @@ struct _MMBroadbandBearerClass { MMPortSerialAt *secondary, MMPort *data, guint cid, + MMBearerIpFamily ip_family, GAsyncReadyCallback callback, gpointer user_data); gboolean (* get_ip_config_3gpp_finish) (MMBroadbandBearer *self, -- cgit v1.2.3-70-g09d2