All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] shared/att: Always queue BT_ATT_OP_MTU_REQ on the fixed channel
@ 2023-03-07 21:17 Luiz Augusto von Dentz
  2023-03-07 22:29 ` [BlueZ] " bluez.test.bot
  2023-03-11  0:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2023-03-07 21:17 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

BT_ATT_OP_MTU_REQ shall only be sent on the so called fixed channel
since EATT channels shall use L2CAP procedure to update its MTU.
---
 src/shared/att.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/shared/att.c b/src/shared/att.c
index b90af93ccbf8..85feead77d0f 100644
--- a/src/shared/att.c
+++ b/src/shared/att.c
@@ -1588,6 +1588,14 @@ unsigned int bt_att_send(struct bt_att *att, uint8_t opcode,
 
 	op->id = att->next_send_id++;
 
+	/* Always use fixed channel for BT_ATT_OP_MTU_REQ */
+	if (opcode == BT_ATT_OP_MTU_REQ) {
+		struct bt_att_chan *chan = queue_peek_tail(att->chans);
+
+		result = queue_push_tail(chan->queue, op);
+		goto done;
+	}
+
 	/* Add the op to the correct queue based on its type */
 	switch (op->type) {
 	case ATT_OP_TYPE_REQ:
@@ -1606,6 +1614,7 @@ unsigned int bt_att_send(struct bt_att *att, uint8_t opcode,
 		break;
 	}
 
+done:
 	if (!result) {
 		free(op->pdu);
 		free(op);
-- 
2.39.2


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

* RE: [BlueZ] shared/att: Always queue BT_ATT_OP_MTU_REQ on the fixed channel
  2023-03-07 21:17 [PATCH BlueZ] shared/att: Always queue BT_ATT_OP_MTU_REQ on the fixed channel Luiz Augusto von Dentz
@ 2023-03-07 22:29 ` bluez.test.bot
  2023-03-11  0:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2023-03-07 22:29 UTC (permalink / raw)
  To: linux-bluetooth, luiz.dentz

[-- Attachment #1: Type: text/plain, Size: 945 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=727615

---Test result---

Test Summary:
CheckPatch                    PASS      0.50 seconds
GitLint                       PASS      0.34 seconds
BuildEll                      PASS      26.32 seconds
BluezMake                     PASS      733.56 seconds
MakeCheck                     PASS      11.37 seconds
MakeDistcheck                 PASS      145.39 seconds
CheckValgrind                 PASS      237.76 seconds
CheckSmatch                   PASS      317.08 seconds
bluezmakeextell               PASS      95.08 seconds
IncrementalBuild              PASS      596.28 seconds
ScanBuild                     PASS      936.72 seconds



---
Regards,
Linux Bluetooth


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

* Re: [PATCH BlueZ] shared/att: Always queue BT_ATT_OP_MTU_REQ on the fixed channel
  2023-03-07 21:17 [PATCH BlueZ] shared/att: Always queue BT_ATT_OP_MTU_REQ on the fixed channel Luiz Augusto von Dentz
  2023-03-07 22:29 ` [BlueZ] " bluez.test.bot
@ 2023-03-11  0:40 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2023-03-11  0:40 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Tue,  7 Mar 2023 13:17:56 -0800 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> BT_ATT_OP_MTU_REQ shall only be sent on the so called fixed channel
> since EATT channels shall use L2CAP procedure to update its MTU.
> ---
>  src/shared/att.c | 9 +++++++++
>  1 file changed, 9 insertions(+)

Here is the summary with links:
  - [BlueZ] shared/att: Always queue BT_ATT_OP_MTU_REQ on the fixed channel
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=96ab7296cb92

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2023-03-11  0:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 21:17 [PATCH BlueZ] shared/att: Always queue BT_ATT_OP_MTU_REQ on the fixed channel Luiz Augusto von Dentz
2023-03-07 22:29 ` [BlueZ] " bluez.test.bot
2023-03-11  0:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.