mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
93cca95434
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.48 Removed upstreamed: generic/backport-6.6/752-04-v6.6-net-ethernet-mtk_wed-check-update_wo_rx_stats-in-mtk.patch[1] generic/pending-6.6/601-udp-fix-receiving-fraglist-GSO_packets.patch[2] mediatek/patches-6.6/951-net-ethernet-mtk_wed-fix-use-after-free-panic-in-mtk.patch[3] rockchip/patches-6.6/302-mmc-allow-probe-to-defer-if-clock-is-not-ready.patch[4] Manually rebased: bcm27xx/patches-6.6/950-0058-Revert-Bluetooth-Always-request-for-user-confirmatio.patch All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.48&id=7ede6ef04c9ffc466844a297d3d68bea8a06093d 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.48&id=cfa692e7e71b22d35174a796d10b9111bafa0686 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.48&id=326a89321f9d5fe399fe6f9ff7c0fc766582a6a0 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.48&id=7bbf8f8b8861dd2a6215f1aded425c66e6c376a0 Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/16282 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
46 lines
1.5 KiB
Diff
46 lines
1.5 KiB
Diff
From eaeca896d077e9e42866f7f7caae7b62211a0d0d Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Mon, 1 Mar 2021 09:12:44 +0000
|
|
Subject: [PATCH 0058/1085] Revert "Bluetooth: Always request for user
|
|
confirmation for Just Works (LE SC)"
|
|
|
|
This reverts commit ffee202a78c2980688bc5d2f7d56480e69a5e0c9.
|
|
|
|
The commit "Bluetooth: Always request for user confirmation for Just
|
|
Works" prevents BLE devices pairing in (at least) the Raspberry Pi OS
|
|
GUI. After reverting it, pairing works again. Although this companion
|
|
commit ("... (LE SC)") has not been demonstrated to be problematic,
|
|
it follows the same logic and therefore could affect some use cases.
|
|
|
|
If another solution to the problem is found then this reversion will
|
|
be removed.
|
|
|
|
See: https://github.com/raspberrypi/linux/issues/4139
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
net/bluetooth/smp.c | 5 +----
|
|
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
|
--- a/net/bluetooth/smp.c
|
|
+++ b/net/bluetooth/smp.c
|
|
@@ -2222,7 +2222,7 @@ mackey_and_ltk:
|
|
if (err)
|
|
return SMP_UNSPECIFIED;
|
|
|
|
- if (smp->method == REQ_OOB) {
|
|
+ if (smp->method == JUST_WORKS || smp->method == REQ_OOB) {
|
|
if (test_bit(SMP_FLAG_INITIATOR, &smp->flags)) {
|
|
sc_dhkey_check(smp);
|
|
SMP_ALLOW_CMD(smp, SMP_CMD_DHKEY_CHECK);
|
|
@@ -2237,9 +2237,6 @@ mackey_and_ltk:
|
|
confirm_hint = 0;
|
|
|
|
confirm:
|
|
- if (smp->method == JUST_WORKS)
|
|
- confirm_hint = 1;
|
|
-
|
|
err = mgmt_user_confirm_request(hcon->hdev, &hcon->dst, hcon->type,
|
|
hcon->dst_type, passkey, confirm_hint);
|
|
if (err)
|