Skip to contentSkip to conversation

Bluetooth: Introduce HCI_QUIRK_BROKEN_LOCAL_COMMANDS constant

PATCH In review Marcel Holtmann 2 participants 2 messages Dec 26, 2014

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/4 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.

---
 include/net/bluetooth/hci.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/net/bluetooth/hci.h +10 -0
index f39926ee06f7..1849a437f6e1 100644
@@ -102,6 +102,16 @@ enum {
 	 */
 	HCI_QUIRK_FIXUP_BUFFER_SIZE,
 
+	/* When this quirk is set, then the HCI Read Local Supported
+	 * Commands command is not supported. In general Bluetooth 1.2
+	 * and later controllers should support this command. However
+	 * some controllers indicate Bluetooth 1.2 support, but do
+	 * not support this command.
+	 *
+	 * This quirk must be set before hci_register_dev is called.
+	 */
+	HCI_QUIRK_BROKEN_LOCAL_COMMANDS,
+
 	/* When this quirk is set, then no stored link key handling
 	 * is performed. This is mainly due to the fact that the
 	 * HCI Delete Stored Link Key command is advertised, but
Signature · 1 line
2.1.0
#1 lore raw

Hi Marcel,

Quoted 11 lines · Marcel Holtmann

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.

---
 include/net/bluetooth/hci.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

All four patches in this set have been applied to bluetooth-next. Thanks.

Johan