]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Don't try to look up private addresses as Identity Address
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Feb 2014 19:41:35 +0000 (21:41 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Feb 2014 19:48:55 +0000 (11:48 -0800)
commite9c2f8fd6cf8823c7ee169165e8f1d7c5ee368ad
treef395f0ed076bbd49fe2c682e3d3d84cf7cf9c71c
parent2a872936ec60c61ef40816bf04909dd7435d4f93
Bluetooth: Don't try to look up private addresses as Identity Address

Identity Addresses are either public or static random. When looking up
addresses based on the Identity Address it doesn't make sense to go
through the IRK list if we're given a private random address. This patch
fixes (or rather improves) the hci_find_irk_by_addr function to bail out
early if given a private random address.

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