broadband-bearer: expose properties used by the bearer implementation
This commit is contained in:
@@ -1482,6 +1482,7 @@ static void interface_initialization_step (InitAsyncContext *ctx);
|
||||
typedef enum {
|
||||
INITIALIZATION_STEP_FIRST,
|
||||
INITIALIZATION_STEP_CDMA_RM_PROTOCOL,
|
||||
INITIALIZATION_STEP_EXPOSE_PROPERTIES,
|
||||
INITIALIZATION_STEP_LAST
|
||||
} InitializationStep;
|
||||
|
||||
@@ -1685,6 +1686,23 @@ interface_initialization_step (InitAsyncContext *ctx)
|
||||
/* Fall down to next step */
|
||||
ctx->step++;
|
||||
|
||||
case INITIALIZATION_STEP_EXPOSE_PROPERTIES: {
|
||||
MMCommonBearerProperties *properties;
|
||||
|
||||
/* We create a new properties object just with the stuff we really used */
|
||||
properties = mm_common_bearer_properties_new ();
|
||||
mm_common_bearer_properties_set_apn (properties, ctx->self->priv->apn);
|
||||
mm_common_bearer_properties_set_number (properties, ctx->self->priv->number);
|
||||
mm_common_bearer_properties_set_rm_protocol (properties, ctx->self->priv->rm_protocol);
|
||||
mm_common_bearer_properties_set_ip_type (properties, ctx->self->priv->ip_type);
|
||||
mm_common_bearer_properties_set_allow_roaming (properties, ctx->self->priv->allow_roaming);
|
||||
mm_bearer_expose_properties (MM_BEARER (ctx->self), properties);
|
||||
g_object_unref (properties);
|
||||
|
||||
/* Fall down to next step */
|
||||
ctx->step++;
|
||||
}
|
||||
|
||||
case INITIALIZATION_STEP_LAST:
|
||||
|
||||
if (mm_iface_modem_is_3gpp (MM_IFACE_MODEM (ctx->modem))) {
|
||||
|
||||
Reference in New Issue
Block a user