components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         BTM_BothEndsSupportSecureConnections
**
** Description      This function is called to check if both the local device and the peer device
**                  specified by bd_addr support BR/EDR Secure Connections.
**
** Parameters:      bd_addr - address of the peer
**
** Returns          TRUE if BR/EDR Secure Connections are supported by both local
**                  and the remote device.
**                  else FALSE.
**
*******************************************************************************/
Function         BTM_BothEndsSupportSecureConnections
Description      This function is called to check if both the local device and the peer device
specified by bd_addr support BR/EDR Secure Connections.

address of the peer

Returns          TRUE if BR/EDR Secure Connections are supported by both local
and the remote device.
else FALSE.
Function BTM_BothEndsSupportSecureConnections Description This function is called to check if both the local device and the peer device specified by bd_addr support BR / EDR Secure Connections . address of the peer Returns TRUE if BR / EDR Secure Connections are supported by both local and the remote device . else FALSE .
BOOLEAN BTM_BothEndsSupportSecureConnections(BD_ADDR bd_addr)
{
    return ((controller_get_interface()->supports_secure_connections()) &&
            (BTM_PeerSupportsSecureConnections(bd_addr)));
}
BOOLEAN BTM_BothEndsSupportSecureConnections ( BD_ADDR bd_addr ) { return ( ( controller_get_interface ( ) -> supports_secure_connections ( ) ) && ( BTM_PeerSupportsSecureConnections ( bd_addr ) ) ) ; }
Function         BTM_BothEndsSupportSecureConnections
Description      This function is called to check if both the local device and the peer device
specified by bd_addr support BR/EDR Secure Connections.
Function BTM_BothEndsSupportSecureConnections Description This function is called to check if both the local device and the peer device specified by bd_addr support BR / EDR Secure Connections .