From 30e58068c1adaac7c5ccb3aa9cfb045d41d2a10e Mon Sep 17 00:00:00 2001 From: Zach Johnson Date: Fri, 26 Sep 2014 21:14:34 -0700 Subject: 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 --- vnd/ble/vendor_ble.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vnd') 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 } -- cgit v1.2.3