All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez PATCH] profile: GOEP Set IMTU to 32k
@ 2020-11-03  7:30 Sathish Narasimman
  2020-11-04 19:22 ` [Bluez] " bluez.test.bot
  2020-11-04 21:03 ` [Bluez PATCH] " Luiz Augusto von Dentz
  0 siblings, 2 replies; 3+ messages in thread
From: Sathish Narasimman @ 2020-11-03  7:30 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: chethan.tumkur.narayan, ravishankar.srivatsa, Sathish Narasimman

OPP-RX Throughput is low Due to Low MTU value in case of OBEX
over L2CAP. Changing the default L2CAP MTU from 672 to 32767.

Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com>
---
 src/profile.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/profile.c b/src/profile.c
index 5e460b639..99a5e1a4a 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -41,6 +41,8 @@
 #include "profile.h"
 #include "service.h"
 
+#define BTRX_MTU               32767
+
 #define DUN_DEFAULT_CHANNEL	1
 #define SPP_DEFAULT_CHANNEL	3
 #define HSP_HS_DEFAULT_CHANNEL	6
@@ -1358,6 +1360,11 @@ static uint32_t ext_start_servers(struct ext_profile *ext,
 			l2cap->adapter = btd_adapter_ref(adapter);
 			ext->servers = g_slist_append(ext->servers, l2cap);
 			DBG("%s listening on PSM %u", ext->name, psm);
+			if (g_strcmp0(ext->name, "Object Push") == 0) {
+				if (!bt_io_set(io, NULL, BT_IO_OPT_IMTU, BTRX_MTU,
+				    BT_IO_OPT_INVALID))
+					DBG("ERROR bt_io_set Unable to set MTU");
+			}
 		}
 	}
 
-- 
2.17.1


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

end of thread, other threads:[~2020-11-04 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-03  7:30 [Bluez PATCH] profile: GOEP Set IMTU to 32k Sathish Narasimman
2020-11-04 19:22 ` [Bluez] " bluez.test.bot
2020-11-04 21:03 ` [Bluez PATCH] " Luiz Augusto von Dentz

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.