Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79bd4193 authored by Chris Manton's avatar Chris Manton
Browse files

bt_target: Canonicalize included and purge unused definitions

Bug: 315207923
Test: m .
Flag: EXEMPT, unused code removal
Change-Id: Ifc57200ca1237274d39c4b5803b25e67a9fc7540
parent 59db570b
Loading
Loading
Loading
Loading
+0 −81
Original line number Original line Diff line number Diff line
@@ -89,10 +89,6 @@
#define BTA_DM_SDP_DB_SIZE 20000
#define BTA_DM_SDP_DB_SIZE 20000
#endif
#endif


#ifndef HL_INCLUDED
#define HL_INCLUDED TRUE
#endif

#ifndef AG_VOICE_SETTINGS
#ifndef AG_VOICE_SETTINGS
#define AG_VOICE_SETTINGS HCI_DEFAULT_VOICE_SETTINGS
#define AG_VOICE_SETTINGS HCI_DEFAULT_VOICE_SETTINGS
#endif
#endif
@@ -154,10 +150,6 @@
#define L2CAP_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
#define L2CAP_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
#endif
#endif


#ifndef L2CAP_FCR_ERTM_BUF_SIZE
#define L2CAP_FCR_ERTM_BUF_SIZE (10240 + 24)
#endif

/* Number of ACL buffers to assign to LE */
/* Number of ACL buffers to assign to LE */
/*
/*
 * TODO: Do we need this?
 * TODO: Do we need this?
@@ -172,10 +164,6 @@
#define BTM_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
#define BTM_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
#endif
#endif


#ifndef OBX_LRG_DATA_BUF_SIZE
#define OBX_LRG_DATA_BUF_SIZE (8080 + 26)
#endif

/* BNEP data and protocol messages. */
/* BNEP data and protocol messages. */
#ifndef BNEP_BUF_SIZE
#ifndef BNEP_BUF_SIZE
#define BNEP_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
#define BNEP_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
@@ -210,10 +198,6 @@
#define AVRC_META_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
#define AVRC_META_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
#endif
#endif


#ifndef BTA_HL_LRG_DATA_BUF_SIZE
#define BTA_HL_LRG_DATA_BUF_SIZE (10240 + 24)
#endif

/* GATT Data sending buffer size */
/* GATT Data sending buffer size */
#ifndef GATT_DATA_BUF_SIZE
#ifndef GATT_DATA_BUF_SIZE
#define GATT_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
#define GATT_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
@@ -234,13 +218,6 @@
#define DISABLE_WBS FALSE
#define DISABLE_WBS FALSE
#endif
#endif


/*  This is used to work around a controller bug that doesn't like Disconnect
 *  issued while there is a role switch in progress
*/
#ifndef BTM_DISC_DURING_RS
#define BTM_DISC_DURING_RS TRUE
#endif

/**************************
/**************************
 * Initial SCO TX credit
 * Initial SCO TX credit
 ************************/
 ************************/
@@ -350,24 +327,10 @@
#define BTM_LOCAL_IO_CAPS BTM_IO_CAP_IO
#define BTM_LOCAL_IO_CAPS BTM_IO_CAP_IO
#endif
#endif


#ifndef BTM_LOCAL_IO_CAPS_BLE
#define BTM_LOCAL_IO_CAPS_BLE BTM_IO_CAP_KBDISP
#endif

/* TRUE to include Sniff Subrating */
#ifndef BTM_SSR_INCLUDED
#define BTM_SSR_INCLUDED TRUE
#endif

/*************************
/*************************
 * End of Lisbon Features
 * End of Lisbon Features
 *************************/
 *************************/


/* 4.1/4.2 secure connections feature */
#ifndef SC_MODE_INCLUDED
#define SC_MODE_INCLUDED TRUE
#endif

/******************************************************************************
/******************************************************************************
 *
 *
 * L2CAP
 * L2CAP
@@ -412,36 +375,11 @@
#define L2CAP_MTU_SIZE 1691
#define L2CAP_MTU_SIZE 1691
#endif
#endif


/*
 * The L2CAP MPS over Bluetooth; must be in accord with the FCR tx buffer size
 * and ACL down buffer size.
 */
#ifndef L2CAP_MPS_OVER_BR_EDR
#define L2CAP_MPS_OVER_BR_EDR 1010
#endif

/* If host flow control enabled, this is the number of buffers the controller
 * can have unacknowledged. */
#ifndef L2CAP_HOST_FC_ACL_BUFS
#define L2CAP_HOST_FC_ACL_BUFS 20
#endif

/* This is set to enable L2CAP to  take the ACL link out of park mode when ACL
 * data is to be sent. */
#ifndef L2CAP_WAKE_PARKED_LINK
#define L2CAP_WAKE_PARKED_LINK TRUE
#endif

/* Minimum number of ACL credit for high priority link */
/* Minimum number of ACL credit for high priority link */
#ifndef L2CAP_HIGH_PRI_MIN_XMIT_QUOTA
#ifndef L2CAP_HIGH_PRI_MIN_XMIT_QUOTA
#define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA 5
#define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA 5
#endif
#endif


/* used for monitoring HCI ACL credit management */
#ifndef L2CAP_HCI_FLOW_CONTROL_DEBUG
#define L2CAP_HCI_FLOW_CONTROL_DEBUG TRUE
#endif

/* Used for features using fixed channels; set to zero if no fixed channels
/* Used for features using fixed channels; set to zero if no fixed channels
 * supported (BLE, etc.) */
 * supported (BLE, etc.) */
/* Excluding L2CAP signaling channel and UCD */
/* Excluding L2CAP signaling channel and UCD */
@@ -459,11 +397,6 @@
  (L2CAP_FIRST_FIXED_CHNL + L2CAP_NUM_FIXED_CHNLS - 1)
  (L2CAP_FIRST_FIXED_CHNL + L2CAP_NUM_FIXED_CHNLS - 1)
#endif
#endif


/* Round Robin service channels in link */
#ifndef L2CAP_ROUND_ROBIN_CHANNEL_SERVICE
#define L2CAP_ROUND_ROBIN_CHANNEL_SERVICE TRUE
#endif

/* Used for conformance testing ONLY:  When TRUE lets scriptwrapper overwrite
/* Used for conformance testing ONLY:  When TRUE lets scriptwrapper overwrite
 * info response */
 * info response */
#ifndef L2CAP_CONFORMANCE_TESTING
#ifndef L2CAP_CONFORMANCE_TESTING
@@ -547,10 +480,6 @@
 * SMP
 * SMP
 *
 *
 *****************************************************************************/
 *****************************************************************************/
#ifndef SMP_DEBUG
#define SMP_DEBUG FALSE
#endif

#ifndef SMP_DEFAULT_AUTH_REQ
#ifndef SMP_DEFAULT_AUTH_REQ
#define SMP_DEFAULT_AUTH_REQ SMP_AUTH_NB_ENC_ONLY
#define SMP_DEFAULT_AUTH_REQ SMP_AUTH_NB_ENC_ONLY
#endif
#endif
@@ -631,11 +560,6 @@
#define SDP_MTU_SIZE 1024
#define SDP_MTU_SIZE 1024
#endif
#endif


/* The name for security authorization. */
#ifndef SDP_SERVICE_NAME
#define SDP_SERVICE_NAME "Service Discovery"
#endif

/******************************************************************************
/******************************************************************************
 *
 *
 * RFCOMM
 * RFCOMM
@@ -717,11 +641,6 @@
#define BNEP_INCLUDED TRUE
#define BNEP_INCLUDED TRUE
#endif
#endif


/* BNEP status API call is used mainly to get the L2CAP handle */
#ifndef BNEP_SUPPORTS_STATUS_API
#define BNEP_SUPPORTS_STATUS_API TRUE
#endif

/* Maximum number of protocol filters supported. */
/* Maximum number of protocol filters supported. */
#ifndef BNEP_MAX_PROT_FILTERS
#ifndef BNEP_MAX_PROT_FILTERS
#define BNEP_MAX_PROT_FILTERS 5
#define BNEP_MAX_PROT_FILTERS 5