diff options
author | Matthew Starr <mstarr@hedonline.com> | 2019-09-12 11:23:49 -0500 |
---|---|---|
committer | Matthew Starr <mstarr@hedonline.com> | 2019-09-12 11:23:49 -0500 |
commit | 06b6d0ce100a55682a2ce47b33f78b2689a90738 (patch) | |
tree | aebcd6879cd84ef387553305cbd91dd2dc05e29c /src | |
parent | 51c4626471ce5ddf9035b0c7570141b12929a52d (diff) |
mm-broadband-bearer: Increase CGACT timeout on deactivation
On u-blox modems it has been observed that attempting to force down the
bearer when the modem had an active data connection, lost the connection
but the bearer is still up, and the modem is searching for the network,
ModemManager would timeout before the CGACT command could return. This
can put the modem in a state where the ModemManager state does not match
the modem's actual state of being connected.
When deactivating the current active bearer, the timeout has been
changed from 10 seconds to 45 seconds. u-blox modems can take up to 40
seconds to respond to deactivation requests through the AT+CGACT
command according to the u-blox AT command reference.
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-broadband-bearer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c index aa6654e4..0cda4b9b 100644 --- a/src/mm-broadband-bearer.c +++ b/src/mm-broadband-bearer.c @@ -1692,7 +1692,7 @@ disconnect_3gpp (MMBroadbandBearer *self, mm_base_modem_at_command_full (ctx->modem, ctx->primary, ctx->cgact_command, - 10, + 45, FALSE, FALSE, /* raw */ NULL, /* cancellable */ @@ -1711,7 +1711,7 @@ disconnect_3gpp (MMBroadbandBearer *self, mm_base_modem_at_command_full (ctx->modem, ctx->secondary, ctx->cgact_command, - 10, + 45, FALSE, FALSE, /* raw */ NULL, /* cancellable */ |