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

Commit 563a8e4b authored by Chris Manton's avatar Chris Manton
Browse files

stack::sdp [7/12] handle.SDP_AddProtocolList

Bug: 339311914
Test: m .
Flag: EXEMPT, Logging Change

Change-Id: Ie57d57f687a79927c70c59510ede4bdf6ed288bf
parent 6fd7feae
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -976,13 +976,17 @@ uint32_t gatt_add_sdp_record(const Uuid& uuid, uint16_t start_hdl,
  proto_elem_list[1].params[0] = start_hdl;
  proto_elem_list[1].params[1] = end_hdl;

  get_legacy_stack_sdp_api()->handle.SDP_AddProtocolList(sdp_handle, 2,
                                                         proto_elem_list);
  if (!get_legacy_stack_sdp_api()->handle.SDP_AddProtocolList(
          sdp_handle, 2, proto_elem_list)) {
    log::warn("Unable to add SDP protocol list for l2cap and att");
  }

  /* Make the service browseable */
  uint16_t list = UUID_SERVCLASS_PUBLIC_BROWSE_GROUP;
  get_legacy_stack_sdp_api()->handle.SDP_AddUuidSequence(
      sdp_handle, ATTR_ID_BROWSE_GROUP_LIST, 1, &list);
  if (!get_legacy_stack_sdp_api()->handle.SDP_AddUuidSequence(
          sdp_handle, ATTR_ID_BROWSE_GROUP_LIST, 1, &list)) {
    log::warn("Unable to add SDP uuid sequence public browse group");
  }

  return (sdp_handle);
}