aboutsummaryrefslogtreecommitdiff
path: root/plugins/cinterion/mm-modem-helpers-cinterion.h
diff options
context:
space:
mode:
authorChristian Taedcke <christian.taedcke@lemonbeat.com>2022-05-18 15:45:57 +0200
committerAleksander Morgado <aleksander@aleksander.es>2022-09-28 10:26:08 +0000
commita25b45f795a9d9ccbfee1638fe67f1e6d0b6d64c (patch)
treea917cf91aa2bbbd7065be63ad4c7dc41389f2299 /plugins/cinterion/mm-modem-helpers-cinterion.h
parentfcd393a6c2a6faeb09cd7ae3ee60addef7ac3e2c (diff)
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.
Diffstat (limited to 'plugins/cinterion/mm-modem-helpers-cinterion.h')
-rw-r--r--plugins/cinterion/mm-modem-helpers-cinterion.h16
1 files changed, 16 insertions, 0 deletions
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
@@ -84,6 +84,15 @@ gboolean mm_cinterion_parse_cnmi_test (const gchar *response,
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 */
gboolean mm_cinterion_build_band (GArray *bands,
@@ -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 */