* [PATCH v1] mgmt: read/set system parameter definitions
@ 2020-06-05 14:24 Alain Michaud
0 siblings, 0 replies; only message in thread
From: Alain Michaud @ 2020-06-05 14:24 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Alain Michaud
This patch submits the corresponding kernel definitions to mgmt.h.
This is submitted before the implementation to avoid any conflicts in
values allocations.
Signed-off-by: Alain Michaud <alainm@chromium.org>
---
The implementation will follow after some additional validation is
performed on the TLV parsing logic.
include/net/bluetooth/mgmt.h | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 16e0d87bd8fa..1081e371f03d 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -702,6 +702,24 @@ struct mgmt_rp_set_exp_feature {
__le32 flags;
} __packed;
+#define MGMT_OP_READ_DEFAULT_SYSTEM_PARAMETERS 0x004b
+
+struct mgmt_system_parameter_tlv {
+ __u16 type;
+ __u8 length;
+ __u8 value[];
+} __packed;
+
+struct mgmt_rp_read_default_system_parameters {
+ __u8 parameters[0]; /* mgmt_system_parameter_tlv */
+} __packed;
+
+#define MGMT_OP_SET_DEFAULT_SYSTEM_PARAMETERS 0x004c
+
+struct mgmt_cp_set_default_system_parameters {
+ __u8 parameters[0]; /* mgmt_system_parameter_tlv */
+} __packed;
+
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
__le16 opcode;
--
2.27.0.278.ge193c7cf3a9-goog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-05 14:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05 14:24 [PATCH v1] mgmt: read/set system parameter definitions Alain Michaud
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).