aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorDoHyun Pyun <dh79.pyun@samsung.com>2013-10-02 08:54:48 -0400
committerMarcel Holtmann <marcel@holtmann.org>2013-10-02 12:54:59 -0400
commit7d1dab49f645557bb0b9246f7ae87fafd2716e70 (patch)
tree1314240a8f9ded10f3c5973c95e6df5ed643bbb0 /include/net
parent6a20eaf40419481dd55031ffe7a856e7a304ca4d (diff)
Bluetooth: Add the definition and structure for Set CSB Data
The Set_Connectionless_Slave_Broadcast_Data command provides the ability for the Host to set Connectionless Slave Broadcast data in the BR/EDR Controller. The Core Spec Addendum 4 adds this command in part B Connectionless Slave Broadcast. Bluetooth Core Specification Addendum 4 - Page 93 "7.3.88 Set Connectionless Slave Broadcast Data Command [New Section] ... If connectionless slave broadcast mode is disabled, this data shall be kept by the BR/EDR Controller and used once connectionless slave broadcast mode is enabled. If connectionless slave broadcast mode is enabled, and this command is successful, this data will be sent starting with the next Connectionless Slave Broadcast instant. The Data_Length field may be zero, in which case no data needs to be provided. The Host may fragment the data using the Fragment field in the command. If the combined length of the fragments exceeds the capacity of the largest allowed packet size specified in the Set Connectionless Slave Broadcast command, all fragments associated with the data being assembled shall be discarded and the Invalid HCI Command Parameters error (0x12) shall be returned." Signed-off-by: Dohyun Pyun <dh79.pyun@samsung.com> Signed-off-by: C S Bhargava <cs.bhargava@samsung.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/hci.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 9b071f162dde..d9e0a8467ddc 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -35,6 +35,8 @@
35 35
36#define HCI_MAX_AMP_ASSOC_SIZE 672 36#define HCI_MAX_AMP_ASSOC_SIZE 672
37 37
38#define HCI_MAX_CSB_DATA_SIZE 252
39
38/* HCI dev events */ 40/* HCI dev events */
39#define HCI_DEV_REG 1 41#define HCI_DEV_REG 1
40#define HCI_DEV_UNREG 2 42#define HCI_DEV_UNREG 2
@@ -857,6 +859,18 @@ struct hci_rp_delete_reserved_lt_addr {
857 __u8 lt_addr; 859 __u8 lt_addr;
858} __packed; 860} __packed;
859 861
862#define HCI_OP_SET_CSB_DATA 0x0c76
863struct hci_cp_set_csb_data {
864 __u8 lt_addr;
865 __u8 fragment;
866 __u8 data_length;
867 __u8 data[HCI_MAX_CSB_DATA_SIZE];
868} __packed;
869struct hci_rp_set_csb_data {
870 __u8 status;
871 __u8 lt_addr;
872} __packed;
873
860#define HCI_OP_READ_SYNC_TRAIN_PARAMS 0x0c77 874#define HCI_OP_READ_SYNC_TRAIN_PARAMS 0x0c77
861 875
862#define HCI_OP_READ_LOCAL_VERSION 0x1001 876#define HCI_OP_READ_LOCAL_VERSION 0x1001