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

Commit 6b2b25d8 authored by wescande's avatar wescande
Browse files

Upstream - Avrcp connection failed

AVRCP connection will be block forever after first failure
because service_uuid of avrcp_cb is not clear.

Bug: 201438582
Fix: 201438582
Test: Build and manual testing
Tag: #stability
Change-Id: I4472eb8bf6d2306b0ee485d6e9397396c461ec77
parent 024ee7b5
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);