Diff between 4c73cc65091b0ee5c9cb0181c7d33962e400ca0c and e758ebb6a144769777471727e1935620988d22f5

Changed Files

File Additions Deletions Status
src/device.c +3 -1 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 38e2321..4f1af70 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4987,7 +4987,9 @@ 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, BT_ATT_DEFAULT_LE_MTU, false);
+	attrib = g_attrib_new(io,
+			cid == ATT_CID ? BT_ATT_DEFAULT_LE_MTU : dev->att_mtu,
+			false);
 	if (!attrib) {
 		error("Unable to create new GAttrib instance");
 		return false;