aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-12-25 22:42:31 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2014-12-26 13:16:10 -0500
commit711ffa78f4b23e25a6c91cb80be436a48b5e725d (patch)
tree2db1a29e869eb1412acf3c0babdbc30e8fe8aae0 /include/net/bluetooth
parent72e4a6bd02204eed0464d6139439d7e89b94266e (diff)
Bluetooth: Introduce HCI_QUIRK_BROKEN_LOCAL_COMMANDS constant
Some controllers advertise support for Bluetooth 1.2 specification, but they do not support the HCI Read Local Supported Commands command. If that is the case, then the driver can quirk the behavior and force the core to skip this command. This will allow removing vendor specific checks out of the core. 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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index f39926ee06f7..1849a437f6e1 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -102,6 +102,16 @@ enum {
102 */ 102 */
103 HCI_QUIRK_FIXUP_BUFFER_SIZE, 103 HCI_QUIRK_FIXUP_BUFFER_SIZE,
104 104
105 /* When this quirk is set, then the HCI Read Local Supported
106 * Commands command is not supported. In general Bluetooth 1.2
107 * and later controllers should support this command. However
108 * some controllers indicate Bluetooth 1.2 support, but do
109 * not support this command.
110 *
111 * This quirk must be set before hci_register_dev is called.
112 */
113 HCI_QUIRK_BROKEN_LOCAL_COMMANDS,
114
105 /* When this quirk is set, then no stored link key handling 115 /* When this quirk is set, then no stored link key handling
106 * is performed. This is mainly due to the fact that the 116 * is performed. This is mainly due to the fact that the
107 * HCI Delete Stored Link Key command is advertised, but 117 * HCI Delete Stored Link Key command is advertised, but