summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2020-02-26 08:23:38 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-03-12 17:14:13 +0000
commitb1c5541c24b1e64d84826df6c0e573ab2c83a4fe (patch)
tree659392803594f3ad897a8b58aac0a0a916f2d79b /meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service
parentcb80cac9d42a0f5477d1833165ac4af334eb2e71 (diff)
bluez: workaround aclmtu issue on OBEX transfers
Default MTU of 310 causes PBAP/OBEX transactions to timeout before completing the entire transfer from coming from paired iOS device. Change this to 930 to avoid timeouts. This is a workaround till a better solution is devised. Bug-AGL: SPEC-3206 Change-Id: I48bdc6107ac9176397bc0137496946c42b1c95d7 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service')
-rw-r--r--meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service b/meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service
new file mode 100644
index 000000000..e389e1aa9
--- /dev/null
+++ b/meta-agl-profile-core/recipes-connectivity/bluez5/bluez5/bluetooth.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=Bluetooth service
+Documentation=man:bluetoothd(8)
+ConditionPathIsDirectory=/sys/class/bluetooth
+
+[Service]
+Type=dbus
+BusName=org.bluez
+ExecStartPre=/usr/bin/hciconfig hci0 aclmtu 930:10
+ExecStart=/usr/libexec/bluetooth/bluetoothd
+NotifyAccess=main
+#WatchdogSec=10
+#Restart=on-failure
+CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
+LimitNPROC=1
+ProtectHome=true
+ProtectSystem=full
+
+[Install]
+WantedBy=bluetooth.target
+Alias=dbus-org.bluez.service