summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManu Viswanadhan <manuv@codeaurora.org>2016-11-15 17:04:37 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-15 04:09:21 -0800
commitcb1c4248b16e5efcc6d7d316636be77d5a5c9b2c (patch)
treece3b97f787271c6774ed0a3f444451295217c9fe
parente5a8533c3659bef32fd25636110eeb1c5b4443f1 (diff)
downloadbt-cb1c4248b16e5efcc6d7d316636be77d5a5c9b2c.tar.gz
BT: Modify implementation for command timeout crashdump collection
Wait for crashdump collection in all valid scenarios, even when the property is not set by the user. CRs-Fixed: 1090097 Change-Id: Ieb0efe98cfa5efdcd3f5c0d62795bc987c13082d
-rw-r--r--libbt-vendor/Android.mk1
-rw-r--r--libbt-vendor/src/bt_vendor_qcom.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/libbt-vendor/Android.mk b/libbt-vendor/Android.mk
index 3b1ac18..1867883 100644
--- a/libbt-vendor/Android.mk
+++ b/libbt-vendor/Android.mk
@@ -35,6 +35,7 @@ LOCAL_CFLAGS := -DFM_OVER_UART
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
LOCAL_CFLAGS += -DPANIC_ON_SOC_CRASH
+LOCAL_CFLAGS += -DENABLE_DBG_FLAGS
endif
LOCAL_C_INCLUDES += \
diff --git a/libbt-vendor/src/bt_vendor_qcom.c b/libbt-vendor/src/bt_vendor_qcom.c
index d58df78..2d4d689 100644
--- a/libbt-vendor/src/bt_vendor_qcom.c
+++ b/libbt-vendor/src/bt_vendor_qcom.c
@@ -1438,6 +1438,9 @@ static bool is_debug_force_special_bytes() {
int ret = 0;
char value[PROPERTY_VALUE_MAX] = {'\0'};
bool enabled = false;
+#ifdef ENABLE_DBG_FLAGS
+ enabled = true;
+#endif
ret = property_get("wc_transport.force_special_byte", value, NULL);