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

Commit 757d9ae0 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "A2DP: Don't wait for role switch on a blacklisted device" into qt-r1-dev

am: af28427f

Change-Id: Ifaeaf5ea9f1d766bfe3e918b4d6c623b696b6626
parents a62b6324 af28427f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1108,10 +1108,12 @@ bool bta_av_link_role_ok(tBTA_AV_SCB* p_scb, uint8_t bits) {
                  "%s: peer %s BTM_SwitchRole(BTM_ROLE_MASTER) error: %d",
                  __func__, p_scb->PeerAddress().ToString().c_str(), status);
      }
      if (status != BTM_DEV_BLACKLISTED) {
        is_ok = false;
        p_scb->wait |= BTA_AV_WAIT_ROLE_SW_RES_START;
      }
    }
  }

  return is_ok;
}