diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2010-06-07 11:32:22 +0800 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-06-12 18:37:10 +0800 |
commit | a30b7569ba6867f58f62634a894d0aabde01280d (patch) | |
tree | 0c229ee81b001dccf84182d4af1516c3cd0bbaa8 /src/main.c | |
parent | e5e25c761845284c6aca75599bc75c8e0d901311 (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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 | |