components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         BTM_PeerSupportsSecureConnections
**
** Description      This function is called to check if the peer supports
**                  BR/EDR Secure Connections.
**
** Parameters:      bd_addr - address of the peer
**
** Returns          TRUE if BR/EDR Secure Connections are supported by the peer,
**                  else FALSE.
**
*******************************************************************************/
Function         BTM_PeerSupportsSecureConnections
Description      This function is called to check if the peer supports
BR/EDR Secure Connections.

address of the peer

Returns          TRUE if BR/EDR Secure Connections are supported by the peer,
else FALSE.
Function BTM_PeerSupportsSecureConnections Description This function is called to check if the peer supports BR / EDR Secure Connections . address of the peer Returns TRUE if BR / EDR Secure Connections are supported by the peer else FALSE .
BOOLEAN BTM_PeerSupportsSecureConnections(BD_ADDR bd_addr)
{
    tBTM_SEC_DEV_REC    *p_dev_rec;
    if ((p_dev_rec = btm_find_dev(bd_addr)) == NULL) {
        BTM_TRACE_WARNING("%s: unknown BDA: %08x%04x\n", __FUNCTION__,
                          (bd_addr[0] << 24) + (bd_addr[1] << 16) + (bd_addr[2] << 8) + bd_addr[3],
                          (bd_addr[4] << 8) + bd_addr[5]);
        return FALSE;
    }
    return (p_dev_rec->remote_supports_secure_connections);
}
BOOLEAN BTM_PeerSupportsSecureConnections ( BD_ADDR bd_addr ) { tBTM_SEC_DEV_REC * p_dev_rec ; if ( ( p_dev_rec = btm_find_dev ( bd_addr ) ) == NULL ) { BTM_TRACE_WARNING ( " \n " , __FUNCTION__ , ( bd_addr [ 0 ] << 24 ) + ( bd_addr [ 1 ] << 16 ) + ( bd_addr [ 2 ] << 8 ) + bd_addr [ 3 ] , ( bd_addr [ 4 ] << 8 ) + bd_addr [ 5 ] ) ; return FALSE ; } return ( p_dev_rec -> remote_supports_secure_connections ) ; }
Function         BTM_PeerSupportsSecureConnections
Description      This function is called to check if the peer supports
BR/EDR Secure Connections.
Function BTM_PeerSupportsSecureConnections Description This function is called to check if the peer supports BR / EDR Secure Connections .