Bluetooth: Introduce HCI_QUIRK_STRICT_DUPLICATE_FILTER
[cascardo/linux.git] / include / net / bluetooth / hci.h
index 6e8f249..2e08f5a 100644 (file)
@@ -129,6 +129,15 @@ enum {
         * during the hdev->setup vendor callback.
         */
        HCI_QUIRK_INVALID_BDADDR,
+
+       /* When this quirk is set, the duplicate filtering during
+        * scanning is based on Bluetooth devices addresses. To allow
+        * RSSI based updates, restart scanning if needed.
+        *
+        * This quirk can be set before hci_register_dev is called or
+        * during the hdev->setup vendor callback.
+        */
+       HCI_QUIRK_STRICT_DUPLICATE_FILTER,
 };
 
 /* HCI device flags */
@@ -1463,6 +1472,11 @@ struct hci_ev_cmd_status {
        __le16   opcode;
 } __packed;
 
+#define HCI_EV_HARDWARE_ERROR          0x10
+struct hci_ev_hardware_error {
+       __u8     code;
+} __packed;
+
 #define HCI_EV_ROLE_CHANGE             0x12
 struct hci_ev_role_change {
        __u8     status;