When there's an agent registered, send the SCO file descriptor to the
agent associated with the card after the connection is established.
---
src/handsfree-audio.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index 9eecb8e..129f33f 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -286,6 +286,9 @@ static gboolean sco_connect_cb(GIOChannel *io, GIOCondition
cond,
sk = g_io_channel_unix_get_fd(io);
+ if (agent)
+ send_new_connection(card->path, sk);
+
close(sk);
reply = dbus_message_new_method_return(card->msg);
--
1.8.1.5
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono