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

Commit cd7c0217 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Upstream - Avrcp connection failed" am: c8f3a7cf

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1839020

Change-Id: Ie661e767213d6ad8209676c0d2aab5dcc85f43ba
parents 14e605ef c8f3a7cf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -141,6 +141,12 @@ uint16_t AVRC_FindService(uint16_t service_uuid, const RawAddress& bd_addr,
    /* perform service search */
    result =
        SDP_ServiceSearchAttributeRequest(bd_addr, p_db->p_db, avrc_sdp_cback);

    if (!result) {
      AVRC_TRACE_ERROR("%s: Failed to init SDP for peer %s", __func__,
                       bd_addr.ToString().c_str());
      avrc_sdp_cback(SDP_GENERIC_ERROR);
    }
  }

  return (result ? AVRC_SUCCESS : AVRC_FAIL);