diff options
author | Mallikarjuna GB <gbmalli@codeaurora.org> | 2015-05-22 15:14:25 +0530 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-06-05 01:09:26 +0000 |
commit | 0ba8b2303ed8d0f2c0636befe28b89cfe33169de (patch) | |
tree | 20c9bd7fbd6f9b3dd8f0a02d31a7416044e9d18e | |
parent | 7d29482dd040a00be373092a566b0d7c5b4827fb (diff) | |
download | android_system_bt-0ba8b2303ed8d0f2c0636befe28b89cfe33169de.tar.gz android_system_bt-0ba8b2303ed8d0f2c0636befe28b89cfe33169de.tar.bz2 android_system_bt-0ba8b2303ed8d0f2c0636befe28b89cfe33169de.zip |
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
-rw-r--r-- | bta/dm/bta_dm_pm.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |