From a25b45f795a9d9ccbfee1638fe67f1e6d0b6d64c Mon Sep 17 00:00:00 2001 From: Christian Taedcke Date: Wed, 18 May 2022 15:45:57 +0200 Subject: cinterion: add support for mode setting using SXRAT The previously used COPS command to set to LTE-only mode did not work for an ELS81 modem. Now ^SXRAT is used to switch modes instead of COPS, if SXRAT is supported by the modem. --- plugins/cinterion/mm-modem-helpers-cinterion.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'plugins/cinterion/mm-modem-helpers-cinterion.h') diff --git a/plugins/cinterion/mm-modem-helpers-cinterion.h b/plugins/cinterion/mm-modem-helpers-cinterion.h index 7bbd789a..3155d0c1 100644 --- a/plugins/cinterion/mm-modem-helpers-cinterion.h +++ b/plugins/cinterion/mm-modem-helpers-cinterion.h @@ -83,6 +83,15 @@ gboolean mm_cinterion_parse_cnmi_test (const gchar *response, GArray **supported_bfr, GError **error); +/*****************************************************************************/ +/* ^SXRAT test parser */ + +gboolean mm_cinterion_parse_sxrat_test (const gchar *response, + GArray **supported_rat, + GArray **supported_pref1, + GArray **supported_pref2, + GError **error); + /*****************************************************************************/ /* Build Cinterion-specific band value */ @@ -192,4 +201,11 @@ gchar *mm_cinterion_build_auth_string (gpointer log_object, MMBearerProperties *config, guint cid); +/*****************************************************************************/ +/* ^SXRAT set command helper */ + +gchar *mm_cinterion_build_sxrat_set_command (MMModemMode allowed, + MMModemMode preferred, + GError **error); + #endif /* MM_MODEM_HELPERS_CINTERION_H */ -- cgit v1.2.3-70-g09d2