diff --git a/src/profile.c b/src/profile.c
index a58e9f9..ba9ce6c 100644
--- a/src/profile.c
+++ b/src/profile.c
return ext_start_servers(ext, adapter);
}
+static void ext_get_defaults(struct ext_profile *ext)
+{
+ if (ext->psm || ext->chan)
+ return;
+
+ if (strcasecmp(ext->uuid, "spp") == 0) {
+ if (g_strcmp0(ext->role, "client") == 0)
+ return;
+
+ ext->chan = 3;
+ }
+}
+
static int parse_ext_opt(struct ext_profile *ext, const char *key,
DBusMessageIter *value)
{
if (!ext->name)
ext->name = g_strdup_printf("%s%s/%s", owner, path, uuid);
+ ext_get_defaults(ext);
+
p = &ext->p;
p->name = ext->name;