mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
7d7aa2fd92
This change makes the names of Broadcom targets consistent by using the common notation based on SoC/CPU ID (which is used internally anyway), bcmXXXX instead of brcmXXXX. This is even used for target TITLE in make menuconfig already, only the short target name used brcm so far. Despite, since subtargets range from bcm2708 to bcm2711, it seems appropriate to use bcm27xx instead of bcm2708 (again, as already done for BOARDNAME). This also renames the packages brcm2708-userland and brcm2708-gpu-fw. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Acked-by: Álvaro Fernández Rojas <noltari@gmail.com>
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
From 83f0a8986ae42e33bc16acda0451dce2cf4dfb55 Mon Sep 17 00:00:00 2001
|
|
From: Marcel Holtmann <marcel@holtmann.org>
|
|
Date: Wed, 22 May 2019 09:05:40 +0200
|
|
Subject: [PATCH] Bluetooth: Check key sizes only when Secure Simple
|
|
Pairing is enabled
|
|
|
|
The encryption is only mandatory to be enforced when both sides are using
|
|
Secure Simple Pairing and this means the key size check makes only sense
|
|
in that case.
|
|
|
|
On legacy Bluetooth 2.0 and earlier devices like mice the encryption was
|
|
optional and thus causing an issue if the key size check is not bound to
|
|
using Secure Simple Pairing.
|
|
|
|
Fixes: d5bb334a8e17 ("Bluetooth: Align minimum encryption key size for LE and BR/EDR connections")
|
|
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
|
|
Cc: stable@vger.kernel.org
|
|
---
|
|
net/bluetooth/hci_conn.c | 9 +++++++--
|
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
|
|
--- a/net/bluetooth/hci_conn.c
|
|
+++ b/net/bluetooth/hci_conn.c
|
|
@@ -1282,8 +1282,13 @@ int hci_conn_check_link_mode(struct hci_
|
|
return 0;
|
|
}
|
|
|
|
- if (hci_conn_ssp_enabled(conn) &&
|
|
- !test_bit(HCI_CONN_ENCRYPT, &conn->flags))
|
|
+ /* If Secure Simple Pairing is not enabled, then legacy connection
|
|
+ * setup is used and no encryption or key sizes can be enforced.
|
|
+ */
|
|
+ if (!hci_conn_ssp_enabled(conn))
|
|
+ return 1;
|
|
+
|
|
+ if (!test_bit(HCI_CONN_ENCRYPT, &conn->flags))
|
|
return 0;
|
|
|
|
return 1;
|