summaryrefslogtreecommitdiffstats
path: root/btif/src/btif_core.c
diff options
context:
space:
mode:
authorfredc <fredc@broadcom.com>2012-04-25 17:33:07 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:18 -0700
commit7105408a110e1fa7bfa7b82637cd704a2c428f68 (patch)
treeb1db2af12aea7988c099350a3fec856ecc2aa246 /btif/src/btif_core.c
parentbc5b4b2e7c7d923a861039d3ca5d9a7492a5f328 (diff)
downloadexternal_bluetooth_bluedroid-7105408a110e1fa7bfa7b82637cd704a2c428f68.zip
external_bluetooth_bluedroid-7105408a110e1fa7bfa7b82637cd704a2c428f68.tar.gz
external_bluetooth_bluedroid-7105408a110e1fa7bfa7b82637cd704a2c428f68.tar.bz2
Reverted PAN on/off handling code.
Change-Id: I5a0924e972665584e091a87c2a7e5c3c479e8e64
Diffstat (limited to 'btif/src/btif_core.c')
-rw-r--r--btif/src/btif_core.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/btif/src/btif_core.c b/btif/src/btif_core.c
index 3c0142d..ff8512e 100644
--- a/btif/src/btif_core.c
+++ b/btif/src/btif_core.c
@@ -512,6 +512,8 @@ void btif_enable_bluetooth_evt(tBTA_STATUS status, BD_ADDR local_bd)
/* init rfcomm & l2cap api */
btif_sock_init();
+ /* init pan */
+ btif_pan_init();
/* load did configuration */
bte_load_did_conf(BTE_DID_CONF_FILE);
@@ -523,6 +525,8 @@ void btif_enable_bluetooth_evt(tBTA_STATUS status, BD_ADDR local_bd)
/* cleanup rfcomm & l2cap api */
btif_sock_cleanup();
+ btif_pan_cleanup();
+
btif_enabled = 0;
HAL_CBACK(bt_hal_cbacks, adapter_state_changed_cb, BT_STATE_OFF);
@@ -556,7 +560,8 @@ bt_status_t btif_disable_bluetooth(void)
/* cleanup rfcomm & l2cap api */
btif_sock_cleanup();
- //btif_pan_cleanup();
+ btif_pan_cleanup();
+
status = BTA_DisableBluetooth();