Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [PATCHv3 07/12] android/health: Assign channel to user_data Date: Fri, 27 Jun 2014 14:24:58 +0300 Message-Id: <1403868303-8129-7-git-send-email-Andrei.Emeltchenko.news@gmail.com> In-Reply-To: <1403868303-8129-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> References: <1403855994-29262-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> <1403868303-8129-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Andrei Emeltchenko Assign channel for incoming connections when it is created. --- android/health.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/health.c b/android/health.c index ff2c663..d9731fd 100644 --- a/android/health.c +++ b/android/health.c @@ -1202,6 +1202,9 @@ static struct health_channel *connect_channel(struct mcap_mcl *mcl, channel = create_channel(app, mdepid, device); } + /* Device is created here */ + mcl->cb->user_data = channel; + return channel; } -- 1.8.3.2