| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Start the idle timer after sending out each command to prevent power
collapse.
CRs-fixed:926763
Change-Id: I98e649fa40a4622e3c6bce4ea5c53d51e25413b3
|
|
|
|
|
|
|
|
|
|
|
| |
- Bluedroid stack needs to be reset whenever H/w
chip restarts like Subsytem restart.
- Emulates the hardware error event on detecting
SSR event from PR controller.
CRs-Fixed: 914079
Change-Id: I9248a4e6ad689fc590fd4fd0f7a067cd33bf314f
|
|
|
|
|
|
| |
Add parameter to distinguish the reason for ssr_cleanup.
Change-Id: If8dbc8bbeef430c7cea3d8c300285c9aef1222ec
|
|
|
|
|
|
|
|
|
|
|
| |
- Read BLE vendor capability to proceed on enablement of
secure connection support from Host.
- If BLE vendor capability is supported from the controller
then secure connection is enabled from Host.
CRs-Fixed: 900778
Change-Id: I64e79d4e6fff7d9f1b0ea7272250e8155f5888e2
|
|
|
|
|
|
| |
Enabling SSR feature.
Change-Id: I26eab5b3a10ac7823ff5e9f2adc3bc187939c87e
|
|
|
|
|
|
|
|
|
|
|
| |
- Read local supported codecs as part of controller boot
up sequence.
- API provided from controller interface to get the
local supported codecs.
CRs-Fixed: 878963
Change-Id: I37a4ab9e6a20ed057ca794dbdd4f99c2a8c65a6e
|
|
|
|
|
|
|
| |
Includes support for BTSnoop logging in memory.
Bug: 18508263
Change-Id: I175da528cbcdc00d40622647d518a74210cfe6fd
|
|
|
|
|
|
|
|
|
| |
Included support for LE data packet extension feature according
to BT 4.2 spec. This patch checks if the controller supports LE
packet extension and provides functions to set the PDU length.
Bug: 20013956
Change-Id: I6a92970fede2f793ad48c9fa2e0247ad00297533
|
|
|
|
|
|
| |
Bug: 19816438
Original author: Chaojing Sun <cjsun@broadcom.com>
Change-Id: I5951f4d4e038f8348a62aa6d19b2111bae0b3ecc
|
|
|
|
| |
Change-Id: I60d87da42fa28dd57d50384396e30504103d1ae5
|
|
|
|
|
|
| |
This fixes include path issues for libbt.
Change-Id: I416f563c0056216e86898d8e9cc111b600c73ce0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hardware error was caused due to a faulty HCI command formed in the
process of vendor specific pre-SCO setup in the stack(set_audio_state)
Fixed the above problem and also added back the vendor (interface)
mapping for the set_audio_state functionality to facilitate the
sending of the pre-SCO vendor specific commands.
Made common vendor library audio setting by moving to hci subsystem.
General cleanup around this functionality.
Bug: 19923226
Change-Id: I4a743f6725459f360bd2a90e0a46f08fcca2292d
|
|
|
|
|
|
| |
This reverts commit 4d8ac4ff015ff87c4e985ac0d9a5f3c2a6b0d9fa.
Change-Id: Ie1433c82014b6ddce78c5363100ab109ae0fecde
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hardware error was caused due to a faulty HCI command formed in the
process of vendor specific pre-SCO setup in the stack(set_audio_state)
Fixed the above problem and also added back the vendor (interface)
mapping for the set_audio_state functionality to facilitate the
sending of the pre-SCO vendor specific commands.
Bug: 19923226
Change-Id: I03c6a1c048c21549b7326a783b70588686283eb3
|
|
|
|
|
|
|
| |
Split events and acl data in hci dispatch, and dispatch events by event code
Future code will now be able to dynamically tie into hci events, instead
of relying on a hard coded routing.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
BLE supported states was moved to controller during the callback
re-factoring CL, but in the commotion I forgot to remove the
supported states variable from devcb.
This meant I didn't realize GAP was looking at the wrong place
for BLE supported states. This CL fixes that.
|
|
|
|
|
|
| |
* Controller bring up on blockable thread now
* Removed some duplicate and commands during controller bring up
* The code to make commands for controller bring up is smaller and better
|
|
|
|
| |
This will allow the controller restart sequence to be serialized into a single function.
|
|
|
|
|
|
| |
Shutdown is managed by the stack manager now, so we don't need to lock
around it. The fetching of the device address is a bit hacky right now,
until it becomes part of its own module.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Moves stack config out of the combined bte_config, and into
its own module.
Makes btsnoop more self sufficient and removes uneccessary
levels of indirection.
Refactor logging slightly into a (temporary) module to disassociate
from the direct calls from config. Eliminates some useless stuff in
the module as well.
|
|
|
|
|
|
|
| |
Moves all HCI initialization into hci_layer. Removes superfluous exposed
functionality on the HCI layer (like turning the chip on/off and logging)
Also reorganizes some of hci_layer to group related functions together.
|
|
|
|
|
|
|
|
| |
- x_interface_t started to get annoyingly verbose, changed to x_t
- buffer_allocator is standalone now, no longer part of bte_main
- new controller_t to handle controller start up and hold controller state
- new hci_packet_factory to make packets, and hci_packet_parser
to read information out of packets.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Begins the refactoring of the HCI related code in BTA, corrects some
hacks in the HCI layer (no more concept of internal commands, yay!),
and corrects the handling of multiple commands pending response in the
HCI layer.
This introduce a horrible hack external to the HCI layer to keep BTU HCI
handling of command complete/status events on the BTU task. That hack
will be removed when BTU moves to a reactor model and we have osi
threads to work with.
|
| |
|
| |
|
| |
|
|
|
|
| |
Unit tested. Needs verification on actual device (i.e. HDP profile).
|
|
|
|
|
|
|
| |
Refactor the HCI layer for better testability.
A future CL will add a HAL implementation for multi channel transport.
Since btsnoop and vendor are modified, it's not easy to incrementally introduce these changes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently a stack restart or device reboot will overwrite existing snoop
logs when the stack restarts. This patch adds a new configuration file
parameter "BtSnoopSaveLog" that, if enabled, will cause an existing
snoop log to be renamed to "<snoop_file_name>.last" before a new snoop
log is created.
This will allow for easier debugging of crashes that involve a reboot or
stack restart.
Change-Id: I4f56204d31a6bf2e96058938e8616eb6dee7360b
|
|
|
|
|
|
|
|
|
|
|
| |
The userial thread MUST be torn down
BEFORE the hci worker thread
as the userial thread passes work to
the hci worker thread.
bug: 16708951
bug: 17008713
Change-Id: Ic744a06b81e7bba5f4d16707a7482a6b9ef437d1
|
|
|
|
|
|
|
|
|
|
| |
primitives.""
Original code broke the build for razor-eng, updated the code to fix break.
This reverts commit dd29f036a8cde94b3c296fb08ee3e9b2d65c15e0.
Change-Id: I2d2f9b5b51b923e3f0e8092b3169ea447193887d
|
|
|
|
|
|
|
|
| |
This change broke the build. Reverting to unblock people waiting for a green build to start working.
This reverts commit 3f9fbe74c1d6e774d3f21275515c7b895715aec5.
Change-Id: I58c3bdcc2f5f3fe744b8d3f80753566cf1d22bd1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of dispatching onto a worker thread by setting bits of a
bitfield and then having the thread pull data from shared data
structures, this code uses the previously defined primitives to
write to a synchronized thread event queue. It's advantageous because
it's more direct dispatch (you specify which function you want to
call on the worker thread instead of mapping bitfields to a function),
it avoids a lot of boilerplate code, function calls have predictable
ordering, and it uses generic infrastructure instead of building a
custom dispatch + synchronized data strucures.
Change-Id: If938e4fd47c8ddf328a29d104151f900ec659588
|
|\
| |
| |
| |
| | |
* commit '66432dcffe211e317d35978283a04a96d5620bdf':
Add WBS support on Bluedroid (2/6)
|
| |
| |
| |
| |
| |
| | |
Bug 13764086
Change-Id: I12bf302f7dd19efb497ad49d4d1d638a7a926049
|
|\|
| |
| |
| |
| |
| |
| | |
arithmetic.
* commit 'f0952b522e3326b79b146e7c3c59fa3b29d59de6':
Add a flexible array to the end of BT_HDR to avoid pointer arithmetic.
|
| |
| |
| |
| |
| |
| |
| | |
This change should clean up a lot of code. I've verified sizeof(BT_HDR)
remains constant after this change on ARM, x86, and x86_64.
Change-Id: I762351fa0f24a587da190de3e522bc74e497c542
|
|\|
| |
| |
| |
| |
| |
| | |
codebase.
* commit '5055c9d0061aaa451de9ee33d6d2d2716f188e0f':
Eliminate HCI flow control. It is not used anywhere in the codebase.
|
| |
| |
| |
| | |
Change-Id: If7244bdcf08023b0a093374950d6a5c1974fbbba
|
|\|
| |
| |
| |
| | |
* commit '75e8f4192e75ded418a7d228959c2ec99a13fa73':
Eliminate unused argument to dealloc.
|
| |
| |
| |
| | |
Change-Id: I9e54a9b9e8e250aa39e4fbfcbe934e7686d74cd4
|
|\|
| |
| |
| |
| | |
* commit 'f3b23f231a39176ea371c4da717e084b3d7cc15a':
Clean up interaction with libbt-vendor library.
|
| |
| |
| |
| |
| |
| |
| |
| | |
1. Fix resource leak: dlclose was never called on libbt-vendor.
2. Eliminate global variable bt_vnd_if.
3. Provide a header file instead of randomly importing functions.
Change-Id: I16d8a6d68324fb44a033705c4f4dbd31ebd52b58
|
|\|
| |
| |
| | |
Change-Id: I547dbf3c212eb5658c43f9822587431a7bcbbac3
|
| |
| |
| |
| | |
Change-Id: Icb1dacb95453effa6d267c084353608dbdc915a3
|
| |
| |
| |
| | |
Change-Id: I6513296a8c606c49a4cadf196d89573948026e4a
|
| |
| |
| |
| | |
Change-Id: Ib8b094196f2de1515f79f17c4b87eb05f4c113dc
|