Bluetooth: Add HCI command definition for Secure Connections enabling
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 10 Jan 2014 10:07:17 +0000 (02:07 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 13 Feb 2014 07:51:31 +0000 (09:51 +0200)
The Secure Connections feature is optional and host stacks have to
manually enable it. This add the HCI command definiton for reading
and writing this setting.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci.h

index cd40219..2a35d27 100644 (file)
@@ -937,6 +937,17 @@ struct hci_rp_write_sync_train_params {
        __le16  sync_train_int;
 } __packed;
 
+#define HCI_OP_READ_SC_SUPPORT         0x0c79
+struct hci_rp_read_sc_support {
+       __u8    status;
+       __u8    support;
+} __packed;
+
+#define HCI_OP_WRITE_SC_SUPPORT                0x0c7a
+struct hci_cp_write_sc_support {
+       __u8    support;
+} __packed;
+
 #define HCI_OP_READ_LOCAL_VERSION      0x1001
 struct hci_rp_read_local_version {
        __u8     status;