components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         BTM_SecGetDeviceLinkKeyType
**
** Description      This function is called to obtain link key type for the
**                  device.
**                  it returns BTM_SUCCESS if link key is available, or
**                  BTM_UNKNOWN_ADDR if Security Manager does not know about
**                  the device or device record does not contain link key info
**
** Returns          BTM_LKEY_TYPE_IGNORE if link key is unknown, link type
**                  otherwise.
**
*******************************************************************************/
Function         BTM_SecGetDeviceLinkKeyType
Description      This function is called to obtain link key type for the
device.
it returns BTM_SUCCESS if link key is available, or
BTM_UNKNOWN_ADDR if Security Manager does not know about
the device or device record does not contain link key info

Returns          BTM_LKEY_TYPE_IGNORE if link key is unknown, link type
otherwise.
Function BTM_SecGetDeviceLinkKeyType Description This function is called to obtain link key type for the device . it returns BTM_SUCCESS if link key is available or BTM_UNKNOWN_ADDR if Security Manager does not know about the device or device record does not contain link key info Returns BTM_LKEY_TYPE_IGNORE if link key is unknown link type otherwise .
tBTM_LINK_KEY_TYPE BTM_SecGetDeviceLinkKeyType (BD_ADDR bd_addr)
{
    tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr);
    if ((p_dev_rec != NULL) && (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN)) {
        return p_dev_rec->link_key_type;
    }
    return BTM_LKEY_TYPE_IGNORE;
}
tBTM_LINK_KEY_TYPE BTM_SecGetDeviceLinkKeyType ( BD_ADDR bd_addr ) { tBTM_SEC_DEV_REC * p_dev_rec = btm_find_dev ( bd_addr ) ; if ( ( p_dev_rec != NULL ) && ( p_dev_rec -> sec_flags & BTM_SEC_LINK_KEY_KNOWN ) ) { return p_dev_rec -> link_key_type ; } return BTM_LKEY_TYPE_IGNORE ; }
Function         BTM_SecGetDeviceLinkKeyType
Description      This function is called to obtain link key type for the
device.
Function BTM_SecGetDeviceLinkKeyType Description This function is called to obtain link key type for the device .