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

Commit 561dd57b authored by Srinu Jella's avatar Srinu Jella Committed by android-build-merger
Browse files

Merge "Added SPP version 1.2 to SDP record."

am: 73d0f6e6

Change-Id: I5749099e436a0343080f30bb66d120ed7a74cc94
parents fea34925 73d0f6e6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -88,6 +88,8 @@ static const tBTA_OP_FMT bta_ops_obj_fmt[OBEX_PUSH_NUM_FORMATS] = {

#define UUID_MAX_LENGTH 16

#define SPP_PROFILE_VERSION 0x0102

// Adds a protocol list and service name (if provided) to an SDP record given by
// |sdp_handle|, and marks it as browseable. This is a shortcut for defining a
// set of protocols that includes L2CAP, RFCOMM, and optionally OBEX. If
@@ -356,6 +358,11 @@ static int add_spp_sdp(const char* name, const int channel) {
  stage = "service_class";
  if (!SDP_AddServiceClassIdList(handle, 1, &service)) goto error;

  stage = "profile_descriptor_list";
  if (!SDP_AddProfileDescriptorList(handle, UUID_SERVCLASS_SERIAL_PORT,
                                    SPP_PROFILE_VERSION))
    goto error;

  APPL_TRACE_DEBUG(
      "add_spp_sdp: service registered successfully, "
      "service_name: %s, handle 0x%08x)",