summaryrefslogtreecommitdiff
path: root/android/health.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-06-27 18:16:07 +0300
committerSzymon Janc <szymon.janc@tieto.com>2014-06-29 14:17:19 +0200
commit6dafdbdf54c261ae80ba3ac76f9d488985d7a101 (patch)
tree8e597a4ded2f9975f64c6402e040d8b51aa17dd4 /android/health.c
parent352a275e53f811018da9eed172bd688cb9a3b880 (diff)
downloadbluez-6dafdbdf54c261ae80ba3ac76f9d488985d7a101.tar.gz
android/health: Assign channel to user_data
Assign channel for incoming connections when it is created.
Diffstat (limited to 'android/health.c')
-rw-r--r--android/health.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/health.c b/android/health.c
index de71aa750..378650433 100644
--- a/android/health.c
+++ b/android/health.c
@@ -1213,6 +1213,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;
}