History log of /system/bt/hci/src/hci_inject.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5fe6f0cf6b223e3ed6be4912d55b3ed5b41ce0cd 06-Feb-2016 Pavlin Radoslavov <pavlin@google.com> Removed checks for NULL returns after osi_calloc() / osi_malloc()

Removed explicit checks for NULL pointer returns after calls
to osi_calloc() and osi_malloc(), because those are not needed.
If the memory allocation fails, osi_calloc() and osi_malloc()
will trigger an assert.

Bug: 27048759
Change-Id: I2791eb2f69c08f991f8fcdef10e101a41568cd95
/system/bt/hci/src/hci_inject.c
f4b8b3d928b0df4758931ec2b5468fd410e78cf6 26-Sep-2015 Pavlin Radoslavov <pavlin@google.com> am 87b4155f: am 4cac544d: Disable opening network debug ports for security reasons

* commit '87b4155fb173f93d29f281503a93ce019d2d0ea8':
Disable opening network debug ports for security reasons
4cac544da367d7458129631ddef6db4e3312cef7 24-Sep-2015 Pavlin Radoslavov <pavlin@google.com> Disable opening network debug ports for security reasons

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
/system/bt/hci/src/hci_inject.c
7c246f154a4815859c0179d40eac60a6ddd1f074 07-Aug-2015 Marie Janssen <jamuraa@google.com> resolved conflicts for merge of 49a86709 to mnc-dev-plus-aosp

Change-Id: Icda76201e6bb770d6a18d6fb215d28487813277e
49a86709488e5cfd5e23759da18bf9613e15b04d 08-Jul-2015 Marie Janssen <jamuraa@google.com> build: LOG_TAG consistency, include order, build fixes

Fix the order of includes across a bunch of files, and declare LOG_TAG
at the top of every file in which it is used.

Consistently use bt_ as a LOG_TAG prefix.
Fix issues with LOG macro usage.
Remove unused includes and double-includes (when in related .h)

Add includes as necessary to compile cleanly (problems surfaced by
reordering includes)

Change-Id: Ic55520c8302b06bbc1942c10c448b20844669da6
/system/bt/hci/src/hci_inject.c
4cfd343009088ac0218799b43c44f5ca3ee30911 08-Jul-2015 Marie Janssen <jamuraa@google.com> am 49120dc8: build: Fix LOG_TAG define breakage, macro usage

* commit '49120dc867c7818511b5afec461dfc97d17eef58':
build: Fix LOG_TAG define breakage, macro usage
49120dc867c7818511b5afec461dfc97d17eef58 08-Jul-2015 Marie Janssen <jamuraa@google.com> build: Fix LOG_TAG define breakage, macro usage

Fixes build breakages related to r.android.com/156982

Change-Id: Ib1143c41fe05a17c296226998afdb41a8cb6294a
/system/bt/hci/src/hci_inject.c
f24432f71c476c7688569032a6016d265e629f40 07-Jul-2015 Marie Janssen <jamuraa@google.com> am db554581: build: Update osi log functions, use consistently

* commit 'db554581079863974af8e1289646f5deea6fc044':
build: Update osi log functions, use consistently
db554581079863974af8e1289646f5deea6fc044 26-Jun-2015 Marie Janssen <jamuraa@google.com> build: Update osi log functions, use consistently

Update the LOG_* functions to take a tag argument which makes them more
consistent with the Android Log.*(TAG, s) common syntax and removes
some #define-dependency with osi/include/log.h.

Also update to never use Android log functions directly.

Also contains minor cleanup of some header includes.

Bug: 21569831
Change-Id: If07385cafbea062232ecdbc7c673f908d5ef8921
/system/bt/hci/src/hci_inject.c
6efc8233c745717562aa6d21bb395494d5d10a01 04-Jun-2015 Mudumba Ananth <ananthm@broadcom.com> Fix insufficient buffer size allocation in hci_inject

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
/system/bt/hci/src/hci_inject.c
3e59b5b6f2ce1295e3e2711afcd2cdf0dd7e22b6 01-Apr-2015 Etan Cohen <etancohen@google.com> Fix build issues in bluedroid on master

Change-Id: I0d3e93ea61dd03505fe9db902ed90bdd4141cab2
/system/bt/hci/src/hci_inject.c
0f9b91e150e153229235c163861198e23600e636 12-Mar-2015 Sharvil Nanavati <sharvil@google.com> Use fully qualified path for OSI includes.
/system/bt/hci/src/hci_inject.c
44802768c447ab480d4227b3a852a97d923b816d 24-Dec-2014 Sharvil Nanavati <sharvil@google.com> Add platform-independent logging macros to OSI.

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.
/system/bt/hci/src/hci_inject.c
bf8193bc81cc077e3acd245cacbe8e3789c4b9ff 08-Sep-2014 Zach Johnson <zachoverflow@google.com> HCI layer cleanup

- 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.
/system/bt/hci/src/hci_inject.c
1e0ede7f5522a853fc39d4f183e508ed38f01636 28-Aug-2014 Zach Johnson <zachoverflow@google.com> Move HCI over to the osi allocators, and fix the tests accordingly
/system/bt/hci/src/hci_inject.c
fbbd42b1fc1aae7a106f46275ab1fd86452cce78 16-Aug-2014 Zach Johnson <zachoverflow@google.com> Refactor HCI layer

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.
/system/bt/hci/src/hci_inject.c
fbf89085bf308a98b00da77d1538539f6dd58604 13-Aug-2014 Sharvil Nanavati <sharvil@google.com> Switch to an epoll-based reactor implementation.

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.
/system/bt/hci/src/hci_inject.c
ed7095be083ffe47f8b9d0d3090b0f2e109b8125 05-Aug-2014 Zach Johnson <zachoverflow@google.com> Fix socket to use safe reactor registration
/system/bt/hci/src/hci_inject.c
09f31c121df79afe045163e0142dec5c09caa072 26-Jul-2014 Sharvil Nanavati <sharvil@google.com> Add a mechanism for debug tools to inject HCI commands into the HCI stream.
/system/bt/hci/src/hci_inject.c