aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-02-18 10:14:31 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-02-18 11:58:20 -0500
commite0b2b27e622da0ba8a3d253b985d3d8f174b4313 (patch)
tree667dcec52ed49711b1563bff486a164029be5614 /include
parent6131ddc8eb9bad8c4ff37e097b2537c819b76cc0 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 86ea4bab9e77..ab94abdeb3c1 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -792,7 +792,7 @@ int hci_add_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type, u8 type,
792 __le16 ediv, u8 rand[8]); 792 __le16 ediv, u8 rand[8]);
793struct smp_ltk *hci_find_ltk_by_addr(struct hci_dev *hdev, bdaddr_t *bdaddr, 793struct smp_ltk *hci_find_ltk_by_addr(struct hci_dev *hdev, bdaddr_t *bdaddr,
794 u8 addr_type, bool master); 794 u8 addr_type, bool master);
795int hci_remove_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr); 795int hci_remove_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 bdaddr_type);
796int hci_smp_ltks_clear(struct hci_dev *hdev); 796int hci_smp_ltks_clear(struct hci_dev *hdev);
797int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr); 797int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr);
798 798