From 2409c30542ccd73a612c215c8ab584b1736bcc52 Mon Sep 17 00:00:00 2001 From: Kausik Sinnaswamy Date: Wed, 21 Mar 2012 13:33:29 +0530 Subject: Disabled the 1-sec timer during BT disable that was slowing the BT-off time even when no ACL connections were present Change-Id: Ib37c43d3cbc484d3f2973478ff2b1eee51de5150 --- bta/dm/bta_dm_act.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bta') diff --git a/bta/dm/bta_dm_act.c b/bta/dm/bta_dm_act.c index 3b3f93b..3c93f23 100755 --- a/bta/dm/bta_dm_act.c +++ b/bta/dm/bta_dm_act.c @@ -424,8 +424,9 @@ void bta_dm_disable (tBTA_DM_MSG *p_data) if(BTM_GetNumAclLinks()==0) { - bta_dm_cb.disable_timer.p_cback = (TIMER_CBACK*)&bta_dm_disable_conn_down_timer_cback; - bta_sys_start_timer(&bta_dm_cb.disable_timer, 0, 1000); + /* Earlier there used to be a 1-second timer to fire this callback. + * Doesn't look like it is needed. */ + bta_dm_disable_conn_down_timer_cback(NULL); } else { -- cgit v1.1