From ed6ba0a7e63f18f7750a79d86366731a5201358e Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 11 Mar 2014 22:46:24 +0100 Subject: [PATCH] android/bluetooth: Set missing settings before loading linkkeys This makes sure all settings are set before adapter ready callback is called. Limit number of notifications send when settings are applied. --- android/bluetooth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/bluetooth.c b/android/bluetooth.c index 27323909e..f2b932101 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -1998,9 +1998,6 @@ static void read_info_complete(uint8_t status, uint16_t length, clear_uuids(); - load_devices_info(cb); - load_devices_cache(); - set_io_capability(); set_device_id(); @@ -2018,6 +2015,9 @@ static void read_info_complete(uint8_t status, uint16_t length, if (missing_settings & MGMT_SETTING_LE) set_mode(MGMT_OP_SET_LE, 0x01); + load_devices_info(cb); + load_devices_cache(); + return; failed: -- 2.47.3