QMI detection timeout too short for Sierra WP7607
I'm testing a Sierra WP7607 IoT module in a mangOH Red development kit and I see that when the board gets connected to USB, ModemManager doesn't detect the modem as QMI-capable because the 10 seconds timeout is too short. If I increase it to 20 seconds like in:
--- a/src/mm-port-qmi.c
+++ b/src/mm-port-qmi.c
@@ -405,7 +405,7 @@ port_open_step (GTask *task)
qmi_device_open (ctx->device,
(QMI_DEVICE_OPEN_FLAGS_VERSION_INFO |
QMI_DEVICE_OPEN_FLAGS_PROXY),
- 10,
+ 20,
g_task_get_cancellable (task),
(GAsyncReadyCallback) qmi_device_open_first_ready,
task);
then the modem starts responding to QMI requests 13 seconds after the first request and then it works fine in QMI mode. I'm going to attach logs.
Would it be possible to use a larger timeout for QMI detection? Or is there a better solution?