diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-10-17 16:00:26 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-10-21 00:49:22 +0200 |
commit | 7e995b9eadbe226e355b785a765fd90fe0487414 (patch) | |
tree | f92151bf1a1740fef69b29c9412bdb26d09bc655 /include/net/bluetooth/hci.h | |
parent | 7841d06e4398cff7d744539d1e6ea4026ceab2e5 (diff) | |
download | linux-stable-7e995b9eadbe226e355b785a765fd90fe0487414.tar.gz linux-stable-7e995b9eadbe226e355b785a765fd90fe0487414.tar.bz2 linux-stable-7e995b9eadbe226e355b785a765fd90fe0487414.zip |
Bluetooth: Add new quirk for non-persistent diagnostic settings
If the diagnostic settings are not persistent over HCI Reset, then this
quirk can be used to tell the Bluetoth core about it. This will ensure
that the settings are programmed correctly when the controller is
powered up.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth/hci.h')
-rw-r--r-- | include/net/bluetooth/hci.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index a26ff28ca878..b59971c5cb71 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -170,6 +170,15 @@ enum { * during the hdev->setup vendor callback. */ HCI_QUIRK_SIMULTANEOUS_DISCOVERY, + + /* When this quirk is set, the enabling of diagnostic mode is + * not persistent over HCI Reset. Every time the controller + * is brought up it needs to be reprogrammed. + * + * This quirk can be set before hci_register_dev is called or + * during the hdev->setup vendor callback. + */ + HCI_QUIRK_NON_PERSISTENT_DIAG, }; /* HCI device flags */ |