• Home
  • History
  • Annotate
  • only in /external/bluetooth/bluedroid/stack/
History log of /external/bluetooth/bluedroid/stack/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
98657a365c7230b84a005c63ce5bcf036d69f6eb 26-Jun-2013 Andre Eisenbach <andre@broadcom.com> LE: Release transmit buffer credits

When an ACL link goes down, some controllers do not send a "number of
completed packets" update for the last ACL packets sent from the host to
the controller. This could result in incorrect L2CAP transmit window
calculations and no transmit credit to be available to send data to the
controller.
This patch restores transmit buffer creedits regardless of the
controller behaviour.
bug 9474159

Change-Id: I2540131034271a0269fa50698f370bceb7747e2d
2cap/l2c_utils.c
5ae72cf049004ac3c0f2f2bc048d1638a3b13d55 16-May-2013 Zhihai Xu <zhihaixu@google.com> Media profile drop on ending the outgoing video call and music is heard locally

receive AVDTP_Suspend response rejection which cause the A2DP disocnnected.
There is collision of AVDTP_Suspend request:
We send AVDTP_Suspend request and the headset send AVDTP_Suspend request also at the same time.
then We send AVDTP_Suspend response, but the headset send AVDTP_Suspend response rejection
with error code bad state after it receive the AVDTP_Suspend response from us.
we call bta_av_suspend_cfm twice in this case:
the first time we will call bta_av_suspend_cfm without error after receive AVDTP_Suspend request from headset.
the second time we will call bta_av_suspend_cfm with error bad state after receive AVDTP_Suspend response rejection from headset.
To fix this problem, we should ignore the AVDTP_Suspend response rejection from headset
after receive AVDTP_Suspend request from headset.
After we receive AVDTP_Suspend request from headset, the scb state will be changed to AVDT_SCB_OPEN_ST from AVDT_SCB_STREAM_ST.
but when we receive AVDTP_Suspend response rejection from headset, we should ignore it when we are in AVDT_SCB_OPEN_ST.
and also currently we already ignore AVDTP_Suspend response when we are in AVDT_SCB_OPEN_ST,
I don't know why we didn't do it for AVDTP Suspend rejection.

issue 8735903

Change-Id: I8db3ea6e7e4edfea41f255e7e29b8c7255cf3d96
vdt/avdt_scb.c
48ebe2c6928d8fd4dc97c8adb138c3440714dc89 24-Apr-2013 YK Jeffrey Chao <jechao@broadcom.com> Preload timeout and retry mechanism (1/3)

If the Preload process was stuck due to unknown hardware init failure,
a 8-second ENABLE_TIMEOUT timeout would be eventually expired in Java layer
at AdapterState and attempted to set BT state back to STATE_OFF.
However BluetoothManagerService did not handle this case accordingly and led
to state mis-matching between Java layer and BTIF at the end.

Add a timeout and retry mechanism to manage Preload process.
Clean up native space resource and explicitly report STATE_OFF back to Java
space when Preload did not go through.

bug 7566317

Change-Id: I99a225e524f2b951249618990a2d0a8a39b43ff3
tu/btu_task.c
nclude/bt_types.h
ebef4763b36b05370d13dfd27c4fcaa9095dbeff 14-May-2013 zzy <zhenye@broadcom.com> Added available size check to fix zero byte data available issue

Bug 8950703
rfcomm connection failed in case zero byte data available
fcomm/port_api.c
fc4b2f1953dbe60464d0f5ef7daaa10001fbc62f 07-May-2013 Matthew Xie <mattx@google.com> Solve compilation problem when BLE/GATT/SMP features are false

bug 8664724
Change-Id: I582846ccf4b8995f298d8db533488fceb7993ae3
tm/btm_ble.c
tm/btm_devctl.c
b05c0190b55369618c968b27ea406f9660bfa4ed 30-Apr-2013 Matthew Xie <mattx@google.com> Merge "LE: Fix shared ACL buffer allocation" into jb-mr2-dev
2d41fe1c5dbac701a074eec272545439168930a7 17-Apr-2013 Andre Eisenbach <andre@broadcom.com> LE: Disable L2CAP connection parameter update during pairing

Some peripherals change the connection parameters during the pairing
procedure. Ideally when service discovery is started, connection
parameters are reset to default values. In instances where the
connection update fails, service discovery takes a very long time and
may result in a GATT application not receiving a connection status
update.
Disabling connection paramter update during service discovery ensures
a quick service discovery and improves interoperability.

Bug: 8714594
Change-Id: I2177e57bf250b99e314a1b020cd0fadbd480214e
mp/smp_act.c
12c3f496c3612472a22cbb0afd89812b154b4186 25-Apr-2013 Andre Eisenbach <andre@broadcom.com> LE: Fix shared ACL buffer allocation

Allocate a static amount of LE buffers for chipsets that do not provide
separate ACL buffers for LE and BR/EDR.

Bug: 8714387
Change-Id: I74e954c0824ddfd89b50c14f6848db787f9b9bff
2cap/l2c_ble.c
c9053e64bd3383ea971582b4395fab9d5d614503 16-Apr-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Proper management of controller ACL buffers.

Reclaim all the unacknowledged controller ACL buffers associated
with a L2CAP link when L2CAP control block is released.
Bug:8589069

Change-Id: Icef1646041e73280a13dedc7a45564d032c59712
2cap/l2c_link.c
2cap/l2c_utils.c
24c0f58c67c569e92e7b7d46e2d0cd29ebb64eb7 17-Apr-2013 Zhihai Xu <zhihaixu@google.com> Audio glitches while playing songs over MOTO S305 headset

The MOTO S305 doesn't support read remote extended features command.
The fix is we should always use ReadRemoteSupportedFeaturesCommand at first,
Only send ReadRemoteExtendedFeaturesCommand if extend features are supported
by remote device.

issue 8618753

Change-Id: Id6d9c0e712dc892bcfca20336d1290b9443213ac
tm/btm_acl.c
9d140a9dc432e457a0437920d5f84c22e3baea0d 12-Apr-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Make host side of Read Local/Remote Extended Features more reliable

Issue Ext feature request only if the local controller supports
the command. Fall back to read remote feature command,
if the extended feature request fails
Bug:8591628

Change-Id: I744d9845c04b30d2dca1fd491fea49616adbb2d7
tm/btm_acl.c
tm/btm_devctl.c
tm/btm_int.h
tu/btu_hcif.c
nclude/btm_api.h
c2bb2c13030b2b48b861eac31f4eb134975fa8c5 09-Apr-2013 Matthew Xie <mattx@google.com> Read the extended feature after ACL channel creation

This problem was introduced by Bluetooth stack merge.
bug 8521185

Change-Id: I9191c639e96382a452cf0fe336d5a9ef5b5f0f4a
tm/btm_acl.c
7ffe8967a9774280b88655e28bda2206dc75af34 05-Apr-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Proper handling of HCI command status event

Loop through pending command Queue to find a match for
command status evt opcode
Bug:8186156

Change-Id: Ic95ed3834695fb84a8c0617ec601896f044b0f3c
tu/btu_hcif.c
946c681e59451164b343b7ab9415aa73b0d176bc 04-Apr-2013 Andre Eisenbach <andre@broadcom.com> Fix LE background connections not adding device to white-list.

Also changed maximum number of client applications to 32.

Change-Id: Id4697924b211330e231b36d7f89ca9d89b54117f
tm/btm_ble_gap.c
0082e027d5ae3f45a3a613ed720c31e35f61d0eb 03-Apr-2013 Andre Eisenbach <andre@broadcom.com> Fix LE buffer size for 0 length buffers

If the local chip reports 0 LE data buffers and 0 LE ACL data package
length, then the default ACL buffer length as returned byt the
Read_Buffer_Size command is to be used instead.

Change-Id: I953fabe426a98cc1b005d3b46c3e7f227c23a686
tm/btm_devctl.c
2cap/l2c_ble.c
3aa60544585b5fb0f35c1165539a4a859fc0f25c 23-Mar-2013 Andre Eisenbach <andre@broadcom.com> Parse LMP features to enable LE support

Only send LE commands if the local Bluetooth radio supports LE.
Improved remote feature parsing by reading extended features. Before
this change, only the first page of the features was parsed.
bug 8332905

Change-Id: I0b90771dcfc453efea157f463b9df006e0178609
tm/btm_acl.c
tm/btm_ble_gap.c
tm/btm_dev.c
tm/btm_devctl.c
tm/btm_inq.c
tm/btm_int.h
tm/btm_sco.c
tm/btm_sec.c
tu/btu_hcif.c
nclude/btm_api.h
nclude/hcidefs.h
2cap/l2c_utils.c
1f9a190b457f6a0e8effd47998014cb724fdb085 21-Mar-2013 Zhihai Xu <zhihaixu@google.com> Merge "Initial version of Stack for AVRCP 1.3" into jb-mr2-dev
9adddf4965e9ddb01e339b934c343fcbd842a977 06-Mar-2013 Ravi Nagarajan <nravi@broadcom.com> Initial version of Stack for AVRCP 1.3

BTIF and stack changes for supporting AVRCP 1.3

Change-Id: Id02eb7b6a385683cedc41c62b6f829f5d7620bd4
ndroid.mk
vrc/avrc_api.c
vrc/avrc_bld_tg.c
vrc/avrc_int.h
vrc/avrc_opt.c
vrc/avrc_pars_tg.c
vrc/avrc_sdp.c
vrc/avrc_utils.c
ca22ac493ab777199084d87b3c7627e7f27555af 13-Feb-2013 Andre Eisenbach <andre@broadcom.com> LE fixes

- Null pointer exception check added.

An exception occurs at the memcpy in the bta_dm_gatt_disc_result.
User removed the battery on Ble device(Smart Nudge) during bonding
and connection. This exception occurs sometimes.
I used Broadcom LE Explorer to reproduce it.

- Fixed disconnect and encryption behaviour

Disconnect will now disconnect the physical link immediately when no
other application is interested in the device anymore. Also, the
connection to a remote device is now dropped if encryption fails.

- Deep copy buffers when transfering context

Certain BTA server event types require a deep copy of the request
data buffers when transfering context. Shallow copy of the pointers
involved may cause a crash when overlapping read and write requests
are received.

- 2nd encryption has not started

need to send encryption complete callback
when the encryption fail due to link drop without a complete event.
Otherwise BTA layer would not be able to clean up the status,
and no further encryption can be started.

Change-Id: If93e0a188e8779830c8991e4193b96dc95e23e5d
tm/btm_ble.c
tm/btm_sec.c
2cap/l2c_api.c
ead3cde4bac0c3e32cd31f149093f004eef8ceeb 06-Feb-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Initial version of BLE support for Bluedroid

Change-Id: I9825a5cef9be2559c34c2a529b211b7d471147cf
ndroid.mk
vdt/avdt_api.c
vdt/avdt_ccb_act.c
vdt/avdt_int.h
vdt/avdt_scb_act.c
tm/btm_acl.c
tm/btm_ble.c
tm/btm_ble_addr.c
tm/btm_ble_bgconn.c
tm/btm_ble_gap.c
tm/btm_ble_int.h
tm/btm_dev.c
tm/btm_devctl.c
tm/btm_inq.c
tm/btm_int.h
tm/btm_sco.c
tm/btm_sec.c
tu/btu_hcif.c
tu/btu_task.c
ap/gap_api.c
ap/gap_ble.c
ap/gap_conn.c
ap/gap_int.h
ap/gap_utils.c
att/att_protocol.c
att/gatt_api.c
att/gatt_attr.c
att/gatt_auth.c
att/gatt_cl.c
att/gatt_db.c
att/gatt_int.h
att/gatt_main.c
att/gatt_sr.c
att/gatt_utils.c
cic/hciblecmds.c
cic/hcicmds.c
id/hidh_api.c
id/hidh_conn.c
nclude/avdt_api.h
nclude/avrc_api.h
nclude/bt_types.h
nclude/btm_api.h
nclude/btm_ble_api.h
nclude/btu.h
nclude/gap_api.h
nclude/gatt_api.h
nclude/gattdefs.h
nclude/hcidefs.h
nclude/hcimsgs.h
nclude/l2c_api.h
nclude/profiles_api.h
nclude/sdpdefs.h
nclude/smp_api.h
2cap/l2c_ble.c
2cap/l2c_fcr.c
2cap/l2c_int.h
2cap/l2c_link.c
2cap/l2c_main.c
2cap/l2c_utils.c
cap/mca_int.h
cap/mca_l2c.c
cap/mca_main.c
dp/sdp_db.c
dp/sdp_server.c
dp/sdp_utils.c
mp/aes.c
mp/aes.h
mp/smp_act.c
mp/smp_int.h
mp/smp_keys.c
mp/smp_l2c.c
mp/smp_main.c
mp/smp_utils.c
9ac641d0a674333af57b85b367e64cf94dfae291 16-Jan-2013 Matthew Xie <mattx@google.com> fixed rfc resouce leaking and multi-session issue

also added more debug messages
bug 7486080

Change-Id: Ic21e9d2df5f651b51ea2126a3cac25811808dcfb
nclude/port_api.h
fcomm/port_api.c
fcomm/port_rfc.c
fcomm/port_utils.c
fcomm/rfc_utils.c
689d66b6559dcb3a0ad7f6cc33b6129e50910253 13-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot 9fd57cbacd95e89602f430244c35bbc67f08b6d2

Change-Id: Ibc3a4bf4161d286c7cfab89a19c676eb5cc9224f
ndroid.mk
tu/btu_hcif.c
fcomm/port_utils.c
dp/sdp_db.c
mp/aes.c
mp/aes.h
5738f83aeb59361a0a2eda2460113f6dc9194271 13-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879baf

Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d
ndroid.mk
2dp/a2d_api.c
2dp/a2d_int.h
2dp/a2d_sbc.c
vct/avct_api.c
vct/avct_ccb.c
vct/avct_defs.h
vct/avct_int.h
vct/avct_l2c.c
vct/avct_lcb.c
vct/avct_lcb_act.c
vdt/avdt_ad.c
vdt/avdt_api.c
vdt/avdt_ccb.c
vdt/avdt_ccb_act.c
vdt/avdt_defs.h
vdt/avdt_int.h
vdt/avdt_l2c.c
vdt/avdt_msg.c
vdt/avdt_scb.c
vdt/avdt_scb_act.c
vrc/avrc_api.c
vrc/avrc_int.h
vrc/avrc_opt.c
vrc/avrc_sdp.c
nep/bnep_api.c
nep/bnep_int.h
nep/bnep_main.c
nep/bnep_utils.c
tm/btm_acl.c
tm/btm_ble.c
tm/btm_ble_addr.c
tm/btm_ble_bgconn.c
tm/btm_ble_gap.c
tm/btm_ble_int.h
tm/btm_dev.c
tm/btm_devctl.c
tm/btm_inq.c
tm/btm_int.h
tm/btm_main.c
tm/btm_pm.c
tm/btm_sco.c
tm/btm_sec.c
tu/btu_hcif.c
tu/btu_init.c
tu/btu_task.c
att/att_protocol.c
att/gatt_api.c
att/gatt_attr.c
att/gatt_auth.c
att/gatt_cl.c
att/gatt_db.c
att/gatt_int.h
att/gatt_main.c
att/gatt_sr.c
att/gatt_utils.c
cic/hciblecmds.c
cic/hcicmds.c
id/hid_conn.h
id/hidh_api.c
id/hidh_conn.c
id/hidh_int.h
nclude/a2d_api.h
nclude/a2d_sbc.h
nclude/avct_api.h
nclude/avdt_api.h
nclude/avdtc_api.h
nclude/avrc_api.h
nclude/avrc_defs.h
nclude/bnep_api.h
nclude/bt_types.h
nclude/btm_api.h
nclude/btm_ble_api.h
nclude/btu.h
nclude/dyn_mem.h
nclude/gatt_api.h
nclude/gattdefs.h
nclude/goep_fs.h
nclude/hcidefs.h
nclude/hcimsgs.h
nclude/hiddefs.h
nclude/hidh_api.h
nclude/l2c_api.h
nclude/l2cdefs.h
nclude/mca_api.h
nclude/mca_defs.h
nclude/obx_api.h
nclude/pan_api.h
nclude/port_api.h
nclude/port_ext.h
nclude/rfcdefs.h
nclude/sdp_api.h
nclude/sdpdefs.h
nclude/smp_api.h
nclude/uipc_msg.h
nclude/utfc.h
nclude/wbt_api.h
nclude/wcassert.h
2cap/l2c_api.c
2cap/l2c_ble.c
2cap/l2c_csm.c
2cap/l2c_fcr.c
2cap/l2c_int.h
2cap/l2c_link.c
2cap/l2c_main.c
2cap/l2c_ucd.c
2cap/l2c_utils.c
cap/mca_api.c
cap/mca_cact.c
cap/mca_csm.c
cap/mca_dact.c
cap/mca_dsm.c
cap/mca_int.h
cap/mca_l2c.c
cap/mca_main.c
an/pan_api.c
an/pan_int.h
an/pan_main.c
an/pan_utils.c
fcomm/port_api.c
fcomm/port_int.h
fcomm/port_rfc.c
fcomm/port_utils.c
fcomm/rfc_int.h
fcomm/rfc_l2cap_if.c
fcomm/rfc_mx_fsm.c
fcomm/rfc_port_fsm.c
fcomm/rfc_port_if.c
fcomm/rfc_ts_frames.c
fcomm/rfc_utils.c
dp/sdp_api.c
dp/sdp_db.c
dp/sdp_discovery.c
dp/sdp_main.c
dp/sdp_server.c
dp/sdp_utils.c
dp/sdpint.h
mp/aes.c
mp/aes.h
mp/smp_act.c
mp/smp_api.c
mp/smp_cmac.c
mp/smp_int.h
mp/smp_keys.c
mp/smp_l2c.c
mp/smp_main.c
mp/smp_utils.c