Skip to contentSkip to conversation

huawei: Use AlwaysOnline for CDMA modems

PATCH In review Forest Bond 2 participants 2 messages Mar 28, 2013 – Apr 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 huawei: Use AlwaysOnline for CDMA modems

From: Forest Bond <[email protected]>

---
 plugins/huawei.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
plugins/huawei.c +7 -0
index 5d8875a..59995b3 100644
@@ -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;
Signature · 1 line
1.7.0.4
#1 lore raw

Hi Forest,

Quoted 6 lines · Forest Bond

From: Forest Bond<[email protected]>

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

Patch has been applied, thanks.

Regards,
-Denis