Loading system/bta/dm/bta_dm_act.c +5 −2 Original line number Diff line number Diff line Loading @@ -3511,7 +3511,6 @@ static void bta_dm_disable_conn_down_timer_cback (TIMER_LIST_ENT *p_tle) *******************************************************************************/ static void bta_dm_rm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, BD_ADDR peer_addr) { UINT8 j; tBTA_PREF_ROLES role; tBTA_DM_PEER_DEVICE *p_dev; Loading Loading @@ -3565,6 +3564,10 @@ static void bta_dm_rm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, APPL_TRACE_WARNING("bta_dm_rm_cback:%d, status:%d", bta_dm_cb.cur_av_count, status); } /* Don't adjust roles for each busy/idle state transition to avoid excessive switch requests when individual profile busy/idle status changes */ if ((status != BTA_SYS_CONN_BUSY) && (status != BTA_SYS_CONN_IDLE)) bta_dm_adjust_roles(FALSE); } Loading Loading
system/bta/dm/bta_dm_act.c +5 −2 Original line number Diff line number Diff line Loading @@ -3511,7 +3511,6 @@ static void bta_dm_disable_conn_down_timer_cback (TIMER_LIST_ENT *p_tle) *******************************************************************************/ static void bta_dm_rm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, BD_ADDR peer_addr) { UINT8 j; tBTA_PREF_ROLES role; tBTA_DM_PEER_DEVICE *p_dev; Loading Loading @@ -3565,6 +3564,10 @@ static void bta_dm_rm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, APPL_TRACE_WARNING("bta_dm_rm_cback:%d, status:%d", bta_dm_cb.cur_av_count, status); } /* Don't adjust roles for each busy/idle state transition to avoid excessive switch requests when individual profile busy/idle status changes */ if ((status != BTA_SYS_CONN_BUSY) && (status != BTA_SYS_CONN_IDLE)) bta_dm_adjust_roles(FALSE); } Loading