All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] huawei: Use AlwaysOnline for CDMA modems
@ 2013-03-28 21:00 Forest Bond
  2013-04-02  2:43 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Forest Bond @ 2013-03-28 21:00 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 844 bytes --]

From: Forest Bond <forest.bond@rapidrollout.com>

---
 plugins/huawei.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/plugins/huawei.c b/plugins/huawei.c
index 5d8875a..59995b3 100644
--- a/plugins/huawei.c
+++ b/plugins/huawei.c
@@ -447,6 +447,13 @@ static void sysinfo_enable_cb(gboolean ok, GAtResult *result,
 	g_at_chat_send(data->pcui, "AT^CVOICE=?", cvoice_prefix,
 					cvoice_support_cb, modem, NULL);
 
+	/* For CDMA we use AlwaysOnline so we leave the modem online. */
+	if (data->have_gsm == FALSE && data->have_cdma == TRUE) {
+		ofono_modem_set_boolean(modem, "AlwaysOnline", TRUE);
+		ofono_modem_set_powered(modem, TRUE);
+		return;
+	}
+
 	if (g_at_chat_send(data->pcui, data->offline_command, none_prefix,
 					cfun_offline, modem, NULL) > 0)
 		return;
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/2] huawei: Use AlwaysOnline for CDMA modems
  2013-03-28 21:00 [PATCH 2/2] huawei: Use AlwaysOnline for CDMA modems Forest Bond
@ 2013-04-02  2:43 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2013-04-02  2:43 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

Hi Forest,

On 03/28/2013 04:00 PM, Forest Bond wrote:
> From: Forest Bond<forest.bond@rapidrollout.com>
>
> ---
>   plugins/huawei.c |    7 +++++++
>   1 files changed, 7 insertions(+), 0 deletions(-)
>

Patch has been applied, thanks.

Regards,
-Denis


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-02  2:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 21:00 [PATCH 2/2] huawei: Use AlwaysOnline for CDMA modems Forest Bond
2013-04-02  2:43 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.