OSDN Git Service
Zhihai Xu [Sat, 28 Jun 2014 02:30:48 +0000 (02:30 +0000)]
am
45b4fafd: a2dp audio HAL: use correct interface version
* commit '
45b4fafdafec1de92f98d82a3e9288eaef6c60c2':
a2dp audio HAL: use correct interface version
Zhihai Xu [Sat, 28 Jun 2014 02:30:48 +0000 (02:30 +0000)]
am
f96da0ee: (-s ours) Allow simultaneous LE Observe and BTM Inquiry/Scan
* commit '
f96da0ee19d8eb9d159b965338bdd15d327cb474':
Allow simultaneous LE Observe and BTM Inquiry/Scan
Zhihai Xu [Sat, 28 Jun 2014 02:01:29 +0000 (02:01 +0000)]
am
3a55ec21: SDP: Allocate proper sized scratch buffer for SDP response
* commit '
3a55ec216948d28224d3ab0d38fb8697daeed3e5':
SDP: Allocate proper sized scratch buffer for SDP response
Zhihai Xu [Sat, 28 Jun 2014 02:01:28 +0000 (02:01 +0000)]
am
73e68297: flounder64: bluetooth: Adjust volume level on BT HS and DUT side
* commit '
73e68297292dd901a170bcf6434ed0a10f1ec450':
flounder64: bluetooth: Adjust volume level on BT HS and DUT side
Zhihai Xu [Sat, 28 Jun 2014 02:01:28 +0000 (02:01 +0000)]
am
ad3fc6e3: (-s ours) audio: fix set_parameters return value.
* commit '
ad3fc6e30f49d78ef4dfd968b0747c62563b7a79':
audio: fix set_parameters return value.
Hemant Gupta [Sat, 28 Jun 2014 01:56:19 +0000 (01:56 +0000)]
am
79eb1a64: HID: Use dynamic memory while sending data
* commit '
79eb1a643a2e627e5fb2c9dae1cb6a56a15ff0cf':
HID: Use dynamic memory while sending data
Hemant Gupta [Sat, 28 Jun 2014 01:56:19 +0000 (01:56 +0000)]
am
fbaeb4a7: HID: Parse paired hid devices from bluez.
* commit '
fbaeb4a7b64a89c08a98b53766e250eb7bad8830':
HID: Parse paired hid devices from bluez.
Hemant Gupta [Sat, 28 Jun 2014 01:56:18 +0000 (01:56 +0000)]
am
87b7cce1: GAP: Try to retrieve CoD from NVRAM if 0
* commit '
87b7cce18f64b1b5f1cdff81d883a5c8720ead77':
GAP: Try to retrieve CoD from NVRAM if 0
Hemant Gupta [Sat, 28 Jun 2014 01:56:18 +0000 (01:56 +0000)]
am
8f322bfe: HID: Reset Disconnect Reason on Connection Establishment
* commit '
8f322bfe42a57902e7c45713a5c6215dfbe2494a':
HID: Reset Disconnect Reason on Connection Establishment
Zhihai Xu [Sat, 28 Jun 2014 01:56:17 +0000 (01:56 +0000)]
am
8d2128d5: HID: Remove device from nvram on auth failure
* commit '
8d2128d5740c8a7282e2336cd9f5901e98d3eb63':
HID: Remove device from nvram on auth failure
Zhihai Xu [Sat, 28 Jun 2014 01:56:17 +0000 (01:56 +0000)]
am
45c71b06: HID: Use dynamic memory while sending report
* commit '
45c71b0647cba0f199a8dfd1321c1b59a916cfe5':
HID: Use dynamic memory while sending report
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
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
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
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
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
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
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.
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
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
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.
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.
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)
Matthew Xie [Sat, 28 Jun 2014 00:57:45 +0000 (17:57 -0700)]
resolved conflicts for merge of
6dae552e to master
Change-Id: Iec7a5f2c72d1b54798a50de077c9f74317413b90
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.
Matthew Xie [Sat, 28 Jun 2014 00:51:40 +0000 (17:51 -0700)]
resolved conflicts for merge of
5c42abe7 to master
Change-Id: I71ad8ed50fc6025282d3eeff50323d9b43fa20d4
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
Matthew Xie [Sat, 28 Jun 2014 00:46:25 +0000 (17:46 -0700)]
resolved conflicts for merge of
6d4a9e9c to master
Change-Id: I8392aa953c01f88a53365d551e0a35397ff981a1
Matthew Xie [Sat, 28 Jun 2014 00:27:42 +0000 (17:27 -0700)]
resolved conflicts for merge of
3aafefbb to master
Change-Id: If6eef0a894b32b8574ecd59409bf1cab62e1e42c
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.
Matthew Xie [Sat, 28 Jun 2014 00:21:41 +0000 (17:21 -0700)]
resolved conflicts for merge of
d0f17781 to master
Change-Id: Ie2b14ea2b314e8af34c0fc73fbce1ee2f7de55fa
Matthew Xie [Sat, 28 Jun 2014 00:09:54 +0000 (17:09 -0700)]
resolved conflicts for merge of
51356020 to master
Change-Id: I80533874e7b34989722dc0eebc2d4dd59d906e4e
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.
Matthew Xie [Fri, 27 Jun 2014 23:59:13 +0000 (16:59 -0700)]
resolved conflicts for merge of
936531f8 to master
Change-Id: If1c78b1db654335df7dd9a495de1a54637a862e1
Andre Eisenbach [Fri, 27 Jun 2014 19:23:08 +0000 (19:23 +0000)]
Merge "LE: Use write_request to set HOGP descriptors"
Andre Eisenbach [Fri, 27 Jun 2014 17:54:19 +0000 (17:54 +0000)]
Merge "LE: Add notification sent and congestion callbacks (2/4)"
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
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
Mike J. Chen [Thu, 26 Jun 2014 17:38:19 +0000 (17:38 +0000)]
Merge "Fix a comment typo"
Mike J. Chen [Thu, 26 Jun 2014 17:38:13 +0000 (17:38 +0000)]
Merge "Use HCI_TRACE instead of BT_TRACE macros"
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"
Andre Eisenbach [Thu, 26 Jun 2014 17:34:24 +0000 (17:34 +0000)]
Merge "Fix bug with get report completion due to uninitialized structure"
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>
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>
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>
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>
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>
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
Matthew Xie [Sun, 22 Jun 2014 21:12:58 +0000 (21:12 +0000)]
Merge "switch 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
Andre Eisenbach [Fri, 20 Jun 2014 22:18:06 +0000 (22:18 +0000)]
Merge "LE: Add is_connected() function (2/3)"
Nick Vaccaro [Fri, 20 Jun 2014 18:05:29 +0000 (11:05 -0700)]
Fix build break for Platina.
Bug:
15143878
Change-Id: I7a0b3aa289b69e7c86fbc8abed151690fb0e8112
Andre Eisenbach [Wed, 18 Jun 2014 19:20:37 +0000 (12:20 -0700)]
LE: Add is_connected() function (2/3)
Change-Id: I73c4ea7f13982bf9c208996f9c749d2dfbe698be
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
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
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.
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.
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
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.
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
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"
Matthew Xie [Thu, 19 Jun 2014 06:09:19 +0000 (06:09 +0000)]
Merge "Bluetooth: Reset Disconnect Reason on Connection Establishment"
Matthew Xie [Wed, 18 Jun 2014 23:16:48 +0000 (23:16 +0000)]
Merge "Bluedroid: 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>
Sharvil Nanavati [Wed, 18 Jun 2014 23:54:59 +0000 (23:54 +0000)]
Merge "resolved 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
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
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"
Satya Calloji [Tue, 10 Jun 2014 23:52:25 +0000 (16:52 -0700)]
Address allocation scheme for multiple advertisers
bug
15329248
Change-Id: Ia5f2ce91f672c2c577dd3712a004f3cd3f573533
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
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
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
Mike Lockwood [Mon, 2 Jun 2014 23:21:49 +0000 (16:21 -0700)]
Move AVRCP controller support to separate HAL interface
Change-Id: Ib7dcd7b90f85cf3b25148e2929d8921c6db37aa2
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
Hemant Gupta [Thu, 20 Mar 2014 15:17:04 +0000 (20:47 +0530)]
SBC Decoder for A2DP SINK
Change-Id: Ic8d1dd81d1788324ec140fe0d1379dfff33deb54
Hemant Gupta [Thu, 24 Oct 2013 10:07:17 +0000 (15:37 +0530)]
Add A2DP Sink Support
Change-Id: I9affefdd2d00597545e49c593ef3bddb110d4c9c
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
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
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
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
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
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
Prerepa Viswanadham [Wed, 11 Jun 2014 04:04:43 +0000 (21:04 -0700)]
Fix build for aosp_manta
Change-Id: Ic1e2363e7fb7d23dcaef8e989cae37606f2af664
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
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
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
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
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
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
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
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
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
Sharvil Nanavati [Sun, 4 May 2014 06:06:49 +0000 (23:06 -0700)]
Start cleaning up log macros.
Change-Id: I228fef0198caeb47618a07c4c46526f611933e07
Sharvil Nanavati [Mon, 5 May 2014 04:53:31 +0000 (21:53 -0700)]
Add a couple more tests for list.
Change-Id: I603d8daa81075b93c26f997be2a7caa64370a9a8
Sharvil Nanavati [Sat, 3 May 2014 06:55:09 +0000 (23:55 -0700)]
Implement a fixed queue.
Change-Id: Ifad7605d0b6e1a57f4767f9de1bed7e99284ded7
Sharvil Nanavati [Sat, 26 Apr 2014 17:40:30 +0000 (10:40 -0700)]
Clean up the public functions in userial.c.
Change-Id: I6513296a8c606c49a4cadf196d89573948026e4a
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
Sharvil Nanavati [Sat, 26 Apr 2014 07:58:15 +0000 (00:58 -0700)]
Minor cleanup of userial code.
Change-Id: Ib8b094196f2de1515f79f17c4b87eb05f4c113dc
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
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