linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] src/device: Use BT_ATT_DEFAULT_LE_MTU as default MTU
@ 2016-09-09 12:27 Tobias Svehagen
  2016-09-09 14:31 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 4+ messages in thread
From: Tobias Svehagen @ 2016-09-09 12:27 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Tobias Svehagen

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-13 14:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-09 12:27 [PATCH BlueZ] src/device: Use BT_ATT_DEFAULT_LE_MTU as default MTU Tobias Svehagen
2016-09-09 14:31 ` Luiz Augusto von Dentz
2016-09-09 23:32   ` Tobias Svehagen
2016-09-13 14:24     ` Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).