From 26956924b062bed7f1b724376f9e6ee7e89c1e13 Mon Sep 17 00:00:00 2001 From: "Marius B. Kotsbak" Date: Tue, 30 Oct 2012 18:01:23 +0100 Subject: [PATCH] sierra: avoid reset when setting cfun=1 Some Sierra modems trigger a reset of the modem when sending +cfun=1. All sierra modems supports a second parameter to indicate that no reset is to be done: "+cfun=1,0". --- plugins/sierra/mm-common-sierra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sierra/mm-common-sierra.c b/plugins/sierra/mm-common-sierra.c index 1af64af4..e76c3667 100644 --- a/plugins/sierra/mm-common-sierra.c +++ b/plugins/sierra/mm-common-sierra.c @@ -115,7 +115,7 @@ get_current_functionality_status_ready (MMBaseModem *self, * Works well if we previously switched off the power with CFUN=4 */ mm_base_modem_at_command (MM_BASE_MODEM (self), - "+CFUN=1", + "+CFUN=1,0", /* ",0" ensures no reset */ 3, FALSE, (GAsyncReadyCallback)full_functionality_status_ready,