[PATCH] bearer-mbim: increase disconnect timeout

Ben Chan benchan at chromium.org
Thu Jul 17 00:19:42 PDT 2014


It's been observed that modems may take a long time to disconnect from
the network under certain network conditions. This patch increases the
timeout for the MBIM_CID_CONNECT set command in the disconnect sequence
from 10s to 30s.
---
FWIW, mm-bearer-qmi also uses a 30s timeout for qmi_client_wds_stop_network

 src/mm-bearer-mbim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c
index e4adbb3..358b261 100644
--- a/src/mm-bearer-mbim.c
+++ b/src/mm-bearer-mbim.c
@@ -1054,7 +1054,7 @@ disconnect_context_step (DisconnectContext *ctx)
 
         mbim_device_command (ctx->device,
                              message,
-                             10,
+                             30,
                              NULL,
                              (GAsyncReadyCallback)disconnect_set_ready,
                              ctx);
-- 
2.0.0.526.g5318336



More information about the ModemManager-devel mailing list