diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-07-29 12:54:21 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-07-29 13:06:11 +0200 |
commit | b935782010edabff0b37a4256235e63bc6f946ec (patch) | |
tree | 45256f9df85e61f60eae6c2fec4517ac456befc1 | |
parent | 2590c4f0d71a1c4e68d550ef0f68091951af8606 (diff) |
cinterion: increase ^SCFG? timeout to 120s
The timeout in this command is extremely large, because there are some
modules like the EGS5 that build the response based on the current
network registration, and that implies the module needs to be
registered. If for any reason there is no serving network where to
register, the response comes after a very long time, up to 100s.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/408
-rw-r--r-- | plugins/cinterion/mm-broadband-modem-cinterion.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/cinterion/mm-broadband-modem-cinterion.c b/plugins/cinterion/mm-broadband-modem-cinterion.c index d512b855..575ab484 100644 --- a/plugins/cinterion/mm-broadband-modem-cinterion.c +++ b/plugins/cinterion/mm-broadband-modem-cinterion.c @@ -2032,9 +2032,14 @@ load_current_bands (MMIfaceModem *self, task = g_task_new (self, NULL, callback, user_data); + /* The timeout in this command is extremely large, because there are some + * modules like the EGS5 that build the response based on the current network + * registration, and that implies the module needs to be registered. If for + * any reason there is no serving network where to register, the response + * comes after a very long time, up to 100s. */ mm_base_modem_at_command (MM_BASE_MODEM (self), "AT^SCFG?", - 3, + 120, FALSE, (GAsyncReadyCallback)get_band_ready, task); |