components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         BTM_GetSecurityFlags
**
** Description      Get security flags for the device
**
** Returns          BOOLEAN TRUE or FALSE is device found
**
*******************************************************************************/
Function         BTM_GetSecurityFlags
Description      Get security flags for the device

Returns          BOOLEAN TRUE or FALSE is device found
Function BTM_GetSecurityFlags Description Get security flags for the device Returns BOOLEAN TRUE or FALSE is device found
BOOLEAN BTM_GetSecurityFlags (BD_ADDR bd_addr, UINT8 *p_sec_flags)
{
    tBTM_SEC_DEV_REC *p_dev_rec;
    if ((p_dev_rec = btm_find_dev (bd_addr)) != NULL) {
        *p_sec_flags = (UINT8) p_dev_rec->sec_flags;
        return (TRUE);
    }
    BTM_TRACE_ERROR ("BTM_GetSecurityFlags false");
    return (FALSE);
}
BOOLEAN BTM_GetSecurityFlags ( BD_ADDR bd_addr , UINT8 * p_sec_flags ) { tBTM_SEC_DEV_REC * p_dev_rec ; if ( ( p_dev_rec = btm_find_dev ( bd_addr ) ) != NULL ) { * p_sec_flags = ( UINT8 ) p_dev_rec -> sec_flags ; return ( TRUE ) ; } BTM_TRACE_ERROR ( " " ) ; return ( FALSE ) ; }
Function         BTM_GetSecurityFlags
Description      Get security flags for the device
Function BTM_GetSecurityFlags Description Get security flags for the device