diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-01-10 05:07:20 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-02-13 02:51:32 -0500 |
commit | 66138ce8e556a8ddd13baf035fb3a8d0d6dd4bb5 (patch) | |
tree | 5dcdef78aab54e79b4ff115fd2a4eae2cdc29837 /net/bluetooth/hci_event.c | |
parent | 11015c7903c74350402f8753339c48bee0186e90 (diff) |
Bluetooth: Add support for handling P-256 derived link keys
Before being able to enable Secure Connections support, the core needs
to know on how to handle P-256 derived link keys. The difference between
authenticated and unauthenticated P-256 derived link keys is the same as
its P-192 counter parts.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index defa1252b534..b3c5396e0c1b 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -2633,7 +2633,8 @@ static void hci_link_key_request_evt(struct hci_dev *hdev, struct sk_buff *skb) | |||
2633 | 2633 | ||
2634 | conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); | 2634 | conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); |
2635 | if (conn) { | 2635 | if (conn) { |
2636 | if (key->type == HCI_LK_UNAUTH_COMBINATION_P192 && | 2636 | if ((key->type == HCI_LK_UNAUTH_COMBINATION_P192 || |
2637 | key->type == HCI_LK_UNAUTH_COMBINATION_P256) && | ||
2637 | conn->auth_type != 0xff && (conn->auth_type & 0x01)) { | 2638 | conn->auth_type != 0xff && (conn->auth_type & 0x01)) { |
2638 | BT_DBG("%s ignoring unauthenticated key", hdev->name); | 2639 | BT_DBG("%s ignoring unauthenticated key", hdev->name); |
2639 | goto not_found; | 2640 | goto not_found; |