Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/1] btattach: Update for glibc 2.42 compatability
@ 2026-09-03 18:27 Aaron Brice
  2026-09-03 18:27 ` [PATCH BlueZ 1/1] " Aaron Brice
  2026-09-04 20:20 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 6+ messages in thread
From: Aaron Brice @ 2026-09-03 18:27 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Aaron Brice

btattach is not setting the baud rate correctly on systems with newer
glibc such as Ubuntu 26.04. In glibc 2.42 the baud rate termios.h
constants changed value, B115200 was 0x1002 which was the struct
termios c_cflag enum bits, but in 2.42 they changed cfsetspeed() to
accept arbitrary rates and not just the baud enum values, and B115200
was changed to the value 115200. This means you can no longer set the
speed with c_cflag |= B115200 and should use cfsetspeed() to be
compatible with both versions.

Aaron Brice (1):
  btattach: Update for glibc 2.42 compatability

 tools/btattach.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-04 20:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 18:27 [PATCH BlueZ 0/1] btattach: Update for glibc 2.42 compatability Aaron Brice
2026-09-03 18:27 ` [PATCH BlueZ 1/1] " Aaron Brice
2026-09-03 21:24   ` Bastien Nocera
2026-09-03 21:25   ` Bastien Nocera
2026-09-03 21:49   ` bluez.test.bot
2026-09-04 20:20 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox