From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.178 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795553471; b=TVmRsLlI6BjB/R+ggsLa3mNyQaDgVZM6dzH8L+dl34qB9aFTpiM/zy9KBda7ZBzf/LYf 3UwJKlm+QLHruHWXedNy8hUWzh1PILpSVTf/HShyzygcoqsTXxSygw9kuWWvKwzK8IWj+ jV0kL7RvtxtxKnYRzGwyHwn7IZcYwI9RMQZFaS1S7AIGBohtOPI+F95/OkHIam1Og7KCH 0+aSGPYLzGNcVswBcrVKwQbd90kF+4f+7WQ5RN7YmyYKb1+ySLJYn9khZVR2oa6AIOZ/8 954ia2PqsVfK6mq5Btaw9j0xZ5C/URb6wpRdcm6s/CqUa3Gl6frrLLi+oIQOuEcCuJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795553471; 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=/fMqPJOo4CtWfoFBozSYSeCJUc96474lKzRhp1f3HjA=; b=gNm2G5yAv4dGToPO2HSzx+9T9qjfvt8oiXKhF2o9dqhaCsYn8qwYdWxmuIayFX2co1Gd DpaLPMo5E8TWV1jkcEx6t3iw41NqYLScrVtCe4miU35TaDVSB45FkPdzJuTkPNiS6H2Lm z4RBm0xlwZZCiORYZKw4q5z4918qcK6khWuBH4UPrjRkoH6HPUv4UkXFdvpigJKHvfaML IrpCDpGRwW8MzCxvG1hL4l5FtwbKNbaR+bOoznT4HBPzl79mJH5xXM+CqskxO/Uuc6Aeq VLWQajDIcZyVPTDO831x5eqvtQK2NVL/qkm32bfGA1uB3cpArBbm/hecCWk03VcpoTw== 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=CQWauUO7; arc=none smtp.remote-ip=209.85.221.178 Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (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 EA044606A326 for ; Tue, 24 Nov 2026 20:51:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EA044606A326 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=CQWauUO7 Received: by mail-vk1-f178.google.com with SMTP id 71dfb90a1353d-5ee3a3d281fso3212605e0c.3 for ; Tue, 24 Nov 2026 12:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795553470; x=1796158270; 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=/fMqPJOo4CtWfoFBozSYSeCJUc96474lKzRhp1f3HjA=; b=CQWauUO7VeNpqci7VvgWne1vmUMGxBcHLp02Xvm2qY7iteSVAxmrlNgl2uaeoOxJT5 ChBMPFPeH/CJp2QEXpMKgNZDO++PoqXhVpb8H1lLtKb5vZam+NQkfTDz9DiOrbDVPkKK P/NqfAPaBJrEsFapzdckiWoTqL9dLY7Ky7Dkb5/UMa0pG/08PPFUperL3aoqFmeT7HmW jCSV/amktkf+BLHg0NexWG8NMGDr7Kuzan4i49yUpH+YF9ZNULES1cIXwcaK/JQb6vhn g2EzAvGnYC2e6Q07pEM7UyoOTA+dTP5tMAEhDtt/tnLUl8gdIq9rNtOJTeImgCRC3V/k qxRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795553470; x=1796158270; 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=/fMqPJOo4CtWfoFBozSYSeCJUc96474lKzRhp1f3HjA=; b=aEH/5l1VAOP0isn/QOSDC/aeKuzwVI/G9mvv8PofT5SAznX85Pambuo+73H7bwOkR3 MJkBq/GYQT7NkS1pmkmnxQc78PsSba8WNE8dn1xd6bCZu3UVJ9YfMTzytaqkuiL7mkbn pBNuiHBIBYxZXEtPfQqDHuWb7BoC4qKKp4WRmqkAObpw5Qd/68Eyc9oO7HiKJpttGV0+ V2Mv0z5SdOdyz29M/rEoKJY9oKVwtBGZHcRtZeU5qlac66/Aysf1B+elL+cCPAFNoH38 ftj4NW7aQ58lkly0kp2U8QxRsrhlveXVA+NRzZSzCtLwXgj+bZwzNScTJhRhaPPapT9p bFBg== X-Gm-Message-State: APuU4Z+0ec0B0uwWBeVYOFqrWjXo33xjXjKd3ioDM+tbnrjmvIj6L/6c /u6A53uDurUyYuwXz55zfpZ0Z4XDZcAfiOaiWB2POOTzQI2rGGhT+wDf7zI5uw== X-Gm-Gg: AZFdTZe5DH/CnBHBHYaX7W8GDw6qshE2aTmCIN5ZLsp9PVsa+0OUA9POb2WJIasAbKA kylc+vuKNhNt+2yfNg7WNwOpYkb4wJ4bEj5NJ6t1PMlE3EBxZY4Z2yHCrn64Ko14wjwdrieysAj 9k/uFqvjsaBwaXL3ZwJdIUg27JQwrDuinPbmu9L0ahrXHOXyGJ+XgcguPUdltW0YNIx6gy3dAWn EfRB7QnqRyhXAW2uFGkUz0Rb2TwqtFXmonmFBb2AtnFpCbV6sJGc5BUu9O6uwjrQuH/yy4ETErZ AliKAFkfIwxpiK9urxY7V7uLPImPXkRt5QEGLObuXa30WCKANAWrvv8T/HbQKskxTBqi3pUdi1o baxKv7m1QQMG71H9QJrcHf+sYK4U/+LFECvclelEalrWEoVKGD2esdTH0P22vXggYR7HzHepYp0 DC8E4IEvsvJqPVquEu5icIo0N1SpEuhR6EPWDbv6wh54cbmmOb8sWn0BTGe9c31lg9tDKSX3Zfp Ed7kJ6a2TyGakrA26d4rxtr93d2jYScPK/9jJWQcCvSXUSDMuxOPoEUzl98n4wW557euJX5ETMS /X2hjfTLB6sbD7yG9av8D/sF5f3zqkgmBvdXwdS5FGd0GfDXsOHLaF31bSbM6Kgprt9ryEL3QuA FntO0bH9+6Gh7BdFSVksJUyUrxoSlMnGplsbXcssVqrKwzplrqOmdAkKK4XxxTPrgbI93Uxt7ml 9nDXs= X-Received: by 2002:a05:6122:3a15:b0:5ec:e237:b17a with SMTP id 71dfb90a1353d-5ee8af38b18mr9397508e0c.15.1795553469635; Tue, 24 Nov 2026 12:51:09 -0800 (PST) Received: from lvondent-mobl5.taila91cb8.ts.net ([72.188.211.115]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5ee91a4e0cfsm13929876e0c.13.2026.11.24.12.51.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 12:51:09 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v3 3/5] l2cap-tester: Add tests for security of deferred setup Date: Tue, 24 Nov 2026 15:51:00 -0500 Message-ID: <20261124205102.737384-4-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261124205102.737384-1-luiz.dentz@gmail.com> References: <20261124205102.737384-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 --- tools/l2cap-tester.c | 289 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 289 insertions(+) diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c index 4d2c5cd15c64..a83e98959093 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,6 +56,8 @@ 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; @@ -129,6 +133,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 +365,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 +626,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 +1237,17 @@ 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), + .expect_cmd_code = BT_L2CAP_PDU_LE_CONN_RSP, + .expect_cmd = le_connect_rsp, + .expect_cmd_len = sizeof(le_connect_rsp), +}; + static const uint8_t nval_le_connect_req[] = { 0x80, 0x00, /* PSM */ 0x01, 0x00, /* SCID */ 0x20, 0x00, /* MTU */ @@ -2223,6 +2351,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 +4080,113 @@ 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 void 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) { + tester_print("Nothing to accept while security is pending: " + "%s (%d)", strerror(errno), errno); + return; + } + + tester_print("Accepted sk = %d while security is pending", new_sk); + + io = tester_io_new(new_sk); + tester_io_set_close_on_unref(io, true); + + defer_keep(data, io); + defer_authorize(data, io); +} + +/* 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 || l2data->encrypt_off) && !data->step) { + tester_warn("Connection refused before %s", + l2data->hold_auth ? "accepting it" : + "disabling encryption"); + tester_test_failed(); + return true; + } + + return false; + } + + /* Authentication pending */ + if (l2data->hold_auth && status == 0x0001 && !data->step) { + data->step = 1; + 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 +4216,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 +4252,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 +4460,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 +4823,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 +5008,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