[MM] [PATCH] altair-lte: avoid sending ATZ when enabling the modem



This patch prevents an ATZ command, which causes the modem to reboot,
from being sent to the modem when the modem is being enabled.
---
 plugins/altair/mm-broadband-modem-altair-lte.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/plugins/altair/mm-broadband-modem-altair-lte.c b/plugins/altair/mm-broadband-modem-altair-lte.c
index e645776..4eeae1c 100644
--- a/plugins/altair/mm-broadband-modem-altair-lte.c
+++ b/plugins/altair/mm-broadband-modem-altair-lte.c
@@ -1044,4 +1044,11 @@ mm_broadband_modem_altair_lte_class_init (MMBroadbandModemAltairLteClass *klass)
     g_type_class_add_private (object_class, sizeof (MMBroadbandModemAltairLtePrivate));
 
     broadband_modem_class->setup_ports = setup_ports;
+
+    /* The Altair LTE modem reboots itself upon receiving an ATZ command. We
+     * need to skip the default implementation in MMBroadbandModem to prevent
+     * an ATZ command from being issued as part of the modem initialization
+     * sequence when enabling the modem. */
+    broadband_modem_class->enabling_modem_init = NULL;
+    broadband_modem_class->enabling_modem_init_finish = NULL;
 }
-- 
1.8.3



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]