}
static volatile int btpan_dev_local_role;
+#if BTA_PAN_INCLUDED == TRUE
static tBTA_PAN_ROLE_INFO bta_panu_info = {PANU_SERVICE_NAME, 0, PAN_SECURITY};
static tBTA_PAN_ROLE_INFO bta_pan_nap_info = {PAN_NAP_SERVICE_NAME, 1, PAN_SECURITY};
+#endif
static bt_status_t btpan_enable(int local_role)
{
{
#if (BLE_PRIVACY_SPT == TRUE )
UINT8 *p_data = p, peer_addr_type;
+ BD_ADDR local_rpa, peer_rpa;
#endif
UINT8 role, status, bda_type;
UINT16 handle;
- BD_ADDR bda, local_rpa, peer_rpa;
+ BD_ADDR bda;
UINT16 conn_interval, conn_latency, conn_timeout;
BOOLEAN match = FALSE;
UNUSED(evt_len);
return btm_ble_set_connectability( p_cb->connectable_mode);
}
+#if BLE_PRIVACY_SPT == TRUE
static bool is_resolving_list_bit_set(void *data, void *context)
{
tBTM_SEC_DEV_REC *p_dev_rec = data;
return true;
}
+#endif
/*******************************************************************************
**
tBLE_ADDR_TYPE *p_own_addr_type)
{
UINT8 evt_type;
- tBTM_SEC_DEV_REC *p_dev_rec;
+#if BLE_PRIVACY_SPT == TRUE
+ tBTM_SEC_DEV_REC *p_dev_rec;
+#endif
evt_type = (p_cb->connectable_mode == BTM_BLE_NON_CONNECTABLE) ? \
((p_cb->scan_rsp) ? BTM_BLE_DISCOVER_EVT : BTM_BLE_NON_CONNECT_EVT )\