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