Diff between 72bc4cec9e16379c2d5ed1230c2756fca2f192bf and 7dcd7babce72bab490d2372d6b6668a0c8b7df0b

Changed Files

File Additions Deletions Status
attrib/gattrib.c +3 -0 modified

Full Patch

diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index ce7f7b3..a04a0ee 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -83,6 +83,9 @@ GAttrib *g_attrib_new(GIOChannel *io, guint16 mtu)
 	if (!attr->att)
 		goto fail;
 
+	if (!bt_att_set_mtu(attr->att, mtu))
+		goto fail;
+
 	attr->buf = malloc0(mtu);
 	attr->buflen = mtu;
 	if (!attr->buf)