From 56aa8e0f95ff582260d058c0b4ea79b419beda00 Mon Sep 17 00:00:00 2001 From: Dan Pasanen Date: Wed, 15 Oct 2014 17:23:18 -0500 Subject: [PATCH] vs985: add bt config Change-Id: I80bd843b049fc9c54faf7ceeb49ec17dac0afa59 --- BoardConfig.mk | 5 +++++ bluetooth/bdroid_buildcfg.h | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 bluetooth/bdroid_buildcfg.h diff --git a/BoardConfig.mk b/BoardConfig.mk index 6a3d3a0..05c881d 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -28,6 +28,11 @@ BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2692743168 BOARD_USERDATAIMAGE_PARTITION_SIZE := 27325360128 +# Bluetooth +BOARD_HAVE_BLUETOOTH_QCOM := true +BLUETOOTH_HCI_USE_MCT := true +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/vs985/bluetooth + # Wifi BOARD_HAS_QCOM_WLAN := true BOARD_WLAN_DEVICE := qcwcn diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h new file mode 100644 index 0000000..c21ded7 --- /dev/null +++ b/bluetooth/bdroid_buildcfg.h @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2014 The CyanogenMod 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 BLUETOOTH_QCOM_SW TRUE + +#define BTM_DEF_LOCAL_NAME "LG G3 VS985" +// Disables read remote device feature +#define BTA_SKIP_BLE_READ_REMOTE_FEAT TRUE +#define MAX_L2CAP_CHANNELS 14 +// skips conn update at conn completion +#define BTA_BLE_SKIP_CONN_UPD TRUE +// Enables interleaved scan +#define BTA_HOST_INTERLEAVE_SEARCH TRUE +#endif