1 /******************************************************************************
3 * Copyright (c) 2014 The Android Open Source Project
4 * Copyright (C) 1999-2016 Broadcom Corporation
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at:
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 ******************************************************************************/
27 #if !defined(HAS_BDROID_BUILDCFG) && !defined(HAS_NO_BDROID_BUILDCFG)
29 "An Android.mk file did not include bdroid_CFLAGS and possibly not bdroid_C_INCLUDES"
32 #ifdef HAS_BDROID_BUILDCFG
33 #include "bdroid_buildcfg.h"
36 #include "bt_types.h" /* This must be defined AFTER buildcfg.h */
38 //------------------Added from bdroid_buildcfg.h---------------------
39 #ifndef L2CAP_EXTFEA_SUPPORTED_MASK
40 #define L2CAP_EXTFEA_SUPPORTED_MASK \
41 (L2CAP_EXTFEA_ENH_RETRANS | L2CAP_EXTFEA_STREAM_MODE | L2CAP_EXTFEA_NO_CRC | \
42 L2CAP_EXTFEA_FIXED_CHNLS)
45 #ifndef BTUI_OPS_FORMATS
46 #define BTUI_OPS_FORMATS (BTA_OP_VCARD21_MASK | BTA_OP_ANY_MASK)
49 #ifndef BTA_RFC_MTU_SIZE
50 #define BTA_RFC_MTU_SIZE \
51 (L2CAP_MTU_SIZE - L2CAP_MIN_OFFSET - RFCOMM_DATA_OVERHEAD)
55 #define BTA_INCLUDED TRUE
58 #ifndef BTA_PAN_INCLUDED
59 #define BTA_PAN_INCLUDED TRUE
62 #ifndef BTA_HD_INCLUDED
63 #define BTA_HD_INCLUDED TRUE
66 #ifndef BTA_HH_INCLUDED
67 #define BTA_HH_INCLUDED TRUE
71 #define BTA_HH_ROLE BTA_MASTER_ROLE_PREF
74 #ifndef BTA_HH_LE_INCLUDED
75 #define BTA_HH_LE_INCLUDED TRUE
78 #ifndef BTA_AR_INCLUDED
79 #define BTA_AR_INCLUDED TRUE
82 #ifndef BTA_AV_SINK_INCLUDED
83 #define BTA_AV_SINK_INCLUDED FALSE
86 #ifndef BTA_DISABLE_DELAY
87 #define BTA_DISABLE_DELAY 200 /* in milliseconds */
90 #ifndef SBC_FOR_EMBEDDED_LINUX
91 #define SBC_FOR_EMBEDDED_LINUX TRUE
95 #define AVDT_VERSION 0x0102
98 #ifndef BTA_AG_AT_MAX_LEN
99 #define BTA_AG_AT_MAX_LEN 512
102 #ifndef BTA_AVRCP_FF_RW_SUPPORT
103 #define BTA_AVRCP_FF_RW_SUPPORT TRUE
106 #ifndef BTA_AG_SCO_PKT_TYPES
107 #define BTA_AG_SCO_PKT_TYPES \
108 (BTM_SCO_LINK_ONLY_MASK | ESCO_PKT_TYPES_MASK_EV3 | \
109 ESCO_PKT_TYPES_MASK_NO_3_EV3 | ESCO_PKT_TYPES_MASK_NO_2_EV5 | \
110 ESCO_PKT_TYPES_MASK_NO_3_EV5)
113 #ifndef BTA_AV_RET_TOUT
114 #define BTA_AV_RET_TOUT 15
117 /* TRUE to use SCMS-T content protection */
118 #ifndef BTA_AV_CO_CP_SCMS_T
119 #define BTA_AV_CO_CP_SCMS_T FALSE
122 /* This feature is used to enable interleaved scan */
123 #ifndef BTA_HOST_INTERLEAVE_SEARCH
124 #define BTA_HOST_INTERLEAVE_SEARCH FALSE
127 #ifndef BTA_DM_SDP_DB_SIZE
128 #define BTA_DM_SDP_DB_SIZE 8000
132 #define HL_INCLUDED TRUE
135 #ifndef AG_VOICE_SETTINGS
136 #define AG_VOICE_SETTINGS HCI_DEFAULT_VOICE_SETTINGS
139 #ifndef BTIF_DM_OOB_TEST
140 #define BTIF_DM_OOB_TEST TRUE
143 // How long to wait before activating sniff mode after entering the
144 // idle state for FTS, OPS connections
145 #ifndef BTA_FTS_OPS_IDLE_TO_SNIFF_DELAY_MS
146 #define BTA_FTS_OPS_IDLE_TO_SNIFF_DELAY_MS 7000
149 //------------------End added from bdroid_buildcfg.h---------------------
151 /******************************************************************************
155 *****************************************************************************/
157 #ifndef BT_DEFAULT_BUFFER_SIZE
158 #define BT_DEFAULT_BUFFER_SIZE (4096 + 16)
161 #ifndef BT_SMALL_BUFFER_SIZE
162 #define BT_SMALL_BUFFER_SIZE 660
165 /* Receives HCI events from the lower-layer. */
166 #ifndef HCI_CMD_BUF_SIZE
167 #define HCI_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
170 /* Sends SDP data packets. */
171 #ifndef SDP_DATA_BUF_SIZE
172 #define SDP_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
175 /* Sends RFCOMM command packets. */
176 #ifndef RFCOMM_CMD_BUF_SIZE
177 #define RFCOMM_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
180 /* Sends RFCOMM data packets. */
181 #ifndef RFCOMM_DATA_BUF_SIZE
182 #define RFCOMM_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
185 /* Sends L2CAP packets to the peer and HCI messages to the controller. */
186 #ifndef L2CAP_CMD_BUF_SIZE
187 #define L2CAP_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
190 #ifndef L2CAP_USER_TX_BUF_SIZE
191 #define L2CAP_USER_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
194 #ifndef L2CAP_USER_RX_BUF_SIZE
195 #define L2CAP_USER_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
198 /* Sends L2CAP segmented packets in ERTM mode */
199 #ifndef L2CAP_FCR_TX_BUF_SIZE
200 #define L2CAP_FCR_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
203 /* Receives L2CAP segmented packets in ERTM mode */
204 #ifndef L2CAP_FCR_RX_BUF_SIZE
205 #define L2CAP_FCR_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
208 #ifndef L2CAP_FCR_ERTM_BUF_SIZE
209 #define L2CAP_FCR_ERTM_BUF_SIZE (10240 + 24)
212 /* Number of ACL buffers to assign to LE */
214 * TODO: Do we need this?
215 * It was used when the HCI buffers were shared with BR/EDR.
217 #ifndef L2C_DEF_NUM_BLE_BUF_SHARED
218 #define L2C_DEF_NUM_BLE_BUF_SHARED 1
221 /* Used by BTM when it sends HCI commands to the controller. */
222 #ifndef BTM_CMD_BUF_SIZE
223 #define BTM_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
226 #ifndef OBX_LRG_DATA_BUF_SIZE
227 #define OBX_LRG_DATA_BUF_SIZE (8080 + 26)
230 /* Used to send data to L2CAP. */
231 #ifndef GAP_DATA_BUF_SIZE
232 #define GAP_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
235 /* BNEP data and protocol messages. */
236 #ifndef BNEP_BUF_SIZE
237 #define BNEP_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
240 /* AVDTP buffer size for protocol messages */
241 #ifndef AVDT_CMD_BUF_SIZE
242 #define AVDT_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
246 #define PAN_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
249 /* Maximum number of buffers to allocate for PAN */
251 #define PAN_BUF_MAX 100
254 /* AVCTP buffer size for protocol messages */
255 #ifndef AVCT_CMD_BUF_SIZE
256 #define AVCT_CMD_BUF_SIZE 288
259 /* AVRCP buffer size for protocol messages */
260 #ifndef AVRC_CMD_BUF_SIZE
261 #define AVRC_CMD_BUF_SIZE 288
264 /* AVRCP Metadata buffer size for protocol messages */
265 #ifndef AVRC_META_CMD_BUF_SIZE
266 #define AVRC_META_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
269 #ifndef BTA_HL_LRG_DATA_BUF_SIZE
270 #define BTA_HL_LRG_DATA_BUF_SIZE (10240 + 24)
273 /* GATT Server Database buffer size */
274 #ifndef GATT_DB_BUF_SIZE
275 #define GATT_DB_BUF_SIZE 128
278 /* GATT Data sending buffer size */
279 #ifndef GATT_DATA_BUF_SIZE
280 #define GATT_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
283 /******************************************************************************
287 *****************************************************************************/
289 /* Cancel Inquiry on incoming SSP */
290 #ifndef BTM_NO_SSP_ON_INQUIRY
291 #define BTM_NO_SSP_ON_INQUIRY FALSE
294 /* Includes SCO if TRUE */
295 #ifndef BTM_SCO_INCLUDED
296 #define BTM_SCO_INCLUDED TRUE /* TRUE includes SCO code */
299 /* Includes SCO if TRUE */
300 #ifndef BTM_SCO_HCI_INCLUDED
301 #define BTM_SCO_HCI_INCLUDED FALSE /* TRUE includes SCO over HCI code */
304 /* This is used to work around a controller bug that doesn't like Disconnect
305 * issued while there is a role switch in progress
307 #ifndef BTM_DISC_DURING_RS
308 #define BTM_DISC_DURING_RS TRUE
311 /**************************
312 * Initial SCO TX credit
313 ************************/
314 /* max TX SCO data packet size */
315 #ifndef BTM_SCO_DATA_SIZE_MAX
316 #define BTM_SCO_DATA_SIZE_MAX 240
319 /* The size in bytes of the BTM inquiry database. */
320 #ifndef BTM_INQ_DB_SIZE
321 #define BTM_INQ_DB_SIZE 40
324 /* The default scan mode */
325 #ifndef BTM_DEFAULT_SCAN_TYPE
326 #define BTM_DEFAULT_SCAN_TYPE BTM_SCAN_TYPE_INTERLACED
329 /* Should connections to unknown devices be allowed when not discoverable? */
330 #ifndef BTM_ALLOW_CONN_IF_NONDISCOVER
331 #define BTM_ALLOW_CONN_IF_NONDISCOVER TRUE
334 /* Sets the Page_Scan_Window: the length of time that the device is performing
336 #ifndef BTM_DEFAULT_CONN_WINDOW
337 #define BTM_DEFAULT_CONN_WINDOW 0x0012
340 /* Sets the Page_Scan_Activity: the interval between the start of two
341 * consecutive page scans. */
342 #ifndef BTM_DEFAULT_CONN_INTERVAL
343 #define BTM_DEFAULT_CONN_INTERVAL 0x0800
346 /* When automatic inquiry scan is enabled, this sets the inquiry scan window. */
347 #ifndef BTM_DEFAULT_DISC_WINDOW
348 #define BTM_DEFAULT_DISC_WINDOW 0x0012
351 /* When automatic inquiry scan is enabled, this sets the inquiry scan interval.
353 #ifndef BTM_DEFAULT_DISC_INTERVAL
354 #define BTM_DEFAULT_DISC_INTERVAL 0x0800
357 /* Default class of device
358 * {SERVICE_CLASS, MAJOR_CLASS, MINOR_CLASS}
360 * SERVICE_CLASS:0x5A (Bit17 -Networking,Bit19 - Capturing,Bit20 -Object
361 * Transfer,Bit22 -Telephony)
362 * MAJOR_CLASS:0x02 - PHONE
363 * MINOR_CLASS:0x0C - SMART_PHONE
371 /* The number of SCO links. */
372 #ifndef BTM_MAX_SCO_LINKS
373 #define BTM_MAX_SCO_LINKS 3
376 /* The preferred type of SCO links (2-eSCO, 0-SCO). */
377 #ifndef BTM_DEFAULT_SCO_MODE
378 #define BTM_DEFAULT_SCO_MODE 2
381 /* The number of security records for peer devices. */
382 #ifndef BTM_SEC_MAX_DEVICE_RECORDS
383 #define BTM_SEC_MAX_DEVICE_RECORDS 100
386 /* The number of security records for services. */
387 #ifndef BTM_SEC_MAX_SERVICE_RECORDS
388 #define BTM_SEC_MAX_SERVICE_RECORDS 32
391 /* If True, force a retrieval of remote device name for each bond in case it's
393 #ifndef BTM_SEC_FORCE_RNR_FOR_DBOND
394 #define BTM_SEC_FORCE_RNR_FOR_DBOND FALSE
397 /* Maximum device name length used in btm database. */
398 #ifndef BTM_MAX_REM_BD_NAME_LEN
399 #define BTM_MAX_REM_BD_NAME_LEN 248
402 /* Maximum local device name length stored btm database */
403 #ifndef BTM_MAX_LOC_BD_NAME_LEN
404 #define BTM_MAX_LOC_BD_NAME_LEN 248
407 /* Fixed Default String. When this is defined as null string, the device's
408 * product model name is used as the default local name.
410 #ifndef BTM_DEF_LOCAL_NAME
411 #define BTM_DEF_LOCAL_NAME ""
414 /* Maximum service name stored with security authorization (0 if not needed) */
415 #ifndef BTM_SEC_SERVICE_NAME_LEN
416 #define BTM_SEC_SERVICE_NAME_LEN BT_MAX_SERVICE_NAME_LEN
419 /* Maximum length of the service name. */
420 #ifndef BT_MAX_SERVICE_NAME_LEN
421 #define BT_MAX_SERVICE_NAME_LEN 21
424 /* The maximum number of clients that can register with the power manager. */
425 #ifndef BTM_MAX_PM_RECORDS
426 #define BTM_MAX_PM_RECORDS 2
429 /* This is set to show debug trace messages for the power manager. */
431 #define BTM_PM_DEBUG FALSE
434 /* This is set to TRUE if link is to be unparked due to BTM_CreateSCO API. */
435 #ifndef BTM_SCO_WAKE_PARKED_LINK
436 #define BTM_SCO_WAKE_PARKED_LINK TRUE
439 /* If the user does not respond to security process requests within this many
441 * a negative response would be sent automatically.
442 * 30 is LMP response timeout value */
443 #ifndef BTM_SEC_TIMEOUT_VALUE
444 #define BTM_SEC_TIMEOUT_VALUE 35
447 /* Maximum number of callbacks that can be registered using
448 * BTM_RegisterForVSEvents */
449 #ifndef BTM_MAX_VSE_CALLBACKS
450 #define BTM_MAX_VSE_CALLBACKS 3
453 /******************************************
455 ******************************************/
456 /* This is set to TRUE if the FEC is required for EIR packet. */
457 #ifndef BTM_EIR_DEFAULT_FEC_REQUIRED
458 #define BTM_EIR_DEFAULT_FEC_REQUIRED TRUE
461 /* The IO capability of the local device (for Simple Pairing) */
462 #ifndef BTM_LOCAL_IO_CAPS
463 #define BTM_LOCAL_IO_CAPS BTM_IO_CAP_IO
466 #ifndef BTM_LOCAL_IO_CAPS_BLE
467 #define BTM_LOCAL_IO_CAPS_BLE BTM_IO_CAP_KBDISP
470 /* The default MITM Protection Requirement (for Simple Pairing)
471 * Possible values are BTM_AUTH_SP_YES or BTM_AUTH_SP_NO */
472 #ifndef BTM_DEFAULT_AUTH_REQ
473 #define BTM_DEFAULT_AUTH_REQ BTM_AUTH_SP_NO
476 /* The default MITM Protection Requirement for dedicated bonding using Simple
478 * Possible values are BTM_AUTH_AP_YES or BTM_AUTH_AP_NO */
479 #ifndef BTM_DEFAULT_DD_AUTH_REQ
480 #define BTM_DEFAULT_DD_AUTH_REQ BTM_AUTH_AP_YES
483 /* TRUE to include Sniff Subrating */
484 #ifndef BTM_SSR_INCLUDED
485 #define BTM_SSR_INCLUDED TRUE
488 /*************************
489 * End of Lisbon Features
490 *************************/
492 /* 4.1/4.2 secure connections feature */
493 #ifndef SC_MODE_INCLUDED
494 #define SC_MODE_INCLUDED TRUE
497 /* Used for conformance testing ONLY */
498 #ifndef BTM_BLE_CONFORMANCE_TESTING
499 #define BTM_BLE_CONFORMANCE_TESTING FALSE
502 /******************************************************************************
506 *****************************************************************************/
508 /* The maximum number of simultaneous links that L2CAP can support. */
509 #ifndef MAX_ACL_CONNECTIONS
510 #define MAX_L2CAP_LINKS 7
512 #define MAX_L2CAP_LINKS MAX_ACL_CONNECTIONS
515 /* The maximum number of simultaneous channels that L2CAP can support. */
516 #ifndef MAX_L2CAP_CHANNELS
517 #define MAX_L2CAP_CHANNELS 16
520 /* The maximum number of simultaneous applications that can register with L2CAP.
522 #ifndef MAX_L2CAP_CLIENTS
523 #define MAX_L2CAP_CLIENTS 15
526 /* The number of seconds of link inactivity before a link is disconnected. */
527 #ifndef L2CAP_LINK_INACTIVITY_TOUT
528 #define L2CAP_LINK_INACTIVITY_TOUT 4
531 /* The number of seconds of link inactivity after bonding before a link is
533 #ifndef L2CAP_BONDING_TIMEOUT
534 #define L2CAP_BONDING_TIMEOUT 3
537 /* The time from the HCI connection complete to disconnect if no channel is
539 #ifndef L2CAP_LINK_STARTUP_TOUT
540 #define L2CAP_LINK_STARTUP_TOUT 60
543 /* The L2CAP MTU; must be in accord with the HCI ACL buffer size. */
544 #ifndef L2CAP_MTU_SIZE
545 #define L2CAP_MTU_SIZE 1691
549 * The L2CAP MPS over Bluetooth; must be in accord with the FCR tx buffer size
550 * and ACL down buffer size.
552 #ifndef L2CAP_MPS_OVER_BR_EDR
553 #define L2CAP_MPS_OVER_BR_EDR 1010
556 /* If host flow control enabled, this is the number of buffers the controller
557 * can have unacknowledged. */
558 #ifndef L2CAP_HOST_FC_ACL_BUFS
559 #define L2CAP_HOST_FC_ACL_BUFS 20
562 /* This is set to enable L2CAP to take the ACL link out of park mode when ACL
563 * data is to be sent. */
564 #ifndef L2CAP_WAKE_PARKED_LINK
565 #define L2CAP_WAKE_PARKED_LINK TRUE
568 /* Whether link wants to be the master or the slave. */
569 #ifndef L2CAP_DESIRED_LINK_ROLE
570 #define L2CAP_DESIRED_LINK_ROLE HCI_ROLE_SLAVE
573 /* Include Non-Flushable Packet Boundary Flag feature of Lisbon */
574 #ifndef L2CAP_NON_FLUSHABLE_PB_INCLUDED
575 #define L2CAP_NON_FLUSHABLE_PB_INCLUDED TRUE
578 /* Minimum number of ACL credit for high priority link */
579 #ifndef L2CAP_HIGH_PRI_MIN_XMIT_QUOTA
580 #define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA 5
583 /* used for monitoring HCI ACL credit management */
584 #ifndef L2CAP_HCI_FLOW_CONTROL_DEBUG
585 #define L2CAP_HCI_FLOW_CONTROL_DEBUG TRUE
588 /* Unicast Connectionless Data */
589 #ifndef L2CAP_UCD_INCLUDED
590 #define L2CAP_UCD_INCLUDED FALSE
593 /* Unicast Connectionless Data MTU */
594 #ifndef L2CAP_UCD_MTU
595 #define L2CAP_UCD_MTU L2CAP_MTU_SIZE
598 /* Unicast Connectionless Data Idle Timeout */
599 #ifndef L2CAP_UCD_IDLE_TIMEOUT
600 #define L2CAP_UCD_IDLE_TIMEOUT 2
603 /* Unicast Connectionless Data Idle Timeout */
604 #ifndef L2CAP_UCD_CH_PRIORITY
605 #define L2CAP_UCD_CH_PRIORITY L2CAP_CHNL_PRIORITY_MEDIUM
608 /* Used for features using fixed channels; set to zero if no fixed channels
609 * supported (BLE, etc.) */
610 /* Excluding L2CAP signaling channel and UCD */
611 #ifndef L2CAP_NUM_FIXED_CHNLS
612 #define L2CAP_NUM_FIXED_CHNLS 32
615 /* First fixed channel supported */
616 #ifndef L2CAP_FIRST_FIXED_CHNL
617 #define L2CAP_FIRST_FIXED_CHNL 4
620 #ifndef L2CAP_LAST_FIXED_CHNL
621 #define L2CAP_LAST_FIXED_CHNL \
622 (L2CAP_FIRST_FIXED_CHNL + L2CAP_NUM_FIXED_CHNLS - 1)
625 /* Round Robin service channels in link */
626 #ifndef L2CAP_ROUND_ROBIN_CHANNEL_SERVICE
627 #define L2CAP_ROUND_ROBIN_CHANNEL_SERVICE TRUE
630 /* used for monitoring eL2CAP data flow */
631 #ifndef L2CAP_ERTM_STATS
632 #define L2CAP_ERTM_STATS FALSE
635 /* Used for conformance testing ONLY: When TRUE lets scriptwrapper overwrite
637 #ifndef L2CAP_CONFORMANCE_TESTING
638 #define L2CAP_CONFORMANCE_TESTING FALSE
642 * Max bytes per connection to buffer locally before dropping the
643 * connection if local client does not receive it - default is 1MB
645 #ifndef L2CAP_MAX_RX_BUFFER
646 #define L2CAP_MAX_RX_BUFFER 0x100000
649 /******************************************************************************
653 *****************************************************************************/
655 #ifndef LOCAL_BLE_CONTROLLER_ID
656 #define LOCAL_BLE_CONTROLLER_ID (1)
660 * Toggles support for general LE privacy features such as remote address
661 * resolution, local address rotation etc.
663 #ifndef BLE_PRIVACY_SPT
664 #define BLE_PRIVACY_SPT TRUE
668 * Enables or disables support for local privacy (ex. address rotation)
670 #ifndef BLE_LOCAL_PRIVACY_ENABLED
671 #define BLE_LOCAL_PRIVACY_ENABLED TRUE
675 * Toggles support for vendor specific extensions such as RPA offloading,
676 * feature discovery, multi-adv etc.
678 #ifndef BLE_VND_INCLUDED
679 #define BLE_VND_INCLUDED FALSE
682 #ifndef BTM_BLE_ADV_TX_POWER
683 #define BTM_BLE_ADV_TX_POWER \
684 { -21, -15, -7, 1, 9 }
687 /* The maximum number of simultaneous applications that can register with LE
689 #ifndef BLE_MAX_L2CAP_CLIENTS
690 #define BLE_MAX_L2CAP_CLIENTS 15
693 /******************************************************************************
695 * ATT/GATT Protocol/Profile Settings
697 *****************************************************************************/
698 #ifndef BLE_LLT_INCLUDED
699 #define BLE_LLT_INCLUDED TRUE
703 #define ATT_INCLUDED TRUE
707 #define ATT_DEBUG TRUE
710 #ifndef BLE_DELAY_REQUEST_ENC
711 /* This flag is to work around IPHONE problem, We need to wait for iPhone ready
712 before send encryption request to iPhone */
713 #define BLE_DELAY_REQUEST_ENC FALSE
716 #ifndef GAP_TRANSPORT_SUPPORTED
717 #define GAP_TRANSPORT_SUPPORTED GATT_TRANSPORT_LE_BR_EDR
720 #ifndef GATTP_TRANSPORT_SUPPORTED
721 #define GATTP_TRANSPORT_SUPPORTED GATT_TRANSPORT_LE_BR_EDR
724 #ifndef GATT_MAX_SR_PROFILES
725 #define GATT_MAX_SR_PROFILES 32 /* max is 32 */
728 #ifndef GATT_MAX_APPS
729 #define GATT_MAX_APPS 32 /* note: 2 apps used internally GATT and GAP */
732 #ifndef GATT_MAX_PHY_CHANNEL
733 #define GATT_MAX_PHY_CHANNEL 7
736 /* Used for conformance testing ONLY */
737 #ifndef GATT_CONFORMANCE_TESTING
738 #define GATT_CONFORMANCE_TESTING FALSE
741 /******************************************************************************
745 *****************************************************************************/
747 #define SMP_DEBUG FALSE
750 #ifndef SMP_DEFAULT_AUTH_REQ
751 #define SMP_DEFAULT_AUTH_REQ SMP_AUTH_NB_ENC_ONLY
754 #ifndef SMP_MAX_ENC_KEY_SIZE
755 #define SMP_MAX_ENC_KEY_SIZE 16
758 /* minimum link timeout after SMP pairing is done, leave room for key exchange
759 and racing condition for the following service connection.
760 Prefer greater than 0 second, and no less than default inactivity link idle
761 timer(L2CAP_LINK_INACTIVITY_TOUT) in l2cap) */
762 #ifndef SMP_LINK_TOUT_MIN
763 #if (L2CAP_LINK_INACTIVITY_TOUT > 0)
764 #define SMP_LINK_TOUT_MIN L2CAP_LINK_INACTIVITY_TOUT
766 #define SMP_LINK_TOUT_MIN 2
769 /******************************************************************************
773 *****************************************************************************/
775 /* This is set to enable SDP server functionality. */
776 #ifndef SDP_SERVER_ENABLED
777 #define SDP_SERVER_ENABLED TRUE
780 /* The maximum number of SDP records the server can support. */
781 #ifndef SDP_MAX_RECORDS
782 #define SDP_MAX_RECORDS 30
785 /* The maximum number of attributes in each record. */
786 #ifndef SDP_MAX_REC_ATTR
787 #define SDP_MAX_REC_ATTR 25
790 #ifndef SDP_MAX_PAD_LEN
791 #define SDP_MAX_PAD_LEN 600
794 /* The maximum length, in bytes, of an attribute. */
795 #ifndef SDP_MAX_ATTR_LEN
796 #define SDP_MAX_ATTR_LEN 400
799 /* The maximum number of attribute filters supported by SDP databases. */
800 #ifndef SDP_MAX_ATTR_FILTERS
801 #define SDP_MAX_ATTR_FILTERS 15
804 /* The maximum number of UUID filters supported by SDP databases. */
805 #ifndef SDP_MAX_UUID_FILTERS
806 #define SDP_MAX_UUID_FILTERS 3
809 /* The maximum number of record handles retrieved in a search. */
810 #ifndef SDP_MAX_DISC_SERVER_RECS
811 #define SDP_MAX_DISC_SERVER_RECS 21
814 /* The size of a scratchpad buffer, in bytes, for storing the response to an
815 * attribute request. */
816 #ifndef SDP_MAX_LIST_BYTE_COUNT
817 #define SDP_MAX_LIST_BYTE_COUNT 4096
820 /* The maximum number of parameters in an SDP protocol element. */
821 #ifndef SDP_MAX_PROTOCOL_PARAMS
822 #define SDP_MAX_PROTOCOL_PARAMS 2
825 /* The maximum number of simultaneous client and server connections. */
826 #ifndef SDP_MAX_CONNECTIONS
827 #define SDP_MAX_CONNECTIONS 4
830 /* The MTU size for the L2CAP configuration. */
832 #define SDP_MTU_SIZE 672
835 /* The flush timeout for the L2CAP configuration. */
837 #define SDP_FLUSH_TO 0xFFFF
840 /* The name for security authorization. */
841 #ifndef SDP_SERVICE_NAME
842 #define SDP_SERVICE_NAME "Service Discovery"
845 /* The security level for BTM. */
846 #ifndef SDP_SECURITY_LEVEL
847 #define SDP_SECURITY_LEVEL BTM_SEC_NONE
850 /******************************************************************************
854 *****************************************************************************/
856 /* The maximum number of ports supported. */
857 #ifndef MAX_RFC_PORTS
858 #define MAX_RFC_PORTS 30
861 /* The maximum simultaneous links to different devices. */
862 #ifndef MAX_ACL_CONNECTIONS
863 #define MAX_BD_CONNECTIONS 7
865 #define MAX_BD_CONNECTIONS MAX_ACL_CONNECTIONS
868 /* The port receive queue low watermark level, in bytes. */
869 #ifndef PORT_RX_LOW_WM
870 #define PORT_RX_LOW_WM (BTA_RFC_MTU_SIZE * PORT_RX_BUF_LOW_WM)
873 /* The port receive queue high watermark level, in bytes. */
874 #ifndef PORT_RX_HIGH_WM
875 #define PORT_RX_HIGH_WM (BTA_RFC_MTU_SIZE * PORT_RX_BUF_HIGH_WM)
878 /* The port receive queue critical watermark level, in bytes. */
879 #ifndef PORT_RX_CRITICAL_WM
880 #define PORT_RX_CRITICAL_WM (BTA_RFC_MTU_SIZE * PORT_RX_BUF_CRITICAL_WM)
883 /* The port receive queue low watermark level, in number of buffers. */
884 #ifndef PORT_RX_BUF_LOW_WM
885 #define PORT_RX_BUF_LOW_WM 4
888 /* The port receive queue high watermark level, in number of buffers. */
889 #ifndef PORT_RX_BUF_HIGH_WM
890 #define PORT_RX_BUF_HIGH_WM 10
893 /* The port receive queue critical watermark level, in number of buffers. */
894 #ifndef PORT_RX_BUF_CRITICAL_WM
895 #define PORT_RX_BUF_CRITICAL_WM 15
898 /* The port transmit queue high watermark level, in bytes. */
899 #ifndef PORT_TX_HIGH_WM
900 #define PORT_TX_HIGH_WM (BTA_RFC_MTU_SIZE * PORT_TX_BUF_HIGH_WM)
903 /* The port transmit queue critical watermark level, in bytes. */
904 #ifndef PORT_TX_CRITICAL_WM
905 #define PORT_TX_CRITICAL_WM (BTA_RFC_MTU_SIZE * PORT_TX_BUF_CRITICAL_WM)
908 /* The port transmit queue high watermark level, in number of buffers. */
909 #ifndef PORT_TX_BUF_HIGH_WM
910 #define PORT_TX_BUF_HIGH_WM 10
913 /* The port transmit queue high watermark level, in number of buffers. */
914 #ifndef PORT_TX_BUF_CRITICAL_WM
915 #define PORT_TX_BUF_CRITICAL_WM 15
918 /* The RFCOMM multiplexer preferred flow control mechanism. */
919 #ifndef PORT_FC_DEFAULT
920 #define PORT_FC_DEFAULT PORT_FC_CREDIT
923 /* The maximum number of credits receiver sends to peer when using credit-based
925 #ifndef PORT_CREDIT_RX_MAX
926 #define PORT_CREDIT_RX_MAX 16
929 /* The credit low watermark level. */
930 #ifndef PORT_CREDIT_RX_LOW
931 #define PORT_CREDIT_RX_LOW 8
934 /******************************************************************************
938 *****************************************************************************/
941 * Buffer size to reassemble the SDU.
942 * It will allow buffers to be used that are larger than the L2CAP_MAX_MTU.
944 #ifndef OBX_USER_RX_BUF_SIZE
945 #define OBX_USER_RX_BUF_SIZE OBX_LRG_DATA_BUF_SIZE
949 * Buffer size to hold the SDU.
950 * It will allow buffers to be used that are larger than the L2CAP_MAX_MTU.
952 #ifndef OBX_USER_TX_BUF_SIZE
953 #define OBX_USER_TX_BUF_SIZE OBX_LRG_DATA_BUF_SIZE
956 /* Buffer size used to hold MPS segments during SDU reassembly. */
957 #ifndef OBX_FCR_RX_BUF_SIZE
958 #define OBX_FCR_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
962 * Buffer size used to hold MPS segments used in (re)transmissions.
963 * The size of each buffer must be able to hold the maximum MPS segment size
964 * passed in L2CA_SetFCROptions plus BT_HDR (8) + HCI preamble (4) +
965 * L2CAP_MIN_OFFSET (11 - as of BT 2.1 + EDR Spec).
967 #ifndef OBX_FCR_TX_BUF_SIZE
968 #define OBX_FCR_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
972 * Size of the transmission window when using enhanced retransmission mode.
973 * Not used in basic and streaming modes. Range: 1 - 63
975 #ifndef OBX_FCR_OPT_TX_WINDOW_SIZE_BR_EDR
976 #define OBX_FCR_OPT_TX_WINDOW_SIZE_BR_EDR 20
980 * Number of transmission attempts for a single I-Frame before taking
981 * Down the connection. Used In ERTM mode only. Value is Ignored in basic and
984 * 0 - infinite retransmissions
985 * 1 - single transmission
987 #ifndef OBX_FCR_OPT_MAX_TX_B4_DISCNT
988 #define OBX_FCR_OPT_MAX_TX_B4_DISCNT 20
992 * Retransmission Timeout
993 * Range: Minimum 2000 (2 secs) on BR/EDR when supporting PBF.
995 #ifndef OBX_FCR_OPT_RETX_TOUT
996 #define OBX_FCR_OPT_RETX_TOUT 2000
1001 * Range: Minimum 12000 (12 secs) on BR/EDR when supporting PBF.
1003 #ifndef OBX_FCR_OPT_MONITOR_TOUT
1004 #define OBX_FCR_OPT_MONITOR_TOUT 12000
1008 * Maximum PDU payload size.
1009 * Suggestion: The maximum amount of data that will fit into a 3-DH5 packet.
1012 #ifndef OBX_FCR_OPT_MAX_PDU_SIZE
1013 #define OBX_FCR_OPT_MAX_PDU_SIZE L2CAP_MPS_OVER_BR_EDR
1016 /******************************************************************************
1020 *****************************************************************************/
1022 #ifndef BNEP_INCLUDED
1023 #define BNEP_INCLUDED TRUE
1026 /* BNEP status API call is used mainly to get the L2CAP handle */
1027 #ifndef BNEP_SUPPORTS_STATUS_API
1028 #define BNEP_SUPPORTS_STATUS_API TRUE
1032 * When BNEP connection changes roles after the connection is established
1033 * we will do an authentication check again on the new role
1035 #ifndef BNEP_DO_AUTH_FOR_ROLE_SWITCH
1036 #define BNEP_DO_AUTH_FOR_ROLE_SWITCH TRUE
1039 /* Maximum number of protocol filters supported. */
1040 #ifndef BNEP_MAX_PROT_FILTERS
1041 #define BNEP_MAX_PROT_FILTERS 5
1044 /* Maximum number of multicast filters supported. */
1045 #ifndef BNEP_MAX_MULTI_FILTERS
1046 #define BNEP_MAX_MULTI_FILTERS 5
1049 /* Minimum MTU size. */
1050 #ifndef BNEP_MIN_MTU_SIZE
1051 #define BNEP_MIN_MTU_SIZE L2CAP_MTU_SIZE
1054 /* Preferred MTU size. */
1055 #ifndef BNEP_MTU_SIZE
1056 #define BNEP_MTU_SIZE BNEP_MIN_MTU_SIZE
1059 /* Maximum number of buffers allowed in transmit data queue. */
1060 #ifndef BNEP_MAX_XMITQ_DEPTH
1061 #define BNEP_MAX_XMITQ_DEPTH 20
1064 /* Maximum number BNEP of connections supported. */
1065 #ifndef BNEP_MAX_CONNECTIONS
1066 #define BNEP_MAX_CONNECTIONS 7
1069 /******************************************************************************
1073 *****************************************************************************/
1075 #ifndef AVDT_INCLUDED
1076 #define AVDT_INCLUDED TRUE
1079 /* Include reporting capability in AVDTP */
1080 #ifndef AVDT_REPORTING
1081 #define AVDT_REPORTING TRUE
1084 /* Number of simultaneous links to different peer devices. */
1085 #ifndef AVDT_NUM_LINKS
1086 #define AVDT_NUM_LINKS 2
1089 /* Number of simultaneous stream endpoints. */
1090 #ifndef AVDT_NUM_SEPS
1091 #define AVDT_NUM_SEPS 6
1094 /* Number of transport channels setup by AVDT for all media streams */
1095 #ifndef AVDT_NUM_TC_TBL
1096 #define AVDT_NUM_TC_TBL 6
1099 /* Maximum size in bytes of the content protection information element. */
1100 #ifndef AVDT_PROTECT_SIZE
1101 #define AVDT_PROTECT_SIZE 90
1104 /******************************************************************************
1108 *****************************************************************************/
1110 #ifndef PAN_INCLUDED
1111 #define PAN_INCLUDED TRUE
1114 #ifndef PAN_NAP_DISABLED
1115 #define PAN_NAP_DISABLED FALSE
1118 #ifndef PANU_DISABLED
1119 #define PANU_DISABLED FALSE
1122 /* This will enable the PANU role */
1123 #ifndef PAN_SUPPORTS_ROLE_PANU
1124 #define PAN_SUPPORTS_ROLE_PANU TRUE
1127 /* This will enable the GN role */
1128 #ifndef PAN_SUPPORTS_ROLE_GN
1129 #define PAN_SUPPORTS_ROLE_GN TRUE
1132 /* This will enable the NAP role */
1133 #ifndef PAN_SUPPORTS_ROLE_NAP
1134 #define PAN_SUPPORTS_ROLE_NAP TRUE
1137 /* This is just for debugging purposes */
1138 #ifndef PAN_SUPPORTS_DEBUG_DUMP
1139 #define PAN_SUPPORTS_DEBUG_DUMP TRUE
1142 /* Maximum number of PAN connections allowed */
1143 #ifndef MAX_PAN_CONNS
1144 #define MAX_PAN_CONNS 7
1147 /* Default service name for NAP role */
1148 #ifndef PAN_NAP_DEFAULT_SERVICE_NAME
1149 #define PAN_NAP_DEFAULT_SERVICE_NAME "Network Access Point Service"
1152 /* Default service name for GN role */
1153 #ifndef PAN_GN_DEFAULT_SERVICE_NAME
1154 #define PAN_GN_DEFAULT_SERVICE_NAME "Group Network Service"
1157 /* Default service name for PANU role */
1158 #ifndef PAN_PANU_DEFAULT_SERVICE_NAME
1159 #define PAN_PANU_DEFAULT_SERVICE_NAME "PAN User Service"
1162 /* Default description for NAP role service */
1163 #ifndef PAN_NAP_DEFAULT_DESCRIPTION
1164 #define PAN_NAP_DEFAULT_DESCRIPTION "NAP"
1167 /* Default description for GN role service */
1168 #ifndef PAN_GN_DEFAULT_DESCRIPTION
1169 #define PAN_GN_DEFAULT_DESCRIPTION "GN"
1172 /* Default description for PANU role service */
1173 #ifndef PAN_PANU_DEFAULT_DESCRIPTION
1174 #define PAN_PANU_DEFAULT_DESCRIPTION "PANU"
1177 /* Default Security level for PANU role. */
1178 #ifndef PAN_PANU_SECURITY_LEVEL
1179 #define PAN_PANU_SECURITY_LEVEL 0
1182 /* Default Security level for GN role. */
1183 #ifndef PAN_GN_SECURITY_LEVEL
1184 #define PAN_GN_SECURITY_LEVEL 0
1187 /* Default Security level for NAP role. */
1188 #ifndef PAN_NAP_SECURITY_LEVEL
1189 #define PAN_NAP_SECURITY_LEVEL 0
1192 /******************************************************************************
1196 *****************************************************************************/
1198 #ifndef GAP_INCLUDED
1199 #define GAP_INCLUDED TRUE
1202 /* The maximum number of simultaneous GAP L2CAP connections. */
1203 #ifndef GAP_MAX_CONNECTIONS
1204 #define GAP_MAX_CONNECTIONS 30
1207 /* keep the raw data received from SDP server in database. */
1208 #ifndef SDP_RAW_DATA_INCLUDED
1209 #define SDP_RAW_DATA_INCLUDED TRUE
1212 /* Inquiry duration in 1.28 second units. */
1214 #define SDP_DEBUG TRUE
1217 /******************************************************************************
1221 *****************************************************************************/
1223 /* HID Device Role Included */
1224 #ifndef HID_DEV_INCLUDED
1225 #define HID_DEV_INCLUDED TRUE
1228 #ifndef HID_DEV_SUBCLASS
1229 #define HID_DEV_SUBCLASS COD_MINOR_POINTING
1232 #ifndef HID_CONTROL_BUF_SIZE
1233 #define HID_CONTROL_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
1236 #ifndef HID_INTERRUPT_BUF_SIZE
1237 #define HID_INTERRUPT_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
1240 #ifndef HID_DEV_MTU_SIZE
1241 #define HID_DEV_MTU_SIZE 64
1244 #ifndef HID_DEV_FLUSH_TO
1245 #define HID_DEV_FLUSH_TO 0xffff
1248 /*************************************************************************
1249 * Definitions for Both HID-Host & Device
1251 #ifndef HID_MAX_SVC_NAME_LEN
1252 #define HID_MAX_SVC_NAME_LEN 32
1255 #ifndef HID_MAX_SVC_DESCR_LEN
1256 #define HID_MAX_SVC_DESCR_LEN 32
1259 #ifndef HID_MAX_PROV_NAME_LEN
1260 #define HID_MAX_PROV_NAME_LEN 32
1263 /*************************************************************************
1264 * Definitions for HID-Host
1266 #ifndef HID_HOST_INCLUDED
1267 #define HID_HOST_INCLUDED TRUE
1270 #ifndef HID_HOST_MAX_DEVICES
1271 #define HID_HOST_MAX_DEVICES 7
1274 #ifndef HID_HOST_MTU
1275 #define HID_HOST_MTU 640
1278 #ifndef HID_HOST_FLUSH_TO
1279 #define HID_HOST_FLUSH_TO 0xffff
1282 #ifndef HID_HOST_MAX_CONN_RETRY
1283 #define HID_HOST_MAX_CONN_RETRY (1)
1286 #ifndef HID_HOST_REPAGE_WIN
1287 #define HID_HOST_REPAGE_WIN (2)
1290 /*************************************************************************
1293 #ifndef A2D_INCLUDED
1294 #define A2D_INCLUDED TRUE
1297 /******************************************************************************
1301 *****************************************************************************/
1303 /* Number of simultaneous ACL links to different peer devices. */
1304 #ifndef AVCT_NUM_LINKS
1305 #define AVCT_NUM_LINKS 2
1308 /* Number of simultaneous AVCTP connections. */
1309 #ifndef AVCT_NUM_CONN
1310 #define AVCT_NUM_CONN 3
1313 /******************************************************************************
1317 *****************************************************************************/
1319 #ifndef AVRC_METADATA_INCLUDED
1320 #define AVRC_METADATA_INCLUDED TRUE
1323 #ifndef AVRC_ADV_CTRL_INCLUDED
1324 #define AVRC_ADV_CTRL_INCLUDED TRUE
1327 #ifndef DUMP_PCM_DATA
1328 #define DUMP_PCM_DATA FALSE
1331 /******************************************************************************
1335 *****************************************************************************/
1336 #ifndef MCA_INCLUDED
1337 #define MCA_INCLUDED FALSE
1340 /* The MTU size for the L2CAP configuration on control channel. 48 is the
1342 #ifndef MCA_CTRL_MTU
1343 #define MCA_CTRL_MTU 60
1346 /* The maximum number of registered MCAP instances. */
1347 #ifndef MCA_NUM_REGS
1348 #define MCA_NUM_REGS 12
1351 /* The maximum number of control channels (to difference devices) per registered
1352 * MCAP instances. */
1353 #ifndef MCA_NUM_LINKS
1354 #define MCA_NUM_LINKS 3
1357 /* The maximum number of MDEP (including HDP echo) per registered MCAP
1359 #ifndef MCA_NUM_DEPS
1360 #define MCA_NUM_DEPS 13
1363 /* The maximum number of MDL link per control channel. */
1364 #ifndef MCA_NUM_MDLS
1365 #define MCA_NUM_MDLS 4
1368 /* Buffer size to reassemble the SDU. */
1369 #ifndef MCA_USER_RX_BUF_SIZE
1370 #define MCA_USER_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
1373 /* Buffer size to hold the SDU. */
1374 #ifndef MCA_USER_TX_BUF_SIZE
1375 #define MCA_USER_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
1379 * Buffer size used to hold MPS segments during SDU reassembly
1381 #ifndef MCA_FCR_RX_BUF_SIZE
1382 #define MCA_FCR_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
1386 * Default buffer size used to hold MPS segments used in (re)transmissions.
1387 * The size of each buffer must be able to hold the maximum MPS segment size
1388 * passed in tL2CAP_FCR_OPTIONS plus BT_HDR (8) + HCI preamble (4) +
1389 * L2CAP_MIN_OFFSET (11 - as of BT 2.1 + EDR Spec).
1391 #ifndef MCA_FCR_TX_BUF_SIZE
1392 #define MCA_FCR_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
1395 /* MCAP control channel FCR Option:
1396 Size of the transmission window when using enhanced retransmission mode.
1397 1 is defined by HDP specification for control channel.
1399 #ifndef MCA_FCR_OPT_TX_WINDOW_SIZE
1400 #define MCA_FCR_OPT_TX_WINDOW_SIZE 1
1403 /* MCAP control channel FCR Option:
1404 Number of transmission attempts for a single I-Frame before taking
1405 Down the connection. Used In ERTM mode only. Value is Ignored in basic and
1408 0 - infinite retransmissions
1409 1 - single transmission
1411 #ifndef MCA_FCR_OPT_MAX_TX_B4_DISCNT
1412 #define MCA_FCR_OPT_MAX_TX_B4_DISCNT 20
1415 /* MCAP control channel FCR Option: Retransmission Timeout
1416 The AVRCP specification set a value in the range of 300 - 2000 ms
1417 Timeout (in msecs) to detect Lost I-Frames. Only used in Enhanced retransmission
1419 Range: Minimum 2000 (2 secs) when supporting PBF.
1421 #ifndef MCA_FCR_OPT_RETX_TOUT
1422 #define MCA_FCR_OPT_RETX_TOUT 2000
1425 /* MCAP control channel FCR Option: Monitor Timeout
1426 The AVRCP specification set a value in the range of 300 - 2000 ms
1427 Timeout (in msecs) to detect Lost S-Frames. Only used in Enhanced retransmission
1429 Range: Minimum 12000 (12 secs) when supporting PBF.
1431 #ifndef MCA_FCR_OPT_MONITOR_TOUT
1432 #define MCA_FCR_OPT_MONITOR_TOUT 12000
1435 /* MCAP control channel FCR Option: Maximum PDU payload size.
1436 The maximum number of payload octets that the local device can receive in a
1439 #ifndef MCA_FCR_OPT_MPS_SIZE
1440 #define MCA_FCR_OPT_MPS_SIZE 1000
1443 /******************************************************************************
1447 *****************************************************************************/
1448 /* BTA EIR canned UUID list (default is dynamic) */
1449 #ifndef BTA_EIR_CANNED_UUID_LIST
1450 #define BTA_EIR_CANNED_UUID_LIST FALSE
1453 /* Number of supported customer UUID in EIR */
1454 #ifndef BTA_EIR_SERVER_NUM_CUSTOM_UUID
1455 #define BTA_EIR_SERVER_NUM_CUSTOM_UUID 8
1459 #ifndef BTA_AG_CHLD_VAL_ECC
1460 #define BTA_AG_CHLD_VAL_ECC "(0,1,1x,2,2x,3)"
1463 #ifndef BTA_AG_CHLD_VAL
1464 #define BTA_AG_CHLD_VAL "(0,1,2,3)"
1467 /* Set the CIND to match HFP 1.5 */
1468 #ifndef BTA_AG_CIND_INFO
1469 #define BTA_AG_CIND_INFO \
1470 "(\"call\",(0,1)),(\"callsetup\",(0-3)),(\"service\",(0-1)),(\"signal\",(0-" \
1471 "5)),(\"roam\",(0,1)),(\"battchg\",(0-5)),(\"callheld\",(0-2))"
1474 #ifndef BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY
1475 #define BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY TRUE
1478 /******************************************************************************
1480 * Tracing: Include trace header file here.
1482 *****************************************************************************/
1484 /* Enable/disable BTSnoop memory logging */
1486 #define BTSNOOP_MEM TRUE
1489 #include "bt_trace.h"
1491 #endif /* BT_TARGET_H */