summaryrefslogtreecommitdiffstats
path: root/hci/src/bt_hw.c
diff options
context:
space:
mode:
authorYK Jeffrey Chao <jechao@broadcom.com>2012-08-14 14:38:13 -0700
committerIliyan Malchev <malchev@google.com>2012-08-14 16:03:24 -0700
commit8673be81aa6bb05bb9a7747c150d63514625c03b (patch)
treefba62909459a120a15cd93be4cabb73a2aed2caa /hci/src/bt_hw.c
parent072cb49cdba074895678f63def089e4be1026bb7 (diff)
downloadexternal_bluetooth_bluedroid-8673be81aa6bb05bb9a7747c150d63514625c03b.zip
external_bluetooth_bluedroid-8673be81aa6bb05bb9a7747c150d63514625c03b.tar.gz
external_bluetooth_bluedroid-8673be81aa6bb05bb9a7747c150d63514625c03b.tar.bz2
Add HCI Multi-Channel Transport support (1/2)
Revise BT Vendor Lib interface and add support of HCI multi-channel transport. Change-Id: I5a7a7b64798bb30be60ed29bd564bc499bd5b5bc
Diffstat (limited to 'hci/src/bt_hw.c')
-rw-r--r--hci/src/bt_hw.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/hci/src/bt_hw.c b/hci/src/bt_hw.c
index 1705213..760a1f3 100644
--- a/hci/src/bt_hw.c
+++ b/hci/src/bt_hw.c
@@ -60,16 +60,15 @@
#include <pthread.h>
#include "bt_vendor_lib.h"
#include "bt_hci_bdroid.h"
+#include "hci.h"
#include "userial.h"
/******************************************************************************
** Externs
******************************************************************************/
-uint8_t hci_h4_send_int_cmd(uint16_t opcode, HC_BT_HDR *p_buf, \
- tINT_CMD_CBACK p_cback);
+extern tHCI_IF *p_hci_if;
void lpm_vnd_cback(uint8_t vnd_result);
-void hci_h4_get_acl_data_length(void);
/******************************************************************************
** Variables
@@ -115,7 +114,7 @@ static void fwcfg_cb(bt_vendor_op_result_t result)
static void scocfg_cb(bt_vendor_op_result_t result)
{
/* Continue rest of postload process*/
- hci_h4_get_acl_data_length();
+ p_hci_if->get_acl_max_len();
}
/******************************************************************************
@@ -189,7 +188,7 @@ static void dealloc(void *p_buf)
******************************************************************************/
static uint8_t xmit_cb(uint16_t opcode, void *p_buf, tINT_CMD_CBACK p_cback)
{
- return hci_h4_send_int_cmd(opcode, (HC_BT_HDR *)p_buf, p_cback);
+ return p_hci_if->send_int_cmd(opcode, (HC_BT_HDR *)p_buf, p_cback);
}
/*****************************************************************************