From 0ba8b2303ed8d0f2c0636befe28b89cfe33169de Mon Sep 17 00:00:00 2001 From: Mallikarjuna GB Date: Fri, 22 May 2015 15:14:25 +0530 Subject: [PATCH] Don't stop sniff timer before checking for service ID entry - Avoid stopping sniff timer before checking for service ID entry for which bta_sys_conn_close is called since if entry is not present we return without re-starting timer and ACL doesn't go into sniff. Change-Id: I063da8e58e067ade5d646debf086bb443066106c --- bta/dm/bta_dm_pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bta/dm/bta_dm_pm.c b/bta/dm/bta_dm_pm.c index 42ed92f36..43c9a5acc 100644 --- a/bta/dm/bta_dm_pm.c +++ b/bta/dm/bta_dm_pm.c @@ -179,7 +179,6 @@ static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, if(i> p_bta_dm_pm_cfg[0].app_id) return; - bta_dm_pm_stop_timer(peer_addr); /*p_dev = bta_dm_find_peer_device(peer_addr);*/ #if (BTM_SSR_INCLUDED == TRUE) @@ -256,6 +255,9 @@ static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, bta_dm_conn_srvcs.conn_srvc[j].state = status; } + /* stop timer */ + bta_dm_pm_stop_timer(peer_addr); + if(p_dev) { p_dev->pm_mode_attempted = 0; -- 2.11.0