summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2010-06-07 11:32:22 +0800
committerJohan Hedberg <johan.hedberg@nokia.com>2010-06-12 18:37:10 +0800
commita30b7569ba6867f58f62634a894d0aabde01280d (patch)
tree0c229ee81b001dccf84182d4af1516c3cd0bbaa8 /src/main.c
parente5e25c761845284c6aca75599bc75c8e0d901311 (diff)
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.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
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 |