diff options
author | Kausik Sinnaswamy <kausik@broadcom.com> | 2012-03-21 13:33:29 +0530 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-14 11:19:13 -0700 |
commit | 2409c30542ccd73a612c215c8ab584b1736bcc52 (patch) | |
tree | 40a99f7ffe537ba63d900e08122fb62dfca495a9 /bta | |
parent | 7f88788bf1b416370812113febc10484f90c1aab (diff) | |
download | external_bluetooth_bluedroid-2409c30542ccd73a612c215c8ab584b1736bcc52.zip external_bluetooth_bluedroid-2409c30542ccd73a612c215c8ab584b1736bcc52.tar.gz external_bluetooth_bluedroid-2409c30542ccd73a612c215c8ab584b1736bcc52.tar.bz2 |
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
Diffstat (limited to 'bta')
-rwxr-xr-x | bta/dm/bta_dm_act.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 { |