diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2011-07-07 17:59:36 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-07-08 16:36:31 -0400 |
commit | 75d262c2ad927751bb5f096f3a6a37d81e7784f2 (patch) | |
tree | cf526c6ef818e8a308b29882db7479557ec5009e /include/net | |
parent | 34918cd71b953905e5f832537ead436bcd57e8f9 (diff) |
Bluetooth: Add functions to manipulate the link key list for SMP
As the LTK (the new type of key being handled now) has more data
associated with it, we need to store this extra data and retrieve
the keys based on that data.
Methods for searching for a key and for adding a new LTK are
introduced here.
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 0e1fd2b29b0a..306430ef164b 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -553,6 +553,11 @@ int hci_link_keys_clear(struct hci_dev *hdev); | |||
553 | struct link_key *hci_find_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr); | 553 | struct link_key *hci_find_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr); |
554 | int hci_add_link_key(struct hci_dev *hdev, struct hci_conn *conn, int new_key, | 554 | int hci_add_link_key(struct hci_dev *hdev, struct hci_conn *conn, int new_key, |
555 | bdaddr_t *bdaddr, u8 *val, u8 type, u8 pin_len); | 555 | bdaddr_t *bdaddr, u8 *val, u8 type, u8 pin_len); |
556 | struct link_key *hci_find_ltk(struct hci_dev *hdev, __le16 ediv, u8 rand[8]); | ||
557 | struct link_key *hci_find_link_key_type(struct hci_dev *hdev, | ||
558 | bdaddr_t *bdaddr, u8 type); | ||
559 | int hci_add_ltk(struct hci_dev *hdev, int new_key, bdaddr_t *bdaddr, | ||
560 | __le16 ediv, u8 rand[8], u8 ltk[16]); | ||
556 | int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr); | 561 | int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr); |
557 | 562 | ||
558 | int hci_remote_oob_data_clear(struct hci_dev *hdev); | 563 | int hci_remote_oob_data_clear(struct hci_dev *hdev); |