diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-07-28 16:07:09 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-12-11 20:22:57 +0000 |
commit | b094fe442764a45e46df77176b697177a4d62f91 (patch) | |
tree | c2bcdec945444cde4100484e026b9a24d46ae73d /src/mm-port-probe.c | |
parent | 2c34ebe80c59877ef432a9f7d1dbd0e0e0957a78 (diff) |
port-probe: duplicate amount of AT probing attempts
We originally did only 3 attempts every 3s, so the maximum probing
time for a given TTY port looking for AT capabilities was 9 seconds.
We now duplicate the amount of times, so up to 18s of port probing,
which is quite a lot more than before, but unfortunately it's needed
because most new modems take a lot of time to boot up internally.
The way to avoid this long probing time is to make sure port type
hints for the possible AT ports are set correctly.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/379
Diffstat (limited to 'src/mm-port-probe.c')
-rw-r--r-- | src/mm-port-probe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c index e955a97e..ed7d36ab 100644 --- a/src/mm-port-probe.c +++ b/src/mm-port-probe.c @@ -1086,6 +1086,9 @@ static const MMPortProbeAtCommand at_probing[] = { { "AT", 3, mm_port_probe_response_processor_is_at }, { "AT", 3, mm_port_probe_response_processor_is_at }, { "AT", 3, mm_port_probe_response_processor_is_at }, + { "AT", 3, mm_port_probe_response_processor_is_at }, + { "AT", 3, mm_port_probe_response_processor_is_at }, + { "AT", 3, mm_port_probe_response_processor_is_at }, { NULL } }; |