diff options
author | Carlo Lobrano <c.lobrano@gmail.com> | 2022-09-02 17:37:46 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-09-05 11:50:45 +0000 |
commit | 34d534a52097fcbdd9c964e353ae8c43c139958a (patch) | |
tree | a506448dc66f96f9b4f251cd3d97aefbd59c4404 | |
parent | 51a333cd9a6707de7c623fd4c94cb6032477572f (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.c | 10 |
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 |