From 6e7e58c6d4e53fc4a7063efe421838610d7eafc1 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 13 Jan 2009 20:11:25 +0200 Subject: 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. --- src/main.c | 5 +++-- src/main.conf | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit