Bluetooth: Fix removing any IRKs when unpairing devices
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Feb 2014 15:14:35 +0000 (17:14 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Feb 2014 16:58:20 +0000 (08:58 -0800)
commita7ec73386ce2a8ab351ee8ab6a1e5475f72617dc
tree2a35779088a000bf99838892f1a3e592314d9428
parentb7d448d74a09af412d778918415fe2ea4d5c2de4
Bluetooth: Fix removing any IRKs when unpairing devices

When mgmt_unpair_device is called we should also remove any associated
IRKs. This patch adds a hci_remove_irk convenience function and ensures
that it's called when mgmt_unpair_device is called.

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