From f014f3843e51a66d3ab3d80d9b63d7c73fb55e10 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 3 Mar 2025 20:25:01 -0600 Subject: broadband-modem,cli: slightly bump 3GPP scan timeout; add some cli dbus timeout slack Add some mmcli D-Bus timeout slack, making them slightly higher than the ModemManager internal timeout, to ensure the cli doesn't time out the D-Bus call when MM succeeds. For 3GPP scan, some modems appear to have internal 5 minute timeouts, so ensure MM doesn't time out right before the modem returns results: ModemManager[282578]: [1741054422.321400] [ttyUSB2/at] --> 'AT+COPS=?' ModemManager[282578]: [1741054722.247806] [modem1] failed scanning networks: Serial command timed out ModemManager[282578]: [1741054724.119770] [ttyUSB2/at] <-- '+COPS: (1,"T-Mobile","T-Mobile","310260",0),,(0,1,2,3,4),(0,1,2)OK' Signed-off-by: Dan Williams --- src/mm-broadband-modem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c index cd031e4c..ee216525 100644 --- a/src/mm-broadband-modem.c +++ b/src/mm-broadband-modem.c @@ -5317,7 +5317,7 @@ modem_3gpp_scan_networks (MMIfaceModem3gpp *self, { mm_base_modem_at_command (MM_BASE_MODEM (self), "+COPS=?", - 300, + 315, FALSE, callback, user_data); -- cgit v1.2.3-70-g09d2