aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2011-04-28 14:28:59 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-28 15:14:40 -0400
commitd25e28abe58d2bcedf6025a6ccc532c29a19046f (patch)
treed56b5d6b7443814f354db364db2f5717bde147e3 /include
parent582fbe9ef9d6fc089ff20956595f046d4899e74e (diff)
Bluetooth: Fix link key persistent storage criteria
Link keys should only be stored if very specific criteria of the authentication process are fulfilled. This patch essentially copies the criteria that user space has so far been using to the kernel side so that the management interface works properly. Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 135dfac1be12..3a3f7b453803 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -515,8 +515,8 @@ int hci_uuids_clear(struct hci_dev *hdev);
515 515
516int hci_link_keys_clear(struct hci_dev *hdev); 516int hci_link_keys_clear(struct hci_dev *hdev);
517struct link_key *hci_find_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr); 517struct link_key *hci_find_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr);
518int hci_add_link_key(struct hci_dev *hdev, int new_key, bdaddr_t *bdaddr, 518int hci_add_link_key(struct hci_dev *hdev, struct hci_conn *conn, int new_key,
519 u8 *key, u8 type, u8 pin_len); 519 bdaddr_t *bdaddr, u8 *val, u8 type, u8 pin_len);
520int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr); 520int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr);
521 521
522int hci_remote_oob_data_clear(struct hci_dev *hdev); 522int hci_remote_oob_data_clear(struct hci_dev *hdev);