From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 1/3] shared/att: Fix accepting Exchange MTU on EATT bearer
Date: Wed, 25 Aug 2021 14:14:13 -0700 [thread overview]
Message-ID: <20210825211415.1057804-1-luiz.dentz@gmail.com> (raw)
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
If remote send Exchange MTU it shall fail as the MTU negotiation shall
happen over L2CAP signalling not ATT for those channels.
---
src/shared/att.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/shared/att.c b/src/shared/att.c
index ccc753c4e..665d7f4b8 100644
--- a/src/shared/att.c
+++ b/src/shared/att.c
@@ -962,7 +962,8 @@ static void handle_notify(struct bt_att_chan *chan, uint8_t *pdu,
* link since the MTU size is negotiated using L2CAP channel
* configuration procedures.
*/
- if (bt_att_get_link_type(att) == BT_ATT_BREDR) {
+ if (bt_att_get_link_type(att) == BT_ATT_BREDR ||
+ chan->type == BT_ATT_EATT) {
switch (opcode) {
case BT_ATT_OP_MTU_REQ:
goto not_supported;
--
2.31.1
next reply other threads:[~2021-08-25 21:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-25 21:14 Luiz Augusto von Dentz [this message]
2021-08-25 21:14 ` [PATCH BlueZ 2/3] shared/att: Fix attempting to send Exchange MTU on EATT bearer Luiz Augusto von Dentz
2021-08-25 21:14 ` [PATCH BlueZ 3/3] gatt: Do not always attempt to connect EATT immediately Luiz Augusto von Dentz
2021-08-25 21:33 ` [BlueZ,1/3] shared/att: Fix accepting Exchange MTU on EATT bearer bluez.test.bot
2021-08-25 22:13 ` 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=20210825211415.1057804-1-luiz.dentz@gmail.com \
--to=luiz.dentz@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