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

Commit 133821ae authored by Srinu Jella's avatar Srinu Jella Committed by Myles Watson
Browse files

Added SPP version 1.2 to SDP record.

Added SPP version 1.2 to SDP record, SPP 1.0 is deprecated.

Test: mm -j8
Bug: 68303292
Change-Id: Ib0ed919d6145078fb9fc4214caae15ab6e7be780
parent e9444eb9
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)",