From 0da72fee044f96e7e6a4715dc7aab48eb8c1d5cb Mon Sep 17 00:00:00 2001 From: Tobias Svehagen Date: Fri, 9 Sep 2016 14:27:20 +0200 Subject: [PATCH] src/device: Use BT_ATT_DEFAULT_LE_MTU as default MTU 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 73bcc8fc1..fcb2378f4 100644 --- a/src/device.c +++ b/src/device.c @@ -4792,7 +4792,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.47.3