Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: Disable HCI_CONNECTABLE based passive scanning for now

When HCI_CONNECTABLE is set the code has been enabling passive scanning
in order to be consistent with BR/EDR and accept connections from any
device doing directed advertising to us. However, some hardware
(particularly CSR) can get very noisy even when doing duplicates
filtering, making this feature waste resources.

Considering that the feature is for fairly corner-case use (devices
who'd use directed advertising would likely be in the whitelist anyway)
it's better to disable it for now. It may still be brought back later,
possibly with a better implementation (e.g. through improved scan
parameters).

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

authored by

Johan Hedberg and committed by
Marcel Holtmann
d1d588c1 27b869f5

+1 -2
+1 -2
net/bluetooth/hci_core.c
··· 5465 5465 5466 5466 hci_req_init(&req, hdev); 5467 5467 5468 - if (!test_bit(HCI_CONNECTABLE, &hdev->dev_flags) && 5469 - list_empty(&hdev->pend_le_conns) && 5468 + if (list_empty(&hdev->pend_le_conns) && 5470 5469 list_empty(&hdev->pend_le_reports)) { 5471 5470 /* If there is no pending LE connections or devices 5472 5471 * to be scanned for, we should stop the background