]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Ignore IRKs with no Identity Address
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 25 Feb 2014 20:24:37 +0000 (22:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 25 Feb 2014 20:30:41 +0000 (12:30 -0800)
commitb69df01483bfe4cfa650e7e23560234bc8b9da6b
tree8cc41153346c111d30d74a6a8ce78b0f3ffb486a
parentc4af57dc671451023877f6a15c904417d938d56b
Bluetooth: Ignore IRKs with no Identity Address

The Core Specification (4.1) leaves room for sending an SMP Identity
Address Information PDU with an all-zeros BD_ADDR value. This
essentially means that we would not have an Identity Address for the
device and the only means of identifying it would be the IRK value
itself.

Due to lack of any known implementations behaving like this it's best to
keep our implementation as simple as possible as far as handling such
situations is concerned. This patch updates the Identity Address
Information handler function to simply ignore the IRK received from such
a device.

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