* [PATCH] Bluetooth: lib: Map Connection Failed to be Established to ETIMEDOUT
@ 2026-11-22 20:09 Simon Mikuda
2026-11-22 22:55 ` bluez.test.bot
2026-11-23 19:29 ` [PATCH] " Luiz Augusto von Dentz
0 siblings, 2 replies; 3+ messages in thread
From: Simon Mikuda @ 2026-11-22 20:09 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Simon Mikuda, Marcel Holtmann, Luiz Augusto von Dentz
Connection Failed to be Established / Synchronization Timeout (0x3e) is
not handled by bt_to_errno() so it is reported to userspace as ENOSYS.
It is the error the controller uses when the first packets of an LE
connection or CIS are not received, and when it cannot synchronize to
a periodic advertising train or BIG in time, i.e. a timeout, so map it
to ETIMEDOUT like Connection Timeout (0x08).
This changes what userspace sees: connect() on an L2CAP LE or ISO (CIS)
socket that fails with 0x3e now reports ETIMEDOUT instead of ENOSYS.
BlueZ iso-tester "ISO Connect - Reject" expects ENOSYS for this case
and needs "iso-tester: Accept ETIMEDOUT for Connection Failed to be
Established" to pass.
Signed-off-by: Simon Mikuda <simon.mikuda@streamunlimited.com>
---
net/bluetooth/lib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c
index cea21a4c49a0..0f84c397891a 100644
--- a/net/bluetooth/lib.c
+++ b/net/bluetooth/lib.c
@@ -89,6 +89,7 @@ int bt_to_errno(__u16 code)
return ENOMEM;
case 0x08:
+ case 0x3e:
return ETIMEDOUT;
case 0x09:
base-commit: 4fe38719e6738feaa90486e36b0790dd5d960a96
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: Bluetooth: lib: Map Connection Failed to be Established to ETIMEDOUT
2026-11-22 20:09 [PATCH] Bluetooth: lib: Map Connection Failed to be Established to ETIMEDOUT Simon Mikuda
@ 2026-11-22 22:55 ` bluez.test.bot
2026-11-23 19:29 ` [PATCH] " Luiz Augusto von Dentz
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-11-22 22:55 UTC (permalink / raw)
To: linux-bluetooth, simon.mikuda
[-- Attachment #1: Type: text/plain, Size: 1880 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/series/1218946/
---Test result---
Test Summary:
CheckPatch PASS 0.76 seconds
VerifyFixes PASS 0.13 seconds
VerifySignedoff PASS 0.13 seconds
GitLint PASS 0.35 seconds
SubjectPrefix PASS 0.12 seconds
BuildKernel PASS 32.33 seconds
CheckAllWarning PASS 36.59 seconds
CheckSparse PASS 38.80 seconds
BuildKernel32 PASS 32.27 seconds
CheckKernelLLVM PASS 35.25 seconds
TestRunnerSetup PASS 760.56 seconds
TestRunner_l2cap-tester PASS 15.04 seconds
TestRunner_iso-tester FAIL 17.17 seconds
TestRunner_bnep-tester PASS 3.20 seconds
TestRunner_mgmt-tester PASS 89.94 seconds
TestRunner_rfcomm-tester PASS 4.55 seconds
TestRunner_sco-tester PASS 5.68 seconds
TestRunner_ioctl-tester PASS 4.71 seconds
TestRunner_mesh-tester PASS 4.60 seconds
TestRunner_smp-tester PASS 4.41 seconds
TestRunner_userchan-tester PASS 3.26 seconds
TestRunner_6lowpan-tester PASS 4.46 seconds
IncrementalBuild PASS 29.53 seconds
Details
##############################
Test: TestRunner_iso-tester - FAIL
Desc: Run iso-tester with test-runner
Output:
Total: 213, Passed: 212 (99.5%), Failed: 1, Not Run: 0
Failed Test Cases
ISO Connect - Reject Failed 0.042 seconds
https://github.com/bluez/bluetooth-next/pull/1191
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Bluetooth: lib: Map Connection Failed to be Established to ETIMEDOUT
2026-11-22 20:09 [PATCH] Bluetooth: lib: Map Connection Failed to be Established to ETIMEDOUT Simon Mikuda
2026-11-22 22:55 ` bluez.test.bot
@ 2026-11-23 19:29 ` Luiz Augusto von Dentz
1 sibling, 0 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-23 19:29 UTC (permalink / raw)
To: Simon Mikuda; +Cc: linux-bluetooth, Marcel Holtmann
Hi Simon,
On Sun, Nov 22, 2026 at 3:09 PM Simon Mikuda
<simon.mikuda@streamunlimited.com> wrote:
>
> Connection Failed to be Established / Synchronization Timeout (0x3e) is
> not handled by bt_to_errno() so it is reported to userspace as ENOSYS.
>
> It is the error the controller uses when the first packets of an LE
> connection or CIS are not received, and when it cannot synchronize to
> a periodic advertising train or BIG in time, i.e. a timeout, so map it
> to ETIMEDOUT like Connection Timeout (0x08).
>
> This changes what userspace sees: connect() on an L2CAP LE or ISO (CIS)
> socket that fails with 0x3e now reports ETIMEDOUT instead of ENOSYS.
> BlueZ iso-tester "ISO Connect - Reject" expects ENOSYS for this case
> and needs "iso-tester: Accept ETIMEDOUT for Connection Failed to be
> Established" to pass.
I don't see any patch for userspace, though; did you forget to send it?
> Signed-off-by: Simon Mikuda <simon.mikuda@streamunlimited.com>
> ---
> net/bluetooth/lib.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c
> index cea21a4c49a0..0f84c397891a 100644
> --- a/net/bluetooth/lib.c
> +++ b/net/bluetooth/lib.c
> @@ -89,6 +89,7 @@ int bt_to_errno(__u16 code)
> return ENOMEM;
>
> case 0x08:
> + case 0x3e:
> return ETIMEDOUT;
>
> case 0x09:
>
> base-commit: 4fe38719e6738feaa90486e36b0790dd5d960a96
> --
> 2.43.0
>
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-23 19:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 20:09 [PATCH] Bluetooth: lib: Map Connection Failed to be Established to ETIMEDOUT Simon Mikuda
2026-11-22 22:55 ` bluez.test.bot
2026-11-23 19:29 ` [PATCH] " Luiz Augusto von Dentz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.