]> 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)
commit0eac81827eec42c601d2c7232a44993afe36c5e3
tree8cc41153346c111d30d74a6a8ce78b0f3ffb486a
parentb8aa73b510e0c24fac0837d0e690074f675fb25b
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