1From c4857dca3887758c19303ba82c2489a0b0b0e600 Mon Sep 17 00:00:00 2001 2From: XiaoYao <xiaoyao@rock-chips.com> 3Date: Wed, 2 Mar 2022 16:01:24 +0800 4Subject: [PATCH 1/1] default enable power for adapter 5 6--- 7 plugins/policy.c | 4 ++-- 8 1 file changed, 2 insertions(+), 2 deletions(-) 9 10diff --git a/plugins/policy.c b/plugins/policy.c 11index 051db82..f8c8d7a 100644 12--- a/plugins/policy.c 13+++ b/plugins/policy.c 14@@ -58,7 +58,7 @@ static const char *default_reconnect[] = { 15 A2DP_SINK_UUID, NULL }; 16 static char **reconnect_uuids = NULL; 17 18-static const size_t default_attempts = 7; 19+static const size_t default_attempts = 1; 20 static size_t reconnect_attempts = 0; 21 22 static const int default_intervals[] = { 1, 2, 4, 8, 16, 32, 64 }; 23@@ -73,7 +73,7 @@ static GSList *reconnects = NULL; 24 static unsigned int service_id = 0; 25 static GSList *devices = NULL; 26 27-static bool auto_enable = false; 28+static bool auto_enable = true; 29 30 struct policy_data { 31 struct btd_device *dev; 32-- 332.17.1 34 35