Skip to contentSkip to conversation

Bluetooth: Introduce HCI_QUIRK_SIMULTAENOUS_DISCOVERY

PATCH New Jakub Pawlowski 1 participant 1 message Mar 11, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/5 Bluetooth: Introduce HCI_QUIRK_SIMULTAENOUS_DISCOVERY

Some controllers allow both LE scan and BR/EDR inquiry to run at the same time, while others allow only one, LE SCAN or BR/EDR inquiry at given time.

Since this is specific to each controller, add a new quirk setting that allows drivers to tell the core wether given controller can do both LE scan and BR/EDR inquiry at same time.

---
 include/net/bluetooth/hci.h | 9 +++++++++
 1 file changed, 9 insertions(+)
include/net/bluetooth/hci.h +9 -0
index f76f45a..3d22281 100644
@@ -160,6 +160,15 @@ enum {
 	 * during the hdev->setup vendor callback.
 	 */
 	HCI_QUIRK_STRICT_DUPLICATE_FILTER,
+
+	/* When this quirk is set, scanning for both le and classic devices
+	 * is done simoultaenously. If it's not set, the scan is
+	 * interleaved.
+	 *
+	 * This quirk can be set before hci_register_dev is called or
+	 * during the hdev->setup vendor callback.
+	 */
+	HCI_QUIRK_SIMULTAENOUS_DISCOVERY,
 };
 
 /* HCI device flags */
Signature · 1 line
2.2.0.rc0.207.ga3a616c