Diff between 185c7ce8a4f22e9c9ecc9321a853ed8115f5aeaa and ea2718060e53386a1b85abe298b20096f067488f

Changed Files

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

Full Patch

diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index ee4de4b..fedc42e 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -627,14 +627,6 @@ uint8_t *g_attrib_get_buffer(GAttrib *attrib, int *len)
 gboolean g_attrib_set_mtu(GAttrib *attrib, int mtu)
 {
 	if (mtu < ATT_DEFAULT_LE_MTU)
-		mtu = ATT_DEFAULT_LE_MTU;
-
-	if (mtu > ATT_MAX_MTU)
-		mtu = ATT_MAX_MTU;
-
-	if (!bt_io_set(attrib->io, BT_IO_L2CAP, NULL,
-			BT_IO_OPT_OMTU, mtu,
-			BT_IO_OPT_INVALID))
 		return FALSE;
 
 	attrib->buf = g_realloc(attrib->buf, mtu);