From: Alain Michaud <alainm@chromium.org>
To: linux-bluetooth@vger.kernel.org
Cc: Alain Michaud <alainm@chromium.org>
Subject: [BlueZ PATCH v3 1/4] mgmt:adding load default system configuration definitions
Date: Fri, 29 May 2020 15:38:11 +0000 [thread overview]
Message-ID: <20200529153814.213125-2-alainm@chromium.org> (raw)
In-Reply-To: <20200529153814.213125-1-alainm@chromium.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
next prev parent reply other threads:[~2020-05-29 15:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-29 15:38 [BlueZ PATCH v3 0/4] Load default system configuration from file Alain Michaud
2020-05-29 15:38 ` Alain Michaud [this message]
2020-06-04 22:58 ` [BlueZ PATCH v3 1/4] mgmt:adding load default system configuration definitions Luiz Augusto von Dentz
2020-06-05 14:03 ` Alain Michaud
2020-05-29 15:38 ` [BlueZ PATCH v3 2/4] adapter:set default system configuration if available Alain Michaud
2020-05-29 16:10 ` [BlueZ,v3,2/4] " bluez.test.bot
2020-05-29 17:05 ` [BlueZ PATCH v3 2/4] " Luiz Augusto von Dentz
2020-05-30 0:21 ` Luiz Augusto von Dentz
2020-05-29 15:38 ` [BlueZ PATCH v3 3/4] main:read default system configuration from the conf file Alain Michaud
2020-05-29 16:10 ` [BlueZ,v3,3/4] " bluez.test.bot
2020-05-29 15:38 ` [BlueZ PATCH v3 4/4] fixing const decoration warnins on options Alain Michaud
2020-05-29 16:10 ` [BlueZ,v3,4/4] " bluez.test.bot
2020-05-29 17:16 ` [BlueZ PATCH v3 4/4] " Luiz Augusto von Dentz
2020-06-01 15:18 ` Alain Michaud
2020-06-10 8:55 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200529153814.213125-2-alainm@chromium.org \
--to=alainm@chromium.org \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).