diff options
| author | TheStrix <parthbhatia98@gmail.com> | 2016-11-03 22:16:40 +0530 |
|---|---|---|
| committer | TheStrix <parthbhatia98@gmail.com> | 2016-11-20 13:38:51 +0530 |
| commit | 1e0f1d5a9c5f6ac9c0f64bfec7fc8d6ad6285136 (patch) | |
| tree | 164e27be971308bfd02527b4c773aa931dbdaf20 | |
| parent | 9c900cdd5d72524163d5a36797c81d277259daf6 (diff) | |
hydrogen: Add bluetooth header locally
Change-Id: I009f2635dd259ad53e976250953821e225727faf
| -rw-r--r-- | BoardConfig.mk | 3 | ||||
| -rw-r--r-- | bluetooth/bdroid_buildcfg.h | 35 |
2 files changed, 38 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index 84bd995..0ecefcb 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -21,6 +21,9 @@ DEVICE_PATH := device/xiaomi/hydrogen # Assert TARGET_OTA_ASSERT_DEVICE := hydrogen +# Bluetooth +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth + # Filesystem BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472 BOARD_USERDATAIMAGE_PARTITION_SIZE := 26705099776 # 26705116160 - 16384 diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h new file mode 100644 index 0000000..aa5806a --- /dev/null +++ b/bluetooth/bdroid_buildcfg.h @@ -0,0 +1,35 @@ +/* + * + * Copyright (c) 2013, The Linux Foundation. All rights reserved. + * Not a Contribution, Apache license notifications and license are retained + * for attribution purposes only. + * + * 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 BTM_DEF_LOCAL_NAME "Xiaomi Mi Max" +// Disables read remote device feature +#define BTA_SKIP_BLE_READ_REMOTE_FEAT FALSE +#define MAX_ACL_CONNECTIONS 7 +#define MAX_L2CAP_CHANNELS 16 +#define BLE_VND_INCLUDED TRUE +// skips conn update at conn completion +#define BTA_BLE_SKIP_CONN_UPD FALSE +#define BLE_PERIPHERAL_ADV_NAME FALSE +#define BTM_LE_SECURE_CONN TRUE +#define BT_CLEAN_TURN_ON_DISABLED 1 +#endif |
