btif_bonded_devices_t *p_bonded_devices);
static bt_status_t btif_in_fetch_bonded_device(const char *bdstr);
+static bool btif_has_ble_keys(const char *bdstr);
+
/************************************************************************************
** Static functions
************************************************************************************/
if (!btif_config_get_int(remote_bd_addr, "DevType", &device_type))
return BT_STATUS_FAIL;
- if ((device_type & BT_DEVICE_TYPE_BLE) == BT_DEVICE_TYPE_BLE)
+ if ((device_type & BT_DEVICE_TYPE_BLE) == BT_DEVICE_TYPE_BLE ||
+ btif_has_ble_keys(remote_bd_addr))
{
BTIF_TRACE_DEBUG("%s Found a LE device: %s", __func__, remote_bd_addr);
return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
}
+bool btif_has_ble_keys(const char *bdstr)
+{
+ return btif_config_exist(bdstr, "LE_KEY_PENC");
+}
+
/*******************************************************************************
**
** Function btif_storage_get_remote_addr_type