diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-09 18:41:42 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-09 18:42:46 +0200 |
commit | a12d979373a7c0724664889a237905f6ea3aeb1e (patch) | |
tree | 44196377231c7551c7e96a455cd48e88a4343f4a | |
parent | cb11bd09d6ad8cdfc97cef8f3793dd82580006b8 (diff) |
huawei: increase the connection timeout to 60s
-rw-r--r-- | plugins/huawei/mm-broadband-bearer-huawei.c | 7 |
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..a5f88b06 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 60 times + * (1s between the retries, so it means 1 minute). + * If too many retries, failed + */ + if (ctx->check_count > 60) { /* Clear context */ ctx->self->priv->connect_pending = NULL; g_simple_async_result_set_error (ctx->result, |