summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2018-07-20 13:12:28 +0800
committerMarcel Holtmann <marcel@holtmann.org>2018-07-30 14:00:15 +0200
commit740011cfe94859df8d05f5400d589a8693b095e7 (patch)
treec564a457d4a847072d327f3c4a855af6902b99e1 /include/net/bluetooth
parent85a721a8b0b6880d8cf6b9def70404ade8563225 (diff)
downloadlinux-stable-740011cfe94859df8d05f5400d589a8693b095e7.tar.gz
linux-stable-740011cfe94859df8d05f5400d589a8693b095e7.tar.bz2
linux-stable-740011cfe94859df8d05f5400d589a8693b095e7.zip
Bluetooth: Add new quirk for non-persistent setup settings
Add a new quirk HCI_QUIRK_NON_PERSISTENT_SETUP allowing that a quirk that runs setup() after every open() and not just after the first open(). Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 8ff36463719f..7f008097552e 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -183,6 +183,15 @@ enum {
* during the hdev->setup vendor callback.
*/
HCI_QUIRK_NON_PERSISTENT_DIAG,
+
+ /* When this quirk is set, setup() would be run after every
+ * open() and not just after the first open().
+ *
+ * This quirk can be set before hci_register_dev is called or
+ * during the hdev->setup vendor callback.
+ *
+ */
+ HCI_QUIRK_NON_PERSISTENT_SETUP,
};
/* HCI device flags */