Linux bluetooth development
 help / color / mirror / Atom feed
* [bluez/bluez] 897d4c: btattach: Update for glibc 2.42 compatibility
@ 2026-09-03 23:13 Aaron Brice
  0 siblings, 0 replies; only message in thread
From: Aaron Brice @ 2026-09-03 23:13 UTC (permalink / raw)
  To: linux-bluetooth

  Branch: refs/heads/1157441
  Home:   https://github.com/bluez/bluez
  Commit: 897d4c2f6221c1bc284a8a57ea06085a4d85d088
      https://github.com/bluez/bluez/commit/897d4c2f6221c1bc284a8a57ea06085a4d85d088
  Author: Aaron Brice <aaron@embeddedts.com>
  Date:   2026-09-03 (Thu, 03 Sep 2026)

  Changed paths:
    M tools/btattach.c

  Log Message:
  -----------
  btattach: Update for glibc 2.42 compatibility

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.



To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-03 23:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 23:13 [bluez/bluez] 897d4c: btattach: Update for glibc 2.42 compatibility Aaron Brice

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