- Mar 21, 2017
-
-
Ivan Podogov authored
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
-
- Mar 20, 2017
-
-
Treehugger Robot authored
-
Jakub Pawlowski authored
Test: manual Bug: 30622771 Change-Id: Ie1c1588383a83296cabd29a0481f7d80a1168263
-
Jakub Pawlowski authored
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 authored
Bug: 36365653 Test: manual Change-Id: If44b2f0206bab91fa77f2a1ff68d83e1593f28e2
-
Treehugger Robot authored
-
Alex Deymo authored
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
-
Ajay Panicker authored
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 authored
Bug: 32282212 Test: manual Change-Id: I6ca91bb8e278db9e4121f22567a27c175661b537
-
- Mar 19, 2017
-
-
Pavlin Radoslavov authored
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
-
- Mar 17, 2017
-
-
Treehugger Robot authored
-
Jakub Pawlowski authored
Bug: 30622771 Test: BleAdvertisingManagerTest.test_data_sender Change-Id: I447fed753b08cef766d99ea8dfa47b1212a9ce03
-
Jakub Pawlowski authored
This patch implements the initialization of Bluetooth 5 advertising. Bug: 30622771 Test: manual Change-Id: If06a6c827f1d8097aa3f019b99ebcb3933742d6c
-
Andre Eisenbach authored
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 authored
Add ability to check maximum advertising data length. Bug: 30622771 Test: manual Change-Id: I0f3c806046157633f8e2106c1b2700c4277a2b4d
-
Treehugger Robot authored
-
Pavlin Radoslavov authored
Bug: 36372989 Test: Running ASAN build Change-Id: I6016e7609ba24db632222ff4613017e3be30b09c
-
Pavlin Radoslavov authored
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 authored
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
-
- Mar 16, 2017
-
-
Jakub Pawlowski authored
Change-Id: Ic28aa4a120d973bbf3f05d8022bc2c2e619562e2
-
Pavlin Radoslavov authored
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
-
- Mar 15, 2017
-
-
Myles Watson authored
Test: net_test_bluetooth BluetoothTest.AdapterRepeatedEnableDisable Change-Id: I72f5c9105b535ad5a5c41bc15dc9a3ad5f4e023f
-
Alex Deymo authored
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 70556f32 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
-
Treehugger Robot authored
-
Jakub Pawlowski authored
Test: manual Bug: 30622771 Change-Id: I286b8d636115385ee5951284629a1894026d9b5b
-
- Mar 14, 2017
-
-
Pavlin Radoslavov authored
Bug: 36043456 Test: Code compilation Change-Id: Ib588c95a64100f5b2b3567f1bac9fe5e9160e4c0
-
Jakub Pawlowski authored
Bug: 30622771 Test: manual Change-Id: Ie0df73475359c69af8df672454fe0c0374523c88
-
Myles Watson authored
Bug:36026072 Test: Switch users (toggle Bluetooth under load) Change-Id: I3fb901b5c47021c708c1fb548858406225065d00
-
- Mar 13, 2017
-
-
Lakshmipathi K authored
Bug: 30622771 Test: manual Change-Id: I358b872c9ffb52f007db4f111520c05b9521aa7f
-
- Mar 11, 2017
-
-
Treehugger Robot authored
-
- Mar 10, 2017
-
-
Myles Watson authored
This prevents errors in case of event callbacks being received or timers being fired after the pending command queue has been deleted. Bug: 36026072 Test: Turn Bluetooth off/on while scanning and file transfer Change-Id: I7bb699e929a8b40e42a3543b5445885ae6b1b975
-
Jakub Pawlowski authored
Wire the new feature check API to actual values received from the controller. Test: manual Bug: 30622771 Change-Id: I2eefb7d5bb00d89ac7ea803191ba05f830080ade
-
- Mar 08, 2017
-
-
Jakub Pawlowski authored
Test: manual Change-Id: Ia38604d496b8ae50934c42b68f2424afd1c6320c
-
- Mar 06, 2017
-
-
Myles Watson authored
Test: Bluetooth starts/stops, Bluetooth scan works Change-Id: I4b04d71d57f45956898ff1a99e495195b54f4e8e
-
- Mar 02, 2017
-
-
Jack He authored
* BTM_ReadRemoteDeviceName checks if a device is connectable over LE before making a connection. However, when it is not connectable over LE, it could be connectable over BR/EDR. * For Dual Mode device, the device type should be 0x3 and is not equal to BT_DEVICE_TYPE_BREDR, hence we cannot check equality to determine whether a device is BR/EDR, but need to AND them and check the result. * btm_ble_read_remote_name() already checks if device is connectable in LE, and we do not need to do it in BTM_ReadRemoteDeviceName(). * This fix removes the check from BTM_ReadRemoteDeviceName * This fix also adds error checking to return values of BTM_ReadRemoteDeviceName * This fix moves inquiry database query to respective remote name request procedures, as the result of the query is used in those procedures instead of in BTM_ReadRemoteDeviceName() Bug: 35348392 Test: make, pair with device that advertise on both LE and BR/EDR Change-Id: I10d1aa9dd6e2447f9b9d40b1fea9370b5088a57d
-
Treehugger Robot authored
-
- Mar 01, 2017
-
-
Bailey Forrest authored
Change-Id: I9c7dbd8dfdb440a31e4c98e93ee533fe96ee7b0e
-
Pulkit Bhuwalka authored
Using BTM_IO_CAP_NONE currently causes compilation to fail since bta_dm_sp_cback ends up unused out a previous #ifdef that only kicks in if BTM_IO_CAP_NONE is not set. Plugging the entire function into a #ifdef so consistency is maintained and the framework can compile. Bug: 35257446 Test: Built locally and run on device. Pairing without display using JustWorks works. Change-Id: Ibd7af6454253ccd731ff79602f327a52b8fe585b
-
Treehugger Robot authored
-
Treehugger Robot authored
-