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.
This commit is contained in:
@@ -269,6 +269,7 @@ get_ip_config_3gpp (MMBroadbandBearer *self,
|
||||
MMPortSerialAt *secondary,
|
||||
MMPort *data,
|
||||
guint cid,
|
||||
MMBearerIpFamily ip_family,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data)
|
||||
{
|
||||
|
||||
@@ -187,6 +187,7 @@ get_ip_config_3gpp (MMBroadbandBearer *self,
|
||||
MMPortSerialAt *secondary,
|
||||
MMPort *data,
|
||||
guint cid,
|
||||
MMBearerIpFamily ip_family,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user