Send the SCO socket to the agent associated with the card that
just got connected.
---
 src/handsfree-audio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index 795a68b..4232074 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -291,6 +291,8 @@ static gboolean sco_connect_cb(GIOChannel *io, GIOCondition 
cond,
 
        sk = g_io_channel_unix_get_fd(io);
 
+       send_new_connection(card->path, sk);
+
        close(sk);
 
        reply = dbus_message_new_method_return(card->msg);
-- 
1.8.2

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to