diff options
author | Carlo Lobrano <c.lobrano@gmail.com> | 2022-02-18 14:01:08 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-03-29 14:18:55 +0000 |
commit | c208d33e5b351f052f610cf5d24ca422cf0188e6 (patch) | |
tree | 676ab828f73df878c4109d99f9b6152df8097b31 /plugins/telit/mm-shared-telit.c | |
parent | 30a35e6dc3e8ea4b89988e6214674f532d5330af (diff) |
telit: fix AT#BND parsing for LE910C1-EUX
Some modems, like LE910C1-EUX, express the LTE part of #BND output in
HEX format, but currently the MM parser for such case is limited to
modems that have "ext_4g_bands". This commits use the new MMTelitModel
info to decide how to parse #BND command output.
Fixes #487
Diffstat (limited to 'plugins/telit/mm-shared-telit.c')
-rw-r--r-- | plugins/telit/mm-shared-telit.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/telit/mm-shared-telit.c b/plugins/telit/mm-shared-telit.c index d5032142..1401cf61 100644 --- a/plugins/telit/mm-shared-telit.c +++ b/plugins/telit/mm-shared-telit.c @@ -57,6 +57,13 @@ private_free (Private *priv) g_slice_free (Private, priv); } +static gboolean +is_bnd_4g_format_hex (MMBaseModem *self, + const gchar *revision) +{ + return mm_telit_model_from_revision (revision) == MM_TELIT_MODEL_LE910C1; +} + static void initialize_alternate_3g_band (MMSharedTelit *self, Private *priv) @@ -221,6 +228,7 @@ load_supported_bands_ready (MMBaseModem *self, mm_iface_modem_is_3g (MM_IFACE_MODEM (self)), mm_iface_modem_is_4g (MM_IFACE_MODEM (self)), priv->alternate_3g_bands, + is_bnd_4g_format_hex (self, priv->software_package_version), &priv->ext_4g_bands, self, &error); @@ -326,6 +334,7 @@ load_current_bands_ready (MMBaseModem *self, mm_iface_modem_is_3g (MM_IFACE_MODEM (self)), mm_iface_modem_is_4g (MM_IFACE_MODEM (self)), priv->alternate_3g_bands, + is_bnd_4g_format_hex (self, priv->software_package_version), priv->ext_4g_bands, self, &error); |