From 6a56ddb583b33f628e5767837322e7d7b71fd1f8 Mon Sep 17 00:00:00 2001 From: Niclas Hoyer Date: Fri, 18 Apr 2025 02:06:03 +0200 Subject: [PATCH] Add patch for l2cap.c from bluepad32 This enables e.g. pairing a DualShock 3 controller. See https://github.com/ricardoquesada/bluepad32/blob/main/external/patches/0002-l2cap-allow-incoming-connection-with-not-enough.patch --- development/software/src/components/btstack/src/l2cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/development/software/src/components/btstack/src/l2cap.c b/development/software/src/components/btstack/src/l2cap.c index 32d8a4c..cd0c6ac 100644 --- a/development/software/src/components/btstack/src/l2cap.c +++ b/development/software/src/components/btstack/src/l2cap.c @@ -2457,7 +2457,7 @@ static void l2cap_handle_remote_supported_features_received(l2cap_channel_t * ch // incoming: assert security requirements channel->state = L2CAP_STATE_WAIT_INCOMING_SECURITY_LEVEL_UPDATE; - if (channel->required_security_level <= gap_security_level(channel->con_handle)){ + if (1) { l2cap_handle_security_level_incoming_sufficient(channel); } else { // send connection pending if not already done