Bluetooth: Fix missing address type check for removing LTKs
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Feb 2014 15:14:31 +0000 (17:14 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Feb 2014 16:58:20 +0000 (08:58 -0800)
commite0b2b27e622da0ba8a3d253b985d3d8f174b4313
tree667dcec52ed49711b1563bff486a164029be5614
parent6131ddc8eb9bad8c4ff37e097b2537c819b76cc0
Bluetooth: Fix missing address type check for removing LTKs

When removing Long Term Keys we should also be checking that the given
address type (public vs random) matches. This patch updates the
hci_remove_ltk function to take an extra parameter and uses it for
address type matching.

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