OSDN Git Service

android-x86/system-bt.git
9 years agoam 3351a8b6: am 9c56a399: am d8586177: Merge "Implement GATT service cache" into...
Andre Eisenbach [Thu, 16 Oct 2014 19:02:48 +0000 (19:02 +0000)]
am 3351a8b6: am 9c56a399: am d8586177: Merge "Implement GATT service cache" into lmp-dev

* commit '3351a8b672fdad51a98a116ddd420a927c55b3b1':
  Implement GATT service cache

9 years agoam 9c56a399: am d8586177: Merge "Implement GATT service cache" into lmp-dev
Andre Eisenbach [Thu, 16 Oct 2014 18:55:41 +0000 (18:55 +0000)]
am 9c56a399: am d8586177: Merge "Implement GATT service cache" into lmp-dev

* commit '9c56a3995a66d3285eca1a2b902236ead9d034fb':
  Implement GATT service cache

9 years agoam d8586177: Merge "Implement GATT service cache" into lmp-dev
Andre Eisenbach [Thu, 16 Oct 2014 06:17:41 +0000 (06:17 +0000)]
am d8586177: Merge "Implement GATT service cache" into lmp-dev

* commit 'd85861779fb900b1c8ac2c6597a3cc111f161dcb':
  Implement GATT service cache

9 years agoMerge "Implement GATT service cache" into lmp-dev
Andre Eisenbach [Thu, 16 Oct 2014 06:14:17 +0000 (06:14 +0000)]
Merge "Implement GATT service cache" into lmp-dev

9 years agoImplement GATT service cache
Andre Eisenbach [Wed, 15 Oct 2014 22:41:52 +0000 (15:41 -0700)]
Implement GATT service cache

When trying to reconnect a previously paired device, notifications may
be sent by the remote device before the characteristic handles have been
discovered. Thus notifications will be lost.

This patch adds a non-volatile attribute cache that allows attribute
handles to be restored before notifications are received.

Bug: 17999991
Change-Id: I97faefbc6a2fed86cbce7f64d620ed03944d89b2

9 years agoam c6342812: (-s ours) am 269eb418: am f777d24c: am 595bcb4c: (-s ours) DO NOT MERGE...
Matthew Xie [Thu, 16 Oct 2014 00:12:46 +0000 (00:12 +0000)]
am c6342812: (-s ours) am 269eb418: am f777d24c: am 595bcb4c: (-s ours) DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2

* commit 'c6342812149683d5afcb3765dd5303951b1efdf0':
  DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2

9 years agoam 269eb418: am f777d24c: am 595bcb4c: (-s ours) DO NOT MERGE Do not set sig_id in...
Matthew Xie [Thu, 16 Oct 2014 00:04:09 +0000 (00:04 +0000)]
am 269eb418: am f777d24c: am 595bcb4c: (-s ours) DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2

* commit '269eb4180d2e8cd82eac3e21f73cf8aae26b910b':
  DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2

9 years agoam 1dd5dcdc: am 38e70739: am 4a35476c: am 98ad505f: Increment seq before adding to...
Matthew Xie [Thu, 16 Oct 2014 00:02:36 +0000 (00:02 +0000)]
am 1dd5dcdc: am 38e70739: am 4a35476c: am 98ad505f: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag

* commit '1dd5dcdc9170602bdaa1d397c5f62e01d3c17ba8':
  Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag

9 years agoam 38e70739: am 4a35476c: am 98ad505f: Increment seq before adding to packet in avdt_...
Matthew Xie [Wed, 15 Oct 2014 23:56:11 +0000 (23:56 +0000)]
am 38e70739: am 4a35476c: am 98ad505f: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag

* commit '38e7073988898cc4878c68319ff8fa4a4b85ec7e':
  Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag

9 years agoam f777d24c: am 595bcb4c: (-s ours) DO NOT MERGE Do not set sig_id in gerneral reject...
Matthew Xie [Wed, 15 Oct 2014 23:39:49 +0000 (23:39 +0000)]
am f777d24c: am 595bcb4c: (-s ours) DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2

* commit 'f777d24c24b3c1ff309151cf2bc21e98559cbf56':
  DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2

9 years agoam 4a35476c: am 98ad505f: Increment seq before adding to packet in avdt_scb_hdl_write...
Matthew Xie [Wed, 15 Oct 2014 23:15:10 +0000 (23:15 +0000)]
am 4a35476c: am 98ad505f: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag

* commit '4a35476c4ade75b985fa46f1ab82dad92a6b0810':
  Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag

9 years agoam 595bcb4c: (-s ours) DO NOT MERGE Do not set sig_id in gerneral reject message...
Matthew Xie [Wed, 15 Oct 2014 20:09:29 +0000 (20:09 +0000)]
am 595bcb4c: (-s ours) DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2

* commit '595bcb4c72aaa2a9a54a23b127dd5fa9842876ca':
  DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2

9 years agoDO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2
Matthew Xie [Mon, 13 Oct 2014 20:50:29 +0000 (13:50 -0700)]
DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2

AVDTP SPEC 1.3 set sig_id in gerneral reject message. But current stack
is on AVDTP 1.2, we need set the field to be 0.
Setting sig_id would fail PTS test TP/SIG/SMG/BI-28-C

Bug: 17892440
Change-Id: I2037aae299eab15864fc7b53ada7f49c0f34b9c5

9 years agoam 98ad505f: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag
Matthew Xie [Wed, 15 Oct 2014 19:12:36 +0000 (19:12 +0000)]
am 98ad505f: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag

* commit '98ad505f577599870cf0ae281a5d035e2e2453f9':
  Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag

9 years agoIncrement seq before adding to packet in avdt_scb_hdl_write_req_no_frag
Matthew Xie [Mon, 13 Oct 2014 21:50:30 +0000 (14:50 -0700)]
Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag

Bluetooth Certification Test case TP/TRA/BTR/BV-01-C for Basic
Transport Service Support fails. The failure is because the PTS
is expecting the first RTP Media Frame to have a sequence number
of 1. But metallica sends it as 0.
bug 17893538

Change-Id: Idfe7ae382c3764616dab4733cdf83b1627b8b3c9

9 years agoam 1424bc84: am 494b3bf7: Merge "Add support of advertising through standard instance...
Wei Wang [Tue, 14 Oct 2014 19:05:08 +0000 (19:05 +0000)]
am 1424bc84: am 494b3bf7: Merge "Add support of advertising through standard instance.(4/4)" into lmp-sprout-dev

* commit '1424bc84ad68ecd427d09c82f930112010b08bd1':
  Add support of advertising through standard instance.(4/4)

9 years agoam 494b3bf7: Merge "Add support of advertising through standard instance.(4/4)" into...
Wei Wang [Tue, 14 Oct 2014 17:48:55 +0000 (17:48 +0000)]
am 494b3bf7: Merge "Add support of advertising through standard instance.(4/4)" into lmp-sprout-dev

* commit '494b3bf7403723560709949f8c2d337d6d63310a':
  Add support of advertising through standard instance.(4/4)

9 years agoMerge "Add support of advertising through standard instance.(4/4)" into lmp-sprout-dev
Wei Wang [Mon, 13 Oct 2014 23:02:31 +0000 (23:02 +0000)]
Merge "Add support of advertising through standard instance.(4/4)" into lmp-sprout-dev

9 years agoam 8ed9bcb8: am 12ca0ec5: Merge "Added missing A2DP priority on java alarm service...
Andre Eisenbach [Fri, 10 Oct 2014 23:24:59 +0000 (23:24 +0000)]
am 8ed9bcb8: am 12ca0ec5: Merge "Added missing A2DP priority on java alarm service" into lmp-dev

* commit '8ed9bcb8636a1d1c010d87e2c41fa3647f2ccd5f':
  Added missing A2DP priority on java alarm service

9 years agoam afc9174e: am 1fbddc8f: Revert "Unable to connect to a Motorola s705 until Bluetoot...
Andre Eisenbach [Fri, 10 Oct 2014 23:24:59 +0000 (23:24 +0000)]
am afc9174e: am 1fbddc8f: Revert "Unable to connect to a Motorola s705 until Bluetooth was toggled of and back on"

* commit 'afc9174e530d53f7897e11853deb5b5088bc58c6':
  Revert "Unable to connect to a Motorola s705 until Bluetooth was toggled of and back on"

9 years agoam 12ca0ec5: Merge "Added missing A2DP priority on java alarm service" into lmp-dev
Andre Eisenbach [Fri, 10 Oct 2014 23:14:26 +0000 (23:14 +0000)]
am 12ca0ec5: Merge "Added missing A2DP priority on java alarm service" into lmp-dev

* commit '12ca0ec54796e31405a880de6675015c88857158':
  Added missing A2DP priority on java alarm service

9 years agoam 1fbddc8f: Revert "Unable to connect to a Motorola s705 until Bluetooth was toggled...
Andre Eisenbach [Fri, 10 Oct 2014 23:14:26 +0000 (23:14 +0000)]
am 1fbddc8f: Revert "Unable to connect to a Motorola s705 until Bluetooth was toggled of and back on"

* commit '1fbddc8faacde61190df31a8e6ea9142feb4bc88':
  Revert "Unable to connect to a Motorola s705 until Bluetooth was toggled of and back on"

9 years agoMerge "Added missing A2DP priority on java alarm service" into lmp-dev
Andre Eisenbach [Fri, 10 Oct 2014 18:13:13 +0000 (18:13 +0000)]
Merge "Added missing A2DP priority on java alarm service" into lmp-dev

9 years agoAdded missing A2DP priority on java alarm service
Mattias Agren [Wed, 8 Oct 2014 23:16:12 +0000 (01:16 +0200)]
Added missing A2DP priority on java alarm service

Running GKI timer engine via JAVA alarm service was causing severe
timer preemption at times which affects A2DP media task timer. This in
turn was stressing the compensation logic towards UIPC resulting in
very bursty reads of up to 40 UIPC frames at a time. This led to
instabilities on the UIPC pipe and trickled upwards in audio framework.
Inclusion of java alarm thread in A2DP high priority thread list results
in a much smoother data flow for entire A2DP data path and improved
audio quality.

Bug: 17520043
Change-Id: I7cea6ec64aa5b973b5fff767389a8827e681619e

9 years agoRevert "Unable to connect to a Motorola s705 until Bluetooth was toggled of and back on"
Andre Eisenbach [Fri, 10 Oct 2014 16:11:27 +0000 (09:11 -0700)]
Revert "Unable to connect to a Motorola s705 until Bluetooth was toggled of and back on"

This reverts commit a934f018b6c6a7eda4662a60f2f04828afc3ab77.

This patch caused various headset audio break issues and slow
reconnections on headsets like the Bose AE2W.

Based on the original bug under which this patch was merged
(b/10648781) it is unlikely that this bug even fixed the
issue it was meant to address.

Bug: 17520043
Change-Id: I39bb9abbf5735abff25b5257425c34972287dc27

9 years agoam c749cb08: am ebc38ac1: am ba2f6d99: (-s ours) Revert "anthias:17614185:Bluetooth...
Simon Wilson [Thu, 9 Oct 2014 22:31:08 +0000 (22:31 +0000)]
am c749cb08: am ebc38ac1: am ba2f6d99: (-s ours) Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"

* commit 'c749cb08550acd6adafa35f51080cbcdce04cb7c':
  Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"

9 years agoam ebc38ac1: am ba2f6d99: (-s ours) Revert "anthias:17614185:Bluetooth: Getbuf return...
Simon Wilson [Thu, 9 Oct 2014 22:23:44 +0000 (22:23 +0000)]
am ebc38ac1: am ba2f6d99: (-s ours) Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"

* commit 'ebc38ac1acf8629d5a641c4687dd97ff1cf768e0':
  Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"

9 years agoAdd support of advertising through standard instance.(4/4)
Satya Calloji [Fri, 26 Sep 2014 23:18:23 +0000 (16:18 -0700)]
Add support of advertising through standard instance.(4/4)

Handled the case of standard ADV when Multi ADV is not
supported by controller

Bug:17641092

Change-Id: I129a7faaf027985c63197e7298dbd2507905d29f

9 years agoam ba2f6d99: (-s ours) Revert "anthias:17614185:Bluetooth: Getbuf returning invalid...
Simon Wilson [Wed, 8 Oct 2014 17:34:06 +0000 (17:34 +0000)]
am ba2f6d99: (-s ours) Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"

* commit 'ba2f6d995d058bc9e77d860d0d755e4ae6086deb':
  Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"

9 years agoRevert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"
Simon Wilson [Wed, 8 Oct 2014 16:42:54 +0000 (09:42 -0700)]
Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"

This reverts commit c1ccb0d9854cea4b2cd09bbd57fc1e1081eb96b9.

This change looks like a likely candidate for the culprit behind
a wide range of BT issues we're seeing across many devices.
Reverting this in order to test.

9 years agoam fafbd202: (-s ours) am 5f0196cc: am 46bfe63d: (-s ours) DO NOT MERGE AVRCP: Proper...
Mallikarjuna GB [Tue, 7 Oct 2014 22:49:34 +0000 (22:49 +0000)]
am fafbd202: (-s ours) am 5f0196cc: am 46bfe63d: (-s ours) DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet

* commit 'fafbd20253a3236154b8c3869bc5776b4c870b20':
  DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet

9 years agoam 990becc2: am 9c9c4bf7: am c1ccb0d9: (-s ours) anthias:17614185:Bluetooth: Getbuf...
Maggie_Lee [Tue, 7 Oct 2014 22:49:34 +0000 (22:49 +0000)]
am 990becc2: am 9c9c4bf7: am c1ccb0d9: (-s ours) anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer

* commit '990becc2e84aabe4f296cf184f2874f20a1e1fa8':
  anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer

9 years agoam 5f0196cc: am 46bfe63d: (-s ours) DO NOT MERGE AVRCP: Proper handling of Fragmented...
Mallikarjuna GB [Tue, 7 Oct 2014 22:45:06 +0000 (22:45 +0000)]
am 5f0196cc: am 46bfe63d: (-s ours) DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet

* commit '5f0196cc32e07f3db5969101d5b0da1e0434d84b':
  DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet

9 years agoam 9c9c4bf7: am c1ccb0d9: (-s ours) anthias:17614185:Bluetooth: Getbuf returning...
Maggie_Lee [Tue, 7 Oct 2014 22:45:01 +0000 (22:45 +0000)]
am 9c9c4bf7: am c1ccb0d9: (-s ours) anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer

* commit '9c9c4bf7b879c5f5580cba02ffe6649ff433b806':
  anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer

9 years agoam 46bfe63d: (-s ours) DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet
Mallikarjuna GB [Tue, 7 Oct 2014 22:22:59 +0000 (22:22 +0000)]
am 46bfe63d: (-s ours) DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet

* commit '46bfe63d383fd077e521d69321e011aff824bd39':
  DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet

9 years agoam c1ccb0d9: (-s ours) anthias:17614185:Bluetooth: Getbuf returning invalid buffer...
Maggie_Lee [Tue, 7 Oct 2014 22:22:58 +0000 (22:22 +0000)]
am c1ccb0d9: (-s ours) anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer

* commit 'c1ccb0d9854cea4b2cd09bbd57fc1e1081eb96b9':
  anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer

9 years agoam f6e38080: am de898558: Merge "Fix an "array index out of bound" bug for RPA."...
Wei Wang [Mon, 6 Oct 2014 22:36:24 +0000 (22:36 +0000)]
am f6e38080: am de898558: Merge "Fix an "array index out of bound" bug for RPA." into lmp-dev

* commit 'f6e38080bfd5691a07962f6784c81a713986e3af':
  Fix an "array index out of bound" bug for RPA.

9 years agoam de898558: Merge "Fix an "array index out of bound" bug for RPA." into lmp-dev
Wei Wang [Mon, 6 Oct 2014 22:23:58 +0000 (22:23 +0000)]
am de898558: Merge "Fix an "array index out of bound" bug for RPA." into lmp-dev

* commit 'de898558badd0d575829c4011fdffd33c548c1d6':
  Fix an "array index out of bound" bug for RPA.

9 years agoMerge "Fix an "array index out of bound" bug for RPA." into lmp-dev
Wei Wang [Mon, 6 Oct 2014 19:16:26 +0000 (19:16 +0000)]
Merge "Fix an "array index out of bound" bug for RPA." into lmp-dev

9 years agoam c81f4b31: am 19a8f456: Merge "Raise A2DP threat priority to avoid music breaks...
Andre Eisenbach [Mon, 6 Oct 2014 03:08:48 +0000 (03:08 +0000)]
am c81f4b31: am 19a8f456: Merge "Raise A2DP threat priority to avoid music breaks" into lmp-dev

* commit 'c81f4b31ee0c054c31d77c4368ca5f67cc4f92b0':
  Raise A2DP threat priority to avoid music breaks

9 years agoam 952ce61c: am d5aa2475: LE: Peer device\'s latest RPA is not being applied
Satya Calloji [Mon, 6 Oct 2014 03:08:48 +0000 (03:08 +0000)]
am 952ce61c: am d5aa2475: LE: Peer device\'s latest RPA is not being applied

* commit '952ce61cb5ea48093a9093e8e2e98759f9abc283':
  LE: Peer device's latest RPA is not being applied

9 years agoam 19a8f456: Merge "Raise A2DP threat priority to avoid music breaks" into lmp-dev
Andre Eisenbach [Mon, 6 Oct 2014 02:48:25 +0000 (02:48 +0000)]
am 19a8f456: Merge "Raise A2DP threat priority to avoid music breaks" into lmp-dev

* commit '19a8f456d4a38694eaec270eabc5ff9aa639c86d':
  Raise A2DP threat priority to avoid music breaks

9 years agoam d5aa2475: LE: Peer device\'s latest RPA is not being applied
Satya Calloji [Mon, 6 Oct 2014 02:48:24 +0000 (02:48 +0000)]
am d5aa2475: LE: Peer device\'s latest RPA is not being applied

* commit 'd5aa24750c2202ce944560c2c27ead0214e8350d':
  LE: Peer device's latest RPA is not being applied

9 years agoMerge "Raise A2DP threat priority to avoid music breaks" into lmp-dev
Andre Eisenbach [Mon, 6 Oct 2014 01:28:18 +0000 (01:28 +0000)]
Merge "Raise A2DP threat priority to avoid music breaks" into lmp-dev

9 years agoLE: Peer device's latest RPA is not being applied
Satya Calloji [Wed, 24 Sep 2014 01:27:09 +0000 (18:27 -0700)]
LE: Peer device's latest RPA is not being applied

The latest discovered address is not used when reconnecting to devices
using resolvable private addresses, if RPA resolution offloadin is not
supported in the controller.
This patch also address the exception case where BT off is memseting
all control value while the IRK list is still being cleaned up.

Bug: 17187661
Change-Id: Ifeb5b8297e7eadb0e34ec1afbd41f46bdd836cf3
Author: Chaojing Sun <cjsun@broadcom.com>

9 years agoRaise A2DP threat priority to avoid music breaks
Mattias Agren [Thu, 2 Oct 2014 07:43:04 +0000 (09:43 +0200)]
Raise A2DP threat priority to avoid music breaks

* Ensure all a2dp audiopath threads are configured to high
  priority when actively streaming.
* For now set bt hc worker thread always to URGENT_AUDIO
  until new thread api can adjust thread priority dynamically.

Bug: 17520043
Change-Id: I10e314085329278bcfcc4e8bc5ce899b03d22e2b

9 years agoDO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet
Mallikarjuna GB [Sun, 10 Nov 2013 08:00:25 +0000 (13:30 +0530)]
DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet

- AVCTP : Allocate bigger buffer for reassembly
- AVRCP : Handle getelimentattr to eliminate duplicates
          and invalid attributes, this also fixes BOF.

Bug: 17669579
CRs-Fixed: 576831
Change-Id: I778c3df1386339ff8a00a755ffc9f24881b5167d

9 years agoFix an "array index out of bound" bug for RPA.
Wei Wang [Fri, 3 Oct 2014 17:58:03 +0000 (10:58 -0700)]
Fix an "array index out of bound" bug for RPA.

Also returns no more than BTM_BLE_MULTI_ADV_MAX for max advertise
instances.

Bug:17810619
Change-Id: If655e207b641fd4cd1590ae47b28185dc9f7cbbb

9 years agoam 2a39ff73: am 4baec1a8: Merge "Remove HOGP device from background connection list...
Matthew Xie [Fri, 26 Sep 2014 15:24:42 +0000 (15:24 +0000)]
am 2a39ff73: am 4baec1a8: Merge "Remove HOGP device from background connection list" into lmp-dev

* commit '2a39ff733882fece05c15da38b0a81cb6b132279':
  Remove HOGP device from background connection list

9 years agoam 4ab68ce4: am 1cd92393: Null check for irk entry
Priti Aghera [Fri, 26 Sep 2014 15:24:42 +0000 (15:24 +0000)]
am 4ab68ce4: am 1cd92393: Null check for irk entry

* commit '4ab68ce4d5006801a07e1e9110a856d2a87f9ad2':
  Null check for irk entry

9 years agoam 4baec1a8: Merge "Remove HOGP device from background connection list" into lmp-dev
Matthew Xie [Fri, 26 Sep 2014 00:22:58 +0000 (00:22 +0000)]
am 4baec1a8: Merge "Remove HOGP device from background connection list" into lmp-dev

* commit '4baec1a8b7987f6d46351ea17d359e23d0e17eb2':
  Remove HOGP device from background connection list

9 years agoam 1cd92393: Null check for irk entry
Priti Aghera [Fri, 26 Sep 2014 00:22:58 +0000 (00:22 +0000)]
am 1cd92393: Null check for irk entry

* commit '1cd92393c162afe68b01aafcf7a1d41ab1d21e7b':
  Null check for irk entry

9 years agoMerge "Remove HOGP device from background connection list" into lmp-dev
Matthew Xie [Thu, 25 Sep 2014 17:29:56 +0000 (17:29 +0000)]
Merge "Remove HOGP device from background connection list" into lmp-dev

9 years agoNull check for irk entry
Priti Aghera [Wed, 24 Sep 2014 17:06:40 +0000 (10:06 -0700)]
Null check for irk entry

When BT is turning off btm_ble_vendor control block is cleaned up.
So irk_entry which points to the first element of irk_list is NULL
Included a null check for irk_entry to prevent stack crash.

Bug 17399097

Change-Id: Ib129f7dd06f9db61cc54257aa4a563fe2c9f41f2

9 years agoanthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer
Maggie_Lee [Wed, 24 Sep 2014 00:17:02 +0000 (17:17 -0700)]
anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer

b/17623865

Getbuff is checking for the pool which can accommodate
requested size, but it changing the pool with a restricted
check and not checking for the free memory size in that pool.

Added a check to avoid return the wrong pool free buf pointer
and avoid gki get_buffer overflow.

Change-Id: I142870c989fc37f49c2d9b411d5eddbfba59bd9d

9 years agoam 97e231d4: am 03cb1ad1: Merge "Enable flow control when tx buffer is full and peer...
Matthew Xie [Tue, 23 Sep 2014 16:23:10 +0000 (16:23 +0000)]
am 97e231d4: am 03cb1ad1: Merge "Enable flow control when tx buffer is full and peer stuck in receiving" into lmp-dev

* commit '97e231d4592db161d9a2520c3a7714183f209c06':
  Enable flow control when tx buffer is full and peer stuck in receiving

9 years agoam 03cb1ad1: Merge "Enable flow control when tx buffer is full and peer stuck in...
Matthew Xie [Tue, 23 Sep 2014 15:52:52 +0000 (15:52 +0000)]
am 03cb1ad1: Merge "Enable flow control when tx buffer is full and peer stuck in receiving" into lmp-dev

* commit '03cb1ad1e063f7353c5098527bbf13ae7d563a7e':
  Enable flow control when tx buffer is full and peer stuck in receiving

9 years agoMerge "Enable flow control when tx buffer is full and peer stuck in receiving" into...
Matthew Xie [Tue, 23 Sep 2014 06:05:59 +0000 (06:05 +0000)]
Merge "Enable flow control when tx buffer is full and peer stuck in receiving" into lmp-dev

9 years agoRemove HOGP device from background connection list
Nitin Arora [Fri, 6 Dec 2013 05:11:26 +0000 (21:11 -0800)]
Remove HOGP device from background connection list

This adds logic to remove the device from whitelist when user unpairs or
disconnects device.
Bug: 17318494
Change-Id: I43c06dd16c665f9ce2e71a0e031c4f0f11a4012e

9 years agoam aa9ac8b7: am 8b52f5f2: Merge "Suppress the warning compiled with gcc-4.9"
Elliott Hughes [Fri, 19 Sep 2014 17:58:41 +0000 (17:58 +0000)]
am aa9ac8b7: am 8b52f5f2: Merge "Suppress the warning compiled with gcc-4.9"

* commit 'aa9ac8b752d969e8325bbc69893a69f31cc754f2':
  Suppress the warning compiled with gcc-4.9

9 years agoam 8b52f5f2: Merge "Suppress the warning compiled with gcc-4.9"
Elliott Hughes [Fri, 19 Sep 2014 17:45:10 +0000 (17:45 +0000)]
am 8b52f5f2: Merge "Suppress the warning compiled with gcc-4.9"

* commit '8b52f5f2f0eb1e3748a19af4438147872cba1cd2':
  Suppress the warning compiled with gcc-4.9

9 years agoMerge "Suppress the warning compiled with gcc-4.9"
Elliott Hughes [Fri, 19 Sep 2014 17:20:51 +0000 (17:20 +0000)]
Merge "Suppress the warning compiled with gcc-4.9"

9 years agoam ccf7d596: am 94c31e55: Merge "Fix of memset usage"
Elliott Hughes [Fri, 19 Sep 2014 16:55:04 +0000 (16:55 +0000)]
am ccf7d596: am 94c31e55: Merge "Fix of memset usage"

* commit 'ccf7d596e313993ce7d3ae6cd17d7cd8d200803f':
  Fix of memset usage

9 years agoam 4ef83ebb: am 3f24f460: All 00 mac address with advt
Satya Calloji [Fri, 19 Sep 2014 16:44:59 +0000 (16:44 +0000)]
am 4ef83ebb: am 3f24f460: All 00 mac address with advt

* commit '4ef83ebb2937c69ae62c51fdc0221a4403c82dcc':
  All 00 mac address with advt

9 years agoam 94c31e55: Merge "Fix of memset usage"
Elliott Hughes [Fri, 19 Sep 2014 16:41:27 +0000 (16:41 +0000)]
am 94c31e55: Merge "Fix of memset usage"

* commit '94c31e5518de3cfb610aae74835d5cc0a6d092d2':
  Fix of memset usage

9 years agoam 3f24f460: All 00 mac address with advt
Satya Calloji [Fri, 19 Sep 2014 16:30:37 +0000 (16:30 +0000)]
am 3f24f460: All 00 mac address with advt

* commit '3f24f460ec3efedde25723e6a4297efc10873cd2':
  All 00 mac address with advt

9 years agoMerge "Fix of memset usage"
Elliott Hughes [Fri, 19 Sep 2014 16:27:43 +0000 (16:27 +0000)]
Merge "Fix of memset usage"

9 years agoFix of memset usage
Arseniy Antonov [Fri, 19 Sep 2014 13:08:23 +0000 (17:08 +0400)]
Fix of memset usage

Build process failed following error (GCC 5.0):
btif_storage.c:1503:9: error: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Werror=memset-transposed-args]

Change-Id: I46e0d8bd6fcd9439b50b4f0aed5391c808b9eb73
Signed-off-by: Arseniy Antonov <arseniy.antonov@intel.com>
9 years agoam 0c2d2be8: am d1e6922c: Check userial fd before reading
Chris Manton [Fri, 19 Sep 2014 09:44:31 +0000 (09:44 +0000)]
am 0c2d2be8: am d1e6922c: Check userial fd before reading

* commit '0c2d2be8eb1d8f4c7b2c2651e84f0c1b9c8849e7':
  Check userial fd before reading

9 years agoam d1e6922c: Check userial fd before reading
Chris Manton [Fri, 19 Sep 2014 09:30:32 +0000 (09:30 +0000)]
am d1e6922c: Check userial fd before reading

* commit 'd1e6922ce963c90d19e81abdc1d305ccd0e65d7e':
  Check userial fd before reading

9 years agoam ee231c11: am 13e916d7: Merge "Add ability to preserve existing snoop log" into...
Andre Eisenbach [Fri, 19 Sep 2014 08:11:09 +0000 (08:11 +0000)]
am ee231c11: am 13e916d7: Merge "Add ability to preserve existing snoop log" into lmp-dev

* commit 'ee231c110585e0c934e030f048ae75678aa9a30f':

9 years agoam f9b5cb75: am 303d4ac5: Merge "For pairing over le transport, set default device...
Matthew Xie [Fri, 19 Sep 2014 08:08:51 +0000 (08:08 +0000)]
am f9b5cb75: am 303d4ac5: Merge "For pairing over le transport, set default device type and address type" into lmp-dev

* commit 'f9b5cb757eaf064eb592628d8abd1a060e59a9af':

9 years agoSuppress the warning compiled with gcc-4.9
Lai Wei-Chih [Fri, 19 Sep 2014 07:39:49 +0000 (15:39 +0800)]
Suppress the warning compiled with gcc-4.9

Fix the warning below:

  gatt_sr.c: In function 'gatt_sr_process_app_rsp':
  gatt_sr.c:175:27: warning: 'p_rsp' may be used uninitialized in this function [-Wmaybe-uninitialized]
                     p_rsp = (tGATTS_RSP *)GKI_getnext (p_rsp);
                           ^
  gatt_sr.c:125:23: note: 'p_rsp' was declared here
     tGATTS_RSP       *p_rsp;
                       ^

Change-Id: I894495ed7893e958f009778e629525b85d56b2f6

9 years agoam 8e974e6c: am c918d087: Document LE IO capabilities and use BR/EDR constant for LE
Andre Eisenbach [Fri, 19 Sep 2014 07:42:41 +0000 (07:42 +0000)]
am 8e974e6c: am c918d087: Document LE IO capabilities and use BR/EDR constant for LE

* commit '8e974e6cd585bb8195def31a2c4ee542a748fe02':

9 years agoAll 00 mac address with advt
Satya Calloji [Wed, 17 Sep 2014 05:44:43 +0000 (22:44 -0700)]
All 00 mac address with advt

Read the controller features before local name read

Bug 17505545
Change-Id: I7995a8c714ebec6e1751af5371edfd29c74b12ea

9 years agoEnable flow control when tx buffer is full and
Zhenye Zhu [Wed, 17 Sep 2014 23:59:52 +0000 (16:59 -0700)]
Enable flow control when tx buffer is full and
peer stuck in receiving

bug 17525124
Change-Id:Ic67e9c0aab7e64afc9679733e6c3de10a28078d7

9 years agoCheck userial fd before reading
Chris Manton [Mon, 15 Sep 2014 15:48:35 +0000 (08:48 -0700)]
Check userial fd before reading

The userial read loop uses one global flag
to condition the serial port read and a
second global file descriptor variable that
may change from another thread underneath it.

Check the validity of the serial port file
descriptor by making a copy immediately before
the read and only proceeding if it's a valid fd.

bug: 17552690

Change-Id: Iaaf1b8476fdee462ddc178d2a31ef8f55cb33e52

9 years agoam 13e916d7: Merge "Add ability to preserve existing snoop log" into lmp-dev
Andre Eisenbach [Thu, 18 Sep 2014 00:35:08 +0000 (00:35 +0000)]
am 13e916d7: Merge "Add ability to preserve existing snoop log" into lmp-dev

* commit '13e916d7e120796a45f3bf109ff959d7f4c42f0f':
  Add ability to preserve existing snoop log

9 years agoam 09ade5ef: am 13e916d7: Merge "Add ability to preserve existing snoop log" into...
Andre Eisenbach [Thu, 18 Sep 2014 00:22:51 +0000 (00:22 +0000)]
am 09ade5ef: am 13e916d7: Merge "Add ability to preserve existing snoop log" into lmp-dev

* commit '09ade5ef753d4de7c485aa3f681f8f5cdfb637af':
  Add ability to preserve existing snoop log

9 years agoam 13e916d7: Merge "Add ability to preserve existing snoop log" into lmp-dev
Andre Eisenbach [Thu, 18 Sep 2014 00:16:22 +0000 (00:16 +0000)]
am 13e916d7: Merge "Add ability to preserve existing snoop log" into lmp-dev

* commit '13e916d7e120796a45f3bf109ff959d7f4c42f0f':
  Add ability to preserve existing snoop log

9 years agoMerge "Add ability to preserve existing snoop log" into lmp-dev
Andre Eisenbach [Wed, 17 Sep 2014 23:55:58 +0000 (23:55 +0000)]
Merge "Add ability to preserve existing snoop log" into lmp-dev

9 years agoAdd ability to preserve existing snoop log
Andre Eisenbach [Wed, 17 Sep 2014 23:40:53 +0000 (16:40 -0700)]
Add ability to preserve existing snoop log

Currently a stack restart or device reboot will overwrite existing snoop
logs when the stack restarts. This patch adds a new configuration file
parameter "BtSnoopSaveLog" that, if enabled, will cause an existing
snoop log to be renamed to "<snoop_file_name>.last" before a new snoop
log is created.

This will allow for easier debugging of crashes that involve a reboot or
stack restart.

Change-Id: I4f56204d31a6bf2e96058938e8616eb6dee7360b

9 years agoam 303d4ac5: Merge "For pairing over le transport, set default device type and addres...
Matthew Xie [Wed, 17 Sep 2014 21:36:15 +0000 (21:36 +0000)]
am 303d4ac5: Merge "For pairing over le transport, set default device type and address type" into lmp-dev

* commit '303d4ac5ff7758ab2cdde4040cb8db6cf37552f5':
  For pairing over le transport, set default device type and address type

9 years agoam 4358907b: am 303d4ac5: Merge "For pairing over le transport, set default device...
Matthew Xie [Wed, 17 Sep 2014 21:25:31 +0000 (21:25 +0000)]
am 4358907b: am 303d4ac5: Merge "For pairing over le transport, set default device type and address type" into lmp-dev

* commit '4358907bb4fbbfb76cca22076b5e7c440cc90c9d':
  For pairing over le transport, set default device type and address type

9 years agoam 303d4ac5: Merge "For pairing over le transport, set default device type and addres...
Matthew Xie [Wed, 17 Sep 2014 21:13:15 +0000 (21:13 +0000)]
am 303d4ac5: Merge "For pairing over le transport, set default device type and address type" into lmp-dev

* commit '303d4ac5ff7758ab2cdde4040cb8db6cf37552f5':
  For pairing over le transport, set default device type and address type

9 years agoMerge "For pairing over le transport, set default device type and address type" into...
Matthew Xie [Wed, 17 Sep 2014 20:50:55 +0000 (20:50 +0000)]
Merge "For pairing over le transport, set default device type and address type" into lmp-dev

9 years agoFor pairing over le transport, set default device type and address type
Matthew Xie [Tue, 16 Sep 2014 07:55:03 +0000 (00:55 -0700)]
For pairing over le transport, set default device type and address type

When the LE pairing is initiated over NFC, skipping device scan, there is
no device type or address type info. We set the default as le and public.
bug 17497942
Change-Id: I3dcbb9029ead6ea0f7c48e62f46c8a055f1bc293

9 years agoam c918d087: Document LE IO capabilities and use BR/EDR constant for LE
Andre Eisenbach [Wed, 17 Sep 2014 17:11:32 +0000 (17:11 +0000)]
am c918d087: Document LE IO capabilities and use BR/EDR constant for LE

* commit 'c918d08763ec547f7f226553ab75ca885db357ac':
  Document LE IO capabilities and use BR/EDR constant for LE

9 years agoam 0fafefe2: am c918d087: Document LE IO capabilities and use BR/EDR constant for LE
Andre Eisenbach [Wed, 17 Sep 2014 17:00:09 +0000 (17:00 +0000)]
am 0fafefe2: am c918d087: Document LE IO capabilities and use BR/EDR constant for LE

* commit '0fafefe2b716aa168e8d853abf99c236702dc4ad':
  Document LE IO capabilities and use BR/EDR constant for LE

9 years agoam c918d087: Document LE IO capabilities and use BR/EDR constant for LE
Andre Eisenbach [Wed, 17 Sep 2014 16:48:50 +0000 (16:48 +0000)]
am c918d087: Document LE IO capabilities and use BR/EDR constant for LE

* commit 'c918d08763ec547f7f226553ab75ca885db357ac':
  Document LE IO capabilities and use BR/EDR constant for LE

9 years agoDocument LE IO capabilities and use BR/EDR constant for LE
Andre Eisenbach [Wed, 17 Sep 2014 15:45:56 +0000 (08:45 -0700)]
Document LE IO capabilities and use BR/EDR constant for LE

This removes a hack to set LE IO capabilities and reuses the existing
constant defined in bt_target.h.

Change-Id: I3c97629bd092ac78bd673afc29458775b2bce836

9 years agoam 4695f7ef: am 24adb37e: host cannot recover when connection exceed controller capab...
Priti Aghera [Mon, 15 Sep 2014 00:15:12 +0000 (00:15 +0000)]
am 4695f7ef: am 24adb37e: host cannot recover when connection exceed controller capability

* commit '4695f7ef8188d2884613aed6328f44232ca20e66':
  host cannot recover when connection exceed controller capability

9 years agoam 24adb37e: host cannot recover when connection exceed controller capability
Priti Aghera [Mon, 15 Sep 2014 00:00:39 +0000 (00:00 +0000)]
am 24adb37e: host cannot recover when connection exceed controller capability

* commit '24adb37e4106bf8544c7729d34451fdf2777c4dc':
  host cannot recover when connection exceed controller capability

9 years agohost cannot recover when connection exceed controller capability
Priti Aghera [Wed, 10 Sep 2014 18:42:10 +0000 (11:42 -0700)]
host cannot recover when connection exceed controller capability

Host can not initiate new connection when exceed controller capability
and connection then drop back to lower than the max. Controller will not
generate connection complete event when initaite LE ll connection request
failed, and host is dead loop waiting for the connection complete
then can not recover. Included a connection complete callback with failure
status when controller capability is exceeded.

bug 17326529
Change-Id: I9b863578dc868456e092f1d060e50d2c9fdcb441

9 years agoam 9be59d65: am e3b1d0da: Merge "Correct the OBEX OPP Profile version"
Matthew Xie [Sun, 14 Sep 2014 21:31:23 +0000 (21:31 +0000)]
am 9be59d65: am e3b1d0da: Merge "Correct the OBEX OPP Profile version"

* commit '9be59d6512633ada50301e0942a6bf6f9a4102ab':
  Correct the OBEX OPP Profile version

9 years agoam e3b1d0da: Merge "Correct the OBEX OPP Profile version"
Matthew Xie [Sun, 14 Sep 2014 21:16:18 +0000 (21:16 +0000)]
am e3b1d0da: Merge "Correct the OBEX OPP Profile version"

* commit 'e3b1d0da533fbb01da67f7ccfa976a9e3d54ed94':
  Correct the OBEX OPP Profile version

9 years agoMerge "Correct the OBEX OPP Profile version"
Matthew Xie [Sun, 14 Sep 2014 20:49:31 +0000 (20:49 +0000)]
Merge "Correct the OBEX OPP Profile version"

9 years agoam 912a6713: am 7ae25156: Avoid premature LE connection notifaction to app
Prerepa Viswanadham [Sat, 13 Sep 2014 03:07:16 +0000 (03:07 +0000)]
am 912a6713: am 7ae25156: Avoid premature LE connection notifaction to app

* commit '912a6713880e5a4413e79784da3fd5157f742a8a':
  Avoid premature LE connection notifaction to app

9 years agoam 7ae25156: Avoid premature LE connection notifaction to app
Prerepa Viswanadham [Sat, 13 Sep 2014 02:30:59 +0000 (02:30 +0000)]
am 7ae25156: Avoid premature LE connection notifaction to app

* commit '7ae25156f4250af9d0e8cd8d559d916cfb847feb':
  Avoid premature LE connection notifaction to app

9 years agoam f036ff11: am 976990f8: Merge "Fix issues with manufacturer ID prefix scan filter...
Wei Wang [Sat, 13 Sep 2014 02:27:48 +0000 (02:27 +0000)]
am f036ff11: am 976990f8: Merge "Fix issues with manufacturer ID prefix scan filter." into lmp-dev

* commit 'f036ff110bcbdfca1e453b12c124ed7bd077f750':
  Fix issues with manufacturer ID prefix scan filter.