Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99a6768e authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann
Browse files

Bluetooth: Don't take actions on blocked devices when scanning



If a found device is marked as blocked while doing passive LE scanning,
neither report it nor try to connect to it.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 46ebeb26
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4239,6 +4239,10 @@ static void process_adv_report(struct hci_dev *hdev, u8 type, bdaddr_t *bdaddr,
			bdaddr_type = irk->addr_type;
		}

		/* Ignore if the device is blocked */
		if (hci_blacklist_lookup(hdev, bdaddr, bdaddr_type))
			return;

		if (type == LE_ADV_IND || type == LE_ADV_DIRECT_IND) {
			if (check_pending_le_conn(hdev, bdaddr, bdaddr_type))
				return;