aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2020-11-27 11:33:31 +0100
committerLoic Poulain <loic.poulain@linaro.org>2020-11-27 11:33:31 +0100
commit000e272a637d06ca7b76e70dc65a70499507cb09 (patch)
tree8704475f733ffac4bacdcf3e102ed9e779972d29
parent8b893d0d6b3cd6c133de54758b88ad874771bc9d (diff)
Increase DMS allocation time
That is only possible once modem has started all is services. Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
-rwxr-xr-xmhi-qmi-connectbin100352 -> 100360 bytes
-rw-r--r--mhi-qmi-connect.c3
2 files changed, 2 insertions, 1 deletions
diff --git a/mhi-qmi-connect b/mhi-qmi-connect
index ade77db..596b6bc 100755
--- a/mhi-qmi-connect
+++ b/mhi-qmi-connect
Binary files differ
diff --git a/mhi-qmi-connect.c b/mhi-qmi-connect.c
index 9cbddb2..6a33537 100644
--- a/mhi-qmi-connect.c
+++ b/mhi-qmi-connect.c
@@ -878,7 +878,8 @@ static void device_open_ready(QmiDevice *dev, GAsyncResult *res)
if (qmi_dev)
wwan_iface = qmi_device_get_wwan_iface(device);
- qmi_device_allocate_client(dev, service_dms, QMI_CID_NONE, 10, cancellable,
+ /* Wait 30s to give time for modem to completely boot */
+ qmi_device_allocate_client(dev, service_dms, QMI_CID_NONE, 35, cancellable,
(GAsyncReadyCallback)allocate_dms_client_ready, NULL);
}