From aed499437ab3e91f8be017f44dcedd4a2d5dc222 Mon Sep 17 00:00:00 2001 From: Sai Aitharaju Date: Fri, 19 Jun 2015 09:14:00 +0530 Subject: 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 --- device/src/controller.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'device') 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()); -- cgit v1.2.3