From a30b7569ba6867f58f62634a894d0aabde01280d Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 7 Jun 2010 11:32:22 +0800 Subject: Store debug keys in runtime memory This patch adds the possibility of using debug keys for consequtive connections by storing them in runtime memory instead of discarding them after the connection. This functionality can be enabled using a new DebugKeys boolean parameter in main.conf. --- src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index ba185236..b4e2219d 100644 --- a/src/main.c +++ b/src/main.c @@ -201,6 +201,13 @@ static void parse_config(GKeyFile *config) else main_opts.name_resolv = boolean; + boolean = g_key_file_get_boolean(config, "General", + "DebugKeys", &err); + if (err) + g_clear_error(&err); + else + main_opts.debug_keys = boolean; + main_opts.link_mode = HCI_LM_ACCEPT; main_opts.link_policy = HCI_LP_RSWITCH | HCI_LP_SNIFF | -- cgit v1.2.3