From: Javier Nieto <jgnieto@cs.stanford.edu>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: luiz.dentz@gmail.com, marcel@holtmann.org,
linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: hci_h5: avoid sending two SYNC messages
Date: Sat, 23 Aug 2025 14:05:42 -0700 [thread overview]
Message-ID: <aKotJuaUB2V6zdKc@macbookair.lan> (raw)
In-Reply-To: <06787d51-5d5e-4f74-bda6-b80cead5ed6d@molgen.mpg.de>
Dear Paul,
> Great commit message, thank you. I´d appreciate it if you documented your
> test environment, and maybe paste the logs (for the timestamps) before and
> after, so others could easily reproduce the issue.
Appologies for that. My test environment is a MangoPi MQ-Pro board
(with a Realtek RTL8723DS Bluetooth chip) running the tip of
bluetooth-next, although I also observed this issue on 6.8 kernel.
Originally, I spotted it using a logic analyzer on the UART PCB traces.
I added a temporary log message to h5_link_control(), which prints the
first byte and the length of the packet being sent. Here is the relevant
part before the patch:
[ 67.328445] Bluetooth: h5_link_control sending 1 with len 2
[ 67.432393] Bluetooth: h5_link_control sending 1 with len 2
[ 67.436424] Bluetooth: h5_link_control sending 3 with len 3
[ 67.436592] Bluetooth: h5_link_control sending 2 with len 2
[ 67.436693] Bluetooth: h5_link_control sending 3 with len 3
[ 67.439510] Bluetooth: h5_link_control sending 2 with len 2
[ 67.440004] Bluetooth: h5_link_control sending 4 with len 2
[ 67.440030] Bluetooth: h5_link_control sending 3 with len 3
And here after the patch:
[ 67.498228] Bluetooth: h5_link_control sending 1 with len 2
[ 67.501444] Bluetooth: h5_link_control sending 3 with len 3
[ 67.501615] Bluetooth: h5_link_control sending 2 with len 2
[ 67.504976] Bluetooth: h5_link_control sending 2 with len 2
[ 67.505141] Bluetooth: h5_link_control sending 4 with len 2
[ 67.505168] Bluetooth: h5_link_control sending 3 with len 3
Notice that in the first case, two SYNC packets (type 1) are sent, one 100ms
after the other, while in the second case only one is sent. In both
cases, using bluetoothctl to connect to a device later on works fine.
Thanks for the feedback,
Javier
prev parent reply other threads:[~2025-08-23 21:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-22 0:39 [PATCH] Bluetooth: hci_h5: avoid sending two SYNC messages Javier Nieto
2025-08-22 1:25 ` bluez.test.bot
2025-08-22 11:41 ` [PATCH] " Paul Menzel
2025-08-23 21:05 ` Javier Nieto [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aKotJuaUB2V6zdKc@macbookair.lan \
--to=jgnieto@cs.stanford.edu \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=pmenzel@molgen.mpg.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.