Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [PATCHv2 6/9] android/health: Assign channel to user_data Date: Fri, 27 Jun 2014 10:40:00 +0300 Message-Id: <1403854803-28850-6-git-send-email-Andrei.Emeltchenko.news@gmail.com> In-Reply-To: <1403854803-28850-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> References: <1403784265-1455-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> <1403854803-28850-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