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.
This commit is contained in:
Carlo Lobrano
2022-09-05 11:50:45 +00:00
committed by Aleksander Morgado
parent 51a333cd9a
commit 34d534a520
+9 -1
View File
@@ -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