aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-07-14 14:13:48 -0400
committerMarcel Holtmann <marcel@holtmann.org>2008-07-14 14:13:48 -0400
commit333140b57fa7867bc92e5ee879b6ac4ef5e1d867 (patch)
treea498d195bff090371993ec2bf63505f768434540 /include/net/bluetooth/hci.h
parent0493684ed2397e111574f343534d8e4ec440dfa5 (diff)
[Bluetooth] Track status of Simple Pairing mode
The Simple Pairing feature is optional and needs to be enabled by the host stack first. The Linux kernel relies on the Bluetooth daemon to either enable or disable it, but at any time it needs to know the current state of the Simple Pairing mode. So track any changes made by external entities and store the current mode in the HCI device structure. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci.h')
-rw-r--r--include/net/bluetooth/hci.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 79629ff40e3e..6d0c04a81fc7 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -514,6 +514,17 @@ struct hci_cp_host_buffer_size {
514 __le16 sco_max_pkt; 514 __le16 sco_max_pkt;
515} __attribute__ ((packed)); 515} __attribute__ ((packed));
516 516
517#define HCI_OP_READ_SSP_MODE 0x0c55
518struct hci_rp_read_ssp_mode {
519 __u8 status;
520 __u8 mode;
521} __attribute__ ((packed));
522
523#define HCI_OP_WRITE_SSP_MODE 0x0c56
524struct hci_cp_write_ssp_mode {
525 __u8 mode;
526} __attribute__ ((packed));
527
517#define HCI_OP_READ_LOCAL_VERSION 0x1001 528#define HCI_OP_READ_LOCAL_VERSION 0x1001
518struct hci_rp_read_local_version { 529struct hci_rp_read_local_version {
519 __u8 status; 530 __u8 status;