- 21 Oct, 2015 1 commit
-
-
Andre Eisenbach authored
Sometimes, during result-heavy LE scans, the UART byte stream can become corrupted, leading to assertions caused by mis-interpreting the bytes following the corruption. This workaround looks for tell-tale signs of a BLE event and attempts to skip the correct amount of bytes in the stream to re-synchronize onto a packet boundary. Bug: 23934838 Change-Id: Ifadaecf8077cb1defc7134c59c97302fca660f81
-
- 11 Oct, 2015 1 commit
-
-
Andre Eisenbach authored
Bug: 24737963 Change-Id: If3b59437439305b490c5fc260a7080cee04f09c5
-
- 07 Oct, 2015 1 commit
-
-
Andre Eisenbach authored
The audio sub-system and audio related tasks run at elevated thread priorities in order to ensure timely handling of audio packets. This patch raises the thread priority of lower layer Bluetooth tasks involved in delivering audio packets to avoid thread pre-emption and subsequent audio skipping. Bug: 24570959 Change-Id: I5e19ee4590207df753f7b8bfc22174959722ec2d
-
- 25 Sep, 2015 2 commits
-
-
Pavlin Radoslavov authored
* commit '74dad515': Disable opening network debug ports for security reasons
-
Pavlin Radoslavov authored
By default, we open up to three TCP ports that are used for debugging purpose: * TCP port 8872 - used for forwarding btsnoop logs at real time Note: the port is open only if "Bluetooth HCI snoop log" is enabled in the Developer options * TCP port 8873 - used for HCI debugging * TCP port 8879 - used for debugging the Bluetooth counters Those ports are disabled by default. To enable, the following #define should be added at the top of the corresponding file(s): btcore/src/counter.c hci/src/btsnoop_net.c hci/src/hci_inject.c #define BT_NET_DEBUG TRUE Bug: 24371736 Change-Id: I5cb43af1a5d29c331eb5ef61a24dccbe95df6f40
-
- 24 Sep, 2015 2 commits
-
-
Pavlin Radoslavov authored
By default, we open up to three TCP ports that are used for debugging purpose: * TCP port 8872 - used for forwarding btsnoop logs at real time Note: the port is open only if "Bluetooth HCI snoop log" is enabled in the Developer options * TCP port 8873 - used for HCI debugging * TCP port 8879 - used for debugging the Bluetooth counters Those ports are disabled by default. To enable, the following #define should be added at the top of the corresponding file(s): btcore/src/counter.c hci/src/btsnoop_net.c hci/src/hci_inject.c #define BT_NET_DEBUG TRUE Bug: 24371736 Change-Id: I5cb43af1a5d29c331eb5ef61a24dccbe95df6f40
-
Nitin Shivpure authored
A case, where tap read thread is always exist, Sometimes data packets get recieved on older fd, which is not available. which is causing assert due to fd mismatch in race condition. when next pan connection is immediately available. If last pan connection gets disconnected, then tap_read_thread should be destroyed in btif context to fix this issue. Bug: 24093456 Change-Id: Ic1053200a7be4c2091d6c394634831ca3fbd61df
-
- 22 Sep, 2015 2 commits
-
-
Andy Hung authored
-
Pankaj Kanwar authored
-
- 21 Sep, 2015 1 commit
-
-
tturney authored
Bug: 23740164 Change-Id: Ib26a64b624c711443201adc4fde6b041ecb0dde1
-
- 19 Sep, 2015 1 commit
-
-
Andre Eisenbach authored
Bug: 23978964 Change-Id: I36b6d05bb82eb0283eed3b465038d65890c4c245
-
- 17 Sep, 2015 2 commits
-
-
Andre Eisenbach authored
On some platforms, the logs indicate that the BTU task is stalled by UHID driver when writing the HID descriptor to the kernel. This patch converts the UHID socket to non-blocking to avoid stalling the main BTU task. Bug: 23978964 Change-Id: I5a7a3e106fb2c967d68f077faedcd4fe62bbd912
-
Nitin Shivpure authored
A case where DUT is acting as PANU device on BR/EDR link & also acting as central on LE link. As LE link & PANU link need not to be master & it's not a scatter-net scenario, because there is only a BR link. So checking for BR device count before initiating role switch to avoid continuous loop of role switches. Cherry-picked from: https://partner-android-review.googlesource.com/#/c/376058/ Change-Id: I70e4041a71ba965f1f9e25729c3cfd20ae03d6b4 Bug: 23290136
-
- 15 Sep, 2015 1 commit
-
-
Eric Laurent authored
And complete implementation of out_get_render_position() Bug: 21199150 Bug: 24042067 Change-Id: I95038ad68433e401b096a0159282a2ae372570e1
-
- 09 Sep, 2015 2 commits
-
-
Andre Eisenbach authored
-
Andre Eisenbach authored
-
- 08 Sep, 2015 2 commits
-
-
tturney authored
BT Inquiry is disallowed when service discovery is in progress. Innitially when GATT discovery is in progress (crosskey pairing), it resulted in inquiry requests being rejected. During an insecure connection like OPP, bonding link key is not stored. In an earlier patch (b820aec7), BR/EDR discovery was bypassed if the bonding was temporary. However, this was not done for LE. Applying the same logic to LE, resolved the inquiry issue reported in this bug. Bug: 23468169 Change-Id: I6111c80a420aeb0bc36a0393eb215c112512d251
-
Pavlin Radoslavov authored
If there are errors when processing GATT related events (e.g., configuring the MTU), don't use recursive calls into bta_gattc_sm_execute(), because it breaks the free-ing of some of the memory. Bug: 23756301 Change-Id: I3c685170e868ffbf4e488d2bb5a31904e3f7b39d
-
- 07 Sep, 2015 1 commit
-
-
wang ping authored
Sometimes allow_device_sleep() is called before wake_assert, this result in transmit_done does not start idle timer. This is because the "wake_state" does not match while allow_device_sleep() is called before wake_assert() is called. So start idle timer anyway when transmit_done is called. Bug: 23754156 Change-Id: I5437aea0abc4b7f5cf847701e2d0a889c6823fcb
-
- 31 Aug, 2015 1 commit
-
-
tturney authored
When calculating the appropriate LPM's idle timeout, the local chip name was NULL. This is fixed by calculating LMP's idle timeout when the chip is enabling. Bug: 23248798 Change-Id: I8ee2b28fb4363359e035e242fdcff8a736ee448c
-
- 29 Aug, 2015 1 commit
-
- 28 Aug, 2015 3 commits
-
-
Jacob Lee authored
Wrong connection handle type in multi-adv event parsing, causing random address (confirm value) mismatch and pairing failure. Bug id: 23201007 Change-Id: I13ce231360937e711f61eb0777805b07bcde7074
-
Sunny Kapdi authored
* commit 'dcfafe9a': Fix incorrect SetConnScanParam function mapping
-
Sunny Kapdi authored
BTA_DM_API_BLE_CONN_SCAN_PARAM_EVT is defined before BTA_DM_API_BLE_SCAN_PARAM_EVT in the enum but the corresponding entries in bta_dm_action were inverted. This resulted in incorrect invocation of set_conn_scan_params while trying to set parameters for scanning. The call was hence failing here and was not resulting in setting of the new scan parameters in the Controller irrespective of the scan mode selected from the App. This would essentially result in the breakage of ScanSettings.SCAN_MODE_<xx> Android SDK APIs. Bug: 23602042 Change-Id: I17e1b14a32250e3ccb7631a67690ec2e0a6bc321
-
- 25 Aug, 2015 2 commits
-
-
Nitin Arora authored
* commit 'b7460434': Fix memory corruption of BLE whitelist hashmap
-
Nitin Arora authored
When adding devices to the whitelist for LE background connections, a local variable is used as the hashmap key, preventing any successful lookups going forward. Thus the device will repeatedly add the same device to the whitelist and preventing successful connections going forward. Bug: 23423602 Change-Id: I3d2590c0a1dd66c6e1864ea53f875a713660b645
-
- 24 Aug, 2015 2 commits
-
-
Pavlin Radoslavov authored
* commit 'aa41fec0': Check the return value when reading HCI type byte
-
Pavlin Radoslavov authored
Add missing return value check when reading the HCI type byte. This check is needed as a safeguard. For example, function event_uart_has_bytes() could be called (indirectly) within the run_reactor() loop not only when there are bytes to read, but also if there is an error (e.g., EPOLLHUP | EPOLLRDHUP | EPOLLERR). Bug: 23105107 Change-Id: Ic3b6e4d656406949e384c8106b0c607f7c221759
-
- 19 Aug, 2015 1 commit
-
-
Pavlin Radoslavov authored
* commit 'd2199cbb': Disable remote TCP connections
-
- 18 Aug, 2015 1 commit
-
-
Pavlin Radoslavov authored
For security reasons, TCP sockets now listen on the loopback IPv4 address 127.0.0.1 for incoming TCP connections. Bug: 23272146 Change-Id: I88523f643f305f2281740575d7011b6077bf0843
-
- 14 Aug, 2015 2 commits
-
-
Iliyan Malchev authored
* commit '1e1f1598': [DS] BTM_VSC_CHIP_CAPABILITY_M_VERSION doesn't match
-
Iliyan Malchev authored
-
- 08 Aug, 2015 1 commit
-
-
Satya Calloji authored
* commit '8d88b1b7': Allocate large enough buffers when copying AVRC packets
-
- 07 Aug, 2015 2 commits
-
-
Satya Calloji authored
AVRC response is created by copying the original received packet. When allocating a buffer for the response, the buffer length should be large enough to contain the response. Bug: 22437809 Change-Id: I862d633e76d3c5221582459f19935a45e53577c7
-
Jacob Lee authored
In the document, the supported version is 96. But, the defined supported version is 95 in the code. The callback function btm_ble_vendor_capability_vsc_cmpl_cback can not read number of track entries when it compare with 95 and supported version from firmware. Bug: 22906552 Change-Id: I64e6f14f34ef3ed0ddc3fee2fad05eb03e5938f1 Signed-off-by:
Jacob Lee <jacob.lee@mediatek.com>
-
- 06 Aug, 2015 1 commit
-
-
Ajay Panicker authored
Implemented a check to grab the ro.boot.btmacaddr property in case the device fails to receive an address beforehand. Bug: 22618015 Change-Id: Ie322888e114a732f8e85c81793e3e5e5eacffc7a
-
- 05 Aug, 2015 2 commits
-
-
Ajay Panicker authored
* commit 'aa3be1a6': Implement Bluetooth settings factory reset (3/5)
-
Ajay Panicker authored
Implemented the factory reset function to be used to reset all bluetooth settings on device to factory default Bug: 16161518
-
- 04 Aug, 2015 2 commits
-
-
Nitin Arora authored
* commit 'd63f7c0b': Add Dialog mouse & KB to blacklist for LE secure connections
-
Pavlin Radoslavov authored
* commit '84d13eda': Add an explicit check for AVRCP vendor data
-