aboutsummaryrefslogtreecommitdiff
path: root/plugins/xmm
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/xmm')
-rw-r--r--plugins/xmm/mm-modem-helpers-xmm.c3
-rw-r--r--plugins/xmm/mm-modem-helpers-xmm.h1
-rw-r--r--plugins/xmm/mm-shared-xmm.c1
-rw-r--r--plugins/xmm/tests/test-modem-helpers-xmm.c2
4 files changed, 5 insertions, 2 deletions
diff --git a/plugins/xmm/mm-modem-helpers-xmm.c b/plugins/xmm/mm-modem-helpers-xmm.c
index 4ccbc745..2e52d162 100644
--- a/plugins/xmm/mm-modem-helpers-xmm.c
+++ b/plugins/xmm/mm-modem-helpers-xmm.c
@@ -172,6 +172,7 @@ static const MMModemMode xmm_modes[] = {
gboolean
mm_xmm_parse_xact_test_response (const gchar *response,
+ gpointer logger,
GArray **modes_out,
GArray **bands_out,
GError **error)
@@ -318,7 +319,7 @@ mm_xmm_parse_xact_test_response (const gchar *response,
all_modes = g_array_sized_new (FALSE, FALSE, sizeof (MMModemModeCombination), 1);
g_array_append_val (all_modes, all);
- filtered = mm_filter_supported_modes (all_modes, modes);
+ filtered = mm_filter_supported_modes (all_modes, modes, logger);
if (!filtered || filtered->len == 0) {
inner_error = g_error_new (MM_CORE_ERROR, MM_CORE_ERROR_FAILED,
"Empty supported mode list after frequency band filtering");
diff --git a/plugins/xmm/mm-modem-helpers-xmm.h b/plugins/xmm/mm-modem-helpers-xmm.h
index f70fc346..79676cfa 100644
--- a/plugins/xmm/mm-modem-helpers-xmm.h
+++ b/plugins/xmm/mm-modem-helpers-xmm.h
@@ -21,6 +21,7 @@
/* AT+XACT=? response parser */
gboolean mm_xmm_parse_xact_test_response (const gchar *response,
+ gpointer logger,
GArray **modes_out,
GArray **bands_out,
GError **error);
diff --git a/plugins/xmm/mm-shared-xmm.c b/plugins/xmm/mm-shared-xmm.c
index 2f40d787..8dfa135f 100644
--- a/plugins/xmm/mm-shared-xmm.c
+++ b/plugins/xmm/mm-shared-xmm.c
@@ -154,6 +154,7 @@ xact_test_ready (MMBaseModem *self,
response = mm_base_modem_at_command_finish (self, res, &error);
if (!response ||
!mm_xmm_parse_xact_test_response (response,
+ self,
&priv->supported_modes,
&priv->supported_bands,
&error))
diff --git a/plugins/xmm/tests/test-modem-helpers-xmm.c b/plugins/xmm/tests/test-modem-helpers-xmm.c
index 0e65c7cc..c6a3f33d 100644
--- a/plugins/xmm/tests/test-modem-helpers-xmm.c
+++ b/plugins/xmm/tests/test-modem-helpers-xmm.c
@@ -45,7 +45,7 @@ validate_xact_test_response (const gchar *response,
gboolean ret;
guint i;
- ret = mm_xmm_parse_xact_test_response (response, &modes, &bands, &error);
+ ret = mm_xmm_parse_xact_test_response (response, NULL, &modes, &bands, &error);
g_assert_no_error (error);
g_assert (ret);