aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Eisenbach <eisenbach@google.com>2015-04-15 22:16:47 -0700
committerAndre Eisenbach <eisenbach@google.com>2015-04-15 22:16:47 -0700
commitf88a7a197ab6652988e575ee419f6bc93b8c5b47 (patch)
treeddb6fb03a72b27c82f6a1663a7ca92ecdcc63a34
parentf54df6b47616eeae11001b1d2e977548fe316227 (diff)
downloadbt-f88a7a197ab6652988e575ee419f6bc93b8c5b47.tar.gz
Fix compilation error with privacy disabled
Change-Id: I06d1322789fbd547080a6bd64e9c7153ddb6d70e
-rw-r--r--stack/btm/btm_devctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stack/btm/btm_devctl.c b/stack/btm/btm_devctl.c
index b725fe29c..4e46bac4c 100644
--- a/stack/btm/btm_devctl.c
+++ b/stack/btm/btm_devctl.c
@@ -175,6 +175,7 @@ static void reset_complete(void *result) {
l2c_link_processs_num_bufs(controller->get_acl_buffer_count_classic());
#if (BLE_INCLUDED == TRUE)
+#if (defined BLE_PRIVACY_SPT && BLE_PRIVACY_SPT == TRUE)
/* Set up the BLE privacy settings */
if (controller->supports_ble() && controller->supports_ble_privacy() &&
controller->get_ble_resolving_list_max_size() > 0) {
@@ -182,6 +183,7 @@ static void reset_complete(void *result) {
/* set the default random private address timeout */
btsnd_hcic_ble_set_rand_priv_addr_timeout(BTM_BLE_PRIVATE_ADDR_INT);
}
+#endif
if (controller->supports_ble()) {
l2c_link_processs_ble_num_bufs(controller->get_acl_buffer_count_ble());