diff options
Diffstat (limited to 'stack/rfcomm/rfc_l2cap_if.c')
-rw-r--r-- | stack/rfcomm/rfc_l2cap_if.c | 55 |
1 files changed, 34 insertions, 21 deletions
diff --git a/stack/rfcomm/rfc_l2cap_if.c b/stack/rfcomm/rfc_l2cap_if.c index fb10d07..cb50612 100644 --- a/stack/rfcomm/rfc_l2cap_if.c +++ b/stack/rfcomm/rfc_l2cap_if.c @@ -1,13 +1,26 @@ -/***************************************************************************** -** -** Name: rfc_l2cap_if.c -** -** Description: This file contains L2CAP interface functions -** -** -** Copyright (c) 1999-2009, Broadcom Corp., All Rights Reserved. -** Broadcom Bluetooth Core. Proprietary and confidential. -******************************************************************************/ +/****************************************************************************** + * + * Copyright (C) 1999-2012 Broadcom Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ******************************************************************************/ + +/****************************************************************************** + * + * This file contains L2CAP interface functions + * + ******************************************************************************/ #include "bt_target.h" #include "gki.h" @@ -20,7 +33,7 @@ #include "rfc_int.h" -/* +/* ** Define Callback functions to be called by L2CAP */ static void RFCOMM_ConnectInd (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id); @@ -66,7 +79,7 @@ void rfcomm_l2cap_if_init (void) ** ** Function RFCOMM_ConnectInd ** -** Description This is a callback function called by L2CAP when +** Description This is a callback function called by L2CAP when ** L2CA_ConnectInd received. Allocate multiplexer control block ** and dispatch the event to it. ** @@ -120,7 +133,7 @@ void RFCOMM_ConnectInd (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) ** ** Function RFCOMM_ConnectCnf ** -** Description This is a callback function called by L2CAP when +** Description This is a callback function called by L2CAP when ** L2CA_ConnectCnf received. Save L2CAP handle and dispatch ** event to the FSM. ** @@ -192,7 +205,7 @@ void RFCOMM_ConnectCnf (UINT16 lcid, UINT16 result) ** ** Function RFCOMM_ConfigInd ** -** Description This is a callback function called by L2CAP when +** Description This is a callback function called by L2CAP when ** L2CA_ConfigInd received. Save parameters in the control ** block and dispatch event to the FSM. ** @@ -215,7 +228,7 @@ void RFCOMM_ConfigInd (UINT16 lcid, tL2CAP_CFG_INFO *p_cfg) ** ** Function RFCOMM_ConfigCnf ** -** Description This is a callback function called by L2CAP when +** Description This is a callback function called by L2CAP when ** L2CA_ConfigCnf received. Save L2CAP handle and dispatch ** event to the FSM. ** @@ -238,7 +251,7 @@ void RFCOMM_ConfigCnf (UINT16 lcid, tL2CAP_CFG_INFO *p_cfg) ** ** Function RFCOMM_QoSViolationInd ** -** Description This is a callback function called by L2CAP when +** Description This is a callback function called by L2CAP when ** L2CA_QoSViolationIndInd received. Dispatch event to the FSM. ** *******************************************************************************/ @@ -251,7 +264,7 @@ void RFCOMM_QoSViolationInd (BD_ADDR bd_addr) ** ** Function RFCOMM_DisconnectInd ** -** Description This is a callback function called by L2CAP when +** Description This is a callback function called by L2CAP when ** L2CA_DisconnectInd received. Dispatch event to the FSM. ** *******************************************************************************/ @@ -278,8 +291,8 @@ void RFCOMM_DisconnectInd (UINT16 lcid, BOOLEAN is_conf_needed) ** ** Function RFCOMM_BufDataInd ** -** Description This is a callback function called by L2CAP when -** data RFCOMM frame is received. Parse the frames, check +** Description This is a callback function called by L2CAP when +** data RFCOMM frame is received. Parse the frames, check ** the checksum and dispatch event to multiplexer or port ** state machine depending on the frame destination. ** @@ -352,7 +365,7 @@ void RFCOMM_BufDataInd (UINT16 lcid, BT_HDR *p_buf) rfc_port_sm_execute (p_port, event, p_buf); else GKI_freebuf (p_buf); - + if (rfc_cb.rfc.rx_frame.credit != 0) rfc_inc_credit (p_port, rfc_cb.rfc.rx_frame.credit); @@ -366,7 +379,7 @@ void RFCOMM_BufDataInd (UINT16 lcid, BT_HDR *p_buf) ** ** Function RFCOMM_CongestionStatusInd ** -** Description This is a callback function called by L2CAP when +** Description This is a callback function called by L2CAP when ** data RFCOMM L2CAP congestion status changes ** *******************************************************************************/ |