summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-01-02 23:35:19 -0800
committerJohan Hedberg <johan.hedberg@intel.com>2015-01-03 22:31:09 +0200
commit043ec9bf7b9d7cdce84d2e8d3df9b9eb520d929e (patch)
tree4b2c9f738009ca612e1817f4d5067f717bc0935a /net
parent04422da990b33bf814944a3dd5d49c920eae4f7b (diff)
downloadop-kernel-dev-043ec9bf7b9d7cdce84d2e8d3df9b9eb520d929e.zip
op-kernel-dev-043ec9bf7b9d7cdce84d2e8d3df9b9eb520d929e.tar.gz
Bluetooth: Introduce HCI_QUIRK_FIXUP_INQUIRY_MODE option
The HCI_QUIRK_FIXUP_INQUIRY_MODE option allows to force Inquiry Result with RSSI setting on controllers that do not indicate support for it, but where it is known to be fully functional. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index ebac859..bc5486e 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -621,7 +621,8 @@ static void hci_init2_req(struct hci_request *req, unsigned long opt)
}
}
- if (lmp_inq_rssi_capable(hdev)) {
+ if (lmp_inq_rssi_capable(hdev) ||
+ test_bit(HCI_QUIRK_FIXUP_INQUIRY_MODE, &hdev->quirks)) {
u8 mode;
/* If Extended Inquiry Result events are supported, then
OpenPOWER on IntegriCloud