diff options
author | Jose Antonio Santos Cadenas <santoscadenas@gmail.com> | 2010-10-19 10:09:49 +0200 |
---|---|---|
committer | Jose Antonio Santos Cadenas <santoscadenas@gmail.com> | 2010-10-21 09:44:58 +0200 |
commit | 230410365ef1fe0af1a79bae42f606f60447e346 (patch) | |
tree | cd01d017a60317fda9137ecddd46a21cc80deaac /health | |
parent | b55676bd78c5ef8ffe91f93b4356d5ab0e0554f4 (diff) | |
download | bluez-230410365ef1fe0af1a79bae42f606f60447e346.tar.gz |
Check if the channel mode is correct when opening data channels
Diffstat (limited to 'health')
-rw-r--r-- | health/hdp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/health/hdp.c b/health/hdp.c index fc8829ef3..fd3b1caa2 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; |