]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix valid Identity Address check
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 14 Jan 2015 18:51:37 +0000 (20:51 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 14 Jan 2015 21:48:06 +0000 (22:48 +0100)
commit674d7f651b1de3ceb3acb5f7a501b443e31464fe
treeb771ff7bc68c8a55d009a0227b98567cebdad67b
parent5e0c727a17fc4c8fed325d2c98c8d043cbf233cd
Bluetooth: Fix valid Identity Address check

According to the Bluetooth core specification valid identity addresses
are either Public Device Addresses or Static Random Addresses. IRKs
received with any other type of address should be discarded since we
cannot assume to know the permanent identity of the peer device.

This patch fixes a missing check for the Identity Address when receiving
the Identity Address Information SMP PDU.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: stable@vger.kernel.org # 3.17+
net/bluetooth/smp.c