aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDoHyun Pyun <dh79.pyun@samsung.com>2013-10-02 08:54:50 -0400
committerMarcel Holtmann <marcel@holtmann.org>2013-10-02 12:54:59 -0400
commit8c9a041be2b8d534e770594a5e8d3251cc221bd1 (patch)
tree4369c092d15ad062167c17cef6185fe73d259290 /include
parenta9b07a643f16332c4cc96259ef5cad2163f8e28a (diff)
Bluetooth: Add the definition and structure for Set CSB
he Set_Connectionless_Slave_Broadcast command controls the Connectionless Slave Broadcast functionality 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 78 "7.1.49 Set Connectionless Slave Broadcast Command [New Section] ... The LT_ADDR indicated in the Set_Connectionless_Slave_Broadcast shall be pre-allocated using the HCI_Set_Reserved_LT_ADDR command. If the LT_ADDR has not been reserved, the Unknown Connection Identifier (0x02) error code shall be returned. If the controller is unable to reserve sufficient bandwidth for the requested activity, the Connection Rejected Due to Limited Resources (0x0D) error code shall be returned. The LPO_Allowed parameter informs the BR/EDR Controller whether it is allowed to sleep. The Packet_Type parameter specifies which packet types are allowed. The Host shall either enable BR packet types only, or shall enable EDR and DM1 packet types only. The Interval_Min and Interval_Max parameters specify the range from which the BR/EDR Controller must select the Connectionless Slave Broadcast Interval. The selected Interval is 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')
-rw-r--r--include/net/bluetooth/hci.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index cad6ca121461..42d3832f0602 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -628,6 +628,22 @@ struct hci_rp_logical_link_cancel {
628 __u8 flow_spec_id; 628 __u8 flow_spec_id;
629} __packed; 629} __packed;
630 630
631#define HCI_OP_SET_CSB 0x0441
632struct hci_cp_set_csb {
633 __u8 enable;
634 __u8 lt_addr;
635 __u8 lpo_allowed;
636 __le16 packet_type;
637 __le16 interval_min;
638 __le16 interval_max;
639 __le16 csb_sv_tout;
640} __packed;
641struct hci_rp_set_csb {
642 __u8 status;
643 __u8 lt_addr;
644 __le16 interval;
645} __packed;
646
631#define HCI_OP_SNIFF_MODE 0x0803 647#define HCI_OP_SNIFF_MODE 0x0803
632struct hci_cp_sniff_mode { 648struct hci_cp_sniff_mode {
633 __le16 handle; 649 __le16 handle;