summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhakthavatsala Raghavendra <braghave@codeaurora.org>2015-05-08 16:48:30 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-05-16 14:10:14 -0700
commit8828781d50cf2d57fee2673537d533aec057f186 (patch)
tree154142e5e7a31e32364e5d4329e72138e68d6606
parent0deb435afc02f47ff6de3adfdf37ee7d39c698f8 (diff)
downloadandroid_hardware_qcom_bt-8828781d50cf2d57fee2673537d533aec057f186.tar.gz
android_hardware_qcom_bt-8828781d50cf2d57fee2673537d533aec057f186.tar.bz2
android_hardware_qcom_bt-8828781d50cf2d57fee2673537d533aec057f186.zip
Bluetooth: Inform WCNSS_FILTER about command timeouts from SoC
Inform wcnss_filter regarding command timeouts so that wcnss_filter take care of dumping the required logs Change-Id: I127f8fd82f2cdaa13d1589c58b39f16ed27f73ea
-rw-r--r--libbt-vendor/src/bt_vendor_qcom.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libbt-vendor/src/bt_vendor_qcom.c b/libbt-vendor/src/bt_vendor_qcom.c
index 86dd5ce..7789452 100644
--- a/libbt-vendor/src/bt_vendor_qcom.c
+++ b/libbt-vendor/src/bt_vendor_qcom.c
@@ -1026,7 +1026,8 @@ static int op(bt_vendor_opcode_t opcode, void *param)
static void ssr_cleanup(void) {
int pwr_state=BT_VND_PWR_OFF;
-
+ int ret;
+ unsigned char trig_ssr = 0xEE;
ALOGI("ssr_cleanup");
if ((btSocType = get_bt_soc_type()) < 0) {
@@ -1036,6 +1037,11 @@ static void ssr_cleanup(void) {
if (btSocType == BT_SOC_ROME) {
#ifdef BT_SOC_TYPE_ROME
+ //Indicate to filter by sending
+ //special byte
+ trig_ssr = 0xEE;
+ ret = write (vnd_userial.fd, &trig_ssr, 1);
+ ALOGI("Trig_ssr is being sent to BT socket, retval(%d) :errno: %s", ret, strerror(errno));
/*Close both ANT channel*/
op(BT_VND_OP_ANT_USERIAL_CLOSE, NULL);
#endif