Bug 98235

Summary: Scan (operator scan) can take longer than the hardcoded 120 seconds
Product: ModemManager Reporter: Joeri Kleefkens <joeri.kleefkens>
Component: generalAssignee: ModemManager bug user <modemmanager>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: joeri.kleefkens
Version: 1.4   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Joeri Kleefkens 2016-10-13 13:31:50 UTC
There is a hardcoded timeout of 120 seconds for scan in mm-broadband-modem-mbim.c and mm-broadband-modem.c. While this process can take longer than 120 seconds.
While in libqmi-1.16.0/src/qmicli/qmicli-nas.c:
300, /* this operation takes a lot of time! */

And in the manpage for mmcli also a timeout of 300 is given as an example:
mmcli -m 0 --3gpp-scan --timeout=300

I have also verified this in the latest version of ModemManager, here the timeout is also 120 seconds.
Comment 1 Aleksander Morgado 2016-10-24 11:36:36 UTC
Thanks, bumped the timeout to 300s everywhere.

Fix pushed to git master and mm-1-6.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.