OSDN Git Service

android-x86/system-bt.git
9 years agoam a99c2d91: am 654c376f: DO NOT MERGE Reduce TIMER_INTERVAL_FOR_WAKELOCK_IN_MS to...
Simon Wilson [Sat, 22 Nov 2014 02:35:28 +0000 (02:35 +0000)]
am a99c2d91: am 654c376f: DO NOT MERGE Reduce TIMER_INTERVAL_FOR_WAKELOCK_IN_MS to 100ms

* commit 'a99c2d913308b0fe17324225d62936c009ed1e4e':
  DO NOT MERGE Reduce TIMER_INTERVAL_FOR_WAKELOCK_IN_MS to 100ms

9 years agoam 654c376f: DO NOT MERGE Reduce TIMER_INTERVAL_FOR_WAKELOCK_IN_MS to 100ms
Simon Wilson [Sat, 22 Nov 2014 00:24:57 +0000 (00:24 +0000)]
am 654c376f: DO NOT MERGE Reduce TIMER_INTERVAL_FOR_WAKELOCK_IN_MS to 100ms

* commit '654c376fda3035af5b9090edc2a0a32382baf21c':
  DO NOT MERGE Reduce TIMER_INTERVAL_FOR_WAKELOCK_IN_MS to 100ms

9 years agoDO NOT MERGE Reduce TIMER_INTERVAL_FOR_WAKELOCK_IN_MS to 100ms
Simon Wilson [Fri, 21 Nov 2014 17:37:49 +0000 (09:37 -0800)]
DO NOT MERGE Reduce TIMER_INTERVAL_FOR_WAKELOCK_IN_MS to 100ms

The bluedroid wakelock locked time has increased 2.5x since K.
Reduce the 3s interval to reduce the time that the wakelock is
held, allowing the kernel to suspend more frequently. By
reducing this, wakelock usage returns to roughly K levels.

This in turn reduces BT process power usage.

Bug: 18357273
Change-Id: I7c3bddffafb0fa59468b8dd5718220be8ac85506

9 years agoClean up SetADV and ScanResp data memory leak.
Satya Calloji [Thu, 20 Nov 2014 21:08:27 +0000 (21:08 +0000)]
Clean up SetADV and ScanResp data memory leak.
automerge: 3770c47

* commit '3770c47387d3dfc6d2e2d32f4409a82119e726e3':
  Clean up SetADV and ScanResp data memory leak.

9 years agoClean up SetADV and ScanResp data memory leak.
Satya Calloji [Mon, 20 Oct 2014 04:28:46 +0000 (21:28 -0700)]
Clean up SetADV and ScanResp data memory leak.

Bug:18045480
Change-Id: Ic433f4aa26bd08e84c53c447be9d5278e16ebd55

9 years agoam 26fa02b5: LE: Use LE specific I/O capabilities
Andre Eisenbach [Wed, 19 Nov 2014 17:57:14 +0000 (17:57 +0000)]
am 26fa02b5: LE: Use LE specific I/O capabilities

* commit '26fa02b5cc684f8675d80b61185a4e5ccf3c6a2a':
  LE: Use LE specific I/O capabilities

9 years agoam 51dcba7a: Merge "Disable some clang warnings"
Chih-hung Hsieh [Wed, 19 Nov 2014 00:21:48 +0000 (00:21 +0000)]
am 51dcba7a: Merge "Disable some clang warnings"

* commit '51dcba7a9a9860eb1f6a44ae268cbf24e3411694':
  Disable some clang warnings

9 years agoMerge "Disable some clang warnings"
Chih-hung Hsieh [Tue, 18 Nov 2014 23:49:46 +0000 (23:49 +0000)]
Merge "Disable some clang warnings"

9 years agoLE: Use LE specific I/O capabilities
Andre Eisenbach [Tue, 18 Nov 2014 17:39:00 +0000 (09:39 -0800)]
LE: Use LE specific I/O capabilities

In an attempt to make the I/O capability configuration more reasable and
overwritable per platform, the BR/EDR specific I/O capabilities were
used for LE. In SMP, the I/O capabilities flag is mapped differently,
thus a separate flag is required to configure the LE I/O capabilities.

Bug: 18245986
Change-Id: I6b4ba8f8a1d60ea25729e49d305e3653e94928c6

9 years agoam 6cdf40af: am a59f47f2: DO NOT MERGE Remove overflow rate limiting when reading...
Andre Eisenbach [Tue, 18 Nov 2014 17:24:16 +0000 (17:24 +0000)]
am 6cdf40af: am a59f47f2: DO NOT MERGE Remove overflow rate limiting when reading A2DP frames

* commit '6cdf40afc2e3cdfccde289bd784b49150ac9b07b':
  DO NOT MERGE Remove overflow rate limiting when reading A2DP frames

9 years agoam a59f47f2: DO NOT MERGE Remove overflow rate limiting when reading A2DP frames
Andre Eisenbach [Tue, 18 Nov 2014 17:15:26 +0000 (17:15 +0000)]
am a59f47f2: DO NOT MERGE Remove overflow rate limiting when reading A2DP frames

* commit 'a59f47f27b2962828afd8d90d1a1d21206e32324':
  DO NOT MERGE Remove overflow rate limiting when reading A2DP frames

9 years agoam 86f97eda: Use the device type from saved properties instead of assuming default
Matthew Xie [Tue, 18 Nov 2014 02:08:30 +0000 (02:08 +0000)]
am 86f97eda: Use the device type from saved properties instead of assuming default

* commit '86f97eda524568f2d264186844450db5e56dac36':
  Use the device type from saved properties instead of assuming default

9 years agoam c5916e97: Remove overflow rate limiting when reading A2DP frames
Andre Eisenbach [Tue, 18 Nov 2014 02:07:29 +0000 (02:07 +0000)]
am c5916e97: Remove overflow rate limiting when reading A2DP frames

* commit 'c5916e97384f07ec5a2e061e6af24f70107c74a2':
  Remove overflow rate limiting when reading A2DP frames

9 years agoUse the device type from saved properties instead of assuming default
Matthew Xie [Mon, 10 Nov 2014 18:24:46 +0000 (10:24 -0800)]
Use the device type from saved properties instead of assuming default

DUMO device can do both BLE and BREDR operations. It was wrong
to assign BLE or BREDR type to it.
Bug: 18275230

Change-Id: I8d6c17e5157ba29a1af459629de9e2d6f6dc5e99

9 years agoDO NOT MERGE Remove overflow rate limiting when reading A2DP frames
Andre Eisenbach [Fri, 7 Nov 2014 23:46:04 +0000 (15:46 -0800)]
DO NOT MERGE Remove overflow rate limiting when reading A2DP frames

A2DP now supports adjusting the number of A2DP frames sent per timer
tick to adjust for timer drift and missed media task ticks. When the
signal to the headset/speakers becomes interrupted, the number of
packets to be read can queue up and rate limiting will not allow for the
queue to be cleared.

The overflow mechanism introduced in commit 4aebca4 will cause the media
task to stop sending packets completely, which can underflow the jutter
buffer on the remote device and lead to audio drop-outs.

This patch removes the overflow mechanism and also adds code do discard
audio frames that could not be sent to the remote device (weak signal
etc) to allow the device to stay in sync and not build up audio delays.

Also added additional debug logging and changed the UIPC flush mechanism
to address an issue where reading byte by byte causes an endless flush
loop if remote UIPC producer writes data faster than the flush loop
consumes it.

Bug: 18244205
Change-Id: I9a424984806bb2a464877399804b3355b2c439c3
(cherry picked from commit c5916e97384f07ec5a2e061e6af24f70107c74a2)

9 years agoRemove overflow rate limiting when reading A2DP frames
Andre Eisenbach [Fri, 7 Nov 2014 23:46:04 +0000 (15:46 -0800)]
Remove overflow rate limiting when reading A2DP frames

A2DP now supports adjusting the number of A2DP frames sent per timer
tick to adjust for timer drift and missed media task ticks. When the
signal to the headset/speakers becomes interrupted, the number of
packets to be read can queue up and rate limiting will not allow for the
queue to be cleared.

The overflow mechanism introduced in commit 4aebca4 will cause the media
task to stop sending packets completely, which can underflow the jutter
buffer on the remote device and lead to audio drop-outs.

This patch removes the overflow mechanism and also adds code do discard
audio frames that could not be sent to the remote device (weak signal
etc) to allow the device to stay in sync and not build up audio delays.

Also added additional debug logging and changed the UIPC flush mechanism
to address an issue where reading byte by byte causes an endless flush
loop if remote UIPC producer writes data faster than the flush loop
consumes it.

Bug: 18326405
Change-Id: I9a424984806bb2a464877399804b3355b2c439c3

9 years agoDisable some clang warnings
Bernhard Rosenkränzer [Wed, 12 Nov 2014 21:11:31 +0000 (22:11 +0100)]
Disable some clang warnings

Disable some clang warnings that can't be fixed in the code easily.

The gnu-variable-sized-type-not-at-end extension is used heavily to
allow adding members to a struct after a variably sized header.

constant-logical-operand is triggered by code in l2c_utils.c that looks
like the construct is correct in this use case.

Change-Id: I3ff8bf5b6deb7a5807dc200a50f33b2583abb9c0
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
9 years agoBluetooth fails to turn off with keyboard and headset connected
Chaojing Sun [Tue, 11 Nov 2014 22:08:45 +0000 (22:08 +0000)]
Bluetooth fails to turn off with keyboard and headset connected
automerge: c5cda81

* commit 'c5cda8198541888a6f16795effa55a0d3254afdb':
  Bluetooth fails to turn off with keyboard and headset connected

9 years agoBluetooth fails to turn off with keyboard and headset connected
Chaojing Sun [Sat, 8 Nov 2014 00:42:46 +0000 (16:42 -0800)]
Bluetooth fails to turn off with keyboard and headset connected

When HOGP keyboard is connecting and BT off is requested, if there
is any HOGP data that was received during this state, it causes the
following side-effects:
- LE data was not thrown away in disconnecting state, instead it is
now being used as indication of link establishement
-The above triggers the link open callback for fix channel and
causes the BT off failure.

Check L2CAP link state and always discard the fixed channel data
received in disconnecting state solves the problem.

Bug: 17793437
Change-Id: I633d5e6346e952daa2abd642effad2f260954fdf

9 years agoam 16451571: am b407515f: Fix "no instances found for adv" when stop BLE scanning.
Satya Calloji [Fri, 7 Nov 2014 00:00:33 +0000 (00:00 +0000)]
am 16451571: am b407515f: Fix "no instances found for adv" when stop BLE scanning.

* commit '16451571a5461ab3be535d25cbb62ab03b6b6157':
  Fix "no instances found for adv" when stop BLE scanning.

9 years agoam b407515f: Fix "no instances found for adv" when stop BLE scanning.
Satya Calloji [Thu, 6 Nov 2014 20:33:53 +0000 (20:33 +0000)]
am b407515f: Fix "no instances found for adv" when stop BLE scanning.

* commit 'b407515ffa145b1a2cab01467da03c92aeb0e8eb':
  Fix "no instances found for adv" when stop BLE scanning.

9 years agoFix "no instances found for adv" when stop BLE scanning.
Satya Calloji [Fri, 10 Oct 2014 18:31:03 +0000 (11:31 -0700)]
Fix "no instances found for adv" when stop BLE scanning.

Bug:17703806
Change-Id: I103d3637ad38d33b4370850a300b0d72bdaeb562

9 years agoam cd4c3709: am 2933de99: am f37767a1: HOGP: Do not remove device from whitelist...
Andre Eisenbach [Wed, 5 Nov 2014 00:00:53 +0000 (00:00 +0000)]
am cd4c3709: am 2933de99: am f37767a1: HOGP: Do not remove device from whitelist on encryption failure

* commit 'cd4c370976faeab63083e49c0dec6664d08fd59c':
  HOGP: Do not remove device from whitelist on encryption failure

9 years agoam 2933de99: am f37767a1: HOGP: Do not remove device from whitelist on encryption...
Andre Eisenbach [Tue, 4 Nov 2014 23:49:36 +0000 (23:49 +0000)]
am 2933de99: am f37767a1: HOGP: Do not remove device from whitelist on encryption failure

* commit '2933de995b21b8ae2ed6d6b682823f49aea8fa5e':
  HOGP: Do not remove device from whitelist on encryption failure

9 years agoam f37767a1: HOGP: Do not remove device from whitelist on encryption failure
Andre Eisenbach [Tue, 4 Nov 2014 23:45:15 +0000 (23:45 +0000)]
am f37767a1: HOGP: Do not remove device from whitelist on encryption failure

* commit 'f37767a17b2d80828f7ac4fa170859cb9e2f0bc6':
  HOGP: Do not remove device from whitelist on encryption failure

9 years agoHOGP: Do not remove device from whitelist on encryption failure
Andre Eisenbach [Tue, 4 Nov 2014 23:23:02 +0000 (15:23 -0800)]
HOGP: Do not remove device from whitelist on encryption failure

If the encryption times out during the re-connect process for a HOGP
device, the device is removed from the whitelist and thus will not
reconnect until it is added back to the list. On platforms that do not
have a way to reconnect to a device manually, this means the device will
never reconnect again until the stack is restarted.

This patch checks the reason for the encryption failure and does not
remove the device from the whitelist if the encryption failed to a non
authentication/key related error.

Bug: 18233442
Change-Id: Ifaec4a9224ff9281956715b38d34c2d7c3fecb01

9 years agoam b357f271: am e50c7933: DO NOT MERGE Do not set sig_id in gerneral reject message...
Matthew Xie [Tue, 4 Nov 2014 02:49:21 +0000 (02:49 +0000)]
am b357f271: am e50c7933: DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2 automerge: 595bcb4  -s ours automerge: 2369935  -s ours automerge: 0570fd9  -s ours

* commit 'b357f2716532f878be85ffb639b9c1ea2a6d3048':

9 years agoam 122622f9: am 87303c76: Increment seq before adding to packet in avdt_scb_hdl_write...
Matthew Xie [Tue, 4 Nov 2014 02:49:21 +0000 (02:49 +0000)]
am 122622f9: am 87303c76: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag automerge: 98ad505 automerge: f81ffdb automerge: 6d11a01

* commit '122622f97c7e020deb223843792a386282e99337':

9 years agoam e50c7933: DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP...
Matthew Xie [Tue, 4 Nov 2014 00:19:18 +0000 (00:19 +0000)]
am e50c7933: DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2 automerge: 595bcb4  -s ours automerge: 2369935  -s ours
automerge: 0570fd9  -s ours

* commit '0570fd9c9cf0929140e8d16ebe78a5189f8b01bb':

9 years agoam 87303c76: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag...
Matthew Xie [Tue, 4 Nov 2014 00:19:14 +0000 (00:19 +0000)]
am 87303c76: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag automerge: 98ad505 automerge: f81ffdb
automerge: 6d11a01

* commit '6d11a01aa3770a3b23086f08c9691617bb0c9578':

9 years agoam b3cebcbc: am 020cccca: am 5fe98634: am ba2f6d99: Revert "anthias:17614185:Bluetoot...
Simon Wilson [Mon, 3 Nov 2014 22:34:40 +0000 (22:34 +0000)]
am b3cebcbc: am 020cccca: am 5fe98634: am ba2f6d99: Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer" automerge: 8403c6d

* commit 'b3cebcbc353eab5b4920f1ccf69b69560b636e93':

9 years agoam aa7a28a3: am 36eac517: am 27c93b25: am 46bfe63d: DO NOT MERGE AVRCP: Proper handli...
Mallikarjuna GB [Mon, 3 Nov 2014 22:31:58 +0000 (22:31 +0000)]
am aa7a28a3: am 36eac517: am 27c93b25: am 46bfe63d: DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet automerge: f9336d3  -s ours

* commit 'aa7a28a3efe8e48f80c4ecf0c8b7ee0cbe275877':

9 years agoam 9e7ad87f: am 9624c4d6: am 36ba410e: am c1ccb0d9: anthias:17614185:Bluetooth: Getbu...
Maggie_Lee [Mon, 3 Nov 2014 22:31:57 +0000 (22:31 +0000)]
am 9e7ad87f: am 9624c4d6: am 36ba410e: am c1ccb0d9: anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer automerge: 0e74efe

* commit '9e7ad87f5ed2ca9591fbd56e30657063f76fd04e':

9 years agoam e50c7933: DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP...
Matthew Xie [Mon, 3 Nov 2014 21:20:45 +0000 (21:20 +0000)]
am e50c7933: DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2 automerge: 595bcb4  -s ours automerge: 2369935  -s ours

* commit 'e50c79337277f9da2c9cef52fd373bbc85df6255':

9 years agoam 87303c76: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag...
Matthew Xie [Mon, 3 Nov 2014 21:20:44 +0000 (21:20 +0000)]
am 87303c76: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag automerge: 98ad505 automerge: f81ffdb

* commit '87303c76d7e472818b3379475241191cd2b3e3aa':

9 years agoDO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2 automerg...
Matthew Xie [Mon, 3 Nov 2014 21:13:49 +0000 (21:13 +0000)]
DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2 automerge: 595bcb4  -s ours
automerge: 2369935  -s ours

* commit '236993560aad078736afd36323ed0dafa13005c2':

9 years agoIncrement seq before adding to packet in avdt_scb_hdl_write_req_no_frag automerge...
Matthew Xie [Mon, 3 Nov 2014 21:13:21 +0000 (21:13 +0000)]
Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag automerge: 98ad505
automerge: f81ffdb

* commit 'f81ffdb1804dfe759c6a67cfc40a7c4fb599b127':

9 years agoam 020cccca: am 5fe98634: am ba2f6d99: Revert "anthias:17614185:Bluetooth: Getbuf...
Simon Wilson [Mon, 3 Nov 2014 20:56:14 +0000 (20:56 +0000)]
am 020cccca: am 5fe98634: am ba2f6d99: Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer" automerge: 8403c6d

* commit '020ccccabd8bfb7bb863433a86793d3df6c32ed5':

9 years agoam 5fe98634: am ba2f6d99: Revert "anthias:17614185:Bluetooth: Getbuf returning invali...
Simon Wilson [Mon, 3 Nov 2014 20:47:29 +0000 (20:47 +0000)]
am 5fe98634: am ba2f6d99: Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer" automerge: 8403c6d

* commit '5fe98634c3bd19660d2f3533f83b9beca15a94ab':

9 years agoam ba2f6d99: Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer...
Simon Wilson [Mon, 3 Nov 2014 20:40:34 +0000 (20:40 +0000)]
am ba2f6d99: Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"
automerge: 8403c6d

* commit '8403c6d2a012adf87bed9d34176bfaa6a343463c':

9 years agoam 36eac517: am 27c93b25: am 46bfe63d: DO NOT MERGE AVRCP: Proper handling of Fragmen...
Mallikarjuna GB [Mon, 3 Nov 2014 20:37:52 +0000 (20:37 +0000)]
am 36eac517: am 27c93b25: am 46bfe63d: DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet automerge: f9336d3  -s ours

* commit '36eac517f8ac4220315673fb9fbe172ae5430c7d':

9 years agoam 9624c4d6: am 36ba410e: am c1ccb0d9: anthias:17614185:Bluetooth: Getbuf returning...
Maggie_Lee [Mon, 3 Nov 2014 20:37:51 +0000 (20:37 +0000)]
am 9624c4d6: am 36ba410e: am c1ccb0d9: anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer automerge: 0e74efe

* commit '9624c4d6ee066ffc70c9f920b073dafecfb81b8e':

9 years agoam 27c93b25: am 46bfe63d: DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP...
Mallikarjuna GB [Mon, 3 Nov 2014 20:29:47 +0000 (20:29 +0000)]
am 27c93b25: am 46bfe63d: DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet automerge: f9336d3  -s ours

* commit '27c93b253feaea8f5144d3e8957478575c4df13c':

9 years agoam 36ba410e: am c1ccb0d9: anthias:17614185:Bluetooth: Getbuf returning invalid buffer...
Maggie_Lee [Mon, 3 Nov 2014 20:29:46 +0000 (20:29 +0000)]
am 36ba410e: am c1ccb0d9: anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer automerge: 0e74efe

* commit '36ba410e35e924aad27cd6556e2346af5e606363':

9 years agoam 46bfe63d: DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet
Mallikarjuna GB [Mon, 3 Nov 2014 20:20:07 +0000 (20:20 +0000)]
am 46bfe63d: DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet
automerge: f9336d3  -s ours

* commit 'f9336d34b5168d4c97476ea88dad586d481c8397':

9 years agoam c1ccb0d9: anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer
Maggie_Lee [Mon, 3 Nov 2014 20:20:03 +0000 (20:20 +0000)]
am c1ccb0d9: anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer
automerge: 0e74efe

* commit '0e74efe56b678c85f35e158a40d9828661cfa2d4':

9 years agoam 59f80103: Merge "audio HAL: remove misleading error log" into lmp-mr1-dev
Eric Laurent [Fri, 31 Oct 2014 00:16:41 +0000 (00:16 +0000)]
am 59f80103: Merge "audio HAL: remove misleading error log" into lmp-mr1-dev

* commit '59f801031d9d28aa65ecffbefb40f23b255b082d':
  audio HAL: remove misleading error log

9 years agoam 903285cb: am 472c2a7b: Don\'t starve a BT ACL link with 0 xmit quota
Prerepa Viswanadham [Thu, 30 Oct 2014 19:01:32 +0000 (19:01 +0000)]
am 903285cb: am 472c2a7b: Don\'t starve a BT ACL link with 0 xmit quota
automerge: 3a14106

* commit '3a14106e20be86c3abe496e6d36a0b6e67e52c38':
  Don't starve a BT ACL link with 0 xmit quota

9 years agoMerge "audio HAL: remove misleading error log" into lmp-mr1-dev
Eric Laurent [Thu, 30 Oct 2014 16:03:11 +0000 (16:03 +0000)]
Merge "audio HAL: remove misleading error log" into lmp-mr1-dev

9 years agoam 41388b8a: Merge "Make sure now_us returns a value bigger than the previous one...
Matthew Xie [Thu, 30 Oct 2014 11:03:28 +0000 (11:03 +0000)]
am 41388b8a: Merge "Make sure now_us returns a value bigger than the previous one" into lmp-mr1-dev

* commit '41388b8a9ef23849b981c848d70f5b0c11e72d07':
  Make sure now_us returns a value bigger than the previous one

9 years agoaudio HAL: remove misleading error log
Eric Laurent [Thu, 30 Oct 2014 00:17:31 +0000 (17:17 -0700)]
audio HAL: remove misleading error log

Bug: 17916028.
Change-Id: I4badb9208eeb973a08b4f8463ee287f6bfb3dd01

9 years agoam 903285cb: am 472c2a7b: Don\'t starve a BT ACL link with 0 xmit quota
Prerepa Viswanadham [Wed, 29 Oct 2014 18:51:16 +0000 (18:51 +0000)]
am 903285cb: am 472c2a7b: Don\'t starve a BT ACL link with 0 xmit quota

* commit '903285cb2f4fef96f74de771e868b277453d6f21':
  Don't starve a BT ACL link with 0 xmit quota

9 years agoam 472c2a7b: Don\'t starve a BT ACL link with 0 xmit quota
Prerepa Viswanadham [Tue, 28 Oct 2014 23:49:28 +0000 (23:49 +0000)]
am 472c2a7b: Don\'t starve a BT ACL link with 0 xmit quota

* commit '472c2a7bb0ac070e596084f9422157f7872c6dca':
  Don't starve a BT ACL link with 0 xmit quota

9 years agoDO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2
Matthew Xie [Tue, 28 Oct 2014 23:27:24 +0000 (23:27 +0000)]
DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2
automerge: 595bcb4  -s ours

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

9 years agoIncrement seq before adding to packet in avdt_scb_hdl_write_req_no_frag
Matthew Xie [Tue, 28 Oct 2014 23:26:48 +0000 (23:26 +0000)]
Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag
automerge: 98ad505

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

9 years agoMerge "Make sure now_us returns a value bigger than the previous one" into lmp-mr1-dev
Matthew Xie [Tue, 28 Oct 2014 22:39:14 +0000 (22:39 +0000)]
Merge "Make sure now_us returns a value bigger than the previous one" into lmp-mr1-dev

9 years agoMake sure now_us returns a value bigger than the previous one
Matthew Xie [Tue, 28 Oct 2014 18:05:26 +0000 (11:05 -0700)]
Make sure now_us returns a value bigger than the previous one

On some platforms clock_gettime may sometimes return a current
time that is earlier than a previous time. While it rarely
happens, we need cover the case anyway.

Bug: 18154020
Change-Id: I3846487aa45d0b11aeb63fa68af8826b864248fa

9 years agoLE: Make local privacy configurable
Andre Eisenbach [Mon, 27 Oct 2014 21:18:01 +0000 (21:18 +0000)]
LE: Make local privacy configurable
automerge: 3e0dc73

* commit '3e0dc7324e7b0127f9d15609bab395100a22098d':
  LE: Make local privacy configurable

9 years agoam 6fa7d957: Merge "Retry pairing if the device did not respond (page timeout)" into...
Prem Kumar [Sat, 25 Oct 2014 19:54:54 +0000 (19:54 +0000)]
am 6fa7d957: Merge "Retry pairing if the device did not respond (page timeout)" into lmp-dev automerge: 25249f7

* commit '6fa7d957a3ffe77120f9a3852a97c32182f80ed9':

9 years agoam 86ec3ba8: A2DP: Lowering maximum PCM frame limit to avoid audio breaks automerge...
Andre Eisenbach [Sat, 25 Oct 2014 19:54:54 +0000 (19:54 +0000)]
am 86ec3ba8: A2DP: Lowering maximum PCM frame limit to avoid audio breaks automerge: 01d102b

* commit '86ec3ba8f1eed2d449651ea836b4a26ea3e2c9ed':

9 years agoam 271168a5: am 9d8df2d1: Merge "LE: Serialize multiple connection parameter update...
Andre Eisenbach [Sat, 25 Oct 2014 19:54:53 +0000 (19:54 +0000)]
am 271168a5: am 9d8df2d1: Merge "LE: Serialize multiple connection parameter update requests" into lmp-dev

* commit '271168a5897d49d5bcc6cd9ee0c8781fcd935656':

9 years agoam 51206f86: am d8586177: Merge "Implement GATT service cache" into lmp-dev
Andre Eisenbach [Sat, 25 Oct 2014 19:54:53 +0000 (19:54 +0000)]
am 51206f86: am d8586177: Merge "Implement GATT service cache" into lmp-dev

* commit '51206f861b77cf2efc2004cdfd50387edad08a55':

9 years agoam 69716b54: (-s ours) am f777d24c: am 595bcb4c: (-s ours) DO NOT MERGE Do not set...
Matthew Xie [Sat, 25 Oct 2014 19:54:52 +0000 (19:54 +0000)]
am 69716b54: (-s ours) am f777d24c: am 595bcb4c: (-s ours) DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2

* commit '69716b54b9faf23709b185a13bca2955bff62fbf':

9 years agoam a9b72a8f: am 4a35476c: am 98ad505f: Increment seq before adding to packet in avdt_...
Matthew Xie [Sat, 25 Oct 2014 19:54:52 +0000 (19:54 +0000)]
am a9b72a8f: am 4a35476c: am 98ad505f: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag

* commit 'a9b72a8fac0e455d849092b5a46d494729d4c252':

9 years agoam 4ad4c4b9: am 12ca0ec5: Merge "Added missing A2DP priority on java alarm service...
Andre Eisenbach [Sat, 25 Oct 2014 19:54:51 +0000 (19:54 +0000)]
am 4ad4c4b9: am 12ca0ec5: Merge "Added missing A2DP priority on java alarm service" into lmp-dev

* commit '4ad4c4b997bd96ee09827b39a49fbbb3322690d1':

9 years agoam 2817e84e: am 1fbddc8f: Revert "Unable to connect to a Motorola s705 until Bluetoot...
Andre Eisenbach [Sat, 25 Oct 2014 19:54:51 +0000 (19:54 +0000)]
am 2817e84e: am 1fbddc8f: Revert "Unable to connect to a Motorola s705 until Bluetooth was toggled of and back on"

* commit '2817e84e1a3401062bf94ac60f6ee7ee1af171fc':

9 years agoam 04d4c74e: am ebc38ac1: am ba2f6d99: (-s ours) Revert "anthias:17614185:Bluetooth...
Simon Wilson [Sat, 25 Oct 2014 19:54:50 +0000 (19:54 +0000)]
am 04d4c74e: am ebc38ac1: am ba2f6d99: (-s ours) Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"

* commit '04d4c74e494bc0e23f7fd225b02b420f4069068a':

9 years agoam 5fd0cfaf: (-s ours) am 5f0196cc: am 46bfe63d: (-s ours) DO NOT MERGE AVRCP: Proper...
Mallikarjuna GB [Sat, 25 Oct 2014 19:54:50 +0000 (19:54 +0000)]
am 5fd0cfaf: (-s ours) am 5f0196cc: am 46bfe63d: (-s ours) DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet

* commit '5fd0cfafa6237e33b551ec81f4413e5c590b08ad':

9 years agoam 57787fe9: am 9c9c4bf7: am c1ccb0d9: (-s ours) anthias:17614185:Bluetooth: Getbuf...
Maggie_Lee [Sat, 25 Oct 2014 19:54:49 +0000 (19:54 +0000)]
am 57787fe9: am 9c9c4bf7: am c1ccb0d9: (-s ours) anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer

* commit '57787fe919277f4fb0f226f5c639919b576ee89a':

9 years agoam 86204201: am de898558: Merge "Fix an "array index out of bound" bug for RPA."...
Wei Wang [Sat, 25 Oct 2014 19:54:49 +0000 (19:54 +0000)]
am 86204201: am de898558: Merge "Fix an "array index out of bound" bug for RPA." into lmp-dev

* commit '862042012c11e9cbbcc43088069ef4b9b5a7f48e':

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

* commit 'b59fbf1bd96a6abacdc655fb32cea86f53a7a825':

9 years agoam 87b9ca22: am d5aa2475: LE: Peer device\'s latest RPA is not being applied
Satya Calloji [Sat, 25 Oct 2014 19:54:48 +0000 (19:54 +0000)]
am 87b9ca22: am d5aa2475: LE: Peer device\'s latest RPA is not being applied

* commit '87b9ca2209c0ee8a9b436e20dfd147115783c05e':

9 years agoam bf1b3520: am 4baec1a8: Merge "Remove HOGP device from background connection list...
Matthew Xie [Sat, 25 Oct 2014 19:54:47 +0000 (19:54 +0000)]
am bf1b3520: am 4baec1a8: Merge "Remove HOGP device from background connection list" into lmp-dev

* commit 'bf1b35201c1f60cebea6c0fc496b91a18ec3b280':

9 years agoam 4e3572b5: am 1cd92393: Null check for irk entry
Priti Aghera [Sat, 25 Oct 2014 19:54:47 +0000 (19:54 +0000)]
am 4e3572b5: am 1cd92393: Null check for irk entry

* commit '4e3572b5f7a2abb6bb37fa1f50505f41dca13938':

9 years agoam 597c288d: am 03cb1ad1: Merge "Enable flow control when tx buffer is full and peer...
Matthew Xie [Sat, 25 Oct 2014 19:54:46 +0000 (19:54 +0000)]
am 597c288d: am 03cb1ad1: Merge "Enable flow control when tx buffer is full and peer stuck in receiving" into lmp-dev

* commit '597c288dadd24679a059474aff85bf982e2add69':

9 years agoam 9a12a619: am 8b52f5f2: Merge "Suppress the warning compiled with gcc-4.9"
Elliott Hughes [Sat, 25 Oct 2014 19:54:45 +0000 (19:54 +0000)]
am 9a12a619: am 8b52f5f2: Merge "Suppress the warning compiled with gcc-4.9"

* commit '9a12a619b2da9999159027c1c435c3b24a8e2b37':

9 years agoam 9a789ea6: am 94c31e55: Merge "Fix of memset usage"
Elliott Hughes [Sat, 25 Oct 2014 19:54:45 +0000 (19:54 +0000)]
am 9a789ea6: am 94c31e55: Merge "Fix of memset usage"

* commit '9a789ea66ae60b38139c3360229f3c709eb7b9b3':

9 years agoam a169432c: am 3f24f460: All 00 mac address with advt
Satya Calloji [Sat, 25 Oct 2014 19:54:44 +0000 (19:54 +0000)]
am a169432c: am 3f24f460: All 00 mac address with advt

* commit 'a169432c3bb01bf0bbcc1837f7965636b0ac4bde':

9 years agoam 42009e23: am d1e6922c: Check userial fd before reading
Chris Manton [Sat, 25 Oct 2014 19:54:44 +0000 (19:54 +0000)]
am 42009e23: am d1e6922c: Check userial fd before reading

* commit '42009e230dfa39b85cf2356ccfd14bdbe495b81a':

9 years agoam 09ade5ef: am 13e916d7: Merge "Add ability to preserve existing snoop log" into...
Andre Eisenbach [Sat, 25 Oct 2014 19:54:43 +0000 (19:54 +0000)]
am 09ade5ef: am 13e916d7: Merge "Add ability to preserve existing snoop log" into lmp-dev

* commit '09ade5ef753d4de7c485aa3f681f8f5cdfb637af':

9 years agoam 4358907b: am 303d4ac5: Merge "For pairing over le transport, set default device...
Matthew Xie [Sat, 25 Oct 2014 19:54:43 +0000 (19:54 +0000)]
am 4358907b: am 303d4ac5: Merge "For pairing over le transport, set default device type and address type" into lmp-dev

* commit '4358907bb4fbbfb76cca22076b5e7c440cc90c9d':

9 years agoam 0fafefe2: am c918d087: Document LE IO capabilities and use BR/EDR constant for LE
Andre Eisenbach [Sat, 25 Oct 2014 19:54:42 +0000 (19:54 +0000)]
am 0fafefe2: am c918d087: Document LE IO capabilities and use BR/EDR constant for LE

* commit '0fafefe2b716aa168e8d853abf99c236702dc4ad':

9 years agoLE: Make local privacy configurable
Andre Eisenbach [Fri, 24 Oct 2014 16:55:34 +0000 (09:55 -0700)]
LE: Make local privacy configurable

Bug: 17753401
Change-Id: I288ea8b6194d91d18485d0f3f1bbf997f97a26dd

9 years agoDon't starve a BT ACL link with 0 xmit quota
Prerepa Viswanadham [Thu, 23 Oct 2014 20:50:57 +0000 (13:50 -0700)]
Don't starve a BT ACL link with 0 xmit quota

With new link management of controller buffers between
different ACL connections, it is possible that a ACL
conn would get 0 buffers - thus no profile can run.
This affects classic and LE ACL connections.

This work around allows a floor of 1 buffer as the
floor for all connection, irrespective of controller
capability.

Bug: 17976311
Change-Id: I7cd0d34af47c441c5ea7f2b836b591a4fec62ad1

9 years agoam f8938276: am 5e808468: LE: Do not remove bond on encryption failure
Andre Eisenbach [Wed, 22 Oct 2014 21:12:58 +0000 (21:12 +0000)]
am f8938276: am 5e808468: LE: Do not remove bond on encryption failure

* commit 'f89382760380cc3a2dd5d56366344eed2c00e561':
  LE: Do not remove bond on encryption failure

9 years agoam b94c47a5: am 433fe016: Cache HOGP HID report map
Chaojing Sun [Wed, 22 Oct 2014 21:12:57 +0000 (21:12 +0000)]
am b94c47a5: am 433fe016: Cache HOGP HID report map

* commit 'b94c47a5407b29bf3bcb8d3c5f94773d9697ce50':
  Cache HOGP HID report map

9 years agoam f4d88b93: am 25249f76: Merge "Retry pairing if the device did not respond (page...
Prem Kumar [Wed, 22 Oct 2014 21:12:56 +0000 (21:12 +0000)]
am f4d88b93: am 25249f76: Merge "Retry pairing if the device did not respond (page timeout)" into lmp-dev

* commit 'f4d88b93db3796b3c0915d8068ea14e60913f377':
  Retry pairing if the device did not respond (page timeout)

9 years agoam 6b5262a6: am 01d102b3: A2DP: Lowering maximum PCM frame limit to avoid audio breaks
Andre Eisenbach [Wed, 22 Oct 2014 21:12:56 +0000 (21:12 +0000)]
am 6b5262a6: am 01d102b3: A2DP: Lowering maximum PCM frame limit to avoid audio breaks

* commit '6b5262a6943444848a377aa882f8be91449211d1':
  A2DP: Lowering maximum PCM frame limit to avoid audio breaks

9 years agoam 5e808468: LE: Do not remove bond on encryption failure
Andre Eisenbach [Wed, 22 Oct 2014 06:12:53 +0000 (06:12 +0000)]
am 5e808468: LE: Do not remove bond on encryption failure

* commit '5e808468e0667a6a2a8a1e6de80efbc4f42fa0f0':
  LE: Do not remove bond on encryption failure

9 years agoLE: Do not remove bond on encryption failure
Andre Eisenbach [Tue, 21 Oct 2014 19:37:53 +0000 (12:37 -0700)]
LE: Do not remove bond on encryption failure

If the encryption fails during the re-connection process with a
previously paired LE device, the pairing is removed. Thus, a single
connection failure could lead to the device be unpaired.

This patch prevents unpairing when encryption fails.

Additionally, the IRK is restored from NV ram to fix reconnection to
dual-mode devices.

Bug: 18072300
Change-Id: I077a16d0715fdaa07b95b1c664c18bd839754896

9 years agoam 433fe016: Cache HOGP HID report map
Chaojing Sun [Tue, 21 Oct 2014 21:42:57 +0000 (21:42 +0000)]
am 433fe016: Cache HOGP HID report map

* commit '433fe016392c7ae003033530f1b3994f2ddad313':
  Cache HOGP HID report map

9 years agoam 25249f76: Merge "Retry pairing if the device did not respond (page timeout)" into...
Prem Kumar [Tue, 21 Oct 2014 21:42:56 +0000 (21:42 +0000)]
am 25249f76: Merge "Retry pairing if the device did not respond (page timeout)" into lmp-dev

* commit '25249f7663d75244b5a2abcac08e301d584fcd8d':
  Retry pairing if the device did not respond (page timeout)

9 years agoam 01d102b3: A2DP: Lowering maximum PCM frame limit to avoid audio breaks
Andre Eisenbach [Tue, 21 Oct 2014 21:42:56 +0000 (21:42 +0000)]
am 01d102b3: A2DP: Lowering maximum PCM frame limit to avoid audio breaks

* commit '01d102b3b187ab0d24050c1e12f96e6ee1ce50be':
  A2DP: Lowering maximum PCM frame limit to avoid audio breaks

9 years agoCache HOGP HID report map
Chaojing Sun [Fri, 17 Oct 2014 02:22:05 +0000 (19:22 -0700)]
Cache HOGP HID report map

HID reports from a bonded device can be missed when Bluetooth is
restarted HOGP report discovery is still active. Caching the
report information and loading it back when the stack resets
will ensure incoming HID reports can be processed immediately.

Bug: 17999991
Change-Id: I4608935f8749537d6b05625b894445a21f844ee0

9 years agoam 72833a19: Remove spammy log information for BLE scan.
Wei Wang [Mon, 20 Oct 2014 18:28:25 +0000 (18:28 +0000)]
am 72833a19: Remove spammy log information for BLE scan.

* commit '72833a19b228fbe5e1931255b325edf0bce0b994':
  Remove spammy log information for BLE scan.

9 years agoMerge "Retry pairing if the device did not respond (page timeout)" into lmp-dev
Prem Kumar [Sat, 18 Oct 2014 19:44:13 +0000 (19:44 +0000)]
Merge "Retry pairing if the device did not respond (page timeout)" into lmp-dev
automerge: 25249f7

* commit '25249f7663d75244b5a2abcac08e301d584fcd8d':
  Retry pairing if the device did not respond (page timeout)

9 years agoA2DP: Lowering maximum PCM frame limit to avoid audio breaks
Andre Eisenbach [Sat, 18 Oct 2014 19:44:10 +0000 (19:44 +0000)]
A2DP: Lowering maximum PCM frame limit to avoid audio breaks
automerge: 01d102b

* commit '01d102b3b187ab0d24050c1e12f96e6ee1ce50be':
  A2DP: Lowering maximum PCM frame limit to avoid audio breaks

9 years agoMerge "Retry pairing if the device did not respond (page timeout)" into lmp-dev
Prem Kumar [Sat, 18 Oct 2014 19:21:05 +0000 (19:21 +0000)]
Merge "Retry pairing if the device did not respond (page timeout)" into lmp-dev

9 years agoRemove spammy log information for BLE scan.
Wei Wang [Fri, 17 Oct 2014 03:26:44 +0000 (20:26 -0700)]
Remove spammy log information for BLE scan.

Bug:17574681
Change-Id: Ia33d0a845d5a4ac5aa58bd32529aeae60db4fd49

9 years agoA2DP: Lowering maximum PCM frame limit to avoid audio breaks
Andre Eisenbach [Fri, 17 Oct 2014 19:52:58 +0000 (12:52 -0700)]
A2DP: Lowering maximum PCM frame limit to avoid audio breaks

Some car kits (notably Renesas car kits used in Nissan/Infiniti models)
will throttle incoming A2DP frames if too many frames are sent at once.
This patch lowers the maximum number of frames sent per tick to not
overwhelm the remote device.

Bug: 17880920
Change-Id: I7bfbba625405c96159d1c94eebd8dc498f100daa