summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMartin Fuzzey <mfuzzey@parkeon.com>2017-10-13 16:02:06 +0200
committerSzymon Janc <szymon.janc@codecoup.pl>2017-11-06 10:14:50 +0100
commitb51effb9bcd755c4114818ca490cf34d120b2639 (patch)
tree07612026b3561d7f5e0be42eec15d1abe66870db /android
parent927711c0af7a27205fbd917b56ef9fcafff031f8 (diff)
downloadbluez-b51effb9bcd755c4114818ca490cf34d120b2639.tar.gz
android: Skip key loading for LE only devices.
Key loading is not supported for LE only devices.
Diffstat (limited to 'android')
-rw-r--r--android/bluetooth.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/android/bluetooth.c b/android/bluetooth.c
index 51a31fec7..c3ad5ce6e 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -3265,7 +3265,11 @@ static void load_devices_info(bt_bluetooth_ready cb)
load_irks(irks);
g_slist_free_full(irks, g_free);
- load_link_keys(keys, cb);
+ if (adapter.supported_settings & MGMT_SETTING_BREDR)
+ load_link_keys(keys, cb);
+ else
+ cb(0, &adapter.bdaddr);
+
g_slist_free_full(keys, g_free);
g_strfreev(devs);