OSDN Git Service

android-x86/system-bt.git
10 years agoam bf51271f: HID: Serialize L2CAP disconnection
Hemant Gupta [Sat, 28 Jun 2014 01:56:16 +0000 (01:56 +0000)]
am bf51271f: HID: Serialize L2CAP disconnection

* commit 'bf51271f145204a0489597ccd9c851daa7ee0ad7':
  HID: Serialize L2CAP disconnection

10 years agoam 742d9fa5: HID: Handle connection failure in disconnecting state
Hemant Gupta [Sat, 28 Jun 2014 01:56:16 +0000 (01:56 +0000)]
am 742d9fa5: HID: Handle connection failure in disconnecting state

* commit '742d9fa575cd1ea12c7d4413f1bec62863b07cab':
  HID: Handle connection failure in disconnecting state

10 years agoam 1747956b: HID: Reset Idle timeout to 0 while hid disconnection
Hemant Gupta [Sat, 28 Jun 2014 01:56:15 +0000 (01:56 +0000)]
am 1747956b: HID: Reset Idle timeout to 0 while hid disconnection

* commit '1747956ba052b1538c29fe7793403dc4f13ba525':
  HID: Reset Idle timeout to 0 while hid disconnection

10 years agoam c1ebd4da: Merge "HID: Fix memory leak in HID Code" into klp-wireless-dev
Zhihai Xu [Sat, 28 Jun 2014 01:56:14 +0000 (01:56 +0000)]
am c1ebd4da: Merge "HID: Fix memory leak in HID Code" into klp-wireless-dev

* commit 'c1ebd4dafecc47ce2964ff2a82cb6e7f3fd1179f':
  HID: Fix memory leak in HID Code

10 years agoam c64a7a58: Merge "HID: Establish Interrupt Channel when Control channel is configur...
Zhihai Xu [Sat, 28 Jun 2014 01:56:13 +0000 (01:56 +0000)]
am c64a7a58: Merge "HID: Establish Interrupt Channel when Control channel is configured" into klp-wireless-dev

* commit 'c64a7a58c2b4c3ad525a01647a3284c22d43e8a8':
  HID: Establish Interrupt Channel when Control channel is configured

10 years agoam 7a25994c: HID: Reduce poll time to 50 ms for polling from uhid driver
Hemant Gupta [Sat, 28 Jun 2014 01:56:12 +0000 (01:56 +0000)]
am 7a25994c: HID: Reduce poll time to 50 ms for polling from uhid driver

* commit '7a25994c7b99c02a8d9e3bd258767c1bdeb84f50':
  HID: Reduce poll time to 50 ms for polling from uhid driver

10 years agoam 4c5f9ef5: HID: Update SSR parameters during copy.
Hemant Gupta [Sat, 28 Jun 2014 01:56:11 +0000 (01:56 +0000)]
am 4c5f9ef5: HID: Update SSR parameters during copy.

* commit '4c5f9ef5fa88891f073b38d5e15f2705ed5c235e':
  HID: Update SSR parameters during copy.

10 years agoam 496765df: (-s ours) Merge "Fix GKI exception of calling free on an already freed...
Zhihai Xu [Sat, 28 Jun 2014 01:56:10 +0000 (01:56 +0000)]
am 496765df: (-s ours) Merge "Fix GKI exception of calling free on an already freed buffer" into klp-wireless-dev

* commit '496765df63a103d46aff536f9e1c094bf58d52b7':
  Fix GKI exception of calling free on an already freed buffer

10 years agoam 17888ed7: Merge "bluetooth: hid: store ssr_max_latency and ssr_min_tout in bonding...
Zhihai Xu [Sat, 28 Jun 2014 01:50:55 +0000 (01:50 +0000)]
am 17888ed7: Merge "bluetooth: hid: store ssr_max_latency and ssr_min_tout in bonding db" into klp-wireless-dev

* commit '17888ed7fa01bf266e3847b308f4091fd93f719c':
  bluetooth: hid: store ssr_max_latency and ssr_min_tout in bonding db

10 years agoam f4b8f8aa: (-s ours) Add flow control for PAN.
Sharvil Nanavati [Sat, 28 Jun 2014 01:50:55 +0000 (01:50 +0000)]
am f4b8f8aa: (-s ours) Add flow control for PAN.

* commit 'f4b8f8aa313d3b7d88b683bfe0e5f9eb0a29b3b3':
  Add flow control for PAN.

10 years agoam 7f5fe664: Fixed a build warning.
Wei Wang [Sat, 28 Jun 2014 01:45:47 +0000 (01:45 +0000)]
am 7f5fe664: Fixed a build warning.

* commit '7f5fe66421eadb136e3ea9b6af8f6e4ac8725f64':
  Fixed a build warning.

10 years agoam cd50ccd7: (-s ours) Merge "LE: Add controller based advertising filter API (2...
Wei Wang [Sat, 28 Jun 2014 01:45:46 +0000 (01:45 +0000)]
am cd50ccd7: (-s ours) Merge "LE: Add controller based advertising filter API (2/2)" into klp-wireless-dev

* commit 'cd50ccd7abeddd368badc6ace8fe45020fecaf3b':
  LE: Add controller based advertising filter API (2/2)

10 years agoresolved conflicts for merge of 6dae552e to master
Matthew Xie [Sat, 28 Jun 2014 00:57:45 +0000 (17:57 -0700)]
resolved conflicts for merge of 6dae552e to master

Change-Id: Iec7a5f2c72d1b54798a50de077c9f74317413b90

10 years agoam 2d5d56ea: Rewrite PAN_Write in terms of PAN_WriteBuf.
Sharvil Nanavati [Sat, 28 Jun 2014 00:53:29 +0000 (00:53 +0000)]
am 2d5d56ea: Rewrite PAN_Write in terms of PAN_WriteBuf.

* commit '2d5d56ead7d9dd811cf9c5ef26b16c4a0b149ade':
  Rewrite PAN_Write in terms of PAN_WriteBuf.

10 years agoresolved conflicts for merge of 5c42abe7 to master
Matthew Xie [Sat, 28 Jun 2014 00:51:40 +0000 (17:51 -0700)]
resolved conflicts for merge of 5c42abe7 to master

Change-Id: I71ad8ed50fc6025282d3eeff50323d9b43fa20d4

10 years agoam fd2e0f21: Merge "Bluetooth: GAP: Send bond none in case of temp pairing" into...
Matthew Xie [Sat, 28 Jun 2014 00:47:19 +0000 (00:47 +0000)]
am fd2e0f21: Merge "Bluetooth: GAP: Send bond none in case of temp pairing" into klp-wireless-dev

* commit 'fd2e0f21623a8e38460c140281500ea1f658f422':
  Bluetooth: GAP: Send bond none in case of temp pairing

10 years agoresolved conflicts for merge of 6d4a9e9c to master
Matthew Xie [Sat, 28 Jun 2014 00:46:25 +0000 (17:46 -0700)]
resolved conflicts for merge of 6d4a9e9c to master

Change-Id: I8392aa953c01f88a53365d551e0a35397ff981a1

10 years agoresolved conflicts for merge of 3aafefbb to master
Matthew Xie [Sat, 28 Jun 2014 00:27:42 +0000 (17:27 -0700)]
resolved conflicts for merge of 3aafefbb to master

Change-Id: If6eef0a894b32b8574ecd59409bf1cab62e1e42c

10 years agoam add314d5: Merge "open GATT client didn\'t reserve the BLE link if open after conne...
Zhihai Xu [Sat, 28 Jun 2014 00:24:05 +0000 (00:24 +0000)]
am add314d5: Merge "open GATT client didn\'t reserve the BLE link if open after connected." into klp-wireless-dev

* commit 'add314d5fcffc2ac2c7fb8b64a67d4da6d5a0cdd':
  open GATT client didn't reserve the BLE link if open after connected.

10 years agoresolved conflicts for merge of d0f17781 to master
Matthew Xie [Sat, 28 Jun 2014 00:21:41 +0000 (17:21 -0700)]
resolved conflicts for merge of d0f17781 to master

Change-Id: Ie2b14ea2b314e8af34c0fc73fbce1ee2f7de55fa

10 years agoresolved conflicts for merge of 51356020 to master
Matthew Xie [Sat, 28 Jun 2014 00:09:54 +0000 (17:09 -0700)]
resolved conflicts for merge of 51356020 to master

Change-Id: I80533874e7b34989722dc0eebc2d4dd59d906e4e

10 years agoam 7fc4503f: Merge "print MTU size after get MTU request from iphone." into klp-wirel...
Zhihai Xu [Sat, 28 Jun 2014 00:01:46 +0000 (00:01 +0000)]
am 7fc4503f: Merge "print MTU size after get MTU request from iphone." into klp-wireless-dev

* commit '7fc4503f4957e0ab6f5b59640594a2d844336caa':
  print MTU size after get MTU request from iphone.

10 years agoresolved conflicts for merge of 936531f8 to master
Matthew Xie [Fri, 27 Jun 2014 23:59:13 +0000 (16:59 -0700)]
resolved conflicts for merge of 936531f8 to master

Change-Id: If1c78b1db654335df7dd9a495de1a54637a862e1

10 years agoMerge "LE: Use write_request to set HOGP descriptors"
Andre Eisenbach [Fri, 27 Jun 2014 19:23:08 +0000 (19:23 +0000)]
Merge "LE: Use write_request to set HOGP descriptors"

10 years agoMerge "LE: Add notification sent and congestion callbacks (2/4)"
Andre Eisenbach [Fri, 27 Jun 2014 17:54:19 +0000 (17:54 +0000)]
Merge "LE: Add notification sent and congestion callbacks (2/4)"

10 years agoMerge some missing pieces of AVRCP controller support from klp-wireless-dev
Mike Lockwood [Thu, 26 Jun 2014 18:08:24 +0000 (11:08 -0700)]
Merge some missing pieces of AVRCP controller support from klp-wireless-dev

Change-Id: I1dc99496a6ed0e7d13cab9d7c95972d32ad88769

10 years agoLE: Use write_request to set HOGP descriptors
Nitin Arora [Fri, 15 Nov 2013 20:43:02 +0000 (12:43 -0800)]
LE: Use write_request to set HOGP descriptors

Use the write_request operation (instead of write_command) to set HOGP
descriptors in accordance with the Bluetooth spec.

Change-Id: I4c18f2cb727a7aabddaa5c965b29eca78843fc7a

10 years agoMerge "Fix a comment typo"
Mike J. Chen [Thu, 26 Jun 2014 17:38:19 +0000 (17:38 +0000)]
Merge "Fix a comment typo"

10 years agoMerge "Use HCI_TRACE instead of BT_TRACE macros"
Mike J. Chen [Thu, 26 Jun 2014 17:38:13 +0000 (17:38 +0000)]
Merge "Use HCI_TRACE instead of BT_TRACE macros"

10 years agoMerge "Change btif_gatt_client to use BTIF_TRACE_XXX macros instead of raw ALOGX"
Mike J. Chen [Thu, 26 Jun 2014 17:38:05 +0000 (17:38 +0000)]
Merge "Change btif_gatt_client to use BTIF_TRACE_XXX macros instead of raw ALOGX"

10 years agoMerge "Fix bug with get report completion due to uninitialized structure"
Andre Eisenbach [Thu, 26 Jun 2014 17:34:24 +0000 (17:34 +0000)]
Merge "Fix bug with get report completion due to uninitialized structure"

10 years ago[bluedroid] Fix slave latency and conn timeout defaults in BLE
Steve Paik [Thu, 19 Jun 2014 22:50:46 +0000 (15:50 -0700)]
[bluedroid] Fix slave latency and conn timeout defaults in BLE

The default connection parameters were not being applied properly in BLE.
Also fixed a typo in btm_ble.c.

Change-Id: I6cfb0f2a400740578910dcf4c7192ea16406aa1b
Signed-off-by: Steve Paik <spaik@google.com>
10 years agoFix a comment typo
Mike J. Chen [Wed, 25 Jun 2014 20:09:01 +0000 (13:09 -0700)]
Fix a comment typo

Change-Id: I5df71f04b4d4752c782937344ec110813aff8915
Signed-off-by: Mike J. Chen <mjchen@google.com>
10 years agoUse HCI_TRACE instead of BT_TRACE macros
Mike J. Chen [Thu, 26 Jun 2014 01:12:22 +0000 (18:12 -0700)]
Use HCI_TRACE instead of BT_TRACE macros

This allows enabling/disabling to be controlled by the HCI_INITIAL_TRACE_LEVEL
in bt_trace.h instead of unconditionally tracing.

Change-Id: Iacbc8b3e8daefb665230d0c10ba4111b9b4576a7
Signed-off-by: Mike J. Chen <mjchen@google.com>
10 years agoChange btif_gatt_client to use BTIF_TRACE_XXX macros instead of raw ALOGX
Mike J. Chen [Thu, 26 Jun 2014 01:10:32 +0000 (18:10 -0700)]
Change btif_gatt_client to use BTIF_TRACE_XXX macros instead of raw ALOGX

This allows the trace flags in bt_trace.h to control whether these
logs are enabled or not, to be consistent with rest of bluedroid.

Change-Id: Ia4abeac42da181fd748a668d3ec5a9624ae8c19d
Signed-off-by: Mike J. Chen <mjchen@google.com>
10 years agoFix bug with get report completion due to uninitialized structure
Mike J. Chen [Thu, 26 Jun 2014 01:07:03 +0000 (18:07 -0700)]
Fix bug with get report completion due to uninitialized structure

When LE has received a get report response, it needs to create
a packet to send to the btif_hh_upstreams_evt() handler that
does callback invocation.  The packet it allocated was
not fully initialized.  Specifically, the offset field was not
set, which is used by btif_hh_upstreams_evt() to figure out
where in the data buffer the start of the returned data is.
The uninitialized offset causes garbage to be returned for
anyone using GetReport/SetReport APIs on an LE device.

Change-Id: I4644cd8d6d38308c35b50f99139306a77200d7cd
Signed-off-by: Mike J. Chen <mjchen@google.com>
10 years agoLE: Add notification sent and congestion callbacks (2/4)
Andre Eisenbach [Fri, 28 Mar 2014 21:54:22 +0000 (14:54 -0700)]
LE: Add notification sent and congestion callbacks (2/4)

This change introduces two new callbacks for applications to better
handle LE notification flow control and transport congestion. The
notification callback is invoked when the remote platform confirms an
indication or when a local notification has been passed to the
controller. No new notifications should be sent until a callback is
received.

Congestion callbacks are triggered when a GATT operation cannot be sent
to the local Bluetooth controller. Repeatedly calling
writeCharacteristic() for example will eventually trigger a congestion
callback. Applications cannot send additional data until a further
callback is received, indicating that the congestion has cleared up.

Also fixes a memory leak issue that can trigger GKI exception for
certain GATT operations.

Change-Id: Ib470c15ca1f577573a632e9afe4cb9e86680fd8c

10 years agoMerge "switch a2dp sync and source to the correct uuids"
Matthew Xie [Sun, 22 Jun 2014 21:12:58 +0000 (21:12 +0000)]
Merge "switch a2dp sync and source to the correct uuids"

10 years agoswitch a2dp sync and source to the correct uuids
Matthew Xie [Sun, 22 Jun 2014 20:32:05 +0000 (13:32 -0700)]
switch a2dp sync and source to the correct uuids

bug 15687722

Change-Id: I09e5fdc7bf7c1bb0ff3c87dc43b228e3761cfa36

10 years agoMerge "LE: Add is_connected() function (2/3)"
Andre Eisenbach [Fri, 20 Jun 2014 22:18:06 +0000 (22:18 +0000)]
Merge "LE: Add is_connected() function (2/3)"

10 years agoFix build break for Platina.
Nick Vaccaro [Fri, 20 Jun 2014 18:05:29 +0000 (11:05 -0700)]
Fix build break for Platina.

Bug: 15143878
Change-Id: I7a0b3aa289b69e7c86fbc8abed151690fb0e8112

10 years agoLE: Add is_connected() function (2/3)
Andre Eisenbach [Wed, 18 Jun 2014 19:20:37 +0000 (12:20 -0700)]
LE: Add is_connected() function (2/3)

Change-Id: I73c4ea7f13982bf9c208996f9c749d2dfbe698be

10 years agoam 7f781439: am b72dcbd4: Merge "Bluetooth: Reset Disconnect Reason on Connection...
Matthew Xie [Thu, 19 Jun 2014 09:55:03 +0000 (09:55 +0000)]
am 7f781439: am b72dcbd4: Merge "Bluetooth: Reset Disconnect Reason on Connection Establishment"

* commit '7f78143933fdd5ac94f3cae65ff02b62eafcc21a':
  Bluetooth: Reset Disconnect Reason on Connection Establishment

10 years agoam b72dcbd4: Merge "Bluetooth: Reset Disconnect Reason on Connection Establishment"
Matthew Xie [Thu, 19 Jun 2014 09:22:18 +0000 (09:22 +0000)]
am b72dcbd4: Merge "Bluetooth: Reset Disconnect Reason on Connection Establishment"

* commit 'b72dcbd4acbd064b300be3ac507c45baee2fd690':
  Bluetooth: Reset Disconnect Reason on Connection Establishment

10 years agoam 43d8f252: (-s ours) Merge "support peripheral mode feature to connect iphone to...
Zhihai Xu [Thu, 19 Jun 2014 04:07:34 +0000 (04:07 +0000)]
am 43d8f252: (-s ours) Merge "support peripheral mode feature to connect iphone to android device." into klp-wireless-dev

* commit '43d8f252240611ad2b67f9587f91058edd9955a0':
  support peripheral mode feature to connect iphone to android device.

10 years agoam c9c88876: Merge "increase the bluetooth task priority when start a2dp." into klp...
Zhihai Xu [Wed, 18 Jun 2014 23:56:13 +0000 (23:56 +0000)]
am c9c88876: Merge "increase the bluetooth task priority when start a2dp." into klp-wireless-dev

* commit 'c9c888765554fa6c5a9a1135b742cab6267d2e54':
  increase the bluetooth task priority when start a2dp.

10 years agoam 283aa16d: Merge "Bluedroid: Avoid multicast address for tun-tap interface"
Matthew Xie [Wed, 18 Jun 2014 23:25:34 +0000 (23:25 +0000)]
am 283aa16d: Merge "Bluedroid: Avoid multicast address for tun-tap interface"

* commit '283aa16d5f16bc10b5491661b5729c5f25635731':
  Bluedroid: Avoid multicast address for tun-tap interface

10 years agoam d2ccbbb7: Remove executable bit on source files.
Sharvil Nanavati [Wed, 18 Jun 2014 22:56:50 +0000 (22:56 +0000)]
am d2ccbbb7: Remove executable bit on source files.

* commit 'd2ccbbb73c7851d2fa28dc212d2fffc0ad4e5d50':
  Remove executable bit on source files.

10 years agoam e96ce0e9: (-s ours) DO NOT MERGE: LE: Add status callback function for LE broadcas...
Andre Eisenbach [Wed, 18 Jun 2014 22:56:49 +0000 (22:56 +0000)]
am e96ce0e9: (-s ours) DO NOT MERGE: LE: Add status callback function for LE broadcasts Cherry pick from master

* commit 'e96ce0e945e210b22bbf6a3869809852c7e1d35e':
  DO NOT MERGE: LE: Add status callback function for LE broadcasts Cherry pick from master

10 years agoam 3765b696: (-s ours) DO NOT MERGE Revert "external/bluetooth/bluedroid: convert...
Matthew Xie [Wed, 18 Jun 2014 22:56:49 +0000 (22:56 +0000)]
am 3765b696: (-s ours) DO NOT MERGE Revert "external/bluetooth/bluedroid: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH"

* commit '3765b696da37e6a527b94b03291b3c20eb30b460':
  DO NOT MERGE Revert "external/bluetooth/bluedroid: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH"

10 years agoMerge "Bluetooth: Reset Disconnect Reason on Connection Establishment"
Matthew Xie [Thu, 19 Jun 2014 06:09:19 +0000 (06:09 +0000)]
Merge "Bluetooth: Reset Disconnect Reason on Connection Establishment"

10 years agoMerge "Bluedroid: Avoid multicast address for tun-tap interface"
Matthew Xie [Wed, 18 Jun 2014 23:16:48 +0000 (23:16 +0000)]
Merge "Bluedroid: Avoid multicast address for tun-tap interface"

10 years agoBluedroid: Avoid multicast address for tun-tap interface
Loic Poulain [Tue, 8 Apr 2014 06:46:01 +0000 (08:46 +0200)]
Bluedroid: Avoid multicast address for tun-tap interface

Linux Kernel disallows to set an ethernet multicast
address as ethernet device address.

The IEEE has specified that the most significant bit
of the most significant byte of a mac address is used
for multicast. If its a 1, that means multicast, 0
means unicast.

Bluedroid uses the BD address to set the tun-tap intf
mac address. This BD address can be randomly auto
generated, possibly with the multicast bit.

To avoid any address issue, this patch masks this bit
before setting the ethernet mac address.

Change-Id: Ifff4ec7237ae6cbef3b8d4c23096c5df65e1431c
Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Reviewed-on: https://android.intel.com/184768
Reviewed-by: Zhang, Jianxun <jianxun.zhang@intel.com>
Tested-by: Zhang, Jianxun <jianxun.zhang@intel.com>
10 years agoMerge "resolved conflicts for merge of 795bcebc to master"
Sharvil Nanavati [Wed, 18 Jun 2014 23:54:59 +0000 (23:54 +0000)]
Merge "resolved conflicts for merge of 795bcebc to master"

10 years agoresolved conflicts for merge of 795bcebc to master
Sharvil Nanavati [Wed, 18 Jun 2014 23:54:14 +0000 (16:54 -0700)]
resolved conflicts for merge of 795bcebc to master

Change-Id: I150d30e1fa69a00b6b264a8478b50de2fd7597e9

10 years agoam 27232899: am 283aa16d: Merge "Bluedroid: Avoid multicast address for tun-tap inter...
Matthew Xie [Wed, 18 Jun 2014 23:28:59 +0000 (23:28 +0000)]
am 27232899: am 283aa16d: Merge "Bluedroid: Avoid multicast address for tun-tap interface"

* commit '2723289960c3eca333aa25369bde59cf8d36dcf4':
  Bluedroid: Avoid multicast address for tun-tap interface

10 years agoMerge "LE: Add ability to pass address type to GATT test command"
Andre Eisenbach [Wed, 18 Jun 2014 21:51:41 +0000 (21:51 +0000)]
Merge "LE: Add ability to pass address type to GATT test command"

10 years agoAddress allocation scheme for multiple advertisers
Satya Calloji [Tue, 10 Jun 2014 23:52:25 +0000 (16:52 -0700)]
Address allocation scheme for multiple advertisers

bug 15329248

Change-Id: Ia5f2ce91f672c2c577dd3712a004f3cd3f573533

10 years agoam 60f5f78f: (-s ours) am 2f79fe4d: DO NOT MERGE: Allow override of pm timer duration
Dmitry Grinberg [Tue, 17 Jun 2014 20:27:12 +0000 (20:27 +0000)]
am 60f5f78f: (-s ours) am 2f79fe4d: DO NOT MERGE: Allow override of pm timer duration

* commit '60f5f78f77f6574ceaf7f958e538de4d4a44e27d':
  DO NOT MERGE: Allow override of pm timer duration

10 years agoam 2f79fe4d: DO NOT MERGE: Allow override of pm timer duration
Dmitry Grinberg [Tue, 17 Jun 2014 20:22:05 +0000 (20:22 +0000)]
am 2f79fe4d: DO NOT MERGE: Allow override of pm timer duration

* commit '2f79fe4df8a68195c059c05b17c41b929848575e':
  DO NOT MERGE: Allow override of pm timer duration

10 years agoDO NOT MERGE: Allow override of pm timer duration
Dmitry Grinberg [Sat, 14 Jun 2014 00:20:08 +0000 (17:20 -0700)]
DO NOT MERGE: Allow override of pm timer duration

Bug: 15329069
Change-Id: Ic2592a018860cc2c3ec7c95fd18f34a87a90d838

10 years agoMove AVRCP controller support to separate HAL interface
Mike Lockwood [Mon, 2 Jun 2014 23:21:49 +0000 (16:21 -0700)]
Move AVRCP controller support to separate HAL interface

Change-Id: Ib7dcd7b90f85cf3b25148e2929d8921c6db37aa2

10 years agoMore work on A2DP Sink:
Mike Lockwood [Fri, 23 May 2014 19:42:24 +0000 (12:42 -0700)]
More work on A2DP Sink:

Output audio data through A2DP audio HAL rather than playing directly
to native AudioTrack API.

Add separate HAL interface for A2DP sink

Change-Id: I6c6cb6088c350e104b4a7354f328b29c7178e295

10 years agoSBC Decoder for A2DP SINK
Hemant Gupta [Thu, 20 Mar 2014 15:17:04 +0000 (20:47 +0530)]
SBC Decoder for A2DP SINK

Change-Id: Ic8d1dd81d1788324ec140fe0d1379dfff33deb54

10 years agoAdd A2DP Sink Support
Hemant Gupta [Thu, 24 Oct 2013 10:07:17 +0000 (15:37 +0530)]
Add A2DP Sink Support

Change-Id: I9affefdd2d00597545e49c593ef3bddb110d4c9c

10 years agoBluetooth: Add support for HFP Client role.
Hemant Gupta [Mon, 19 Aug 2013 13:03:01 +0000 (18:33 +0530)]
Bluetooth: Add support for HFP Client role.

Implementation changes in BTA and BTIF layer to support
HFP Client role.

Change-Id: I9f939c18e8f989a50f298d0b313c5a0959c030a7

10 years agoEliminate dead code: remove GKI_sched* from the codebase.
Sharvil Nanavati [Fri, 6 Jun 2014 07:18:40 +0000 (00:18 -0700)]
Eliminate dead code: remove GKI_sched* from the codebase.

Change-Id: I607bd3bf88ef8847c8a7e984a54eabedd4fb7516

Conflicts:
bta/hf_client/bta_hf_client_api.c
bta/hf_client/bta_hf_client_main.c

10 years agoParse auto_pair_devlist.conf file with the generic config parser.
Sharvil Nanavati [Wed, 4 Jun 2014 01:12:32 +0000 (18:12 -0700)]
Parse auto_pair_devlist.conf file with the generic config parser.

Change-Id: Idfd1aca2417d74725a8f9ac67b1ca946a33bf14d

10 years agoFix build: BTM_BleLocalPrivacyEnabled is called from outside BLE_PRIVACY_SPT guard.
Sharvil Nanavati [Sat, 7 Jun 2014 07:56:14 +0000 (00:56 -0700)]
Fix build: BTM_BleLocalPrivacyEnabled is called from outside BLE_PRIVACY_SPT guard.

Change-Id: I1ca7f824e035b496c9c038b9afdb4c4f2af4234b

10 years agoDisable BLE address randomization since it causes excessive timer wakeups.
Sharvil Nanavati [Mon, 2 Jun 2014 05:38:46 +0000 (22:38 -0700)]
Disable BLE address randomization since it causes excessive timer wakeups.

Change-Id: Ib4c2265d30b8bbaa7b5302537e446e18a97e2cad

Conflicts:
stack/btm/btm_ble_multi_adv.c

10 years agoImplement GKI timers based on wake alarms and wake locks.
Sharvil Nanavati [Thu, 29 May 2014 00:09:46 +0000 (17:09 -0700)]
Implement GKI timers based on wake alarms and wake locks.

Before this change, bluedroid was unable to acquire wake locks
because the Bluetooth process didn't have permissions to write to
/sys/power/wake_*. We are now making wake locks accessible to
bluedroid through a HAL callout back into Java code.

The previous design did not use wake alarms. Bluedroid would attempt
to hold a wake lock until all pending timers expired, which is awful
if a timer is scheduled seconds or minutes from now. There is a
15min timer in bluedroid now so holding a wake lock for the entire
duration of pending alarms is unacceptable (power cost). The new
implementation uses a hybrid approach: if the next deadline is < 3s
away, we take a wake lock. If it is further than 3s away, we set a
wake alarm and release the wake lock.

As a result of this change, we have also eliminated a thread whose
sole purpose was to wake up every 10ms and update timers.

Change-Id: I46cd4edfcad2f5dce23c4003a14a617e7bf00541

10 years agoFix build for aosp_manta
Prerepa Viswanadham [Wed, 11 Jun 2014 04:04:43 +0000 (21:04 -0700)]
Fix build for aosp_manta

Change-Id: Ic1e2363e7fb7d23dcaef8e989cae37606f2af664

10 years agoAllow btsnoop logs to be read over a local socket.
Sharvil Nanavati [Sat, 22 Mar 2014 21:27:07 +0000 (14:27 -0700)]
Allow btsnoop logs to be read over a local socket.

This change allows real-time HCI debugging over adb from a
Linux box using hcidump.

Example:
--------
adb forward tcp:8872 tcp:8872
nc localhost 8872 | hcidump -X -r /dev/stdin

Change-Id: I49c32a941f71f612807061284a755a38b76588ff

10 years agoBluetooth: Assign max adv instance value from vendor capabilities
Nitin Arora [Fri, 6 Jun 2014 00:51:48 +0000 (17:51 -0700)]
Bluetooth: Assign max adv instance value from vendor capabilities

This change assigns the value of the max instances supported
for multiple advertisement, to the multi adv block

Change-Id: Ide181f8cad7a290a0dac8fdd01ae3ed2187868ef

10 years agoRename UNUSED to UNUSED_ATTR in OSI due to symbol collision.
Sharvil Nanavati [Tue, 3 Jun 2014 07:16:07 +0000 (00:16 -0700)]
Rename UNUSED to UNUSED_ATTR in OSI due to symbol collision.

Change-Id: Ib26dbae713b3096adf2496f0ff0fcb607693b163

10 years agoSupport for reading LE specific controller features
Ganesh Ganapathi Batta [Fri, 30 May 2014 23:28:00 +0000 (16:28 -0700)]
Support for reading LE specific controller features

Support for reading LE specific controller features via get adapter properties
API

Change-Id: Ia0b813be45fb826ce27d1d7a31ca41650d7286dd

10 years agoLogging cleanup: HCI and BTM trace macros.
Sharvil Nanavati [Sun, 4 May 2014 07:46:57 +0000 (00:46 -0700)]
Logging cleanup: HCI and BTM trace macros.

Change-Id: Icdea5aede9fde2c11d0cde745a9bedc26d69640c

Conflicts:
stack/btm/btm_acl.c
stack/btm/btm_ble.c
stack/btm/btm_ble_bgconn.c
stack/btm/btm_ble_gap.c
stack/btm/btm_inq.c
stack/btm/btm_pm.c
stack/btm/btm_sec.c

Conflicts:
stack/btm/btm_ble_gap.c
stack/btm/btm_sec.c

10 years agoWhitelist IPv6 packets so they can be sent over PAN.
Sharvil Nanavati [Sat, 31 May 2014 04:04:03 +0000 (21:04 -0700)]
Whitelist IPv6 packets so they can be sent over PAN.

Change-Id: I68e96bc34af1dfded2761c9bc780c089076d15e0

10 years agoUse an event file descriptor instead of a pipe to control userial.
Sharvil Nanavati [Sun, 27 Apr 2014 21:34:50 +0000 (14:34 -0700)]
Use an event file descriptor instead of a pipe to control userial.

Change-Id: I480752ab77a8d25eb2a2c770f7bb44f7e400b15f

10 years agoUse the generic config parser to parse bt_stack.conf.
Sharvil Nanavati [Mon, 5 May 2014 05:48:09 +0000 (22:48 -0700)]
Use the generic config parser to parse bt_stack.conf.

Change-Id: I4dc9307f5f5e0702c7a6283a59c94c56cead2eb6

10 years agoAdd a generic config parser for the INI file format.
Sharvil Nanavati [Mon, 5 May 2014 04:33:52 +0000 (21:33 -0700)]
Add a generic config parser for the INI file format.

There are currently multiple INI parsers in bluedroid and they're
special-purpose for the task at hand even though they parse the
same format. This implementation is general-purpose, loosely coupled
with the rest of bluedroid, and has unit tests to verify behaviour.

Change-Id: I61caf416cc16d76b871cbf04f333c26894ab3fef

10 years agoStart cleaning up log macros.
Sharvil Nanavati [Sun, 4 May 2014 06:06:49 +0000 (23:06 -0700)]
Start cleaning up log macros.

Change-Id: I228fef0198caeb47618a07c4c46526f611933e07

10 years agoAdd a couple more tests for list.
Sharvil Nanavati [Mon, 5 May 2014 04:53:31 +0000 (21:53 -0700)]
Add a couple more tests for list.

Change-Id: I603d8daa81075b93c26f997be2a7caa64370a9a8

10 years agoImplement a fixed queue.
Sharvil Nanavati [Sat, 3 May 2014 06:55:09 +0000 (23:55 -0700)]
Implement a fixed queue.

Change-Id: Ifad7605d0b6e1a57f4767f9de1bed7e99284ded7

10 years agoClean up the public functions in userial.c.
Sharvil Nanavati [Sat, 26 Apr 2014 17:40:30 +0000 (10:40 -0700)]
Clean up the public functions in userial.c.

Change-Id: I6513296a8c606c49a4cadf196d89573948026e4a

10 years agoEliminate dead code (helped by compiler warnings).
Sharvil Nanavati [Sat, 3 May 2014 22:33:15 +0000 (15:33 -0700)]
Eliminate dead code (helped by compiler warnings).

I've removed all functions that the compiler decided were unused.

Change-Id: I0cbddf874ebd1586abe29b80e8d6390680679542

10 years agoMinor cleanup of userial code.
Sharvil Nanavati [Sat, 26 Apr 2014 07:58:15 +0000 (00:58 -0700)]
Minor cleanup of userial code.

Change-Id: Ib8b094196f2de1515f79f17c4b87eb05f4c113dc

10 years agoUpdate RFCOMM socket code to use list data structure.
Sharvil Nanavati [Sat, 26 Apr 2014 05:38:55 +0000 (22:38 -0700)]
Update RFCOMM socket code to use list data structure.

Change-Id: I70402d8bfaa36b36d3d4b8f3cec98371691e86c9

10 years agoUpdate btif_profile_queue to use the list data structure.
Sharvil Nanavati [Sat, 26 Apr 2014 06:16:01 +0000 (23:16 -0700)]
Update btif_profile_queue to use the list data structure.

The profile queue maintains a list of pending connect operations
for each profile. If a connect is followed by a disconnect before
the queued connect is dispatched, the disconnect will have no
effect and the connect will proceed.

This code clearly needs to be re-thought; it may be a good idea to
abandon the connect queue entirely in the long-run.

Change-Id: Ic0e85654abcf7a47f65953edb301eb9524394950

10 years agoAdd a singly linked list implementation for OSI.
Sharvil Nanavati [Thu, 24 Apr 2014 23:22:45 +0000 (16:22 -0700)]
Add a singly linked list implementation for OSI.

Change-Id: Ifffd6f9eabee482a81b326c9cf8d06163aede0f4

10 years agoBluetooth: On Suspend ignore media task timer event
Hemant Gupta [Thu, 5 Sep 2013 14:12:50 +0000 (19:42 +0530)]
Bluetooth: On Suspend ignore media task timer event

On Recieving Suspend confirmation from remote device,
Media task timer reload and tx_timer is made false,
hence media task will not be stopped at that instant.
Media task timer expires causing buffer to be allocated.
Changes done to ensure buffer is allocated only if tx_timer
is true.

Change-Id: I971a82cccc64ba033475ad532b096862968de942

10 years agoLE: Add ability to pass address type to GATT test command
Andre Eisenbach [Wed, 11 Jun 2014 21:10:58 +0000 (14:10 -0700)]
LE: Add ability to pass address type to GATT test command

Currently the GATT test command to connect a remote device assumes a
public Bluetooth device address. This patch adds the ability to pass in
the address type via the test command interface.

Change-Id: Ia50792738796b97d1d02d6f33cb0586c82dcd477

10 years agoam ded6d338: am bbad5649: Merge "Bluedroid: Fix HCI buffer size issue"
Matthew Xie [Wed, 11 Jun 2014 20:49:54 +0000 (20:49 +0000)]
am ded6d338: am bbad5649: Merge "Bluedroid: Fix HCI buffer size issue"

* commit 'ded6d338ea908de48e1b84384993a8ec41867910':
  Bluedroid: Fix HCI buffer size issue

10 years agoam 8b8050ad: am 197a801b: Merge "Bluedroid: Fix UUID unsigned/signed comparison"
Matthew Xie [Wed, 11 Jun 2014 20:49:42 +0000 (20:49 +0000)]
am 8b8050ad: am 197a801b: Merge "Bluedroid: Fix UUID unsigned/signed comparison"

* commit '8b8050ad5f2f4fd64766c99378fa0866d89230c6':
  Bluedroid: Fix UUID unsigned/signed comparison

10 years agoam bbad5649: Merge "Bluedroid: Fix HCI buffer size issue"
Matthew Xie [Wed, 11 Jun 2014 01:06:17 +0000 (01:06 +0000)]
am bbad5649: Merge "Bluedroid: Fix HCI buffer size issue"

* commit 'bbad564995006590114f370a036d545da7182425':
  Bluedroid: Fix HCI buffer size issue

10 years agoam 197a801b: Merge "Bluedroid: Fix UUID unsigned/signed comparison"
Matthew Xie [Tue, 10 Jun 2014 23:43:09 +0000 (23:43 +0000)]
am 197a801b: Merge "Bluedroid: Fix UUID unsigned/signed comparison"

* commit '197a801bb5f12675d025bf1b7d2cac40924abe77':
  Bluedroid: Fix UUID unsigned/signed comparison

10 years agoMerge "Bluedroid: Fix UUID unsigned/signed comparison"
Matthew Xie [Tue, 10 Jun 2014 23:34:17 +0000 (23:34 +0000)]
Merge "Bluedroid: Fix UUID unsigned/signed comparison"

10 years agoMerge "Bluedroid: Fix HCI buffer size issue"
Matthew Xie [Wed, 11 Jun 2014 01:02:21 +0000 (01:02 +0000)]
Merge "Bluedroid: Fix HCI buffer size issue"

10 years agoBluedroid: Fix HCI buffer size issue
Loic Poulain [Fri, 4 Apr 2014 08:05:05 +0000 (10:05 +0200)]
Bluedroid: Fix HCI buffer size issue

The maximum HCI frame coming from the kernel is
the maximum ACL HCI data packet (1024) + ACL HCI
header (4) + H4 header (1) = 1029.
Previous maximum read value was 1016 which is
incorrect and leads to data sync problem for
frames > 1016.

Change-Id: I37f74ad4c612d802e6758b3fe0eb156bcf265b4f
Signed-off-by: Loic Poulain <loic.poulain@intel.com>
10 years agoMerge "Changed the status check for BleObserve"
Wei Wang [Fri, 6 Jun 2014 23:07:41 +0000 (23:07 +0000)]
Merge "Changed the status check for BleObserve"