components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         btm_create_conn_cancel_complete
**
** Description      This function is called when the command complete message
**                  is received from the HCI for the create connection cancel
**                  command.
**
** Returns          void
**
*******************************************************************************/
Function         btm_create_conn_cancel_complete
Description      This function is called when the command complete message
is received from the HCI for the create connection cancel
command.

Returns          void
Function btm_create_conn_cancel_complete Description This function is called when the command complete message is received from the HCI for the create connection cancel command . Returns void
void btm_create_conn_cancel_complete (UINT8 *p)
{
    UINT8       status;
    STREAM_TO_UINT8 (status, p);
    switch (status) {
    case HCI_SUCCESS:
#if (SMP_INCLUDED == TRUE)
        btm_sec_bond_cancel_complete();
#endif  
        break;
    case HCI_ERR_CONNECTION_EXISTS:
    case HCI_ERR_NO_CONNECTION:
    default:
        if (btm_cb.api.p_bond_cancel_cmpl_callback) {
            btm_cb.api.p_bond_cancel_cmpl_callback(BTM_ERR_PROCESSING);
        }
        break;
    }
}
void btm_create_conn_cancel_complete ( UINT8 * p ) { UINT8 status ; STREAM_TO_UINT8 ( status , p ) ; switch ( status ) { case HCI_SUCCESS : #if ( SMP_INCLUDED == TRUE ) btm_sec_bond_cancel_complete ( ) ; #endif break ; case HCI_ERR_CONNECTION_EXISTS : case HCI_ERR_NO_CONNECTION : default : if ( btm_cb . api . p_bond_cancel_cmpl_callback ) { btm_cb . api . p_bond_cancel_cmpl_callback ( BTM_ERR_PROCESSING ) ; } break ; } }
Function         btm_create_conn_cancel_complete
Description      This function is called when the command complete message
is received from the HCI for the create connection cancel
command.
Function btm_create_conn_cancel_complete Description This function is called when the command complete message is received from the HCI for the create connection cancel command .
//BTM_TRACE_EVENT ("btm_create_conn_cancel_complete(): in State: %s  status:%d\n", //                 btm_pair_state_descr(btm_cb.pairing_state), status); /* if the create conn cancel cmd was issued by the bond cancel,
    ** the application needs to be notified that bond cancel succeeded
    */ ///SMP_INCLUDED == TRUE /* Notify application of the error */