Bluetooth: Add command for setting 3D information data
Subsystems (2)
Marcel Holtmann
maintainerRFC 1/1 Bluetooth: Add command for setting 3D information data
This commands allows to program the 3D information data so it can later be used when setting the Extended Inquiry Information.
The 3D profile is flexible on the parameter length of this field and allows for future extensions. So make the input parameter to this command also flexible.
Signed-off-by Marcel Holtmann <[email protected]>
--- include/net/bluetooth/hci.h | 1 + include/net/bluetooth/hci_core.h | 2 ++ include/net/bluetooth/mgmt.h | 7 +++++++ net/bluetooth/mgmt.c | 45 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+)
include/net/bluetooth/hci.h +1 -0
@@ -358,6 +358,7 @@ enum {#define EIR_SSP_HASH_C 0x0E/* Simple Pairing Hash C */ #define EIR_SSP_RAND_R 0x0F/* Simple Pairing Randomizer R */ #define EIR_DEVICE_ID 0x10/* device ID */ +#define EIR_3D_INFO_DATA 0x3D/* 3D information */ /* Low Energy Advertising Flags */ #define LE_AD_LIMITED 0x01/* Limited Discoverable */
include/net/bluetooth/hci_core.h +2 -0
@@ -171,6 +171,8 @@ struct hci_dev {__u16 devid_vendor;__u16 devid_product;__u16 devid_version; +__u8 data_3d_len; +__u8 data_3d[2 ];__u16 pkt_type;__u16 esco_type;
include/net/bluetooth/mgmt.h +7 -0
@@ -369,6 +369,13 @@ struct mgmt_cp_set_scan_params { } __packed;#define MGMT_SET_SCAN_PARAMS_SIZE 4 +#define MGMT_OP_SET_3D_INFO 0x002D +struct mgmt_cp_set_3d_info { +__u8 len; +__u8 data[0 ]; +} __packed; +#define MGMT_SET_3D_INFO_SIZE 1 +#define MGMT_EV_CMD_COMPLETE 0x0001struct mgmt_ev_cmd_complete {__le16 opcode;
net/bluetooth/mgmt.c +45 -0
69 lines not on this page · raw message
Signature · 1 line
1.8.3.1