Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [PATCHv7 03/14] android/socket: Send RFCOMM channel to framework Date: Fri, 22 Nov 2013 10:34:44 +0200 Message-Id: <1385109295-11445-4-git-send-email-Andrei.Emeltchenko.news@gmail.com> In-Reply-To: <1385109295-11445-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> References: <1385109295-11445-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Andrei Emeltchenko Framework expects channel to be send. --- android/socket.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/socket.c b/android/socket.c index 37864e5..ab8d78b 100644 --- a/android/socket.c +++ b/android/socket.c @@ -519,6 +519,11 @@ static void sdp_search_cb(sdp_list_t *recs, int err, gpointer data) goto fail; } + if (write(rfsock->fd, &chan, sizeof(chan)) != sizeof(chan)) { + error("Error sending RFCOMM channel"); + goto fail; + } + rfsock->real_sock = g_io_channel_unix_get_fd(io); rfsock->channel = chan; connections = g_list_append(connections, rfsock); -- 1.8.3.2