summaryrefslogtreecommitdiffstats
path: root/hci/src/hci_inject.c
Commit message (Collapse)AuthorAgeFilesLines
* Disable opening network debug ports for security reasonsPavlin Radoslavov2015-09-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | 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
* Fix insufficient buffer size allocation in hci_injectMudumba Ananth2015-06-151-1/+1
| | | | | | | | A bug in the hci_inject when requesting a buffer to carry the injected HCI packet. The allocated size should include the BT_HDR header size. Change-Id: Ic1fd41264249103140ce50dff843a99a6bd7dbd8
* Fix build issues in bluedroid on masterEtan Cohen2015-03-311-0/+1
| | | | Change-Id: I0d3e93ea61dd03505fe9db902ed90bdd4141cab2
* Use fully qualified path for OSI includes.Sharvil Nanavati2015-03-161-5/+5
|
* Add platform-independent logging macros to OSI.Sharvil Nanavati2015-03-161-5/+5
| | | | | | These macros should replace ALOG* and the various trace macros used throughout bluedroid. This change eliminates all uses of the ALOG* macros in favor of the new ones.
* HCI layer cleanupZach Johnson2015-03-161-9/+9
| | | | | | | | - 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.
* Move HCI over to the osi allocators, and fix the tests accordinglyZach Johnson2015-03-161-1/+3
|
* Refactor HCI layerZach Johnson2015-03-161-8/+21
| | | | | | | 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.
* Switch to an epoll-based reactor implementation.Sharvil Nanavati2015-03-161-7/+7
| | | | | | | | epoll is a much nicer interface that very closely matches the reactor interface. It's also thread-safe which makes it a more suitable choice for bluedroid. As a result of this change, reactor_register and reactor_unregister are both thread-safe without introducing any synchronization in user-space.
* Fix socket to use safe reactor registrationZach Johnson2015-03-161-2/+2
|
* Add a mechanism for debug tools to inject HCI commands into the HCI stream.Sharvil Nanavati2015-03-161-0/+189