#if (BLE_VND_INCLUDED == TRUE)
match = btm_public_addr_to_random_pseudo (bda, &bda_type);
#endif
- /* possiblly receive connection complete with resolvable random on
- slave role while the device has been paired */
- if (!match && role == HCI_ROLE_SLAVE && BTM_BLE_IS_RESOLVE_BDA(bda))
+ /* Possibly receiving connection complete with a resolvable random address
+ for a device that has been paired */
+ if (!match && BTM_BLE_IS_RESOLVE_BDA(bda))
{
btm_ble_resolve_random_addr(bda, btm_ble_resolve_random_addr_on_conn_cmpl, p_data);
}
#define L2CA_GET_UPD_ST(x) ((x) & UPD_ST_MASK)
#define L2CA_SET_UPD_ST(x, y) x = (((x) & ~UPD_ST_MASK) | (y))
-
#if (defined BLE_VND_INCLUDED && BLE_VND_INCLUDED == TRUE)
#include "vendor_ble.h"
+#else
+#if BLE_PRIVACY_SPT == TRUE
+extern BOOLEAN btm_ble_get_acl_remote_addr(tBTM_SEC_DEV_REC *p_dev_rec, BD_ADDR conn_addr,
+ tBLE_ADDR_TYPE *p_addr_type);
#endif
+#endif
+
/*******************************************************************************
**
** Function L2CA_CancelBleConnectReq
BTM_BleEnableIRKFeature(TRUE);
btm_random_pseudo_to_public(init_addr, &init_addr_type);
+#else
+ btm_ble_get_acl_remote_addr(p_dev_rec, init_addr, &init_addr_type);
#endif
#endif
if (!btsnd_hcic_ble_create_ll_conn (scan_int,/* UINT16 scan_int */