Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp641282ybm; Fri, 29 May 2020 08:41:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJychcUKN7hpN3aqsRf2HJKABCzzq9b/5VssTfRi7u2+jjbII0dlTQtYgmC9nTisdRI+aVYi X-Received: by 2002:a17:906:1c02:: with SMTP id k2mr2178746ejg.37.1590766880721; Fri, 29 May 2020 08:41:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590766880; cv=none; d=google.com; s=arc-20160816; b=ikZmJ+n/KRONkUZ8spUg1DG9wIPexeE9kQDnwvl4ShZrcB3esYwyRURs9ArzskSgES RKgDFJMAnH7qbcXbovQNo6F+p4W26JWkQBgMXvGbCsRaFcgoUA4BU1ZhQ2+tytGGGWq8 CSIhZr4wm3j4F0Do0gj7svrWU/sgc18I/qyz2tVzWemaRJV+2M2HA06OKugCV4yCjWBN 9tyiNY0M+C61JuVjbLC6ATnVOSVvi/OhDD/szyfYkEi/9OiYtVj8oawHXOYbz7PpBmHK qYkCxaPuSmMDlahhirqOlIt+EChiwCJAUD1HK4tps+z7CxZ5KcnWKrD99IBabmz1IEwp H8FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qT+qHtCvE3L/ov2zGu6w9f5vlZG2T4fN53Co4LKoPm8=; b=y0h0YnWMa+fn3hy97MzDzmc4MNuxE/PRcxyWA3HPjhXeB35X+gu/1zfH8N0C3qitIK Cu6vB3kBRtZgqiUms4cllQ8kLRU3CjO78mMcBXebZdAIcIOp04GOsqlC9iw16Ris+p1d aQjlIar111XU0tJw0UhuOrUQwyOqtshHY8xOC4tdjRRgguNFtmBwWEp+VhofEK4sZjWM OgcqUj5hM6medo4vBCbbktjJdXIQeRiPd1F7mZlWkGRC/H2dy+mUbog1+8A4JKH4xoPq 1LIn4/8sb5mFA0a1jLJOD2OVxTBy9waYw2cYpvdYA8/nFk3iFR/S3G8l2SvaU/TdJRV+ Xfyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LYF6cBsA; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z3si5946306edj.437.2020.05.29.08.40.56; Fri, 29 May 2020 08:41:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LYF6cBsA; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727035AbgE2Pik (ORCPT + 99 others); Fri, 29 May 2020 11:38:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726898AbgE2Pik (ORCPT ); Fri, 29 May 2020 11:38:40 -0400 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6D0CC03E969 for ; Fri, 29 May 2020 08:38:39 -0700 (PDT) Received: by mail-vs1-xe35.google.com with SMTP id a68so1731300vsd.8 for ; Fri, 29 May 2020 08:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qT+qHtCvE3L/ov2zGu6w9f5vlZG2T4fN53Co4LKoPm8=; b=LYF6cBsAEUDYo5xOvBtA/J5lf4D9jlefhp9Vxj+rCMqpJ0+xB59mnmc6OPURGGu42H km19k0Q/nb7vfXbL3sqxpxJKjQgaM+uYoxiKs0z6IPUyexRjU0nR8zE5Ew6lKc1s1k3a kpwpi8S1dQ2PcSLx7haFk5OGG3WOk9Ss8vrDo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qT+qHtCvE3L/ov2zGu6w9f5vlZG2T4fN53Co4LKoPm8=; b=NDKuTE3tdSF7//mQVD1YKkFpb9h9gM0wlBE5rxSi+ITpL0DQJB9s91szGNvqtKOJqg LH5tDBYRt8jgiaDkbt/FmlFuCqrP+F/RLLQYdWvKHYdYRo6T5HM2Imj/sw8oQ3nLPXVV 7DlKQyNC4JG+Wj9k+L+M/bXbEwv8Hfij2jYWmbquPcrAPRova8MQym0dcAg3WEz9lIom rVaLjzL14IWu/D8o8QtD0F6W5bEhNt0IMfoUSd5uHGrDSg4yGkUS3d6OX9IfiF6RAqhr hCZW+RM+sEed1T/jXCO7POdibFgysAxdA+gP9u+9ezWng5tYzTgzSFCrqMUWZkqKruDQ K/4A== X-Gm-Message-State: AOAM532we/y9Dskgo4zHCnr3mNAMr/IBJ1YBm3VawwEAQxgYBOu8qUL6 tNprw8IyPWCkrEFFaQmoBNweyOfUp1g= X-Received: by 2002:a67:ecc3:: with SMTP id i3mr5988342vsp.170.1590766718744; Fri, 29 May 2020 08:38:38 -0700 (PDT) Received: from alain.c.googlers.com.com (252.177.243.35.bc.googleusercontent.com. [35.243.177.252]) by smtp.gmail.com with ESMTPSA id o2sm1309494vkl.27.2020.05.29.08.38.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 08:38:38 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [BlueZ PATCH v3 1/4] mgmt:adding load default system configuration definitions Date: Fri, 29 May 2020 15:38:11 +0000 Message-Id: <20200529153814.213125-2-alainm@chromium.org> X-Mailer: git-send-email 2.27.0.rc0.183.gde8f92d652-goog In-Reply-To: <20200529153814.213125-1-alainm@chromium.org> References: <20200529153814.213125-1-alainm@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This change adds the load default system configuration definitions --- Changes in v3: None Changes in v2: None lib/mgmt.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/mgmt.h b/lib/mgmt.h index b4fc72069..ea89c46b1 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -628,6 +628,24 @@ struct mgmt_rp_set_exp_feature { uint32_t flags; } __packed; +#define MGMT_OP_READ_DEFAULT_SYSTEM_PARAMETERS 0x004b + +struct mgmt_system_parameter_tlv { + uint16_t parameter_type; + uint8_t length; + uint8_t value[]; +} __packed; + +struct mgmt_rp_read_default_system_parameters { + uint8_t parameters[0]; // mgmt_system_parameter_tlv +} __packed; + +#define MGMT_OP_SET_DEFAULT_SYSTEM_PARAMETERS 0x004c + +struct mgmt_cp_set_default_system_parameters { + uint8_t parameters[0]; // mgmt_system_parameter_tlv +} __packed; + #define MGMT_EV_CMD_COMPLETE 0x0001 struct mgmt_ev_cmd_complete { uint16_t opcode; @@ -933,6 +951,8 @@ static const char *mgmt_op[] = { "Read Security Information", /* 0x0048 */ "Read Experimental Features Information", "Set Experimental Feature", + "Read Default System Configuration", + "Set Default System Configuration", }; static const char *mgmt_ev[] = { -- 2.27.0.rc0.183.gde8f92d652-goog