summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorKausik Sinnaswamy <kausik@broadcom.com>2012-04-11 17:56:17 +0530
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:17 -0700
commit35207a7fe091c5ade3ac3a80acf8366beb6e21da (patch)
tree64124a91e7d597677b16962c528d7f7b495d1150 /main
parent2f9c0a7966a08936e8ae7a03ab8fbf1de3b22e0e (diff)
downloadexternal_bluetooth_bluedroid-35207a7fe091c5ade3ac3a80acf8366beb6e21da.zip
external_bluetooth_bluedroid-35207a7fe091c5ade3ac3a80acf8366beb6e21da.tar.gz
external_bluetooth_bluedroid-35207a7fe091c5ade3ac3a80acf8366beb6e21da.tar.bz2
Added support to init/shutdown Bluetooth as part of
the HAL init/cleanup. This allows Java/JNI to query BD_ADDR and BD_NAME prior to HAL BT_enable. Change-Id: Ic56d859d75d6adaa134d42bb31da4f2c45e349d9
Diffstat (limited to 'main')
-rw-r--r--main/bte_main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/bte_main.c b/main/bte_main.c
index 8ac3ff5..49d964e 100644
--- a/main/bte_main.c
+++ b/main/bte_main.c
@@ -143,6 +143,9 @@ void bte_main_in_hw_init(void)
******************************************************************************/
void bte_main_boot_entry(void)
{
+ /* initialize OS */
+ GKI_init();
+
bte_main_in_hw_init();
bte_load_conf(BTE_STACK_CONF_FILE);
@@ -184,7 +187,7 @@ void bte_main_shutdown()
** Returns None
**
******************************************************************************/
-void bte_main_enable(void)
+void bte_main_enable(uint8_t *local_addr)
{
APPL_TRACE_DEBUG1("%s", __FUNCTION__);
@@ -195,7 +198,7 @@ void bte_main_enable(void)
if (bt_vendor_if)
{
- int result = bt_vendor_if->init(&vnd_callbacks);
+ int result = bt_vendor_if->init(&vnd_callbacks, local_addr);
APPL_TRACE_EVENT1("libbt-vendor init returns %d", result);
/* toggle chip power to ensure we will reset chip in case