Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.217.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795641126; b=enhZiAg/lu4S7Q4oQWpTDiiTnJXAy1gbbYnw4I3VX2jGAN/5v0dBk9eCIZQlP5YtDicx G3OP+RXGI2YOzW3Pj6A5Xt2VXEYTM1+Cm/2TshgXV+uJh++6HNA/MroTUJgt5NiY9UwvS /gnRKNUyeNMZl9TZyDLiXCPnEMaK1SIMvxv4pDLKf+qKQDHskjyB35enFpVHqtvBGIWZF sDOED+vJfQHlJQkYQQtTupg37p0vyXdZ706GrTjVwDXx9/6hYdS1H6qZO3tMI2alNZrTZ TpcPGPmRG1ccj3Fm8ZVI5j3UUQnCl6fSxo81h5ARYDS8LMmw4up2PbwKOzykglR4WXg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795641126; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=ttqeGnM4KT8D+thSlvlBt66oPWpW121bZWT9PAFOHRw=; b=3OJql83pNvc3IpqRE/vwxbGtWCzHwZ7Jdx7s1oq8hOAqzE29xurRI2E+vC2Zgj0mvNha V/Bxxn3xEfGmJXlEjdW/03caOuMRcM1vjXocybLBp8+Lz6ePf4sCUHUVFW7MaIKHvbFC6 k936uNI6Zrti1zAerBF7wSt1FcJEfdapW1M1vY06R3Xq1jXnBX72VW3732SeHwZjYFGZy widAadWKKDRaYlz3stGPVS1Rws4YRILUAC1EXw2RClFzbbAKnwpTDGuxH6P32dTSKwLwt UHO+aFS0xQOHVMQhJrSGPTZ46LvR76S+LL4oChE4z1RuZ/AaD/4wu5zmoi5dmDysiEg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="unFSz/KQ"; arc=none smtp.remote-ip=209.85.217.51 Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3387A606A326 for ; Wed, 25 Nov 2026 21:12:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3387A606A326 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=unFSz/KQ Received: by mail-vs1-f51.google.com with SMTP id ada2fe7eead31-7777fa8f1ccso2371697137.3 for ; Wed, 25 Nov 2026 13:12:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795641125; x=1796245925; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=ttqeGnM4KT8D+thSlvlBt66oPWpW121bZWT9PAFOHRw=; b=unFSz/KQH91COq75JPZOghnTc12oFnL5ze0Rgii4dsEz/YY2hdFVUdz1sHMMkHck14 YXnDjkirBBxCROIB27IDWCgDsV5hD17ztvLvzSkz/gXcAFNQuOTezZhLVrxhVRgjmbGK 8Vo/zBVcE2cC8TBIf+/FKWXcbwV1VrlONvKrYmFCoJB1l5rbhJbAhNifOK5rf/XrMUVk 1Oe2lpD97ObnZjcYHPWsPOaNKn16HJJ9e+MyCUmP9j58LhjqnthxyWiG5TBj5SXr32vf Gyt/tRYLCW4/Z4w2hFHUQiX9lcAs6dP1TtVG6hkFqehFw7SJbhkIgsEtefuMPNHtz2mF j+6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795641125; x=1796245925; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=ttqeGnM4KT8D+thSlvlBt66oPWpW121bZWT9PAFOHRw=; b=Np84QXxcTsKC2MfF4ornnsAoEeuQSM9sXDuMDJe9tT8oxQnB1EDwRubL5lVMS3k5T4 g6NcQH+rFtPiyOvtnO2ZunQkAOJ/4MpXHuIPfuuVVEqPN9hInwpJxzCRs6jINI2LP/NL L6pAGZSCoRkyKwHjCD6tNwA8qg31yGpg6r3O0HCh8S/rfKb3nVtagoXlAkiGq4ojl1m6 rLa5bp5/muNowNovAp/zmMC4neAu4YHogA4us3dZs47dlgwBFgRUFecSqnv5eWmK2TgN lRAE6vhCti6WQGgYKqHLEBonGDLPM/zoIuJ1reL7PZe/V2wHBU4sXB36dyxUYO0u48Ez VvEA== X-Gm-Message-State: APuU4Z9q/xs+XjLvbAA/7StR/bEYmoOZd0UhfnWPKnLR3qFyvV9Dlohb Wp/7Wj3RNOElw5kUBVvEvvsWLcIC9UAE0cju1HIogwrw/aDROouyC1cxsaFj8g== X-Gm-Gg: AZFdTZcv7hweFU5VbEflQfhrS8BEZxWf+Bv46Z1FGUufCEKCVtedDbH/efD3s9vZ9rc imWfas/EZOP5q5MrZII8a1/KrnPCWIBbu8Cs5fGf/9v03kP9StqydWBYoGhquH562z45p2RW73n 6cJHdxXjnCU4Z2U6p+PHANRVbo5wfpgTxN05QGiSZCNL9oEEuCnzmr0MeHNJOSYankEKNywXXkZ h/X6CXWnNtQ6ACzBQmdg5ar20Ndw6Pql6qAGL2K3STwdcSIKC75pYn9jNm0rU2coxBb6uyjqzs6 H5EhnPIpAQGx6IldHXsafIcSnNpdcXqP1/zf6haYZJSC4VasYd+PWoAj1AbAeaes0rrbczqSXWR vYFsoNq+bVXlzvCi8DSsfRNQ5RszsUkLhDO0oP6qWr62T+pV360lcoIrT6G9heNjoYHtbFg1JYR hszZeW0gulrd/VgZj9x9oFpYDWfvmfOBhgdPAWTeZMX+QgzE+4eFkISU386trN9cD85yDv+MnQM iNFC+6Lg6hclZp50zGOZjBGaAT4m4Eh3lMiL7b2j52lG29WLY6cmlgQSzMJ9YckqusiwrNGbtgA MuaegT38ZgwA5msMZpE1ozfdhXYkP490M9I7eObMRB+sLzVkq0D1xOFJJkDALL16xNoFhcEMz3u SOJQGwHz7OcdDVRWdXhsbhUeTAsX2SC8PVJYddX4OdtgEymF8xrcS8+7SShdOHa6Y1LHpmfTTXN AuPIM= X-Received: by 2002:a05:6102:6e88:b0:7cc:2152:4f72 with SMTP id ada2fe7eead31-7d72b361a7fmr8623751137.1.1795641124955; Wed, 25 Nov 2026 13:12:04 -0800 (PST) Received: from lvondent-mobl5.taila91cb8.ts.net ([72.188.211.115]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-99e6e0686b1sm20199653241.10.2026.11.25.13.12.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 13:12:04 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v4 3/6] l2cap-tester: Add tests for security of deferred setup Date: Wed, 25 Nov 2026 16:11:57 -0500 Message-ID: <20261125211200.1955466-4-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261125211200.1955466-1-luiz.dentz@gmail.com> References: <20261125211200.1955466-1-luiz.dentz@gmail.com> X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz Add the following tests: L2CAP BR/EDR Server - Security Block Pairing Failed L2CAP BR/EDR Server - Security Block Downgrade L2CAP BR/EDR Server - Defer Success L2CAP BR/EDR Server - Defer Encryption Off L2CAP BR/EDR Server - Defer Early Accept L2CAP LE Server - Defer Success Defer Encryption Off has the peer disabling encryption while the connection waits for the listener to authorize it, and Defer Early Accept has the listener accepting and authorizing the connection while authentication, which then fails, is still pending. Both expect the connection to be blocked instead of being established. Security Block Pairing Failed covers the connection being blocked once pairing fails after the request has been responded as pending, since L2CAP BR/EDR Server - Security Block is rejected before that, and Security Block Downgrade covers pairing succeeding with a key that doesn't meet the security level required. Assisted-by: OpenCode:claude-fable-5.2 Signed-off-by: Luiz Augusto von Dentz --- tools/l2cap-tester.c | 305 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 305 insertions(+) diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c index 4d2c5cd15c64..6ad8a7aae717 100644 --- a/tools/l2cap-tester.c +++ b/tools/l2cap-tester.c @@ -26,6 +26,8 @@ #include "monitor/bt.h" #include "emulator/bthost.h" +#include "emulator/btdev.h" +#include "emulator/vhci.h" #include "emulator/hciemu.h" #include "src/shared/tester.h" @@ -54,9 +56,15 @@ struct test_data { int sk2; int reencrypt_sk; int opp_sk; + int listen_sk; + struct tester_io *defer_io; bool opp_encrypted; bool host_disconnected; int step; + /* Result of accepting while security is pending: 1 if there was nothing + * to accept, 2 if a connection was accepted and authorized + */ + int early_accept; struct queue *io_channels; struct tx_tstamp_data tx_ts; }; @@ -129,6 +137,12 @@ struct l2cap_data { bool direct_advertising; bool close_1; bool defer; + bool hold_auth; + bool encrypt_off; + /* Follow a pending connection response until the final one */ + bool pending_rsp; + /* Link key type the controller reports instead of the actual one */ + uint8_t link_key_type; bool shut_sock_wr; @@ -355,6 +369,8 @@ static void test_data_free(void *test_data) test_l2cap(name, HCIEMU_TYPE_BREDRLE70, data, setup, func) static uint8_t pair_device_pin[] = { 0x30, 0x30, 0x30, 0x30 }; /* "0000" */ +/* "1111" */ +static uint8_t pair_device_wrong_pin[] = { 0x31, 0x31, 0x31, 0x31 }; static const struct l2cap_data client_connect_success_test = { .client_psm = 0x1001, @@ -614,6 +630,111 @@ static const struct l2cap_data l2cap_server_sec_block_test = { .enable_ssp = true, }; +static const uint8_t l2cap_defer_sec_block_rsp[] = { + 0x40, 0x00, /* dcid */ + 0x41, 0x00, /* scid */ + 0x03, 0x00, /* Sec Block */ + 0x00, 0x00 /* status */ +}; + +/* No response is expected so the test only passes once the socket is + * connected, after the connection has been authorized. + */ +static const struct l2cap_data l2cap_server_defer_success_test = { + .server_psm = 0x1001, + .defer = true, + .send_cmd_code = BT_L2CAP_PDU_CONN_REQ, + .send_cmd = l2cap_connect_req, + .send_cmd_len = sizeof(l2cap_connect_req), +}; + +/* Pairing fails after the connection request has been answered as pending, + * unlike l2cap_server_sec_block_test which is rejected right away. + */ +static const struct l2cap_data l2cap_server_sec_block_pairing_test = { + .server_psm = 0x1001, + .send_cmd_code = BT_L2CAP_PDU_CONN_REQ, + .send_cmd = l2cap_connect_req, + .send_cmd_len = sizeof(l2cap_connect_req), + .expect_cmd_code = BT_L2CAP_PDU_CONN_RSP, + .expect_cmd = l2cap_defer_sec_block_rsp, + .expect_cmd_len = sizeof(l2cap_defer_sec_block_rsp), + .sec_level = BT_SECURITY_MEDIUM, + .pin = pair_device_pin, + .pin_len = sizeof(pair_device_pin), + .client_pin = pair_device_wrong_pin, + .client_pin_len = sizeof(pair_device_wrong_pin), + .pending_rsp = true, +}; + +/* "0000000000000000" */ +static uint8_t pair_device_pin16[] = { 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, + 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, + 0x30, 0x30, 0x30, 0x30 }; + +/* Pairing succeeds but the controller reports an unauthenticated key, so + * encryption completes with a security level below the one required. + */ +static const struct l2cap_data l2cap_server_sec_block_downgrade_test = { + .server_psm = 0x1001, + .send_cmd_code = BT_L2CAP_PDU_CONN_REQ, + .send_cmd = l2cap_connect_req, + .send_cmd_len = sizeof(l2cap_connect_req), + .expect_cmd_code = BT_L2CAP_PDU_CONN_RSP, + .expect_cmd = l2cap_defer_sec_block_rsp, + .expect_cmd_len = sizeof(l2cap_defer_sec_block_rsp), + .sec_level = BT_SECURITY_HIGH, + .pin = pair_device_pin16, + .pin_len = sizeof(pair_device_pin16), + .client_pin = pair_device_pin16, + .client_pin_len = sizeof(pair_device_pin16), + .link_key_type = 0x04, + .pending_rsp = true, +}; + +/* The peer disables encryption while the connection waits for userspace to + * authorize it, the link no longer meets the security level so the connection + * shall be blocked instead of being offered again. + */ +static const struct l2cap_data l2cap_server_defer_encrypt_off_test = { + .server_psm = 0x1001, + .defer = true, + .send_cmd_code = BT_L2CAP_PDU_CONN_REQ, + .send_cmd = l2cap_connect_req, + .send_cmd_len = sizeof(l2cap_connect_req), + .expect_cmd_code = BT_L2CAP_PDU_CONN_RSP, + .expect_cmd = l2cap_defer_sec_block_rsp, + .expect_cmd_len = sizeof(l2cap_defer_sec_block_rsp), + .sec_level = BT_SECURITY_MEDIUM, + .pin = pair_device_pin, + .pin_len = sizeof(pair_device_pin), + .client_pin = pair_device_pin, + .client_pin_len = sizeof(pair_device_pin), + .client_encrypt = true, + .encrypt_off = true, +}; + +/* The listener accepts and authorizes the connection while authentication is + * still pending and then authentication fails, the connection shall be + * blocked. + */ +static const struct l2cap_data l2cap_server_defer_early_accept_test = { + .server_psm = 0x1001, + .defer = true, + .send_cmd_code = BT_L2CAP_PDU_CONN_REQ, + .send_cmd = l2cap_connect_req, + .send_cmd_len = sizeof(l2cap_connect_req), + .expect_cmd_code = BT_L2CAP_PDU_CONN_RSP, + .expect_cmd = l2cap_defer_sec_block_rsp, + .expect_cmd_len = sizeof(l2cap_defer_sec_block_rsp), + .sec_level = BT_SECURITY_MEDIUM, + .pin = pair_device_pin, + .pin_len = sizeof(pair_device_pin), + .client_pin = pair_device_wrong_pin, + .client_pin_len = sizeof(pair_device_wrong_pin), + .hold_auth = true, +}; + static const uint8_t l2cap_nval_psm_rsp[] = { 0x00, 0x00, /* dcid */ 0x41, 0x00, /* scid */ 0x02, 0x00, /* nval PSM */ @@ -1120,6 +1241,14 @@ static const struct l2cap_data le_server_success_test = { .expect_cmd_len = sizeof(le_connect_rsp), }; +static const struct l2cap_data le_server_defer_success_test = { + .server_psm = 0x0080, + .defer = true, + .send_cmd_code = BT_L2CAP_PDU_LE_CONN_REQ, + .send_cmd = le_connect_req, + .send_cmd_len = sizeof(le_connect_req), +}; + static const uint8_t nval_le_connect_req[] = { 0x80, 0x00, /* PSM */ 0x01, 0x00, /* SCID */ 0x20, 0x00, /* MTU */ @@ -2223,6 +2352,20 @@ static void setup_powered_common(void) if (test && test->reject_ssp) bthost_set_reject_user_confirm(bthost, true); + if (test && test->hold_auth) + bthost_hold_auth_request(bthost, true); + + if (test && test->link_key_type) { + struct vhci *vhci = hciemu_get_vhci(data->hciemu); + + btdev_set_link_key_type(vhci_get_btdev(vhci), + test->link_key_type); + } + + if (test && (test->hold_auth || test->encrypt_off || + test->pending_rsp)) + bthost_set_l2cap_rsp_pending(bthost, true); + if (data->hciemu_type >= HCIEMU_TYPE_LE) mgmt_send(data->mgmt, MGMT_OP_SET_LE, data->mgmt_index, sizeof(param), param, NULL, NULL, NULL); @@ -3938,6 +4081,128 @@ static bool defer_accept(struct test_data *data, struct tester_io *io, return true; } +/* Keep an accepted socket open until the test ends */ +static void defer_keep(struct test_data *data, struct tester_io *io) +{ + if (!data->io_channels) + data->io_channels = queue_new(); + + queue_push_tail(data->io_channels, io); +} + +/* Authorize a deferred connection without closing its socket */ +static void defer_authorize(struct test_data *data, struct tester_io *io) +{ + int sk = tester_io_get_fd(io); + ssize_t ret; + char c; + + ret = recv(sk, &c, 1, MSG_DONTWAIT); + + tester_print("Authorize deferred setup sk = %d: %zd (%s)", sk, ret, + ret < 0 ? strerror(errno) : "ok"); +} + +/* Behave like a listener that does not wait to be notified: accept and + * authorize whatever connection is queued. + */ +static bool early_accept(struct test_data *data) +{ + struct tester_io *io; + int new_sk; + + new_sk = accept(data->listen_sk, NULL, NULL); + if (new_sk < 0) { + if (errno != EAGAIN && errno != EWOULDBLOCK) { + tester_warn("accept failed: %s (%d)", strerror(errno), + errno); + tester_test_failed(); + return false; + } + + tester_print("Nothing to accept while security is pending"); + data->early_accept = 1; + return true; + } + + tester_print("Accepted sk = %d while security is pending", new_sk); + data->early_accept = 2; + + io = tester_io_new(new_sk); + tester_io_set_close_on_unref(io, true); + + defer_keep(data, io); + defer_authorize(data, io); + + return true; +} + +/* Handle the responses of the tests that follow a pending connection until + * its final response. Returns true if there is nothing else to check. + */ +static bool server_security_rsp(struct test_data *data, + const struct bt_l2cap_pdu_conn_rsp *rsp) +{ + const struct l2cap_data *l2data = data->test_data; + struct bthost *bthost = hciemu_client_get_host(data->hciemu); + uint16_t result = le16_to_cpu(rsp->result); + uint16_t status = le16_to_cpu(rsp->status); + + tester_print("Connection response result 0x%04x status 0x%04x", + result, status); + + if (!result) { + tester_warn("Connection accepted without required security"); + tester_test_failed(); + return true; + } + + /* Not pending, check the final response, which only counts if the + * action the test is about was done before it. + */ + if (result != 0x0001) { + if (l2data->hold_auth && !data->early_accept) { + tester_warn("Connection refused before accepting it"); + tester_test_failed(); + return true; + } + + if (l2data->encrypt_off && !data->step) { + tester_warn("Connection refused before disabling " + "encryption"); + tester_test_failed(); + return true; + } + + return false; + } + + /* Authentication pending */ + if (l2data->hold_auth && status == 0x0001 && !data->step) { + data->step = 1; + if (early_accept(data)) + bthost_release_auth_request(bthost); + return true; + } + + /* Authorization pending */ + if (l2data->encrypt_off && status == 0x0002) { + if (!data->step) { + data->step = 1; + tester_print("Disabling encryption"); + bthost_set_conn_encrypt(bthost, data->handle, 0x00); + return true; + } + + /* Offered again after encryption was disabled, authorize it */ + data->step = 2; + if (data->defer_io) + defer_authorize(data, data->defer_io); + } + + return true; +} + static bool l2cap_listen_cb(struct tester_io *io, uint32_t cond, void *user_data) { @@ -3967,6 +4232,15 @@ static bool l2cap_listen_cb(struct tester_io *io, uint32_t cond, return false; } + /* Authorize only after the peer has disabled encryption */ + if (l2data->encrypt_off) { + data->defer_io = io; + defer_keep(data, io); + if (data->step > 1) + defer_authorize(data, io); + return false; + } + if (!defer_accept(data, io, l2cap_accept_cb)) { tester_warn("Unable to accept deferred setup"); tester_test_failed(); @@ -3994,6 +4268,12 @@ static void client_l2cap_rsp(uint8_t code, const void *data, uint16_t len, if (code == BT_L2CAP_PDU_CONN_RSP) { const struct bt_l2cap_pdu_conn_rsp *rsp = data; + + if ((l2data->hold_auth || l2data->encrypt_off || + l2data->pending_rsp) && len >= sizeof(*rsp) && + server_security_rsp(test_data, rsp)) + return; + if (len == sizeof(rsp) && !rsp->result && !rsp->status) return; @@ -4196,6 +4476,8 @@ static void start_test_server(const void *test_data, bthost_new_conn_cb conn_cb, return; } + data->listen_sk = sk; + io = tester_io_new(sk); tester_io_set_close_on_unref(io, true); @@ -4557,6 +4839,26 @@ int main(int argc, char *argv[]) &l2cap_server_sec_block_test, setup_powered_server, test_server); + test_l2cap_bredr("L2CAP BR/EDR Server - Security Block Pairing Failed", + &l2cap_server_sec_block_pairing_test, + setup_powered_server, test_server); + + test_l2cap_bredr("L2CAP BR/EDR Server - Security Block Downgrade", + &l2cap_server_sec_block_downgrade_test, + setup_powered_server, test_server); + + test_l2cap_bredr("L2CAP BR/EDR Server - Defer Success", + &l2cap_server_defer_success_test, + setup_powered_server, test_server); + + test_l2cap_bredr("L2CAP BR/EDR Server - Defer Encryption Off", + &l2cap_server_defer_encrypt_off_test, + setup_powered_server, test_server); + + test_l2cap_bredr("L2CAP BR/EDR Server - Defer Early Accept", + &l2cap_server_defer_early_accept_test, + setup_powered_server, test_server); + test_l2cap_bredr("L2CAP BR/EDR Server - Invalid PSM", &l2cap_server_nval_psm_test, setup_powered_server, test_server); @@ -4722,6 +5024,9 @@ int main(int argc, char *argv[]) setup_powered_client, test_connect); test_l2cap_le("L2CAP LE Server - Success", &le_server_success_test, setup_powered_server, test_server); + test_l2cap_le("L2CAP LE Server - Defer Success", + &le_server_defer_success_test, + setup_powered_server, test_server); test_l2cap_le("L2CAP LE Server - Nval SCID", &le_server_nval_scid_test, setup_powered_server, test_server); test_l2cap_le("L2CAP LE Server - PHY", &le_server_phy_test, -- 2.56.0