diff options
-rw-r--r-- | src/mm-bearer-mbim.c | 2 | ||||
-rw-r--r-- | src/mm-broadband-modem-mbim.c | 2 | ||||
-rw-r--r-- | src/mm-modem-helpers-mbim.c | 5 | ||||
-rw-r--r-- | src/mm-modem-helpers-mbim.h | 1 |
4 files changed, 6 insertions, 4 deletions
diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c index ce413a71..57f10cb7 100644 --- a/src/mm-bearer-mbim.c +++ b/src/mm-bearer-mbim.c @@ -964,7 +964,7 @@ connect_context_step (GTask *task) MMBearerAllowedAuth bearer_auth; bearer_auth = mm_bearer_properties_get_allowed_auth (ctx->properties); - auth = mm_bearer_allowed_auth_to_mbim_auth_protocol (bearer_auth, &error); + auth = mm_bearer_allowed_auth_to_mbim_auth_protocol (bearer_auth, self, &error); if (error) { g_task_return_error (task, error); g_object_unref (task); diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c index c524b7ff..bd2a0b3f 100644 --- a/src/mm-broadband-modem-mbim.c +++ b/src/mm-broadband-modem-mbim.c @@ -2830,7 +2830,7 @@ before_set_lte_attach_configuration_query_ready (MbimDevice *device, if (auth == MM_BEARER_ALLOWED_AUTH_UNKNOWN) configurations[i]->auth_protocol = MBIM_AUTH_PROTOCOL_NONE; else { - configurations[i]->auth_protocol = mm_bearer_allowed_auth_to_mbim_auth_protocol (auth, &error); + configurations[i]->auth_protocol = mm_bearer_allowed_auth_to_mbim_auth_protocol (auth, self, &error); if (error) { configurations[i]->auth_protocol = MBIM_AUTH_PROTOCOL_NONE; mm_obj_warn (self, "unexpected auth settings requested: %s", error->message); diff --git a/src/mm-modem-helpers-mbim.c b/src/mm-modem-helpers-mbim.c index eb68467e..8d8697b9 100644 --- a/src/mm-modem-helpers-mbim.c +++ b/src/mm-modem-helpers-mbim.c @@ -17,7 +17,7 @@ #include "mm-modem-helpers.h" #include "mm-enums-types.h" #include "mm-errors-types.h" -#include "mm-log.h" +#include "mm-log-object.h" /*****************************************************************************/ @@ -367,6 +367,7 @@ mm_bearer_allowed_auth_from_mbim_auth_protocol (MbimAuthProtocol auth_protocol) MbimAuthProtocol mm_bearer_allowed_auth_to_mbim_auth_protocol (MMBearerAllowedAuth bearer_auth, + gpointer log_object, GError **error) { gchar *str; @@ -374,7 +375,7 @@ mm_bearer_allowed_auth_to_mbim_auth_protocol (MMBearerAllowedAuth bearer_auth, /* NOTE: the input is a BITMASK, so we try to find a "best match" */ if (bearer_auth == MM_BEARER_ALLOWED_AUTH_UNKNOWN) { - mm_dbg ("Using default (PAP) authentication method"); + mm_obj_dbg (log_object, "using default (PAP) authentication method"); return MBIM_AUTH_PROTOCOL_PAP; } if (bearer_auth & MM_BEARER_ALLOWED_AUTH_PAP) diff --git a/src/mm-modem-helpers-mbim.h b/src/mm-modem-helpers-mbim.h index a648cac9..f9d509f8 100644 --- a/src/mm-modem-helpers-mbim.h +++ b/src/mm-modem-helpers-mbim.h @@ -41,6 +41,7 @@ GError *mm_mobile_equipment_error_from_mbim_nw_error (MbimNwError nw_error); MMBearerAllowedAuth mm_bearer_allowed_auth_from_mbim_auth_protocol (MbimAuthProtocol auth_protocol); MbimAuthProtocol mm_bearer_allowed_auth_to_mbim_auth_protocol (MMBearerAllowedAuth bearer_auth, + gpointer log_object, GError **error); MMBearerIpFamily mm_bearer_ip_family_from_mbim_context_ip_type (MbimContextIpType ip_type); MbimContextIpType mm_bearer_ip_family_to_mbim_context_ip_type (MMBearerIpFamily ip_family, |