Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
This commit is contained in:
commit
67be1e4f4b
7 changed files with 62 additions and 38 deletions
|
@ -1453,6 +1453,7 @@ static int hci_outgoing_auth_needed(struct hci_dev *hdev,
|
|||
* is requested.
|
||||
*/
|
||||
if (!hci_conn_ssp_enabled(conn) && !(conn->auth_type & 0x01) &&
|
||||
conn->pending_sec_level != BT_SECURITY_FIPS &&
|
||||
conn->pending_sec_level != BT_SECURITY_HIGH &&
|
||||
conn->pending_sec_level != BT_SECURITY_MEDIUM)
|
||||
return 0;
|
||||
|
@ -3076,7 +3077,8 @@ static void hci_link_key_request_evt(struct hci_dev *hdev, struct sk_buff *skb)
|
|||
}
|
||||
|
||||
if (key->type == HCI_LK_COMBINATION && key->pin_len < 16 &&
|
||||
conn->pending_sec_level == BT_SECURITY_HIGH) {
|
||||
(conn->pending_sec_level == BT_SECURITY_HIGH ||
|
||||
conn->pending_sec_level == BT_SECURITY_FIPS)) {
|
||||
BT_DBG("%s ignoring key unauthenticated for high security",
|
||||
hdev->name);
|
||||
goto not_found;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue