summaryrefslogtreecommitdiff
authoryang.xu <yang.xu@amlogic.com>2018-02-01 07:02:42 (GMT)
committer Xindong Xu <xindong.xu@amlogic.com>2018-02-01 09:32:54 (GMT)
commita380b93b5d71bcdb93418ea56a9bfc4ac4f6aa35 (patch)
treea784c5b2ad62df48bd834655c283b299a0a5c1ae
parentf826e9b110fa70c5b5a2e70b2220353b2eb51272 (diff)
downloadcommon-a380b93b5d71bcdb93418ea56a9bfc4ac4f6aa35.zip
common-a380b93b5d71bcdb93418ea56a9bfc4ac4f6aa35.tar.gz
common-a380b93b5d71bcdb93418ea56a9bfc4ac4f6aa35.tar.bz2
common: BT--fix rc auto disconnect to reference[1/6]
PD#158882 1.add bluedroid_buidcfg.h(p212&p241&p230&t962e_r321&t962x_r311) 2.set BTM_BLE_CONN_INT_MIN_LIMIT 0x6 Change-Id: I2ad4337532f7017cf08e4c98751840a6ae885a28
Diffstat
-rw-r--r--bluetooth/bdroid_buildcfg.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
new file mode 100644
index 0000000..85ad11f
--- a/dev/null
+++ b/bluetooth/bdroid_buildcfg.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _BDROID_BUILDCFG_H
+#define _BDROID_BUILDCFG_H
+
+#define BLE_VND_INCLUDED TRUE
+
+// Turn off BLE_PRIVACY_SPT. Remote reconnect fails on
+// often if this is enabled.
+#define BLE_PRIVACY_SPT FALSE
+
+/* minimum acceptable connection interval */
+#define BTM_BLE_CONN_INT_MIN_LIMIT 0x0006 /*7.5ms=6*1.25*/
+
+/*fix r311&r321 bt not open*/
+#define KERNEL_MISSING_CLOCK_BOOTTIME_ALARM TRUE
+
+#endif