summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMariusz Skamra <mariusz.skamra@tieto.com>2015-05-20 11:56:39 +0200
committerSzymon Janc <szymon.janc@tieto.com>2015-05-22 15:13:19 +0200
commit24f7199b8811fb85da7c64317678626d45ebde4c (patch)
treebd8834c0a4fe57af5334df364dee4224715ab9ce /android
parent22d154346b9665721441bd6908bab66c18f436fe (diff)
downloadbluez-24f7199b8811fb85da7c64317678626d45ebde4c.tar.gz
android/hidhost: Fix connecting HOGP over BREDR
This patch fixes issue related to HID connection over BREDR. To avoid HOG connection with dual mode device connected over BREDR, bearer type is checked not the features of remote device.
Diffstat (limited to 'android')
-rw-r--r--android/hidhost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/hidhost.c b/android/hidhost.c
index 729b88476..a2b820f55 100644
--- a/android/hidhost.c
+++ b/android/hidhost.c
@@ -891,7 +891,7 @@ static void bt_hid_connect(const void *buf, uint16_t len)
ba2str(&dev->dst, addr);
DBG("connecting to %s", addr);
- if (bt_is_device_le(&dst)) {
+ if (bt_device_last_seen_bearer(&dev->dst) != BDADDR_BREDR) {
if (!hog_connect(dev)) {
status = HAL_STATUS_FAILED;
hid_device_remove(dev);