Bug 98235 - Scan (operator scan) can take longer than the hardcoded 120 seconds
Summary: Scan (operator scan) can take longer than the hardcoded 120 seconds
Status: RESOLVED FIXED
Alias: None
Product: ModemManager
Classification: Unclassified
Component: general (show other bugs)
Version: 1.4
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: ModemManager bug user
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-13 13:31 UTC by Joeri Kleefkens
Modified: 2016-10-24 11:36 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.