Register: Set options to allow RFCOMM socket creation.

This commit is contained in:
Vibhav Pant
2023-09-01 17:03:23 +05:30
parent b6b9d3b005
commit 1f08f1ab33
@@ -126,6 +126,10 @@ bool ProfileManager::Register(std::optional<absl::string_view> name,
std::map<std::string, sdbus::Variant> options;
if (name.has_value()) {
options["Name"] = std::string(*name);
options["RequireAuthorization"] = false;
options["RequireAuthentication"] = false;
options["Channel"] = static_cast<uint16_t>(0);
options["PSM"] = static_cast<uint16_t>(0);
}
RegisterProfile(profile->getObjectPath(), std::string(service_uuid),
options);