diff options
author | Mattias Agren <magren@broadcom.com> | 2012-04-11 13:14:44 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-14 11:19:17 -0700 |
commit | 2f9c0a7966a08936e8ae7a03ab8fbf1de3b22e0e (patch) | |
tree | 524f260c46e0960216900dda7559f6f87e5873f3 /btif/src/btif_core.c | |
parent | 8e6e9356d5386501d5e0988ce23d0c9aaed31a64 (diff) | |
download | external_bluetooth_bluedroid-2f9c0a7966a08936e8ae7a03ab8fbf1de3b22e0e.zip external_bluetooth_bluedroid-2f9c0a7966a08936e8ae7a03ab8fbf1de3b22e0e.tar.gz external_bluetooth_bluedroid-2f9c0a7966a08936e8ae7a03ab8fbf1de3b22e0e.tar.bz2 |
Always check if reconfig is needed prior to starting an
avdtp stream. Added autoadjusting bitpool if sink requests
a particular range within our exported capability.
Cleanup & fixing file permissions.
Change-Id: Ib5638706d4baef072c79a70ce1497140c3357a0d
Diffstat (limited to 'btif/src/btif_core.c')
-rw-r--r-- | btif/src/btif_core.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/btif/src/btif_core.c b/btif/src/btif_core.c index 62541c8..ebe2f8b 100644 --- a/btif/src/btif_core.c +++ b/btif/src/btif_core.c @@ -453,7 +453,9 @@ 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); @@ -486,7 +488,9 @@ bt_status_t btif_disable_bluetooth(void) /* cleanup rfcomm & l2cap api */ btif_sock_cleanup(); + btif_pan_cleanup(); + status = BTA_DisableBluetooth(); if (status != BTA_SUCCESS) @@ -954,9 +958,9 @@ bt_status_t btif_set_adapter_property(const bt_property_t *property) break; case BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT: { - //Nothing to do beside store the value in NV. Java - //will change the SCAN_MODE property after setting timeout, - //if required. + /* Nothing to do beside store the value in NV. Java + will change the SCAN_MODE property after setting timeout, + if required */ storage_req_id = BTIF_CORE_STORAGE_ADAPTER_WRITE; } break; |