summaryrefslogtreecommitdiffstats
path: root/bta/pan/bta_pan_ci.c
diff options
context:
space:
mode:
authorAndre Eisenbach <andre@broadcom.com>2012-09-18 01:35:44 -0700
committerMatthew Xie <mattx@google.com>2012-09-18 10:06:32 -0700
commitcc914cffd521b2e6e1be804c82aea2388b843ebf (patch)
treea4859572083eb29c931cc5066645f9c0a2929d71 /bta/pan/bta_pan_ci.c
parent6ed67e2ac54c83d18701d2b4ee1b9d729e99a38c (diff)
downloadexternal_bluetooth_bluedroid-cc914cffd521b2e6e1be804c82aea2388b843ebf.zip
external_bluetooth_bluedroid-cc914cffd521b2e6e1be804c82aea2388b843ebf.tar.gz
external_bluetooth_bluedroid-cc914cffd521b2e6e1be804c82aea2388b843ebf.tar.bz2
Header file and whitespace cleanups
Also fixed file permission to remove executable bit from source files. Change-Id: I6954c2d16190bc35b1b0d38386543253696b1112
Diffstat (limited to 'bta/pan/bta_pan_ci.c')
-rw-r--r--bta/pan/bta_pan_ci.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/bta/pan/bta_pan_ci.c b/bta/pan/bta_pan_ci.c
index 843d2b9..1d2aac9 100644
--- a/bta/pan/bta_pan_ci.c
+++ b/bta/pan/bta_pan_ci.c
@@ -33,9 +33,9 @@
** ready for more data and PAN should call bta_pan_co_tx_path().
** This function is used when the TX data path is configured
** to use a pull interface.
-**
**
-** Returns void
+**
+** Returns void
**
*******************************************************************************/
void bta_pan_ci_tx_ready(UINT16 handle)
@@ -58,9 +58,9 @@ void bta_pan_ci_tx_ready(UINT16 handle)
** has data available to send to PAN and PAN should call
** bta_pan_co_rx_path(). This function is used when the RX
** data path is configured to use a pull interface.
-**
**
-** Returns void
+**
+** Returns void
**
*******************************************************************************/
void bta_pan_ci_rx_ready(UINT16 handle)
@@ -85,9 +85,9 @@ void bta_pan_ci_rx_ready(UINT16 handle)
** any more data sent by bta_pan_co_tx_write() or
** bta_pan_co_tx_writebuf(). This function is used when the
** TX data path is configured to use a push interface.
-**
**
-** Returns void
+**
+** Returns void
**
*******************************************************************************/
void bta_pan_ci_tx_flow(UINT16 handle, BOOLEAN enable)
@@ -110,29 +110,29 @@ void bta_pan_ci_tx_flow(UINT16 handle, BOOLEAN enable)
** Description This function is called to send data to PAN when the RX path
** is configured to use a push interface. The function copies
** data to an event buffer and sends it to PAN.
-**
**
-** Returns void
+**
+** Returns void
**
*******************************************************************************/
void bta_pan_ci_rx_write(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol,
UINT8 *p_data, UINT16 len, BOOLEAN ext)
{
BT_HDR * p_buf;
-
+
if((p_buf = (BT_HDR *) GKI_getpoolbuf(PAN_POOL_ID)) != NULL)
{
p_buf->offset = PAN_MINIMUM_OFFSET;
-
+
/* copy all other params before the data */
bdcpy(((tBTA_PAN_DATA_PARAMS *)p_buf)->src, src);
bdcpy(((tBTA_PAN_DATA_PARAMS *)p_buf)->dst, dst);
((tBTA_PAN_DATA_PARAMS *)p_buf)->protocol = protocol;
((tBTA_PAN_DATA_PARAMS *)p_buf)->ext = ext;
p_buf->len=len;
-
+
/* copy data */
memcpy((UINT8 *)(p_buf + 1) + p_buf->offset, p_data, len);
@@ -153,9 +153,9 @@ void bta_pan_ci_rx_write(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protoco
** the data buffer. The buffer must be allocated using
** functions GKI_getbuf() or GKI_getpoolbuf(). The buffer
** will be freed by BTA; the phone must not free the buffer.
-**
**
-** Returns void
+**
+** Returns void
**
*******************************************************************************/
void bta_pan_ci_rx_writebuf(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol,
@@ -180,13 +180,13 @@ void bta_pan_ci_rx_writebuf(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 prot
**
** Function bta_pan_ci_readbuf
**
-** Description
-**
+** Description
+**
**
-** Returns void
+** Returns void
**
*******************************************************************************/
-BT_HDR * bta_pan_ci_readbuf(UINT16 handle, BD_ADDR src, BD_ADDR dst, UINT16* p_protocol,
+BT_HDR * bta_pan_ci_readbuf(UINT16 handle, BD_ADDR src, BD_ADDR dst, UINT16* p_protocol,
BOOLEAN* p_ext, BOOLEAN* p_forward)
{
tBTA_PAN_SCB * p_scb;
@@ -213,10 +213,10 @@ BT_HDR * bta_pan_ci_readbuf(UINT16 handle, BD_ADDR src, BD_ADDR dst, UINT16* p_p
**
** Function bta_pan_ci_set_mfilters
**
-** Description This function is called to set multicast filters
-**
+** Description This function is called to set multicast filters
**
-** Returns void
+**
+** Returns void
**
*******************************************************************************/
void bta_pan_ci_set_mfilters(UINT16 handle, UINT16 num_mcast_filters, UINT8 *p_start_array,
@@ -232,10 +232,10 @@ void bta_pan_ci_set_mfilters(UINT16 handle, UINT16 num_mcast_filters, UINT8 *p_s
**
** Function bta_pan_ci_set_mfilters
**
-** Description This function is called to set protocol filters
-**
+** Description This function is called to set protocol filters
+**
**
-** Returns void
+** Returns void
**
*******************************************************************************/
void bta_pan_ci_set_pfilters(UINT16 handle, UINT16 num_filters, UINT16 *p_start_array, UINT16 *p_end_array)