aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-19 10:09:12 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-19 11:56:56 -0400
commit4b4148e9acc1a51c454f133637e5dc7e298bd5bb (patch)
treefb9456ca985e3d86135abacdd6a5dc27efb47ada /include
parent4e70c7e71c5f9cf11013628ab5a0ced449b1c7b2 (diff)
Bluetooth: Add support for setting DUT mode
The Device Under Test (DUT) mode is useful for doing certification testing and so expose this as debugfs option. This mode is actually special since you can only enter it. Restoring normal operation means that a HCI Reset is required. The current mode value gets tracked as a new device flag and when disabling it, the correct command to reset the controller is sent. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index ac9c4a75e314..1784c48699f0 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -115,6 +115,7 @@ enum {
115 HCI_PAIRABLE, 115 HCI_PAIRABLE,
116 HCI_SERVICE_CACHE, 116 HCI_SERVICE_CACHE,
117 HCI_DEBUG_KEYS, 117 HCI_DEBUG_KEYS,
118 HCI_DUT_MODE,
118 HCI_UNREGISTER, 119 HCI_UNREGISTER,
119 HCI_USER_CHANNEL, 120 HCI_USER_CHANNEL,
120 121
@@ -1043,6 +1044,8 @@ struct hci_rp_write_remote_amp_assoc {
1043 __u8 phy_handle; 1044 __u8 phy_handle;
1044} __packed; 1045} __packed;
1045 1046
1047#define HCI_OP_ENABLE_DUT_MODE 0x1803
1048
1046#define HCI_OP_WRITE_SSP_DEBUG_MODE 0x1804 1049#define HCI_OP_WRITE_SSP_DEBUG_MODE 0x1804
1047 1050
1048#define HCI_OP_LE_SET_EVENT_MASK 0x2001 1051#define HCI_OP_LE_SET_EVENT_MASK 0x2001