diff options
author | Ben Chan <benchan@chromium.org> | 2012-09-07 14:15:12 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-08 10:21:56 +0200 |
commit | 5f1a1cf834d06a6ed430f835b8d694c4dd44ac95 (patch) | |
tree | 69f0de1a5de651273b8260329225432d5930bc1b | |
parent | 1252572607094cc0036dd656e6d596510ce49f39 (diff) |
icera: increase timeout for +CFUN=4
-rw-r--r-- | plugins/icera/mm-broadband-modem-icera.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/icera/mm-broadband-modem-icera.c b/plugins/icera/mm-broadband-modem-icera.c index e429a2f2..c6b76f23 100644 --- a/plugins/icera/mm-broadband-modem-icera.c +++ b/plugins/icera/mm-broadband-modem-icera.c @@ -810,7 +810,12 @@ modem_power_down (MMIfaceModem *self, * keeps access to the SIM */ mm_base_modem_at_command (MM_BASE_MODEM (self), "+CFUN=4", - 3, + /* The modem usually completes +CFUN=4 within 1-2 seconds, + * but sometimes takes a ridiculously long time (~30-35 seconds). + * It's better to have a long timeout here than to have the + * modem not responding to subsequent AT commands until +CFUN=4 + * completes. */ + 40, FALSE, callback, user_data); |