******************************************************************************/
void bta_dm_add_ble_device(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
tBT_DEVICE_TYPE dev_type) {
- if (!BTM_SecAddBleDevice(bd_addr, dev_type, addr_type)) {
- LOG(ERROR) << "BTA_DM: Error adding BLE Device for device " << bd_addr;
- }
+ BTM_SecAddBleDevice(bd_addr, dev_type, addr_type);
}
/*******************************************************************************
return 0;
}
-bool bluetooth::shim::BTM_SecAddBleDevice(const RawAddress& bd_addr,
+void bluetooth::shim::BTM_SecAddBleDevice(const RawAddress& bd_addr,
tBT_DEVICE_TYPE dev_type,
tBLE_ADDR_TYPE addr_type) {
LOG_INFO("UNIMPLEMENTED %s", __func__);
- return false;
}
bool bluetooth::shim::BTM_SecAddBleKey(const RawAddress& bd_addr,
* dev_type - Remote device's device type.
* addr_type - LE device address type.
*
- * Returns true if added OK, else false
- *
******************************************************************************/
-bool BTM_SecAddBleDevice(const RawAddress& bd_addr, tBT_DEVICE_TYPE dev_type,
+void BTM_SecAddBleDevice(const RawAddress& bd_addr, tBT_DEVICE_TYPE dev_type,
tBLE_ADDR_TYPE addr_type);
/*******************************************************************************
/******************************************************************************/
/* External Function to be called by other modules */
/******************************************************************************/
-bool BTM_SecAddBleDevice(const RawAddress& bd_addr, tBT_DEVICE_TYPE dev_type,
+void BTM_SecAddBleDevice(const RawAddress& bd_addr, tBT_DEVICE_TYPE dev_type,
tBLE_ADDR_TYPE addr_type) {
if (bluetooth::shim::is_gd_shim_enabled()) {
return bluetooth::shim::BTM_SecAddBleDevice(bd_addr, dev_type, addr_type);
BTM_TRACE_DEBUG("InqDb device_type =0x%x addr_type=0x%x",
p_info->results.device_type, p_info->results.ble_addr_type);
}
-
- return true;
}
/*******************************************************************************
* dev_type - Remote device's device type.
* addr_type - LE device address type.
*
- * Returns true if added OK, else false
- *
******************************************************************************/
-extern bool BTM_SecAddBleDevice(const RawAddress& bd_addr,
+extern void BTM_SecAddBleDevice(const RawAddress& bd_addr,
tBT_DEVICE_TYPE dev_type,
tBLE_ADDR_TYPE addr_type);