bluetooth: disable BLE_VND_INCLUDED
to work around the bluettoth crash problem reported like this:
Abort message: '[FATAL:btm_ble_gap.cc(638)] Check failed: p_vcs_cplt_params->param_len >= BTM_VSC_CHIP_CAPABILITY_RSP_LEN.
after the change[1] which sets BLE_VND_INCLUDED
to TRUE by default.
Test: BT pair and BT earplug on both hikey and hikey960
Note:
confirmed that with this change, the bluetooth feature only works
with the board build images, it would not work with the GSI image.
[1]: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2064248
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: If0b89bb95e436cecbdd4aec8e6aa1f05fe22c1f9
diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
new file mode 100644
index 0000000..2315b3d
--- /dev/null
+++ b/bluetooth/bdroid_buildcfg.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2012 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 FALSE
+
+#endif