components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         btm_sec_is_master
**
** Description      The function checks if the device is BR/EDR master after
**                  pairing is completed.
**
** Returns          TRUE - if the device is master.
**
*******************************************************************************/
Function         btm_sec_is_master
Description      The function checks if the device is BR/EDR master after
pairing is completed.

Returns          TRUE - if the device is master.
Function btm_sec_is_master Description The function checks if the device is BR / EDR master after pairing is completed . Returns TRUE - if the device is master .
static BOOLEAN btm_sec_is_master(tBTM_SEC_DEV_REC *p_dev_rec)
{
    tACL_CONN *p = btm_bda_to_acl(p_dev_rec->bd_addr, BT_TRANSPORT_BR_EDR);
    return (p && (p->link_role == BTM_ROLE_MASTER));
}
static BOOLEAN btm_sec_is_master ( tBTM_SEC_DEV_REC * p_dev_rec ) { tACL_CONN * p = btm_bda_to_acl ( p_dev_rec -> bd_addr , BT_TRANSPORT_BR_EDR ) ; return ( p && ( p -> link_role == BTM_ROLE_MASTER ) ) ; }
Function         btm_sec_is_master
Description      The function checks if the device is BR/EDR master after
pairing is completed.
Function btm_sec_is_master Description The function checks if the device is BR / EDR master after pairing is completed .