Skip to contentSkip to conversation

stemodem: Check for ok in voicecall_initialize.

PATCH In review Marit Henriksen 2 participants 2 messages Feb 4, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 stemodem: Check for ok in voicecall_initialize.

From: Marit Henriksen <[email protected]>

---
 drivers/stemodem/voicecall.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
drivers/stemodem/voicecall.c +7 -0
index dde1387..4a3a83d 100644
@@ -535,6 +535,13 @@ static void ste_voicecall_initialized(gboolean ok, GAtResult *result,
 	struct ofono_voicecall *vc = user_data;
 	struct voicecall_data *vd = ofono_voicecall_get_data(vc);
 
+	if (!ok) {
+		ofono_error("*ECAV not enabled. "
+				"Do not have proper call handling");
+		ofono_voicecall_remove(vc);
+		return;
+	}
+
 	g_at_chat_register(vd->chat, "*ECAV:", ecav_notify, FALSE, vc, NULL);
 	ofono_voicecall_register(vc);
 }
Signature · 1 line
1.7.1
#1 lore raw

Hi Marit,

Quoted 6 lines · Marit Henriksen

From: Marit Henriksen <[email protected]>

---
 drivers/stemodem/voicecall.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis