aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranko Fang <fangxiaozhi@huawei.com>2013-04-03 12:52:50 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-04-03 12:52:50 +0200
commit8400870b3ef87a094adbcada1c0fd6aa067b7595 (patch)
treee9d200d59dae6a5b8b08785349bdaa9e0704a8c2
parent585b51f922c10f28b7b1bf3ba82a0904c33715c8 (diff)
huawei: increase the connection timeout to 120s
-rw-r--r--plugins/huawei/mm-broadband-bearer-huawei.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/huawei/mm-broadband-bearer-huawei.c b/plugins/huawei/mm-broadband-bearer-huawei.c
index 364760fd..410f39e5 100644
--- a/plugins/huawei/mm-broadband-bearer-huawei.c
+++ b/plugins/huawei/mm-broadband-bearer-huawei.c
@@ -277,8 +277,11 @@ connect_3gpp_context_step (Connect3gppContext *ctx)
}
case CONNECT_3GPP_CONTEXT_STEP_DHCP:
- /* If too many retries (1s of wait between the retries), failed */
- if (ctx->check_count > 30) {
+ /* Wait for dial up timeout, retries for 120 times
+ * (1s between the retries, so it means 2 minutes).
+ * If too many retries, failed
+ */
+ if (ctx->check_count > 120) {
/* Clear context */
ctx->self->priv->connect_pending = NULL;
g_simple_async_result_set_error (ctx->result,