From e778283f5512acd294929ae504113040faff3e14 Mon Sep 17 00:00:00 2001 From: "Fangxiaozhi (Franko)" Date: Mon, 12 Aug 2013 09:04:43 +0200 Subject: [PATCH] huawei: enlarge the checking times for ndisstatqry in disconnecting In sometimes, the disconnection of NDISDUP will spend more time than 10s. So it is better to enlarge the checking times, such as up to 60 times. --- plugins/huawei/mm-broadband-bearer-huawei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/huawei/mm-broadband-bearer-huawei.c b/plugins/huawei/mm-broadband-bearer-huawei.c index 13499e04..2e1b0b06 100644 --- a/plugins/huawei/mm-broadband-bearer-huawei.c +++ b/plugins/huawei/mm-broadband-bearer-huawei.c @@ -558,7 +558,7 @@ disconnect_3gpp_context_step (Disconnect3gppContext *ctx) case DISCONNECT_3GPP_CONTEXT_STEP_NDISSTATQRY: /* If too many retries (1s of wait between the retries), failed */ - if (ctx->check_count > 10) { + if (ctx->check_count > 60) { /* Clear context */ ctx->self->priv->disconnect_pending = NULL; g_simple_async_result_set_error (ctx->result,