]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commita9a58f861218aee89fbe8ed4db054a7eee6f58c2
tree8cc41153346c111d30d74a6a8ce78b0f3ffb486a
parenta4858cb942b9afa57c1220aa5d9b536a0d7ec623
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