aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-19 10:09:11 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-19 11:56:52 -0400
commit06f5b7785af6beebb7b2a452687b5a102c90ca6e (patch)
tree33945c97ce1f48736cb71925bb60993e2a54f70c /include/net/bluetooth
parent3497ac84bd35bc5b984a3a20625021bfb0ca3f37 (diff)
Bluetooth: Add support for setting SSP debug mode
Enabling and disabling SSP debug mode is useful for development. This adds a debugfs entry that allows to configure the SSP debug mode. On purpose this has been implemented as debugfs entry and not a public API since it is really only useful during testing and development. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci.h2
-rw-r--r--include/net/bluetooth/hci_core.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 77a971aefcff..ac9c4a75e314 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -1043,6 +1043,8 @@ struct hci_rp_write_remote_amp_assoc {
1043 __u8 phy_handle; 1043 __u8 phy_handle;
1044} __packed; 1044} __packed;
1045 1045
1046#define HCI_OP_WRITE_SSP_DEBUG_MODE 0x1804
1047
1046#define HCI_OP_LE_SET_EVENT_MASK 0x2001 1048#define HCI_OP_LE_SET_EVENT_MASK 0x2001
1047struct hci_cp_le_set_event_mask { 1049struct hci_cp_le_set_event_mask {
1048 __u8 mask[8]; 1050 __u8 mask[8];
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index c689bcf4a0f7..d50cc7aca4e4 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -169,6 +169,7 @@ struct hci_dev {
169 __u8 page_scan_type; 169 __u8 page_scan_type;
170 __u16 le_scan_interval; 170 __u16 le_scan_interval;
171 __u16 le_scan_window; 171 __u16 le_scan_window;
172 __u8 ssp_debug_mode;
172 173
173 __u16 devid_source; 174 __u16 devid_source;
174 __u16 devid_vendor; 175 __u16 devid_vendor;