OSDN Git Service
Myles Watson [Thu, 23 Mar 2017 13:31:31 +0000 (13:31 +0000)]
Merge "main: Update error handling" am:
5d637bc524 am:
8bfe9d8cc3
am:
20f32ab121
Change-Id: Idc0233581f04c87a7387a28a71706b0356f84f35
Myles Watson [Thu, 23 Mar 2017 13:29:01 +0000 (13:29 +0000)]
Merge "main: Update error handling" am:
5d637bc524
am:
8bfe9d8cc3
Change-Id: I9f68865c85de59807fee31ef891bda01fbfaf7f3
Myles Watson [Thu, 23 Mar 2017 13:26:01 +0000 (13:26 +0000)]
Merge "main: Update error handling"
am:
5d637bc524
Change-Id: I77b8d202d395d26fbc8a1ae664d7b1b090ff1ba8
Treehugger Robot [Thu, 23 Mar 2017 13:21:52 +0000 (13:21 +0000)]
Merge "main: Update error handling"
Ajay Panicker [Sat, 18 Mar 2017 21:58:06 +0000 (14:58 -0700)]
AVRCP version interop pereference (1/3)
Add a mechanism to allow the user to select the AVRCP version broadcasted
through SDP in the developer options. This helps solve some interoperability
issues such as with Honda Carkits where broadcasting AVRCP version 1.6 causes
media metadata to fail.
Bug:
35956792
Test: Select AVRCP version through developer option
Change-Id: Ib55af4406131178846d38ef4da33fb72cb2cd02f
Ivan Podogov [Wed, 22 Mar 2017 00:43:14 +0000 (00:43 +0000)]
Reduce sniff intervals for active mode. am:
be6d6ce0ae am:
947d36410a
am:
b1ff150c92
Change-Id: I2404db4b449d31d5f676a6ec62e9a725e1a40060
Ivan Podogov [Wed, 22 Mar 2017 00:31:05 +0000 (00:31 +0000)]
Reduce sniff intervals for active mode. am:
be6d6ce0ae
am:
947d36410a
Change-Id: I216fee30474f8d28579c45412cdefc57335a938f
Ivan Podogov [Wed, 22 Mar 2017 00:26:42 +0000 (00:26 +0000)]
Reduce sniff intervals for active mode.
am:
be6d6ce0ae
Change-Id: Icb81474e5702aaaacca9d4edcf273cd99e46a64f
Ivan Podogov [Tue, 3 Jan 2017 21:20:33 +0000 (21:20 +0000)]
Reduce sniff intervals for active mode.
According to the Bluetooth HID specification, a pointing device
should have a recommended report rate of approximately 80 Hz, and
sniff interval of 18 slots for the sniff subrating mode.
Current settings set the sniff interval to 54 slots, which is
aproximately 29.6 Hz - not really enough to emulate a mouse.
Test: with a pointing device app
Change-Id: Ic3365137bcf3f5608ada37fbfa0c3233f6ef83d7
Myles Watson [Tue, 21 Mar 2017 17:24:20 +0000 (10:24 -0700)]
main: Update error handling
Test: builds
Change-Id: Ibc6b1d94f49bd711e7844ae769c384f76d357f22
Alex Deymo [Mon, 20 Mar 2017 22:47:48 +0000 (22:47 +0000)]
Merge "Add liblog dependency to libbt-vendor." am:
cc7837d8d0 am:
d637951160
am:
9f075fe265
Change-Id: I0be7a549c665082d1766bcf6c1e18cc901497661
Alex Deymo [Mon, 20 Mar 2017 22:47:19 +0000 (22:47 +0000)]
Merge "Add liblog dependency to libbt-vendor." am:
cc7837d8d0
am:
d637951160
Change-Id: Ic3ad685345a67a9bb68df4382060b8530c0cc6f1
Alex Deymo [Mon, 20 Mar 2017 22:44:01 +0000 (22:44 +0000)]
Merge "Add liblog dependency to libbt-vendor."
am:
cc7837d8d0
Change-Id: I4b9035bf3faad26a48020f78e05e5971d2b76248
Jakub Pawlowski [Mon, 20 Mar 2017 22:41:26 +0000 (22:41 +0000)]
Bluetooth 5 AdvertisingSet implementation (4/4) am:
ff32af6dee am:
1d86b96865
am:
299dd3b8fe
Change-Id: I2194b7b621d555791d6f7828ec769c607a966c13
Jakub Pawlowski [Mon, 20 Mar 2017 22:41:20 +0000 (22:41 +0000)]
Report back TX Power value am:
256afc4d84 am:
bf67a6c50f
am:
7dfb9b9584
Change-Id: I543bc9f2622d2e9582da84108076f42bf7bf938e
Treehugger Robot [Mon, 20 Mar 2017 22:35:18 +0000 (22:35 +0000)]
Merge "Add liblog dependency to libbt-vendor."
Jakub Pawlowski [Mon, 20 Mar 2017 22:33:27 +0000 (22:33 +0000)]
Bluetooth 5 AdvertisingSet implementation (4/4) am:
ff32af6dee
am:
1d86b96865
Change-Id: Ifbeb1e425774a43584cc9a781a556fcba3b6a9b9
Jakub Pawlowski [Mon, 20 Mar 2017 22:33:22 +0000 (22:33 +0000)]
Report back TX Power value am:
256afc4d84
am:
bf67a6c50f
Change-Id: Ie21ea5fad3bada76b1ad2fc9eee535f39068edc8
Jakub Pawlowski [Mon, 20 Mar 2017 22:27:00 +0000 (22:27 +0000)]
Bluetooth 5 AdvertisingSet implementation (4/4)
am:
ff32af6dee
Change-Id: I053c63b9a109d62c0c7a22e5a4088bae39e4bf23
Jakub Pawlowski [Mon, 20 Mar 2017 22:26:55 +0000 (22:26 +0000)]
Report back TX Power value
am:
256afc4d84
Change-Id: If05533867f2f78762b42e8e68fdecc1eed3cb22f
Jakub Pawlowski [Sat, 18 Mar 2017 01:05:38 +0000 (18:05 -0700)]
Bluetooth 5 AdvertisingSet implementation (4/4)
Test: manual
Bug:
30622771
Change-Id: Ie1c1588383a83296cabd29a0481f7d80a1168263
Jakub Pawlowski [Mon, 20 Mar 2017 22:18:17 +0000 (22:18 +0000)]
Do not use Multi-Adv instance 0 in VSC am:
10661946cc am:
c914c6c1ae
am:
89373711d0
Change-Id: Ife43fb0cebebd109950f4a66bb5cd364dc13b2ee
Jakub Pawlowski [Mon, 20 Mar 2017 22:14:46 +0000 (22:14 +0000)]
Do not use Multi-Adv instance 0 in VSC am:
10661946cc
am:
c914c6c1ae
Change-Id: Id1019ba5f61cc252848800de0c03b616dacf4588
Jakub Pawlowski [Fri, 17 Mar 2017 19:31:42 +0000 (12:31 -0700)]
Report back TX Power value
For LE Extended Advertising report the value returned by controller.
For VSC Advertising return the value send to controller.
For Legacy Advertising use 0.
Test: manual
Bug:
30622771
Change-Id: Ifc49af86e7f064c91ed2d20e6f87532159d1bffa
Jakub Pawlowski [Mon, 20 Mar 2017 22:11:16 +0000 (22:11 +0000)]
Do not use Multi-Adv instance 0 in VSC
am:
10661946cc
Change-Id: I76ca92cbc2161e44493df2f0ec329117f8ca0492
Jakub Pawlowski [Mon, 20 Mar 2017 17:33:25 +0000 (10:33 -0700)]
Do not use Multi-Adv instance 0 in VSC
Bug:
36365653
Test: manual
Change-Id: If44b2f0206bab91fa77f2a1ff68d83e1593f28e2
Ajay Panicker [Mon, 20 Mar 2017 21:31:36 +0000 (21:31 +0000)]
Merge "Change default AVRCP version to 1.4" am:
763839680f am:
72c146a3a6
am:
e090477309
Change-Id: If69c4a1d62133eba1d123c52fe460256991279c7
Ajay Panicker [Mon, 20 Mar 2017 21:28:05 +0000 (21:28 +0000)]
Merge "Change default AVRCP version to 1.4" am:
763839680f
am:
72c146a3a6
Change-Id: Idb76c55b74e2f0ead0d37acdab90290edea4a269
Ajay Panicker [Mon, 20 Mar 2017 21:24:37 +0000 (21:24 +0000)]
Merge "Change default AVRCP version to 1.4"
am:
763839680f
Change-Id: I59aae13d6a7e8c61659a135861be0fb7e448fc72
Treehugger Robot [Mon, 20 Mar 2017 21:19:05 +0000 (21:19 +0000)]
Merge "Change default AVRCP version to 1.4"
Alex Deymo [Mon, 20 Mar 2017 20:55:10 +0000 (13:55 -0700)]
Add liblog dependency to libbt-vendor.
lubcutils doesn't bundle liblog anymore. This fixes the build in boards
defining BOARD_HAVE_BLUETOOTH_LINUX.
Bug: None
Test: `make droid` in such board.
Change-Id: Ic9b7ba045c3a291eb33a606ffabc41c45c9ca3e2
Ivan Podogov [Mon, 20 Mar 2017 19:20:05 +0000 (19:20 +0000)]
HIDD: Fix possible out-of-bounds error. am:
c6bce1a236 am:
ff618d06be
am:
fa4b85c163
Change-Id: I15bc49a0010ab32de6a83ec5364b64a6784029a1
Ivan Podogov [Mon, 20 Mar 2017 19:16:35 +0000 (19:16 +0000)]
HIDD: Fix possible out-of-bounds error. am:
c6bce1a236
am:
ff618d06be
Change-Id: I81f7d8a329cd51cb0372d65be2085a4050e9dd4c
Ivan Podogov [Mon, 20 Mar 2017 19:13:04 +0000 (19:13 +0000)]
HIDD: Fix possible out-of-bounds error.
am:
c6bce1a236
Change-Id: I9e7e79f35379ded213979b2d9ff4dce8f96e24ba
Ajay Panicker [Fri, 17 Mar 2017 22:10:34 +0000 (15:10 -0700)]
Change default AVRCP version to 1.4
Poor support for AVRCP 1.6 in many carkits means the default should be 1.4 until we can work out interop for different models.
Bug:
35956792
Test: Connect Phone to Honda Carkit and play music
Change-Id: Ie48ba3f045cca5edda49399d137f2f756be0ff8a
Ivan Podogov [Mon, 20 Mar 2017 13:40:39 +0000 (13:40 +0000)]
HIDD: Fix possible out-of-bounds error.
Bug:
32282212
Test: manual
Change-Id: I6ca91bb8e278db9e4121f22567a27c175661b537
Pavlin Radoslavov [Sun, 19 Mar 2017 05:16:39 +0000 (05:16 +0000)]
Base classes should have virtual destructors am:
110a4dc073 am:
2bc32b2daf
am:
317e2ffba1
Change-Id: I8112ac541f4780dc9af1f3c4b555a6cf79711670
Pavlin Radoslavov [Sun, 19 Mar 2017 05:12:25 +0000 (05:12 +0000)]
Base classes should have virtual destructors am:
110a4dc073
am:
2bc32b2daf
Change-Id: I65b365f49e0f31eba2a3a08b09c3df247bcf9537
Pavlin Radoslavov [Sun, 19 Mar 2017 05:09:55 +0000 (05:09 +0000)]
Base classes should have virtual destructors
am:
110a4dc073
Change-Id: I4e009aac881b75926edb0789e1b605c5e136b6a7
Pavlin Radoslavov [Sun, 19 Mar 2017 02:24:05 +0000 (19:24 -0700)]
Base classes should have virtual destructors
Each base class in service/common/bluetooth now has a virtual
destructor. This fixes memory delete issues that were exposed
when running the unit tests with ASAN enabled.
Test: Running unit tests with ASAN enabled
Change-Id: Ie944eb80784de4ebac3c7276fabed6acb5fec6c0
Andre Eisenbach [Fri, 17 Mar 2017 19:32:02 +0000 (19:32 +0000)]
Merge "Abort using SIGABRT instead of SIGKILL on command_timeout" am:
379743d738 am:
7c779ec3a2
am:
738015f0e4
Change-Id: I370de8a5d9660db6c2e92332a6da182a561cd603
Andre Eisenbach [Fri, 17 Mar 2017 19:28:36 +0000 (19:28 +0000)]
Merge "Abort using SIGABRT instead of SIGKILL on command_timeout" am:
379743d738
am:
7c779ec3a2
Change-Id: I22f28b067828c675ebbfbb98929c8b53be96c598
Andre Eisenbach [Fri, 17 Mar 2017 19:24:55 +0000 (19:24 +0000)]
Merge "Abort using SIGABRT instead of SIGKILL on command_timeout"
am:
379743d738
Change-Id: If9fc37bed4dce4a1b1e0fbde3f81279f0a51fae1
Treehugger Robot [Fri, 17 Mar 2017 19:19:04 +0000 (19:19 +0000)]
Merge "Abort using SIGABRT instead of SIGKILL on command_timeout"
Jakub Pawlowski [Fri, 17 Mar 2017 19:17:10 +0000 (19:17 +0000)]
Divide advertise data when needed am:
331c80117f am:
d16a438cbf
am:
c766dfc3a5
Change-Id: If10dca0ee74e32d8166c61202f6955ef45368863
Jakub Pawlowski [Fri, 17 Mar 2017 19:17:00 +0000 (19:17 +0000)]
Bluetooth 5 Periodic Advertising am:
2d5c21c031 am:
16e2194eff
am:
b38a72fc2c
Change-Id: I312d38313ab3a606b5678fe02ef3e5a7d7aa90db
Jakub Pawlowski [Fri, 17 Mar 2017 19:13:45 +0000 (19:13 +0000)]
Divide advertise data when needed am:
331c80117f
am:
d16a438cbf
Change-Id: I9e27e2e6f8e2c80435a3c9e7fa58f4d456f7b623
Jakub Pawlowski [Fri, 17 Mar 2017 19:13:34 +0000 (19:13 +0000)]
Bluetooth 5 Periodic Advertising am:
2d5c21c031
am:
16e2194eff
Change-Id: I192104909fade311733e3f95b16729bae14fb5ff
Jakub Pawlowski [Fri, 17 Mar 2017 19:10:35 +0000 (19:10 +0000)]
Divide advertise data when needed
am:
331c80117f
Change-Id: I2c2b37aa801d286ab4a6fb30cc3b03c543ad97fd
Jakub Pawlowski [Fri, 17 Mar 2017 19:10:23 +0000 (19:10 +0000)]
Bluetooth 5 Periodic Advertising
am:
2d5c21c031
Change-Id: Id03d1690500988ffd4442481837f5a0d57ce5e22
Jakub Pawlowski [Fri, 17 Mar 2017 05:10:32 +0000 (22:10 -0700)]
Divide advertise data when needed
Bug:
30622771
Test: BleAdvertisingManagerTest.test_data_sender
Change-Id: I447fed753b08cef766d99ea8dfa47b1212a9ce03
Jakub Pawlowski [Fri, 17 Mar 2017 00:15:47 +0000 (17:15 -0700)]
Bluetooth 5 Periodic Advertising
This patch implements the initialization of Bluetooth 5 advertising.
Bug:
30622771
Test: manual
Change-Id: If06a6c827f1d8097aa3f019b99ebcb3933742d6c
Andre Eisenbach [Fri, 17 Mar 2017 04:58:53 +0000 (21:58 -0700)]
Abort using SIGABRT instead of SIGKILL on command_timeout
This will produce a stack trace and flag for automated crash reporting.
Bug:
36026072
Test: net_test_bluetooth; device off/on/off tests
Change-Id: I4d4380d61028261ba7bb4599e39993cae1d906a5
Jakub Pawlowski [Fri, 17 Mar 2017 05:31:23 +0000 (05:31 +0000)]
LE Maximum Advertising Data Length (4/4) am:
5a8a162d9e am:
a41552d319
am:
8214647479
Change-Id: I51e24e4b323b13e80e9725bff360bd8fff83c025
Jakub Pawlowski [Fri, 17 Mar 2017 05:26:38 +0000 (05:26 +0000)]
LE Maximum Advertising Data Length (4/4) am:
5a8a162d9e
am:
a41552d319
Change-Id: Id766eabe8e91d82ed71f30c3a3e6ee974bf0ca98
Jakub Pawlowski [Fri, 17 Mar 2017 05:20:08 +0000 (05:20 +0000)]
LE Maximum Advertising Data Length (4/4)
am:
5a8a162d9e
Change-Id: I79f655cddeb49c7b1ac2482a3ae5617954f22706
Jakub Pawlowski [Fri, 17 Mar 2017 01:19:20 +0000 (18:19 -0700)]
LE Maximum Advertising Data Length (4/4)
Add ability to check maximum advertising data length.
Bug:
30622771
Test: manual
Change-Id: I0f3c806046157633f8e2106c1b2700c4277a2b4d
Pavlin Radoslavov [Fri, 17 Mar 2017 04:12:03 +0000 (04:12 +0000)]
Merge "Use the correct tBTA_PAN type when copying the data in a callback" am:
b4939306df am:
efb75374a7
am:
6c2dfbb7b4
Change-Id: I20e2b7b5f229d78c100ac7264b8312abd7d4184c
Pavlin Radoslavov [Fri, 17 Mar 2017 04:10:02 +0000 (04:10 +0000)]
Merge "Use the correct tBTA_PAN type when copying the data in a callback" am:
b4939306df
am:
efb75374a7
Change-Id: Ie38e0a2271fcd12603a13fd3fc7308c4d6d2c4f8
Pavlin Radoslavov [Fri, 17 Mar 2017 04:09:34 +0000 (04:09 +0000)]
Use the correct buffer size when copying device inquiry response data am:
ff8011811b am:
936a99d479
am:
102ba8a085
Change-Id: I8982dfd06c42c0b415e7029d5fe85fc9144a4154
Pavlin Radoslavov [Fri, 17 Mar 2017 04:06:02 +0000 (04:06 +0000)]
Merge "Use the correct tBTA_PAN type when copying the data in a callback"
am:
b4939306df
Change-Id: I13409b3cf122f4cee8b3c5f43b6e9bba43f4d24c
Pavlin Radoslavov [Fri, 17 Mar 2017 04:06:02 +0000 (04:06 +0000)]
Use the correct buffer size when copying device inquiry response data am:
ff8011811b
am:
936a99d479
Change-Id: Ifdb892a1f4aaeb6952a6c1f5c9a3b0e242331fae
Pavlin Radoslavov [Fri, 17 Mar 2017 04:02:35 +0000 (04:02 +0000)]
Use the correct buffer size when copying device inquiry response data
am:
ff8011811b
Change-Id: I6f21e24aacfc6736a3f872ec2675812d6bf3c167
Treehugger Robot [Fri, 17 Mar 2017 04:00:31 +0000 (04:00 +0000)]
Merge "Use the correct tBTA_PAN type when copying the data in a callback"
Pavlin Radoslavov [Fri, 17 Mar 2017 02:09:31 +0000 (19:09 -0700)]
Use the correct buffer size when copying device inquiry response data
Bug:
36372989
Test: Running ASAN build
Change-Id: I6016e7609ba24db632222ff4613017e3be30b09c
Pavlin Radoslavov [Fri, 17 Mar 2017 01:54:55 +0000 (18:54 -0700)]
Use the correct tBTA_PAN type when copying the data in a callback
This fixes stack-buffer-overflow issue found using ASAN.
Previously, the original data had type "struct tBTA_PAN_SET_ROLE"
and similar, and eventually "memcpy(..., sizeof(tBTA_PAN))" would
copy data beyond the end of the data buffer.
Bug:
36367964
Test: Running ASAN build
Change-Id: I47210a501378023168a0dd71381e93a5051a4c71
Jakub Pawlowski [Fri, 17 Mar 2017 01:21:52 +0000 (01:21 +0000)]
Bluetooth 5 AdvertisingSet implementation (3/4) am:
16da9217c6 am:
73d1758d48
am:
69d7240258
Change-Id: Id88429fbd1453f6c8e7b12f3eb6ef52bda7c33b2
Jakub Pawlowski [Fri, 17 Mar 2017 01:15:20 +0000 (01:15 +0000)]
Bluetooth 5 AdvertisingSet implementation (3/4) am:
16da9217c6
am:
73d1758d48
Change-Id: Ic34f9296fa7583cb4e637cdc616074f365223ff8
Jakub Pawlowski [Fri, 17 Mar 2017 01:09:12 +0000 (01:09 +0000)]
Bluetooth 5 AdvertisingSet implementation (3/4)
am:
16da9217c6
Change-Id: I17188b9a006152507093458e1c3d345a6f5682d5
Jakub Pawlowski [Sun, 12 Mar 2017 00:46:00 +0000 (16:46 -0800)]
Bluetooth 5 AdvertisingSet implementation (3/4)
This patch wires up fist methods of AdvertisingSet, making it possible
to start advertising and stop advertising. It also replaces legacy
implemementation with calls to new implementation.
Bug:
30622771
Test: sl4a ConcurrentBleAdvertisingTest
Change-Id: I843d8fc12ba1928c87e256a0fb6d730c9fa200e6
Jakub Pawlowski [Fri, 17 Mar 2017 00:32:24 +0000 (00:32 +0000)]
Fix net_test_stack_multi_adv am:
8c7d060149 am:
4cd47799f3
am:
ce375d6764
Change-Id: Ia87c95bb75936d488026e9967291a0e5bcc8a09c
Jakub Pawlowski [Fri, 17 Mar 2017 00:29:47 +0000 (00:29 +0000)]
Fix net_test_stack_multi_adv am:
8c7d060149
am:
4cd47799f3
Change-Id: I13ef5eadece00fda43dbc4639b094b4c48ac3ad8
Jakub Pawlowski [Fri, 17 Mar 2017 00:26:47 +0000 (00:26 +0000)]
Fix net_test_stack_multi_adv
am:
8c7d060149
Change-Id: I8877d55121300b99db4136f529279891a40cc3bf
Jakub Pawlowski [Thu, 16 Mar 2017 21:47:55 +0000 (14:47 -0700)]
Fix net_test_stack_multi_adv
Change-Id: Ic28aa4a120d973bbf3f05d8022bc2c2e619562e2
Pavlin Radoslavov [Thu, 16 Mar 2017 19:59:07 +0000 (19:59 +0000)]
Fix an HCI race condition when transmitting a packet am:
bc9a9329b3 am:
ad90ac0630
am:
d2b0a3f383
Change-Id: Ibc0c4f3bf05c6480273b681b4d4fbcdd0bca0341
Pavlin Radoslavov [Thu, 16 Mar 2017 19:53:08 +0000 (19:53 +0000)]
Fix an HCI race condition when transmitting a packet am:
bc9a9329b3
am:
ad90ac0630
Change-Id: Ia78dabeaa85db0dad8ea1a4d19d777cb10fd1cd4
Pavlin Radoslavov [Thu, 16 Mar 2017 19:49:56 +0000 (19:49 +0000)]
Fix an HCI race condition when transmitting a packet
am:
bc9a9329b3
Change-Id: I070d2bf6f4de8caf35817f40cc1205cc6e943070
Pavlin Radoslavov [Thu, 16 Mar 2017 11:54:21 +0000 (04:54 -0700)]
Fix an HCI race condition when transmitting a packet
There is a race condition when calling
event_command_ready() -> transmit_fragment() -> hci_transmit()
If right after hci_transmit() there is thread context switch
and another thread executes filter_incoming_event() for the same
command, the corresponding packet/command will be taken off the
commands_pending_response list and free()-ed.
However, after the execution on the first thread continues
within transmit_fragment(), the execution logic will continue using
the "packet" that was already free()-ed by the other thread.
To prevent this from happening, the "commands_pending_response_mutex"
within event_command_ready() has to protect the transmit_fragment()
execution and the update_command_response_timer() function right after it.
Also:
* Changed the "commands_pending_response_mutex" to recursive_mutex
* Added "commands_pending_response_mutex" protection in few other
places where "commands_pending_response" itself is used.
Bug:
36205494
Test: Running ASAN build
Change-Id: I63677ad1f2b28683c321631e9e29e4f01628d269
Myles Watson [Wed, 15 Mar 2017 22:41:17 +0000 (22:41 +0000)]
test_vendor: Stop watching before closing the FD am:
01ce9e4233 am:
3f8516d7cc
am:
1848a2e677
Change-Id: I2f81793e56f87baa731223ca0e9d02b6d6ef051a
Myles Watson [Wed, 15 Mar 2017 22:39:33 +0000 (22:39 +0000)]
test_vendor: Stop watching before closing the FD am:
01ce9e4233
am:
3f8516d7cc
Change-Id: I5d2fba1b8aa8ba15b1de8d2425c882d6ef550f5e
Myles Watson [Wed, 15 Mar 2017 22:37:02 +0000 (22:37 +0000)]
test_vendor: Stop watching before closing the FD
am:
01ce9e4233
Change-Id: I5c8efd21cfbaf45677a8e29c617852f7f10a768b
Myles Watson [Wed, 15 Mar 2017 19:14:36 +0000 (12:14 -0700)]
test_vendor: Stop watching before closing the FD
Test: net_test_bluetooth BluetoothTest.AdapterRepeatedEnableDisable
Change-Id: I72f5c9105b535ad5a5c41bc15dc9a3ad5f4e023f
Alex Deymo [Wed, 15 Mar 2017 14:27:20 +0000 (14:27 +0000)]
Fix bta_dm_act.cc compile error. am:
7651cfbe6a am:
3544bacb2a
am:
d93a471bb4
Change-Id: I27537770ca0a6e714522c80fa76f0a5695a43d40
Alex Deymo [Wed, 15 Mar 2017 14:21:50 +0000 (14:21 +0000)]
Fix bta_dm_act.cc compile error. am:
7651cfbe6a
am:
3544bacb2a
Change-Id: I7f154b88648845cb930835d11ed79245d8989804
Alex Deymo [Wed, 15 Mar 2017 14:16:20 +0000 (14:16 +0000)]
Fix bta_dm_act.cc compile error.
am:
7651cfbe6a
Change-Id: Ie57643e2919cddb74151d471891c6eed93899103
Alex Deymo [Wed, 15 Mar 2017 07:16:58 +0000 (00:16 -0700)]
Fix bta_dm_act.cc compile error.
When BTM_LOCAL_IO_CAPS == BTM_IO_CAP_NONE the code fails to compile due
to a missing comma. This was introducted a couple of months ago by
2e8e9f42132d0297a94c0852a1fbf45c9bc348e5 but it went undetected.
This patch simply adds back the missing comma.
Bug:
35804180
Test: `make` on a device with BTM_LOCAL_IO_CAPS set to BTM_IO_CAP_NONE.
Change-Id: I0a924abec4fe6612c5dbb72416123ca391551523
Pavlin Radoslavov [Wed, 15 Mar 2017 06:15:01 +0000 (06:15 +0000)]
resolve merge conflicts of
a3ee2e35 to nyc-dev am:
a33dd28064 am:
b75b8e7f1a am:
d4f1f0e048 am:
0796aaa047 am:
b4e34476e9 -s ours
am:
8b3e2ccf08
Change-Id: I6ef233af957f08c7e0a9672d8d0eb8fa38527b5d
Pavlin Radoslavov [Wed, 15 Mar 2017 06:14:51 +0000 (06:14 +0000)]
Check the HCI length before extracting the L2CAP length and CID
am:
75232a5870
Change-Id: I222ce88ae59195d591dfc32c87eb5f694d410e6a
Pavlin Radoslavov [Wed, 15 Mar 2017 06:09:23 +0000 (06:09 +0000)]
resolve merge conflicts of
a3ee2e35 to nyc-dev am:
a33dd28064 am:
b75b8e7f1a am:
d4f1f0e048 am:
0796aaa047
am:
b4e34476e9 -s ours
Change-Id: I5fe69742472d5a419f6757fbb64df0099cf53748
Pavlin Radoslavov [Wed, 8 Mar 2017 02:48:21 +0000 (18:48 -0800)]
Check the HCI length before extracting the L2CAP length and CID
Bug:
34946955
Test: A2DP streaming to a headset
Change-Id: I0b6f50dee05a58db8c043b4d01fb58c9acbeede9
(cherry picked from commit
ecc0835114cbae3033d8b0e25bd8b443880d5077)
(cherry picked from commit
33c68c82c1a9c2436d203250ab82f5361ff905b7)
(cherry picked from commit
a4c029c7887d0df70c0d6a884a861eb63d827603)
Pavlin Radoslavov [Wed, 15 Mar 2017 05:58:21 +0000 (05:58 +0000)]
resolve merge conflicts of
a3ee2e35 to nyc-dev am:
a33dd28064 am:
b75b8e7f1a am:
d4f1f0e048
am:
0796aaa047
Change-Id: I216fb8bc48e84793e3c397c60f4311796ce5ef83
Pavlin Radoslavov [Wed, 15 Mar 2017 05:53:21 +0000 (05:53 +0000)]
resolve merge conflicts of
a3ee2e35 to nyc-dev am:
a33dd28064 am:
b75b8e7f1a
am:
d4f1f0e048
Change-Id: Id111ef66d83a3427ccc8272115ef3191221ee3cc
Pavlin Radoslavov [Wed, 15 Mar 2017 05:47:20 +0000 (05:47 +0000)]
resolve merge conflicts of
a3ee2e35 to nyc-dev am:
a33dd28064
am:
b75b8e7f1a
Change-Id: Iab4d37c1e43d62d9132ebf090ac43284f8b668a8
Pavlin Radoslavov [Wed, 15 Mar 2017 05:41:49 +0000 (05:41 +0000)]
resolve merge conflicts of
a3ee2e35 to nyc-dev
am:
a33dd28064
Change-Id: I081f113d8908bb775f56c25beb105a3311b0affb
Pavlin Radoslavov [Tue, 14 Mar 2017 21:46:15 +0000 (14:46 -0700)]
resolve merge conflicts of
a3ee2e35 to nyc-dev
Bug:
34946955
Change-Id: Ieff690edd3aa527a0639483ec8e1e3b661f0ecc4
Merged-In: I0b6f50dee05a58db8c043b4d01fb58c9acbeede9
Pavlin Radoslavov [Wed, 8 Mar 2017 02:48:21 +0000 (18:48 -0800)]
Check the HCI length before extracting the L2CAP length and CID
Bug:
34946955
Test: A2DP streaming to a headset
Change-Id: I0b6f50dee05a58db8c043b4d01fb58c9acbeede9
(cherry picked from commit
ecc0835114cbae3033d8b0e25bd8b443880d5077)
(cherry picked from commit
33c68c82c1a9c2436d203250ab82f5361ff905b7)
Pavlin Radoslavov [Wed, 15 Mar 2017 01:23:14 +0000 (01:23 +0000)]
Merge "Add a log message in the beginning of function hci_initialize()" am:
e745f573f6 am:
c46a058a2b
am:
a33cbdd610
Change-Id: I9efc96eebbf0b5a77516004de8505e298a462e28
Pavlin Radoslavov [Wed, 15 Mar 2017 01:18:42 +0000 (01:18 +0000)]
Merge "Add a log message in the beginning of function hci_initialize()" am:
e745f573f6
am:
c46a058a2b
Change-Id: Ibbbbba54ea8ce151f4771495453b0db6bf2f412d
Pavlin Radoslavov [Wed, 15 Mar 2017 01:14:12 +0000 (01:14 +0000)]
Merge "Add a log message in the beginning of function hci_initialize()"
am:
e745f573f6
Change-Id: Ia9fa15a85c64c297b911449594b6daf5b8871c0e
Jakub Pawlowski [Wed, 15 Mar 2017 01:14:04 +0000 (01:14 +0000)]
Parse extended advertising packets am:
d6d64b11e1 am:
21c92ccbd7
am:
9a41d06614
Change-Id: Ic0a5c2a1d360615e3195b64d285fb204e8a22303