Skip to contentSkip to conversation

Use AT+CFUN? to query powered state

PATCH New Martin Xu 1 participant 1 message Nov 4, 2009

lore
Share & tools
lore

Martin Xu

author
#0 lore raw

PATCH 1/1 Use AT+CFUN? to query powered state

---
 plugins/mbm.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
plugins/mbm.c +3 -0
index fd4569c..602709d 100644
@@ -187,6 +187,9 @@ static int mbm_enable(struct ofono_modem *modem)
 					NULL, NULL, NULL);
 	g_at_chat_send(data->chat, "AT*EMRDY?", none_prefix, NULL, NULL, NULL);
 
+	g_at_chat_send(data->chat, "AT+CFUN?", cfun_prefix,
+					cfun_query, modem, NULL);
+
 	return -EINPROGRESS;
 }
 
Signature · 1 line
1.6.1.3