diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-04-13 15:21:00 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-04-14 17:05:25 -0700 |
commit | 180cf09933b2d8eb03972c8638063429fe5fece5 (patch) | |
tree | 94a89f523413793005ff02303bddafec7c819e62 /plugins/policy.c | |
parent | 777bc7c3f50c769ef1133e5bd598f300a060d3f5 (diff) | |
download | bluez-180cf09933b2d8eb03972c8638063429fe5fece5.tar.gz |
policy: Change AutoEnable default to true
This changes the default of AutoEnable to true so controllers are power
up by default.
Fixes: https://github.com/bluez/bluez/issues/328
Diffstat (limited to 'plugins/policy.c')
-rw-r--r-- | plugins/policy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/policy.c b/plugins/policy.c index 48f5db7d3..0bbdbfc88 100644 --- a/plugins/policy.c +++ b/plugins/policy.c @@ -892,7 +892,11 @@ static int policy_init(void) } auto_enable = g_key_file_get_boolean(conf, "Policy", "AutoEnable", - NULL); + &gerr); + if (gerr) { + g_clear_error(&gerr); + auto_enable = true; + } resume_delay = g_key_file_get_integer( conf, "Policy", "ResumeDelay", &gerr); |