From 0604d2d72ff493bfe710f95c20f6a3bbc2a2cb38 Mon Sep 17 00:00:00 2001 From: YK Jeffrey Chao Date: Wed, 18 Jul 2012 14:57:38 -0700 Subject: Fix for BT-OFF hung issue seen in BT on/off instrumentation test. From time to time, we had seen some GKI_exception error messages showing up in adb log during turning BT off. Those were triggered by a HCI event which arrived after BTU task had been terminated. The early termination of BTU task had also become a contributing factor to the BT-OFF hung issue. Revise the termination sequence between BTU and HCI/Vendor tasks to address the issues. Change-Id: I094104943275b3b1fb95aef514936e28394615eb --- main/bte_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main') diff --git a/main/bte_main.c b/main/bte_main.c index 4f63d42..6cf7dfe 100755 --- a/main/bte_main.c +++ b/main/bte_main.c @@ -251,15 +251,15 @@ void bte_main_disable(void) { APPL_TRACE_DEBUG1("%s", __FUNCTION__); - GKI_destroy_task(BTU_TASK); - - GKI_freeze(); - if (bt_hc_if) { bt_hc_if->cleanup(); bt_hc_if->set_power(BT_HC_CHIP_PWR_OFF); } + + GKI_destroy_task(BTU_TASK); + + GKI_freeze(); } /****************************************************************************** -- cgit v1.1