From: Tobias Svehagen <tobias.svehagen@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Tobias Svehagen <tobias.svehagen@gmail.com>
Subject: [PATCH BlueZ] src/device: Use BT_ATT_DEFAULT_LE_MTU as default MTU
Date: Fri, 9 Sep 2016 14:27:20 +0200 [thread overview]
Message-ID: <20160909122720.2404-1-tobias.svehagen@gmail.com> (raw)
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
next reply other threads:[~2016-09-09 12:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 12:27 Tobias Svehagen [this message]
2016-09-09 14:31 ` [PATCH BlueZ] src/device: Use BT_ATT_DEFAULT_LE_MTU as default MTU Luiz Augusto von Dentz
2016-09-09 23:32 ` Tobias Svehagen
2016-09-13 14:24 ` Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160909122720.2404-1-tobias.svehagen@gmail.com \
--to=tobias.svehagen@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).