From 1f08f1ab33bd9cae2db3872cde18cb16f1ef8869 Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Fri, 1 Sep 2023 17:03:23 +0530 Subject: [PATCH] Register: Set options to allow RFCOMM socket creation. --- .../platform/implementation/linux/bluetooth_bluez_profile.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/platform/implementation/linux/bluetooth_bluez_profile.cc b/internal/platform/implementation/linux/bluetooth_bluez_profile.cc index dfe1a880..9ae63ddb 100644 --- a/internal/platform/implementation/linux/bluetooth_bluez_profile.cc +++ b/internal/platform/implementation/linux/bluetooth_bluez_profile.cc @@ -126,6 +126,10 @@ bool ProfileManager::Register(std::optional name, std::map options; if (name.has_value()) { options["Name"] = std::string(*name); + options["RequireAuthorization"] = false; + options["RequireAuthentication"] = false; + options["Channel"] = static_cast(0); + options["PSM"] = static_cast(0); } RegisterProfile(profile->getObjectPath(), std::string(service_uuid), options);