Use the default MTU until an MTU exchange has taken place and something else has been negotiated. If either side does not support MTU exchange, the connection shall continue to use this default value instead of the device maximum which was the previous behavior. --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 9586022..ea36848 100644 --- a/src/device.c +++ b/src/device.c @@ -4778,7 +4778,7 @@ bool device_attach_att(struct btd_device *dev, GIOChannel *io) } dev->att_mtu = MIN(mtu, BT_ATT_MAX_LE_MTU); - attrib = g_attrib_new(io, dev->att_mtu, false); + attrib = g_attrib_new(io, BT_ATT_DEFAULT_LE_MTU, false); if (!attrib) { error("Unable to create new GAttrib instance"); return false; -- 2.8.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html