From cbb825a23607d6c57acd2ced216eb6d2f46cda2d Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 26 Oct 2023 09:05:01 +0000 Subject: modem-helpers-mbim: register MBIM error translations We register translations for MBIM core, MBIM protocol and MBIM status errors. These translations are a best-effort, and they are not meant to be exhaustive. The original error description is included in the translated GError, so that the details of the issue are not lost. --- src/mm-error-helpers.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mm-error-helpers.c') diff --git a/src/mm-error-helpers.c b/src/mm-error-helpers.c index daa1e550..d67db84d 100644 --- a/src/mm-error-helpers.c +++ b/src/mm-error-helpers.c @@ -29,6 +29,7 @@ #if defined WITH_MBIM # include +# include "mm-modem-helpers-mbim.h" #endif /******************************************************************************/ @@ -590,6 +591,10 @@ normalize_mapped_error (const GError *error) DomainCodePair *output = NULL; const gchar *input_error_type; +#if defined WITH_MBIM + mm_register_mbim_errors (); +#endif + #if defined WITH_QMI if (error->domain == QMI_CORE_ERROR) input_error_type = "QMI core"; -- cgit v1.2.3-70-g09d2