[PATCH] mbimcli: increase timeout of device open operation

Ben Chan benchan at chromium.org
Tue Mar 4 00:17:23 PST 2014


A MBIM device typically delays its response to an 'Open' command when it
has not completed the initialization process. This patch increases the
timeout of the MBIM device open operation from 15s to 30s to handle
situations where the device takes much longer to initialize.
---
 src/mbimcli/mbimcli.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mbimcli/mbimcli.c b/src/mbimcli/mbimcli.c
index d95363d..ea457b3 100644
--- a/src/mbimcli/mbimcli.c
+++ b/src/mbimcli/mbimcli.c
@@ -318,7 +318,7 @@ device_new_ready (GObject      *unused,
 
     /* Open the device */
     mbim_device_open (device,
-                      15,
+                      30,
                       cancellable,
                       (GAsyncReadyCallback) device_open_ready,
                       NULL);
-- 
1.9.0.279.gdc9e3eb



More information about the libmbim-devel mailing list