Skip to content

Fix incoming attrib-server connection MTUs

Brian Gix linux-bluetooth 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 0 repliesNew

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] Fix incoming attrib-server connection MTUs

This patch fixes bug detected by Johan.

The reworked patch passes a user_data argument to the bt_io_listen call which identifies the server IO channel (le_io or l2cap_io). This is propegated to the eventual connect_event, and used to set up the correct default MTU for the underlying RF carrier channel.

As stated in the previous patches, this default MTU is important when reading long Attributes, because some/most remote GATT clients assume completion of an Attribute read when a shorter-than-MTU result is returned, making it important for the server to completely fill the response packets when possible.

--
Brian Gix
[email protected]
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum