summaryrefslogtreecommitdiffstats
path: root/drivers/stemodem
diff options
context:
space:
mode:
authorMarit Henriksen <marit.henriksen@stericsson.com>2011-02-04 15:40:04 +0100
committerDenis Kenzior <denkenz@gmail.com>2011-02-04 09:56:57 -0600
commit49457675a3a78b4b62d3597b80d38b2decefae39 (patch)
treee134a94aea54e1fc4e0486d6fcd7482b89323671 /drivers/stemodem
parent8453b2680ee6d21cb0906bf60bcfb3a2541b1ed6 (diff)
downloadofono-49457675a3a78b4b62d3597b80d38b2decefae39.tar.bz2
stemodem: Check for ok in voicecall_initialize
Diffstat (limited to 'drivers/stemodem')
-rw-r--r--drivers/stemodem/voicecall.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index dde13872..4a3a83d9 100644
--- a/drivers/stemodem/voicecall.c
+++ b/drivers/stemodem/voicecall.c
@@ -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);
}