예제 #1
0
void hdp_tp_disconnect(HdpChannel *channel)
{
	if (NULL == channel)
	{
		return;
	}
	CMGR_RemoveDataLink(&(channel->cmgrHdlr));
	CMGR_RemoveCmgrWithDevice(&(channel->cmgrHdlr));
	CMGR_DeregisterHandler(&(channel->cmgrHdlr));
}
예제 #2
0
void FmpClearConnection(FmpChannel *channel, BtStatus status)
{
    kal_trace(BT_TRACE_BLE_PROFILES, FMP_CLEAR_CONNECTION_STATUS, status);

    /* Release all resources in packet pool */


    /* Notify the application */
    FmpAppCallback(channel, FMPEVENT_CLOSED, status, 
			channel->link, sizeof(BtRemoteDevice));

    CMGR_RemoveDataLink(&channel->cmgr_handler);
    CMGR_RemoveCmgrWithDevice(&channel->cmgr_handler);

    FmpFreeChannel(channel);
}