summaryrefslogtreecommitdiffstats
path: root/vnd
diff options
context:
space:
mode:
authorZach Johnson <zachoverflow@google.com>2014-09-26 21:14:34 -0700
committerAndre Eisenbach <eisenbach@google.com>2015-03-16 16:51:35 -0700
commit30e58068c1adaac7c5ccb3aa9cfb045d41d2a10e (patch)
tree7b92b8cc37422eb2bc82f41e1f3e19791a42ea4c /vnd
parentcc0ca141ad1e81826b71c0bacdb2e8ab186f9155 (diff)
downloadandroid_system_bt-30e58068c1adaac7c5ccb3aa9cfb045d41d2a10e.tar.gz
android_system_bt-30e58068c1adaac7c5ccb3aa9cfb045d41d2a10e.tar.bz2
android_system_bt-30e58068c1adaac7c5ccb3aa9cfb045d41d2a10e.zip
Refactor btm_devctl reset sequence
* Controller bring up on blockable thread now * Removed some duplicate and commands during controller bring up * The code to make commands for controller bring up is smaller and better
Diffstat (limited to 'vnd')
-rw-r--r--vnd/ble/vendor_ble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnd/ble/vendor_ble.c b/vnd/ble/vendor_ble.c
index 61d678009..5e1c6c188 100644
--- a/vnd/ble/vendor_ble.c
+++ b/vnd/ble/vendor_ble.c
@@ -33,6 +33,7 @@
#include "vendor_ble.h"
#include "vendor_hcidefs.h"
#include "gatt_int.h"
+#include "controller.h"
/*** This needs to be moved to a VSC control block eventually per coding conventions ***/
#if VENDOR_DYNAMIC_MEMORY == FALSE
@@ -688,7 +689,6 @@ tBTM_STATUS btm_ble_vendor_enable_irk_feature(BOOLEAN enable)
return BTM_MODE_UNSUPPORTED;
}
-
/*******************************************************************************
**
** Function btm_ble_vendor_init
@@ -719,7 +719,7 @@ void btm_ble_vendor_init(UINT8 max_irk_list_sz)
btm_ble_vendor_cb.irk_avail_size = max_irk_list_sz;
- if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1]))
+ if (!controller_get_interface()->supports_ble())
return;
#endif
}