diff mbox series

[BlueZ,v2,2/2] a2dp: enable input MTU auto-tuning for the server

Message ID 20250129084950.41987-2-pchelkin@ispras.ru (mailing list archive)
State Accepted
Commit 252a32ac0b3f6f2d34747fb9d9ba6f34e1b9f8be
Headers show
Series [BlueZ,v2,1/2] audio: actually try to enable MTU auto-tuning | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success

Commit Message

Fedor Pchelkin Jan. 29, 2025, 8:49 a.m. UTC
L2CAP frames are lost while utilizing some exotic A2DP transports
usually coming up with weird custom MTU sizes so take advantage of
auto-tuning it for such cases.

Found by Linux Verification Center (linuxtesting.org).

Fixes: https://github.com/bluez/bluez/issues/1080
---
 profiles/audio/a2dp.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index c97bd6e89..438ef29a8 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -2592,6 +2592,8 @@  static bool a2dp_server_listen(struct a2dp_server *server)
 				BT_IO_OPT_MODE, mode,
 				BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_MEDIUM,
 				BT_IO_OPT_CENTRAL, true,
+				/* Set Input MTU to 0 for auto-tune attempt */
+				BT_IO_OPT_IMTU, 0,
 				BT_IO_OPT_INVALID);
 	if (server->io)
 		return true;