]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Fix issue with HCI_QUIRK_FIXUP_INQUIRY_MODE and event mask
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 1 Nov 2015 08:45:22 +0000 (09:45 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 1 Nov 2015 13:38:16 +0000 (15:38 +0200)
When setting the event mask, the HCI_QUIRK_FIXUP_INQUIRY_MODE quirk is
required to be checked so that the Inquiry Result with RSSI event gets
actually enabled.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_core.c

index ea95075f1826e511e67c5597b025069ff016fd54..556c173ccbc6925b29066aec75bd803cf22d85bf 100644 (file)
@@ -548,7 +548,8 @@ static void hci_setup_event_mask(struct hci_request *req)
                }
        }
 
-       if (lmp_inq_rssi_capable(hdev))
+       if (lmp_inq_rssi_capable(hdev) ||
+           test_bit(HCI_QUIRK_FIXUP_INQUIRY_MODE, &hdev->quirks))
                events[4] |= 0x02; /* Inquiry Result with RSSI */
 
        if (lmp_ext_feat_capable(hdev))