History log of /system/bt/stack/hcic/hcicmds.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
01658a74147f64f85a38f75a8f7b557996571636 23-Feb-2016 Jakub Pawlowski <jpawlowski@google.com> Get rid of counter

This patch removes counter. We were never using those values,
except for increasing them.

Bug: 27324326
Change-Id: I3122a36fa0435a36a8401792267cb5ebff5ab269
/system/bt/stack/hcic/hcicmds.c
c980130963c4528655c27b7caa2d030181020fc1 17-Feb-2016 Pavlin Radoslavov <pavlin@google.com> Replace usage of HCI_GET_CMD_BUF() with osi_malloc()

* Remove HCI_GET_CMD_BUF() wrapper macro, and replace it with
its default implementation: (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE)

* Remove explicit checks for NULL when HCI_GET_CMD_BUF() was used.

[Cherry-picked from AOSP/master]

Bug: 27048759
Change-Id: I7c71b408f40d58f6ebf3a310aa806daba3342f77
/system/bt/stack/hcic/hcicmds.c
a11035b5ecbc6cbd9da5bd707683504c47e2744e 28-Sep-2015 Pavlin Radoslavov <pavlin@google.com> GKI cleanup - moved GKI buffer allocation wrappers to OSI

* Moved the following GKI buffer allocation functions to OSI:
- GKI_getbuf() -> osi_getbuf()
- GKI_freebuf() -> osi_freebuf()
- GKI_get_buf_size() -> osi_get_buf_size()

For now we need the osi_getbuf() / osi_freebuf() allocation wrapper,
because we need to be able to call osi_get_buf_size() on the allocated
buffer.
In the future those should be replaced with osi_malloc() / osi_free().
Currently, the osi_malloc() buffer size internal allocation tracker
does not always track the size, hence we need the osi_getbuf() wrapper.

* Replaced GKI_MAX_BUF_SIZE with BT_DEFAULT_BUFFER_SIZE

* Added new file include/bt_common.h that can be usee to include
few files that should be included alost everywhere (e.g. bt_target.h"
NOTE: This file might be removed in the future and we should include
everywhere the right set of header files.

* Removed some of the GKI-related references

* Removed file include/gki_target.h

Change-Id: Ie87830e73143de200746d54235aa99f228a95024
/system/bt/stack/hcic/hcicmds.c
03566c28a5b0d9be32cc3ad0faab1032f1fe1c26 23-Sep-2015 Pavlin Radoslavov <pavlin@google.com> GKI cleanup - Remove GKI pool related defines

* Removed pool ID related defines
* Updated / renamed / cleanup buffer size related defines
* Added new #define BT_DEFAULT_BUFFER_SIZE
* Removed unused defines

Change-Id: Ib1fbf463d1e6fda2c71631347de0c365a37ba5ce
/system/bt/stack/hcic/hcicmds.c
899b77140675a157dba034e98527ab546bc9ac35 30-Jan-2015 Mudumba Ananth <ananthm@broadcom.com> BR/EDR secure connections support

As a part of BT 4.1 stack upgrade, added host support for BR/EDR
secure connections to be able to interact with controllers that
support secure connections and upgrade the SSP mechanism to use
secure connection rules.

This change checks for controller support in the extended_features
(LMP page 2) and then declares the host support (extended_features
LMP page 1) using WRITE SECURE CONNECTIONS HOST SUPPORT.
If both the sides support secure connections, the simple pairing
process utilizes the link key generated using P-256 elliptic curve
(in the controller) and both the sides will be
in a secure connection.

Bug: 19289699
Change-Id: Idb3c41f439973bea137f5a4a69468c1f55aecbd7
/system/bt/stack/hcic/hcicmds.c
95b74f252f534ec757aab1fc08e086e02b2cfe8d 12-Mar-2015 Sharvil Nanavati <sharvil@google.com> Use fully qualified path for btcore includes.
/system/bt/stack/hcic/hcicmds.c
de35e095aa0a97ec4687aebec188205d41444a3e 07-Jan-2015 Zach Johnson <zachoverflow@google.com> Remove unused read link policy + friends

Was never called, and the removal of which obviated
a lot of other code.
/system/bt/stack/hcic/hcicmds.c
e53504e10abe3079c39a8a865dfb5c293ca23c01 27-Dec-2014 Zach Johnson <zachoverflow@google.com> Clean up unused functions in btm_sec
/system/bt/stack/hcic/hcicmds.c
6a8c80eae89a4ba9d842ae68798081df725e787c 01-Nov-2014 Zach Johnson <zachoverflow@google.com> Remove unused link key functions from devctl

The security manager looks for the link key notification event,
so it doesn't use these read/write link key functions at all.
/system/bt/stack/hcic/hcicmds.c
2a1f4e2121f7ffd9bbbd868c4bd5307356adb054 31-Oct-2014 Zach Johnson <zachoverflow@google.com> Remove the afh functions from btm_devctl

The callers were removed in a previous CL, so these
are no longer necessary.
/system/bt/stack/hcic/hcicmds.c
de4214b946f5b7ff35b55c90e1437c9a17449849 31-Oct-2014 Zach Johnson <zachoverflow@google.com> Remove some functionredefinitions from bta dm

These weren't used. And were another layer of indirection
for things that already existed. One reason for the initial
implementation is that they would ensure the actual calls
happen in a known thread.
/system/bt/stack/hcic/hcicmds.c
1e61ce1ae3fe8ef72443b30907f1cf8acae39674 24-Oct-2014 Chris Manton <cmanton@google.com> Remove always true definition BTM_EIR_SERVER_INCLUDED
/system/bt/stack/hcic/hcicmds.c
cccf02fadb2dd4dceb22f2d58ed5840b0ef1860e 21-Oct-2014 Chris Manton <cmanton@google.com> Instrument data flow a bit

Use counters to grab some select data metrics.
/system/bt/stack/hcic/hcicmds.c
e7faae66ddb7c4fc318c5e4986f820c92a787307 28-Oct-2014 Zach Johnson <zachoverflow@google.com> Remove unused function BTM_ChangeLinkKey & friends

Not used in the codebase. Removed it along with
all its related code.

According to the spec the change link key event is only
sent in response to the change link key command, so
it should be completely safe to remove that logic.
/system/bt/stack/hcic/hcicmds.c
a952e80711c1d87c9e30a0e5c76a22b0aab7ed7f 18-Oct-2014 Zach Johnson <zachoverflow@google.com> Remove a bunch of unused functions and definitions from HCIC

Left the BLE stuff alone for now.
/system/bt/stack/hcic/hcicmds.c
8fc656cc6aef76574f55c334f0dd71d62b23e896 18-Oct-2014 Zach Johnson <zachoverflow@google.com> Remove unused macros LMP_TEST and BTISE
/system/bt/stack/hcic/hcicmds.c
30e58068c1adaac7c5ccb3aa9cfb045d41d2a10e 27-Sep-2014 Zach Johnson <zachoverflow@google.com> Refactor btm_devctl reset sequence

* 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
/system/bt/stack/hcic/hcicmds.c
f857d64505d81ce0834de150b79b333a4ff445f2 26-Sep-2014 Chris Manton <cmanton@google.com> Remove HCI access macros

And some other minor bt_target cleanup.
/system/bt/stack/hcic/hcicmds.c
e14a66a5fd4f05817dc7716ca9087678dd220eda 10-Feb-2014 Sharvil Nanavati <sharvil@google.com> Don't leak process-private data on Change Local Name command.

The Change Local Name command to the controller doesn't zero out
the contents of the command buffer before setting the contents. As
a result, the controller sees both the new device name and then
random data left over on the heap from previous operations. This
random data may contain sensitive information. Although the device
name is null-terminated, a controller may inadvertently leak the
additional information over the network.

This change fixes the behaviour by zeroing out the entire command
buffer before copying the device name into it. If the device name
doesn't occupy the entire buffer, the rest of it will be zero.

http://b/12949068

Change-Id: I4dd6ce6dd6709589fcd1e23f974db820820bc8e1
/system/bt/stack/hcic/hcicmds.c
ead3cde4bac0c3e32cd31f149093f004eef8ceeb 06-Feb-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Initial version of BLE support for Bluedroid

Change-Id: I9825a5cef9be2559c34c2a529b211b7d471147cf
/system/bt/stack/hcic/hcicmds.c
5738f83aeb59361a0a2eda2460113f6dc9194271 13-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879baf

Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d
/system/bt/stack/hcic/hcicmds.c