aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-02-18 10:14:35 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-02-18 11:58:20 -0500
commita7ec73386ce2a8ab351ee8ab6a1e5475f72617dc (patch)
tree2a35779088a000bf99838892f1a3e592314d9428 /include
parentb7d448d74a09af412d778918415fe2ea4d5c2de4 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 964a7888ad0c..ac468de11cb7 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -801,6 +801,7 @@ struct smp_irk *hci_find_irk_by_addr(struct hci_dev *hdev, bdaddr_t *bdaddr,
801 u8 addr_type); 801 u8 addr_type);
802int hci_add_irk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type, 802int hci_add_irk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type,
803 u8 val[16], bdaddr_t *rpa); 803 u8 val[16], bdaddr_t *rpa);
804void hci_remove_irk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type);
804void hci_smp_irks_clear(struct hci_dev *hdev); 805void hci_smp_irks_clear(struct hci_dev *hdev);
805 806
806void hci_remote_oob_data_clear(struct hci_dev *hdev); 807void hci_remote_oob_data_clear(struct hci_dev *hdev);