Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [PATCHv1 14/16] android/hal-sock: Send RFCOMM channel to framework Date: Thu, 14 Nov 2013 17:11:53 +0200 Message-Id: <1384441915-23966-15-git-send-email-Andrei.Emeltchenko.news@gmail.com> In-Reply-To: <1384441915-23966-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> References: <1384441915-23966-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 3c4e2fc..905def2 100644 --- a/android/socket.c +++ b/android/socket.c @@ -462,6 +462,11 @@ static void sdp_search_cb(sdp_list_t *recs, int err, gpointer data) goto fail; } + if (write(rfslot->fd, &chan, sizeof(chan)) != sizeof(chan)) { + error("Error sending RFCOMM channel"); + goto fail; + } + rfslot->real_sock = g_io_channel_unix_get_fd(io); rfslot->channel = chan; rfcomm_connected_list = g_list_append(rfcomm_connected_list, rfslot); -- 1.7.10.4