Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 050e6638 authored by Mattias Agren's avatar Mattias Agren Committed by android-build-merger
Browse files

Reduce persistence on aquiring master role

am: 06cb9582

* commit '06cb9582':
  Reduce persistence on aquiring master role
parents 4b26ca55 06cb9582
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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;
@@ -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);
}