aboutsummaryrefslogtreecommitdiff
path: root/health
diff options
context:
space:
mode:
authorJose Antonio Santos Cadenas <santoscadenas@gmail.com>2010-10-19 10:09:49 +0200
committerJose Antonio Santos Cadenas <santoscadenas@gmail.com>2010-10-21 09:44:58 +0200
commit230410365ef1fe0af1a79bae42f606f60447e346 (patch)
treecd01d017a60317fda9137ecddd46a21cc80deaac /health
parentb55676bd78c5ef8ffe91f93b4356d5ab0e0554f4 (diff)
downloadbluez-230410365ef1fe0af1a79bae42f606f60447e346.tar.gz
Check if the channel mode is correct when opening data channels
Diffstat (limited to 'health')
-rw-r--r--health/hdp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/health/hdp.c b/health/hdp.c
index fc8829ef..fd3b1caa 100644
--- a/health/hdp.c
+++ b/health/hdp.c
@@ -1574,6 +1574,11 @@ static void hdp_mdl_conn_cb(struct mcap_mdl *mdl, GError *err, gpointer data)
DBUS_TYPE_INVALID);
g_dbus_send_message(hdp_conn->conn, reply);
+ if (!check_channel_conf(hdp_chann)) {
+ close_mdl(hdp_chann);
+ return;
+ }
+
if (dev->fr)
return;