components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         btm_sec_is_le_capable_dev
**
** Description       Is the specified device is dual mode or LE only device
**
** Returns          TRUE - dev is a dual mode
**
*******************************************************************************/
Function         btm_sec_is_le_capable_dev
Description       Is the specified device is dual mode or LE only device

Returns          TRUE - dev is a dual mode
Function btm_sec_is_le_capable_dev Description Is the specified device is dual mode or LE only device Returns TRUE - dev is a dual mode
BOOLEAN btm_sec_is_le_capable_dev (BD_ADDR bda)
{
    BOOLEAN le_capable = FALSE;
#if (BLE_INCLUDED== TRUE)
    tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bda);
    if (p_dev_rec && (p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) == BT_DEVICE_TYPE_BLE) {
        le_capable  = TRUE;
    }
#endif
    return le_capable;
}
BOOLEAN btm_sec_is_le_capable_dev ( BD_ADDR bda ) { BOOLEAN le_capable = FALSE ; #if ( BLE_INCLUDED == TRUE ) tBTM_SEC_DEV_REC * p_dev_rec = btm_find_dev ( bda ) ; if ( p_dev_rec && ( p_dev_rec -> device_type & BT_DEVICE_TYPE_BLE ) == BT_DEVICE_TYPE_BLE ) { le_capable = TRUE ; } #endif return le_capable ; }
Function         btm_sec_is_le_capable_dev
Description       Is the specified device is dual mode or LE only device
Function btm_sec_is_le_capable_dev Description Is the specified device is dual mode or LE only device