aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Lobrano <c.lobrano@gmail.com>2022-09-02 17:37:46 +0200
committerAleksander Morgado <aleksander@aleksander.es>2022-09-05 11:50:45 +0000
commit34d534a52097fcbdd9c964e353ae8c43c139958a (patch)
treea506448dc66f96f9b4f251cd3d97aefbd59c4404
parent51a333cd9a6707de7c623fd4c94cb6032477572f (diff)
plugins,telit: add missing 4G BND HEX format modem models
Currently, supported band AT query #BND=? is failing with LM9x0 because it expects BND 4G decimal format instead than hexadecimal. Adding also LN920 and FN980 for completeness. They do not fail right now because they have also "4g band extended" which format is always hexadecimal.
-rw-r--r--plugins/telit/mm-shared-telit.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/telit/mm-shared-telit.c b/plugins/telit/mm-shared-telit.c
index 2dc6b574..e5f44133 100644
--- a/plugins/telit/mm-shared-telit.c
+++ b/plugins/telit/mm-shared-telit.c
@@ -61,7 +61,15 @@ static gboolean
is_bnd_4g_format_hex (MMBaseModem *self,
const gchar *revision)
{
- return mm_telit_model_from_revision (revision) == MM_TELIT_MODEL_LE910C1;
+ MMTelitModel model;
+
+ model = mm_telit_model_from_revision (revision);
+
+ return (model == MM_TELIT_MODEL_FN980 ||
+ model == MM_TELIT_MODEL_LE910C1 ||
+ model == MM_TELIT_MODEL_LM940 ||
+ model == MM_TELIT_MODEL_LM960 ||
+ model == MM_TELIT_MODEL_LN920);
}
static void