components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         btm_sec_update_legacy_auth_state
**
** Description      This function updates the legacy authentication state
**
** Returns          void
**
*******************************************************************************/
Function         btm_sec_update_legacy_auth_state
Description      This function updates the legacy authentication state

Returns          void
Function btm_sec_update_legacy_auth_state Description This function updates the legacy authentication state Returns void
void btm_sec_update_legacy_auth_state(tACL_CONN *p_acl_cb, UINT8 legacy_auth_state)
{
    if (p_acl_cb) {
        tBTM_SEC_DEV_REC  *p_dev_rec = btm_find_dev_by_handle (p_acl_cb->hci_handle);
        if (p_dev_rec) {
            if ((BTM_BothEndsSupportSecureConnections(p_dev_rec->bd_addr) == 0) &&
                 (legacy_auth_state != BTM_ACL_LEGACY_AUTH_NONE)) {
                p_acl_cb->legacy_auth_state |= legacy_auth_state;
            } else {
                p_acl_cb->legacy_auth_state = BTM_ACL_LEGACY_AUTH_NONE;
            }
        }
    }
}
void btm_sec_update_legacy_auth_state ( tACL_CONN * p_acl_cb , UINT8 legacy_auth_state ) { if ( p_acl_cb ) { tBTM_SEC_DEV_REC * p_dev_rec = btm_find_dev_by_handle ( p_acl_cb -> hci_handle ) ; if ( p_dev_rec ) { if ( ( BTM_BothEndsSupportSecureConnections ( p_dev_rec -> bd_addr ) == 0 ) && ( legacy_auth_state != BTM_ACL_LEGACY_AUTH_NONE ) ) { p_acl_cb -> legacy_auth_state |= legacy_auth_state ; } else { p_acl_cb -> legacy_auth_state = BTM_ACL_LEGACY_AUTH_NONE ; } } } }
Function         btm_sec_update_legacy_auth_state
Description      This function updates the legacy authentication state
Function btm_sec_update_legacy_auth_state Description This function updates the legacy authentication state