diff options
author | Mariusz Skamra <mariusz.skamra@tieto.com> | 2015-05-20 11:56:39 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2015-05-22 15:13:19 +0200 |
commit | 24f7199b8811fb85da7c64317678626d45ebde4c (patch) | |
tree | bd8834c0a4fe57af5334df364dee4224715ab9ce /android/hidhost.c | |
parent | 22d154346b9665721441bd6908bab66c18f436fe (diff) | |
download | bluez-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/hidhost.c')
-rw-r--r-- | android/hidhost.c | 2 |
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); |