components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         btm_sec_abort_access_req
**
** Description      This function is called by the L2CAP or RFCOMM to abort
**                  the pending operation.
**
** Parameters:      bd_addr       - Address of the peer device
**
** Returns          void
**
*******************************************************************************/
Function         btm_sec_abort_access_req
Description      This function is called by the L2CAP or RFCOMM to abort
the pending operation.

bd_addr       - Address of the peer device

Returns          void
Function btm_sec_abort_access_req Description This function is called by the L2CAP or RFCOMM to abort the pending operation . bd_addr - Address of the peer device Returns void
void btm_sec_abort_access_req (BD_ADDR bd_addr)
{
    tBTM_SEC_DEV_REC  *p_dev_rec = btm_find_dev (bd_addr);
    if (!p_dev_rec) {
        return;
    }
    if ((p_dev_rec->sec_state != BTM_SEC_STATE_AUTHORIZING)
            && (p_dev_rec->sec_state != BTM_SEC_STATE_AUTHENTICATING)) {
        return;
    }
    p_dev_rec->sec_state  = BTM_SEC_STATE_IDLE;
    p_dev_rec->p_callback = NULL;
}
void btm_sec_abort_access_req ( BD_ADDR bd_addr ) { tBTM_SEC_DEV_REC * p_dev_rec = btm_find_dev ( bd_addr ) ; if ( ! p_dev_rec ) { return ; } if ( ( p_dev_rec -> sec_state != BTM_SEC_STATE_AUTHORIZING ) && ( p_dev_rec -> sec_state != BTM_SEC_STATE_AUTHENTICATING ) ) { return ; } p_dev_rec -> sec_state = BTM_SEC_STATE_IDLE ; p_dev_rec -> p_callback = NULL ; }
Function         btm_sec_abort_access_req
Description      This function is called by the L2CAP or RFCOMM to abort
the pending operation.
Function btm_sec_abort_access_req Description This function is called by the L2CAP or RFCOMM to abort the pending operation .