summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 20:11:25 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 20:11:25 +0200
commit6e7e58c6d4e53fc4a7063efe421838610d7eafc1 (patch)
treedc39f3718d3da65b95b6a0176fb720bb691a87fb /src
parent58c15493922277539cca11e8b55776c5d0fbccba (diff)
Make the ReverseServiceDiscovery option more visible
Add it to the default main.conf file with a proper comment and print a debug message is it's found to be missing.
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
-rw-r--r--src/main.conf6
2 files changed, 9 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 76bc5122..d5d45c07 100644
--- a/src/main.c
+++ b/src/main.c
@@ -195,9 +195,10 @@ static void parse_config(GKeyFile *config)
boolean = g_key_file_get_boolean(config, "General",
"ReverseServiceDiscovery", &err);
- if (err)
+ if (err) {
+ debug("%s", err->message);
g_clear_error(&err);
- else
+ } else
main_opts.reverse_sdp = boolean;
main_opts.link_mode = HCI_LM_ACCEPT;
diff --git a/src/main.conf b/src/main.conf
index 5d49c7b3..c736e499 100644
--- a/src/main.conf
+++ b/src/main.conf
@@ -40,3 +40,9 @@ RememberPowered = true
# Use vendor, product and version information for DID profile support.
# The values are separated by ":" and VID, PID and version.
#DeviceID = 1234:5678:abcd
+
+# Do reverse service discovery for previously unknown devices that connect to
+# us. This option is really only needed for qualification since the BITE tester
+# doesn't like us doing reverse SDP for some test cases (though there could in
+# theory be other useful purposes for this too). Defaults to true.
+ReverseServiceDiscovery = true