summaryrefslogtreecommitdiffstats
path: root/hci/include
Commit message (Collapse)AuthorAgeFilesLines
* Bluetooth: Add support to send h/w error eventSrinu Jella2015-10-061-0/+6
| | | | | | | | | | | - 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
* Bluetooth: Add parameter to indicate reason for ssr_cleanuppramod kotreshappa2015-10-063-3/+3
| | | | | | Add parameter to distinguish the reason for ssr_cleanup. Change-Id: If8dbc8bbeef430c7cea3d8c300285c9aef1222ec
* Bluetooth: Read BLE vendor capability to proceed on Secure connSrinu Jella2015-10-062-0/+5
| | | | | | | | | | | - 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
* Bluetooth: Enable SSR.Kiran Kelageri2015-10-063-0/+15
| | | | | | Enabling SSR feature. Change-Id: I26eab5b3a10ac7823ff5e9f2adc3bc187939c87e
* Bluetooth: Read local supported codecs part of boot sequenceSrinu Jella2015-10-062-0/+6
| | | | | | | | | | | - 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
* Bluetooth native dumpsys logging support (2/5)Andre Eisenbach2015-05-111-0/+36
| | | | | | | Includes support for BTSnoop logging in memory. Bug: 18508263 Change-Id: I175da528cbcdc00d40622647d518a74210cfe6fd
* LE Data Packet Extension supportPriti Aghera2015-04-152-0/+5
| | | | | | | | | 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
* LE Privacy 1.2 and LE secure connectionsSatya Calloji2015-04-132-0/+8
| | | | | | Bug: 19816438 Original author: Chaojing Sun <cjsun@broadcom.com> Change-Id: I5951f4d4e038f8348a62aa6d19b2111bae0b3ecc
* Remove unused file hci/include/bt_hci_lib.hChris Manton2015-03-262-207/+0
| | | | Change-Id: I60d87da42fa28dd57d50384396e30504103d1ae5
* Move unused include file out of hci_audio.hAndre Eisenbach2015-03-261-2/+0
| | | | | | This fixes include path issues for libbt. Change-Id: I416f563c0056216e86898d8e9cc111b600c73ce0
* Resolved hardware error observed during SCO Connection setupMudumba Ananth2015-03-264-15/+42
| | | | | | | | | | | | | | | | 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
* Revert "Resolved hardware error observed during SCO Connection setup"Chris Manton2015-03-251-2/+1
| | | | | | This reverts commit 4d8ac4ff015ff87c4e985ac0d9a5f3c2a6b0d9fa. Change-Id: Ie1433c82014b6ddce78c5363100ab109ae0fecde
* Resolved hardware error observed during SCO Connection setupMudumba Ananth2015-03-251-1/+2
| | | | | | | | | | | | 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
* Rejig hci upwards dispatchZach Johnson2015-03-161-2/+6
| | | | | | | 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.
* Update module names to not use C preprocessor and to be at top of headers.Sharvil Nanavati2015-03-162-3/+5
|
* Move controller module to device directoryChris Manton2015-03-161-74/+0
|
* Fix BLE GAP handling after callback refactoringZach Johnson2015-03-161-0/+1
| | | | | | | | | 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.
* Refactor btm_devctl reset sequenceZach Johnson2015-03-164-18/+117
| | | | | | * 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
* Add a futured version of the HCI transmit_commandZach Johnson2015-03-161-0/+3
| | | | This will allow the controller restart sequence to be serialized into a single function.
* Modulizification of the HCI layerZach Johnson2015-03-162-21/+2
| | | | | | 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.
* Refactor btsnoop and stack config into modulesZach Johnson2015-03-161-6/+5
| | | | | | | | | | | | 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.
* Refactor bte_main into more of a shell.Zach Johnson2015-03-162-18/+10
| | | | | | | 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.
* HCI layer cleanupZach Johnson2015-03-1611-63/+186
| | | | | | | | - 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.
* Sink all HCI transmission management into the HCI layerZach Johnson2015-03-163-10/+21
| | | | | | | | | | | | 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.
* Rename init/cleanup to start_up/shut_down in the HCI layerZach Johnson2015-03-161-3/+3
|
* Move HCI over to the osi allocators, and fix the tests accordinglyZach Johnson2015-03-161-0/+3
|
* Modify eager reader to support multi-byte readsZach Johnson2015-03-161-4/+3
|
* Implement an HCI HAL for MCTZach Johnson2015-03-161-2/+7
| | | | Unit tested. Needs verification on actual device (i.e. HDP profile).
* Refactor HCI layerZach Johnson2015-03-1610-297/+428
| | | | | | | 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.
* Add a mechanism for debug tools to inject HCI commands into the HCI stream.Sharvil Nanavati2015-03-161-0/+28
|
* Add ability to preserve existing snoop logAndre Eisenbach2014-09-172-2/+3
| | | | | | | | | | | | | 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
* Eliminate userial thread race conditionChris Manton2014-08-151-0/+1
| | | | | | | | | | | 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
* Revert "Revert "Clean up messy dispatch in bt_hci_bdroid by using new ↵Sharvil Nanavati2014-07-172-51/+26
| | | | | | | | | | primitives."" Original code broke the build for razor-eng, updated the code to fix break. This reverts commit dd29f036a8cde94b3c296fb08ee3e9b2d65c15e0. Change-Id: I2d2f9b5b51b923e3f0e8092b3169ea447193887d
* Revert "Clean up messy dispatch in bt_hci_bdroid by using new primitives."Svetoslav Ganov2014-07-172-13/+47
| | | | | | | | This change broke the build. Reverting to unblock people waiting for a green build to start working. This reverts commit 3f9fbe74c1d6e774d3f21275515c7b895715aec5. Change-Id: I58c3bdcc2f5f3fe744b8d3f80753566cf1d22bd1
* Clean up messy dispatch in bt_hci_bdroid by using new primitives.Sharvil Nanavati2014-07-162-47/+13
| | | | | | | | | | | | | | 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
* am 66432dcf: Add WBS support on Bluedroid (2/6)Matthew Xie2014-06-303-0/+40
|\ | | | | | | | | * commit '66432dcffe211e317d35978283a04a96d5620bdf': Add WBS support on Bluedroid (2/6)
| * Add WBS support on Bluedroid (2/6)Matthew Xie2014-06-303-0/+40
| | | | | | | | | | | | Bug 13764086 Change-Id: I12bf302f7dd19efb497ad49d4d1d638a7a926049
* | am f0952b52: Add a flexible array to the end of BT_HDR to avoid pointer ↵Sharvil Nanavati2014-06-291-0/+1
|\| | | | | | | | | | | | | arithmetic. * commit 'f0952b522e3326b79b146e7c3c59fa3b29d59de6': Add a flexible array to the end of BT_HDR to avoid pointer arithmetic.
| * Add a flexible array to the end of BT_HDR to avoid pointer arithmetic.Sharvil Nanavati2014-06-291-0/+1
| | | | | | | | | | | | | | 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
* | am 5055c9d0: Eliminate HCI flow control. It is not used anywhere in the ↵Sharvil Nanavati2014-06-292-11/+0
|\| | | | | | | | | | | | | codebase. * commit '5055c9d0061aaa451de9ee33d6d2d2716f188e0f': Eliminate HCI flow control. It is not used anywhere in the codebase.
| * Eliminate HCI flow control. It is not used anywhere in the codebase.Sharvil Nanavati2014-06-292-11/+0
| | | | | | | | Change-Id: If7244bdcf08023b0a093374950d6a5c1974fbbba
* | am 75e8f419: Eliminate unused argument to dealloc.Sharvil Nanavati2014-06-291-1/+1
|\| | | | | | | | | * commit '75e8f4192e75ded418a7d228959c2ec99a13fa73': Eliminate unused argument to dealloc.
| * Eliminate unused argument to dealloc.Sharvil Nanavati2014-06-291-1/+1
| | | | | | | | Change-Id: I9e54a9b9e8e250aa39e4fbfcbe934e7686d74cd4
* | am f3b23f23: Clean up interaction with libbt-vendor library.Sharvil Nanavati2014-06-281-0/+35
|\| | | | | | | | | * commit 'f3b23f231a39176ea371c4da717e084b3d7cc15a': Clean up interaction with libbt-vendor library.
| * Clean up interaction with libbt-vendor library.Sharvil Nanavati2014-06-191-0/+35
| | | | | | | | | | | | | | | | 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
* | resolved conflicts for merge of a7d7eb78 to masterSharvil Nanavati2014-06-282-9/+8
|\| | | | | | | Change-Id: I547dbf3c212eb5658c43f9822587431a7bcbbac3
| * Clean up btsnoop code.Sharvil Nanavati2014-06-192-9/+8
| | | | | | | | Change-Id: Icb1dacb95453effa6d267c084353608dbdc915a3
| * Clean up the public functions in userial.c.Sharvil Nanavati2014-05-081-62/+24
| | | | | | | | Change-Id: I6513296a8c606c49a4cadf196d89573948026e4a
| * Minor cleanup of userial code.Sharvil Nanavati2014-05-081-53/+28
| | | | | | | | Change-Id: Ib8b094196f2de1515f79f17c4b87eb05f4c113dc
* | Clean up the public functions in userial.c.Sharvil Nanavati2014-06-121-62/+24
| | | | | | | | Change-Id: I6513296a8c606c49a4cadf196d89573948026e4a