summaryrefslogtreecommitdiffstats
path: root/device
diff options
context:
space:
mode:
authorSai Aitharaju <saia@codeaurora.org>2015-06-19 09:14:00 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:22:03 -0600
commitaed499437ab3e91f8be017f44dcedd4a2d5dc222 (patch)
tree6914bc0eb90d25c5dd496e705fb7dc94f01c2167 /device
parent08de637744f925731db794f1010e7fc3638ebd29 (diff)
downloadandroid_system_bt-aed499437ab3e91f8be017f44dcedd4a2d5dc222.tar.gz
android_system_bt-aed499437ab3e91f8be017f44dcedd4a2d5dc222.tar.bz2
android_system_bt-aed499437ab3e91f8be017f44dcedd4a2d5dc222.zip
QLogKit: Enable FW Logging and Set Stack Trace Level
- Enables FW Logging during BT On and disables the FW Logging during BT Off in userdebug builds only. - Provides an interface to set trace level for all the stack layers of bluedroid. CRs-Fixed: 866285 Change-Id: Ib12d220e0aa4845d04b05b7fbea079d30c308004
Diffstat (limited to 'device')
-rwxr-xr-xdevice/src/controller.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/device/src/controller.c b/device/src/controller.c
index e90b4132d..da739cd7f 100755
--- a/device/src/controller.c
+++ b/device/src/controller.c
@@ -109,6 +109,12 @@ static future_t *start_up(void) {
packet_parser->parse_generic_command_complete(response);
+ #ifdef QLOGKIT_USERDEBUG
+ /* Enable SOC Logging */
+ UINT8 param[5] = {0x10,0x03,0x00,0x00,0x01};
+ BTM_VendorSpecificCommand(HCI_VS_HOST_LOG_OPCODE,5,param,NULL);
+ #endif
+
// Read the local version info off the controller next, including
// information such as manufacturer and supported HCI version
response = AWAIT_COMMAND(packet_factory->make_read_local_version_info());