From ff9ff905d0b2aedefcaffecd539f2697ed996436 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Fri, 21 Oct 2022 20:39:11 +0530 Subject: [PATCH] sdm660-common: Remove bdroid_buildcfg.h As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack defaults to reasonable defaults that should work for all devices. Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504 Signed-off-by: pix106 --- BoardConfigCommon.mk | 1 - bluetooth/bdroid_buildcfg.h | 51 ------------------------------------- 2 files changed, 52 deletions(-) delete mode 100644 bluetooth/bdroid_buildcfg.h diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index d88ee6ed..3c2a5e5d 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -71,7 +71,6 @@ BOARD_HAVE_BLUETOOTH := true BOARD_HAVE_BLUETOOTH_QCOM := true BOARD_HAS_QCA_BT_SOC := "cherokee" BLUETOOTH_HCI_USE_MCT := true -BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(COMMON_PATH)/bluetooth QCOM_BT_USE_SMD_TTY := true # Bootloader diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h deleted file mode 100644 index 95a48a08..00000000 --- a/bluetooth/bdroid_buildcfg.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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 - * Copyright (C) 2016 The CyanogenMod Project - * Copyright (C) 2020 The LineageOS Project - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#ifndef _BDROID_BUILDCFG_H -#define _BDROID_BUILDCFG_H - -#include -#pragma push_macro("PROPERTY_VALUE_MAX") - -#include -#include - -static inline const char* BtmGetDefaultName() -{ - char product_model[PROPERTY_VALUE_MAX]; - property_get("ro.product.model", product_model, ""); - - if (strstr(product_model, "Mi A2")) - return "Mi A2"; - if (strstr(product_model, "MI 6X")) - return "MI 6X"; - if (strstr(product_model, "MI PAD 4")) - return "MI PAD 4"; - if (strstr(product_model, "MI PAD 4 PLUS")) - return "MI PAD 4 PLUS"; - - // Fallback to ro.product.model - return ""; -} -#undef PROPERTY_VALUE_MAX - -#define BTM_DEF_LOCAL_NAME BtmGetDefaultName() -// Disables read remote device feature -#define MAX_ACL_CONNECTIONS 16 -#define MAX_L2CAP_CHANNELS 16 -#define BLE_VND_INCLUDED TRUE - -/* Increasing SEPs to 12 from 6 to support SHO/MCast i.e. two streams per codec */ -#define AVDT_NUM_SEPS 12 -#pragma pop_macro("PROPERTY_VALUE_MAX") - -#endif