[bluez/bluez] d94844: hciemu: Fix silently dropping packet if writev ret...

From: Luiz Augusto von Dentz <hidden>
Date: 2026-02-26 20:21:03

  Branch: refs/heads/1058640
  Home:   https://github.com/bluez/bluez
  Commit: d9484420164c5487b35b696bb5e97e3f0a6d25c1
      https://github.com/bluez/bluez/commit/d9484420164c5487b35b696bb5e97e3f0a6d25c1
  Author: Luiz Augusto von Dentz [off-list ref]
  Date:   2026-02-26 (Thu, 26 Feb 2026)

  Changed paths:
    M emulator/hciemu.c

  Log Message:
  -----------
  hciemu: Fix silently dropping packet if writev return -EAGAIN

The code has been silently dropping packets due to lack of buffer
since hciemu design is single threaded it cannot do partial writes
or flushes to force the buffer to be consumed and give space to the
next chunk, so in order to fix this the code will now attempt to
detect if a socket runs out of space and automatically bump the
buffer with use of SO_SNDBUF.


  Commit: 63ee6a0a5629453243dff7477fb127de719e3414
      https://github.com/bluez/bluez/commit/63ee6a0a5629453243dff7477fb127de719e3414
  Author: Luiz Augusto von Dentz [off-list ref]
  Date:   2026-02-26 (Thu, 26 Feb 2026)

  Changed paths:
    M emulator/bthost.c

  Log Message:
  -----------
  bthost: Add segmentation support for L2CAP LE-(E)CRED mode

This fixes the following tests since the kernel now attempts to
check if a segment length is bigger than the MPS:

L2CAP LE Client - Read 32k Success - run
  Connect in progress
  Client connect CID 0x0040 handle 0x0001
  Successfully connected to CID 0x0040
Bluetooth: Too big LE L2CAP MPS: len 672 > 188

L2CAP LE Client - RX Timestamping 32k - run
  Connect in progress
  Client connect CID 0x0040 handle 0x0001
  Successfully connected to CID 0x0040
Bluetooth: Too big LE L2CAP MPS: len 672 > 188


Compare: https://github.com/bluez/bluez/compare/d9484420164c%5E...63ee6a0a5629

To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help