Bluetooth: Add simple version of Read Local OOB Extended Data command
Subsystems (2)
Marcel Holtmann
maintainerPATCH 3/3 Bluetooth: Add simple version of Read Local OOB Extended Data command
This adds support for the simplest possible version of Read Local OOB Extended Data management command. It includes all mandatory fields, but none of the actual pairing related ones.
Signed-off-by Marcel Holtmann <[email protected]>
--- include/net/bluetooth/mgmt.h | 11 +++++ net/bluetooth/mgmt.c | 111 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 121 insertions(+), 1 deletion(-)
include/net/bluetooth/mgmt.h +11 -0
@@ -506,6 +506,17 @@ struct mgmt_cp_start_service_discovery { } __packed;#define MGMT_START_SERVICE_DISCOVERY_SIZE 4 +#define MGMT_OP_READ_LOCAL_OOB_EXT_DATA 0x003B +struct mgmt_cp_read_local_oob_ext_data { +__u8 type; +} __packed; +#define MGMT_READ_LOCAL_OOB_EXT_DATA_SIZE 1 +struct mgmt_rp_read_local_oob_ext_data { +__u8 type; +__le16 eir_len; +__u8 eir[0 ]; +} __packed; +#define MGMT_OP_READ_EXT_INDEX_LIST 0x003C#define MGMT_READ_EXT_INDEX_LIST_SIZE 0struct mgmt_rp_read_ext_index_list {
net/bluetooth/mgmt.c +110 -1
129 lines not on this page · raw message
Signature · 1 line
2.1.0