1 /****************************************************************************** 2 * 3 * Copyright (c) 2014 The Android Open Source Project 4 * Copyright 1999-2016 Broadcom Corporation 5 * 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: 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 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. 17 * 18 ******************************************************************************/ 19 20 #ifndef BT_TARGET_H 21 #define BT_TARGET_H 22 23 #ifndef BUILDCFG 24 #define BUILDCFG 25 #endif 26 27 #if !defined(HAS_BDROID_BUILDCFG) && !defined(HAS_NO_BDROID_BUILDCFG) 28 #error \ 29 "An Android.mk file did not include bdroid_CFLAGS and possibly not bdroid_C_INCLUDES" 30 #endif 31 32 #ifdef HAS_BDROID_BUILDCFG 33 #include "bdroid_buildcfg.h" 34 #endif 35 36 #include "bt_types.h" /* This must be defined AFTER buildcfg.h */ 37 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) 43 #endif 44 45 #ifndef BTUI_OPS_FORMATS 46 #define BTUI_OPS_FORMATS (BTA_OP_VCARD21_MASK | BTA_OP_ANY_MASK) 47 #endif 48 49 #ifndef BTA_RFC_MTU_SIZE 50 #define BTA_RFC_MTU_SIZE \ 51 (L2CAP_MTU_SIZE - L2CAP_MIN_OFFSET - RFCOMM_DATA_OVERHEAD) 52 #endif 53 54 #ifndef BTA_PAN_INCLUDED 55 #define BTA_PAN_INCLUDED TRUE 56 #endif 57 58 #ifndef BTA_HD_INCLUDED 59 #define BTA_HD_INCLUDED TRUE 60 #endif 61 62 #ifndef BTA_HH_INCLUDED 63 #define BTA_HH_INCLUDED TRUE 64 #endif 65 66 #ifndef BTA_HH_ROLE 67 #define BTA_HH_ROLE BTA_MASTER_ROLE_PREF 68 #endif 69 70 #ifndef BTA_HH_LE_INCLUDED 71 #define BTA_HH_LE_INCLUDED TRUE 72 #endif 73 74 #ifndef BTA_AR_INCLUDED 75 #define BTA_AR_INCLUDED TRUE 76 #endif 77 78 #ifndef BTA_AV_SINK_INCLUDED 79 #define BTA_AV_SINK_INCLUDED FALSE 80 #endif 81 82 #ifndef BTA_DISABLE_DELAY 83 #define BTA_DISABLE_DELAY 200 /* in milliseconds */ 84 #endif 85 86 #ifndef AVDT_VERSION 87 #define AVDT_VERSION 0x0103 88 #endif 89 90 #ifndef BTA_AG_AT_MAX_LEN 91 #define BTA_AG_AT_MAX_LEN 512 92 #endif 93 94 #ifndef BTA_AG_SCO_PKT_TYPES 95 #define BTA_AG_SCO_PKT_TYPES \ 96 (BTM_SCO_LINK_ONLY_MASK | ESCO_PKT_TYPES_MASK_EV3 | \ 97 ESCO_PKT_TYPES_MASK_NO_3_EV3 | ESCO_PKT_TYPES_MASK_NO_2_EV5 | \ 98 ESCO_PKT_TYPES_MASK_NO_3_EV5) 99 #endif 100 101 #ifndef BTA_AV_RET_TOUT 102 #define BTA_AV_RET_TOUT 15 103 #endif 104 105 /* TRUE to use SCMS-T content protection */ 106 #ifndef BTA_AV_CO_CP_SCMS_T 107 #define BTA_AV_CO_CP_SCMS_T FALSE 108 #endif 109 110 #ifndef BTA_DM_SDP_DB_SIZE 111 #define BTA_DM_SDP_DB_SIZE 8000 112 #endif 113 114 #ifndef HL_INCLUDED 115 #define HL_INCLUDED TRUE 116 #endif 117 118 #ifndef AG_VOICE_SETTINGS 119 #define AG_VOICE_SETTINGS HCI_DEFAULT_VOICE_SETTINGS 120 #endif 121 122 #ifndef BTIF_DM_OOB_TEST 123 #define BTIF_DM_OOB_TEST TRUE 124 #endif 125 126 // How long to wait before activating sniff mode after entering the 127 // idle state for server FT/RFCOMM, OPS connections 128 #ifndef BTA_FTS_OPS_IDLE_TO_SNIFF_DELAY_MS 129 #define BTA_FTS_OPS_IDLE_TO_SNIFF_DELAY_MS 7000 130 #endif 131 132 // How long to wait before activating sniff mode after entering the 133 // idle state for client FT/RFCOMM connections 134 #ifndef BTA_FTC_IDLE_TO_SNIFF_DELAY_MS 135 #define BTA_FTC_IDLE_TO_SNIFF_DELAY_MS 5000 136 #endif 137 138 //------------------End added from bdroid_buildcfg.h--------------------- 139 140 /****************************************************************************** 141 * 142 * Buffer sizes 143 * 144 *****************************************************************************/ 145 146 #ifndef BT_DEFAULT_BUFFER_SIZE 147 #define BT_DEFAULT_BUFFER_SIZE (4096 + 16) 148 #endif 149 150 #ifndef BT_SMALL_BUFFER_SIZE 151 #define BT_SMALL_BUFFER_SIZE 660 152 #endif 153 154 /* Receives HCI events from the lower-layer. */ 155 #ifndef HCI_CMD_BUF_SIZE 156 #define HCI_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 157 #endif 158 159 /* Sends SDP data packets. */ 160 #ifndef SDP_DATA_BUF_SIZE 161 #define SDP_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 162 #endif 163 164 /* Sends RFCOMM command packets. */ 165 #ifndef RFCOMM_CMD_BUF_SIZE 166 #define RFCOMM_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 167 #endif 168 169 /* Sends RFCOMM data packets. */ 170 #ifndef RFCOMM_DATA_BUF_SIZE 171 #define RFCOMM_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 172 #endif 173 174 /* Sends L2CAP packets to the peer and HCI messages to the controller. */ 175 #ifndef L2CAP_CMD_BUF_SIZE 176 #define L2CAP_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 177 #endif 178 179 #ifndef L2CAP_USER_TX_BUF_SIZE 180 #define L2CAP_USER_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 181 #endif 182 183 #ifndef L2CAP_USER_RX_BUF_SIZE 184 #define L2CAP_USER_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 185 #endif 186 187 /* Sends L2CAP segmented packets in ERTM mode */ 188 #ifndef L2CAP_FCR_TX_BUF_SIZE 189 #define L2CAP_FCR_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 190 #endif 191 192 /* Receives L2CAP segmented packets in ERTM mode */ 193 #ifndef L2CAP_FCR_RX_BUF_SIZE 194 #define L2CAP_FCR_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 195 #endif 196 197 #ifndef L2CAP_FCR_ERTM_BUF_SIZE 198 #define L2CAP_FCR_ERTM_BUF_SIZE (10240 + 24) 199 #endif 200 201 /* Number of ACL buffers to assign to LE */ 202 /* 203 * TODO: Do we need this? 204 * It was used when the HCI buffers were shared with BR/EDR. 205 */ 206 #ifndef L2C_DEF_NUM_BLE_BUF_SHARED 207 #define L2C_DEF_NUM_BLE_BUF_SHARED 1 208 #endif 209 210 /* Used by BTM when it sends HCI commands to the controller. */ 211 #ifndef BTM_CMD_BUF_SIZE 212 #define BTM_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 213 #endif 214 215 #ifndef OBX_LRG_DATA_BUF_SIZE 216 #define OBX_LRG_DATA_BUF_SIZE (8080 + 26) 217 #endif 218 219 /* Used to send data to L2CAP. */ 220 #ifndef GAP_DATA_BUF_SIZE 221 #define GAP_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 222 #endif 223 224 /* BNEP data and protocol messages. */ 225 #ifndef BNEP_BUF_SIZE 226 #define BNEP_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 227 #endif 228 229 /* AVDTP buffer size for protocol messages */ 230 #ifndef AVDT_CMD_BUF_SIZE 231 #define AVDT_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 232 #endif 233 234 #ifndef PAN_BUF_SIZE 235 #define PAN_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 236 #endif 237 238 /* Maximum number of buffers to allocate for PAN */ 239 #ifndef PAN_BUF_MAX 240 #define PAN_BUF_MAX 100 241 #endif 242 243 /* AVCTP buffer size for protocol messages */ 244 #ifndef AVCT_CMD_BUF_SIZE 245 #define AVCT_CMD_BUF_SIZE 288 246 #endif 247 248 /* AVRCP buffer size for protocol messages */ 249 #ifndef AVRC_CMD_BUF_SIZE 250 #define AVRC_CMD_BUF_SIZE 288 251 #endif 252 253 /* AVRCP Metadata buffer size for protocol messages */ 254 #ifndef AVRC_META_CMD_BUF_SIZE 255 #define AVRC_META_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 256 #endif 257 258 #ifndef BTA_HL_LRG_DATA_BUF_SIZE 259 #define BTA_HL_LRG_DATA_BUF_SIZE (10240 + 24) 260 #endif 261 262 /* GATT Data sending buffer size */ 263 #ifndef GATT_DATA_BUF_SIZE 264 #define GATT_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 265 #endif 266 267 /****************************************************************************** 268 * 269 * BTM 270 * 271 *****************************************************************************/ 272 273 /* Cancel Inquiry on incoming SSP */ 274 #ifndef BTM_NO_SSP_ON_INQUIRY 275 #define BTM_NO_SSP_ON_INQUIRY FALSE 276 #endif 277 278 #ifndef DISABLE_WBS 279 #define DISABLE_WBS FALSE 280 #endif 281 282 /* This is used to work around a controller bug that doesn't like Disconnect 283 * issued while there is a role switch in progress 284 */ 285 #ifndef BTM_DISC_DURING_RS 286 #define BTM_DISC_DURING_RS TRUE 287 #endif 288 289 /************************** 290 * Initial SCO TX credit 291 ************************/ 292 /* max TX SCO data packet size */ 293 #ifndef BTM_SCO_DATA_SIZE_MAX 294 #define BTM_SCO_DATA_SIZE_MAX 240 295 #endif 296 297 /* The size in bytes of the BTM inquiry database. */ 298 #ifndef BTM_INQ_DB_SIZE 299 #define BTM_INQ_DB_SIZE 40 300 #endif 301 302 /* The default scan mode */ 303 #ifndef BTM_DEFAULT_SCAN_TYPE 304 #define BTM_DEFAULT_SCAN_TYPE BTM_SCAN_TYPE_INTERLACED 305 #endif 306 307 /* Should connections to unknown devices be allowed when not discoverable? */ 308 #ifndef BTM_ALLOW_CONN_IF_NONDISCOVER 309 #define BTM_ALLOW_CONN_IF_NONDISCOVER TRUE 310 #endif 311 312 /* Sets the Page_Scan_Window: the length of time that the device is performing 313 * a page scan. */ 314 #ifndef BTM_DEFAULT_CONN_WINDOW 315 #define BTM_DEFAULT_CONN_WINDOW 0x0012 316 #endif 317 318 /* Sets the Page_Scan_Activity: the interval between the start of two 319 * consecutive page scans. */ 320 #ifndef BTM_DEFAULT_CONN_INTERVAL 321 #define BTM_DEFAULT_CONN_INTERVAL 0x0800 322 #endif 323 324 /* When automatic inquiry scan is enabled, this sets the inquiry scan window. */ 325 #ifndef BTM_DEFAULT_DISC_WINDOW 326 #define BTM_DEFAULT_DISC_WINDOW 0x0012 327 #endif 328 329 /* When automatic inquiry scan is enabled, this sets the inquiry scan interval. 330 */ 331 #ifndef BTM_DEFAULT_DISC_INTERVAL 332 #define BTM_DEFAULT_DISC_INTERVAL 0x0800 333 #endif 334 335 /* Default class of device 336 * {SERVICE_CLASS, MAJOR_CLASS, MINOR_CLASS} 337 * 338 * SERVICE_CLASS:0x5A (Bit17 -Networking,Bit19 - Capturing,Bit20 -Object 339 * Transfer,Bit22 -Telephony) 340 * MAJOR_CLASS:0x02 - PHONE 341 * MINOR_CLASS:0x0C - SMART_PHONE 342 * 343 */ 344 #ifndef BTA_DM_COD 345 #define BTA_DM_COD \ 346 { 0x5A, 0x02, 0x0C } 347 #endif 348 349 /* The number of SCO links. */ 350 #ifndef BTM_MAX_SCO_LINKS 351 #define BTM_MAX_SCO_LINKS 6 352 #endif 353 354 /* The number of security records for peer devices. */ 355 #ifndef BTM_SEC_MAX_DEVICE_RECORDS 356 #define BTM_SEC_MAX_DEVICE_RECORDS 100 357 #endif 358 359 /* The number of security records for services. */ 360 #ifndef BTM_SEC_MAX_SERVICE_RECORDS 361 #define BTM_SEC_MAX_SERVICE_RECORDS 32 362 #endif 363 364 /* If True, force a retrieval of remote device name for each bond in case it's 365 * changed */ 366 #ifndef BTM_SEC_FORCE_RNR_FOR_DBOND 367 #define BTM_SEC_FORCE_RNR_FOR_DBOND FALSE 368 #endif 369 370 /* Maximum device name length used in btm database. */ 371 #ifndef BTM_MAX_REM_BD_NAME_LEN 372 #define BTM_MAX_REM_BD_NAME_LEN 248 373 #endif 374 375 /* Maximum local device name length stored btm database */ 376 #ifndef BTM_MAX_LOC_BD_NAME_LEN 377 #define BTM_MAX_LOC_BD_NAME_LEN 248 378 #endif 379 380 /* Fixed Default String. When this is defined as null string, the device's 381 * product model name is used as the default local name. 382 */ 383 #ifndef BTM_DEF_LOCAL_NAME 384 #define BTM_DEF_LOCAL_NAME "" 385 #endif 386 387 /* Maximum service name stored with security authorization (0 if not needed) */ 388 #ifndef BTM_SEC_SERVICE_NAME_LEN 389 #define BTM_SEC_SERVICE_NAME_LEN BT_MAX_SERVICE_NAME_LEN 390 #endif 391 392 /* Maximum length of the service name. */ 393 #ifndef BT_MAX_SERVICE_NAME_LEN 394 #define BT_MAX_SERVICE_NAME_LEN 21 395 #endif 396 397 /* The maximum number of clients that can register with the power manager. */ 398 #ifndef BTM_MAX_PM_RECORDS 399 #define BTM_MAX_PM_RECORDS 2 400 #endif 401 402 /* This is set to show debug trace messages for the power manager. */ 403 #ifndef BTM_PM_DEBUG 404 #define BTM_PM_DEBUG FALSE 405 #endif 406 407 /* If the user does not respond to security process requests within this many 408 * seconds, a negative response would be sent automatically. 409 * 30 is LMP response timeout value */ 410 #ifndef BTM_SEC_TIMEOUT_VALUE 411 #define BTM_SEC_TIMEOUT_VALUE 35 412 #endif 413 414 /* Maximum number of callbacks that can be registered using 415 * BTM_RegisterForVSEvents */ 416 #ifndef BTM_MAX_VSE_CALLBACKS 417 #define BTM_MAX_VSE_CALLBACKS 3 418 #endif 419 420 /****************************************** 421 * Lisbon Features 422 ******************************************/ 423 /* This is set to TRUE if the FEC is required for EIR packet. */ 424 #ifndef BTM_EIR_DEFAULT_FEC_REQUIRED 425 #define BTM_EIR_DEFAULT_FEC_REQUIRED TRUE 426 #endif 427 428 /* The IO capability of the local device (for Simple Pairing) */ 429 #ifndef BTM_LOCAL_IO_CAPS 430 #define BTM_LOCAL_IO_CAPS BTM_IO_CAP_IO 431 #endif 432 433 #ifndef BTM_LOCAL_IO_CAPS_BLE 434 #define BTM_LOCAL_IO_CAPS_BLE BTM_IO_CAP_KBDISP 435 #endif 436 437 /* The default MITM Protection Requirement (for Simple Pairing) 438 * Possible values are BTM_AUTH_SP_YES or BTM_AUTH_SP_NO */ 439 #ifndef BTM_DEFAULT_AUTH_REQ 440 #define BTM_DEFAULT_AUTH_REQ BTM_AUTH_SP_NO 441 #endif 442 443 /* The default MITM Protection Requirement for dedicated bonding using Simple 444 * Pairing 445 * Possible values are BTM_AUTH_AP_YES or BTM_AUTH_AP_NO */ 446 #ifndef BTM_DEFAULT_DD_AUTH_REQ 447 #define BTM_DEFAULT_DD_AUTH_REQ BTM_AUTH_AP_YES 448 #endif 449 450 /* TRUE to include Sniff Subrating */ 451 #ifndef BTM_SSR_INCLUDED 452 #define BTM_SSR_INCLUDED TRUE 453 #endif 454 455 /************************* 456 * End of Lisbon Features 457 *************************/ 458 459 /* 4.1/4.2 secure connections feature */ 460 #ifndef SC_MODE_INCLUDED 461 #define SC_MODE_INCLUDED TRUE 462 #endif 463 464 /* Used for conformance testing ONLY */ 465 #ifndef BTM_BLE_CONFORMANCE_TESTING 466 #define BTM_BLE_CONFORMANCE_TESTING FALSE 467 #endif 468 469 /****************************************************************************** 470 * 471 * L2CAP 472 * 473 *****************************************************************************/ 474 475 /* The maximum number of simultaneous links that L2CAP can support. */ 476 #ifndef MAX_ACL_CONNECTIONS 477 #define MAX_L2CAP_LINKS 13 478 #else 479 #define MAX_L2CAP_LINKS MAX_ACL_CONNECTIONS 480 #endif 481 482 /* The maximum number of simultaneous channels that L2CAP can support. */ 483 #ifndef MAX_L2CAP_CHANNELS 484 #define MAX_L2CAP_CHANNELS 32 485 #endif 486 487 /* The maximum number of simultaneous applications that can register with L2CAP. 488 */ 489 #ifndef MAX_L2CAP_CLIENTS 490 #define MAX_L2CAP_CLIENTS 15 491 #endif 492 493 /* The number of seconds of link inactivity before a link is disconnected. */ 494 #ifndef L2CAP_LINK_INACTIVITY_TOUT 495 #define L2CAP_LINK_INACTIVITY_TOUT 4 496 #endif 497 498 /* The number of seconds of link inactivity after bonding before a link is 499 * disconnected. */ 500 #ifndef L2CAP_BONDING_TIMEOUT 501 #define L2CAP_BONDING_TIMEOUT 3 502 #endif 503 504 /* The time from the HCI connection complete to disconnect if no channel is 505 * established. */ 506 #ifndef L2CAP_LINK_STARTUP_TOUT 507 #define L2CAP_LINK_STARTUP_TOUT 60 508 #endif 509 510 /* The L2CAP MTU; must be in accord with the HCI ACL buffer size. */ 511 #ifndef L2CAP_MTU_SIZE 512 #define L2CAP_MTU_SIZE 1691 513 #endif 514 515 /* 516 * The L2CAP MPS over Bluetooth; must be in accord with the FCR tx buffer size 517 * and ACL down buffer size. 518 */ 519 #ifndef L2CAP_MPS_OVER_BR_EDR 520 #define L2CAP_MPS_OVER_BR_EDR 1010 521 #endif 522 523 /* If host flow control enabled, this is the number of buffers the controller 524 * can have unacknowledged. */ 525 #ifndef L2CAP_HOST_FC_ACL_BUFS 526 #define L2CAP_HOST_FC_ACL_BUFS 20 527 #endif 528 529 /* This is set to enable L2CAP to take the ACL link out of park mode when ACL 530 * data is to be sent. */ 531 #ifndef L2CAP_WAKE_PARKED_LINK 532 #define L2CAP_WAKE_PARKED_LINK TRUE 533 #endif 534 535 /* Whether link wants to be the master or the slave. */ 536 #ifndef L2CAP_DESIRED_LINK_ROLE 537 #define L2CAP_DESIRED_LINK_ROLE HCI_ROLE_SLAVE 538 #endif 539 540 /* Include Non-Flushable Packet Boundary Flag feature of Lisbon */ 541 #ifndef L2CAP_NON_FLUSHABLE_PB_INCLUDED 542 #define L2CAP_NON_FLUSHABLE_PB_INCLUDED TRUE 543 #endif 544 545 /* Minimum number of ACL credit for high priority link */ 546 #ifndef L2CAP_HIGH_PRI_MIN_XMIT_QUOTA 547 #define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA 5 548 #endif 549 550 /* used for monitoring HCI ACL credit management */ 551 #ifndef L2CAP_HCI_FLOW_CONTROL_DEBUG 552 #define L2CAP_HCI_FLOW_CONTROL_DEBUG TRUE 553 #endif 554 555 /* Used for features using fixed channels; set to zero if no fixed channels 556 * supported (BLE, etc.) */ 557 /* Excluding L2CAP signaling channel and UCD */ 558 #ifndef L2CAP_NUM_FIXED_CHNLS 559 #define L2CAP_NUM_FIXED_CHNLS 32 560 #endif 561 562 /* First fixed channel supported */ 563 #ifndef L2CAP_FIRST_FIXED_CHNL 564 #define L2CAP_FIRST_FIXED_CHNL 4 565 #endif 566 567 #ifndef L2CAP_LAST_FIXED_CHNL 568 #define L2CAP_LAST_FIXED_CHNL \ 569 (L2CAP_FIRST_FIXED_CHNL + L2CAP_NUM_FIXED_CHNLS - 1) 570 #endif 571 572 /* Round Robin service channels in link */ 573 #ifndef L2CAP_ROUND_ROBIN_CHANNEL_SERVICE 574 #define L2CAP_ROUND_ROBIN_CHANNEL_SERVICE TRUE 575 #endif 576 577 /* used for monitoring eL2CAP data flow */ 578 #ifndef L2CAP_ERTM_STATS 579 #define L2CAP_ERTM_STATS FALSE 580 #endif 581 582 /* Used for conformance testing ONLY: When TRUE lets scriptwrapper overwrite 583 * info response */ 584 #ifndef L2CAP_CONFORMANCE_TESTING 585 #define L2CAP_CONFORMANCE_TESTING FALSE 586 #endif 587 588 /* 589 * Max bytes per connection to buffer locally before dropping the 590 * connection if local client does not receive it - default is 1MB 591 */ 592 #ifndef L2CAP_MAX_RX_BUFFER 593 #define L2CAP_MAX_RX_BUFFER 0x100000 594 #endif 595 596 /****************************************************************************** 597 * 598 * BLE 599 * 600 *****************************************************************************/ 601 602 #ifndef LOCAL_BLE_CONTROLLER_ID 603 #define LOCAL_BLE_CONTROLLER_ID 1 604 #endif 605 606 /* 607 * Toggles support for general LE privacy features such as remote address 608 * resolution, local address rotation etc. 609 */ 610 #ifndef BLE_PRIVACY_SPT 611 #define BLE_PRIVACY_SPT TRUE 612 #endif 613 614 /* 615 * Enables or disables support for local privacy (ex. address rotation) 616 */ 617 #ifndef BLE_LOCAL_PRIVACY_ENABLED 618 #define BLE_LOCAL_PRIVACY_ENABLED TRUE 619 #endif 620 621 /* 622 * Toggles support for vendor specific extensions such as RPA offloading, 623 * feature discovery, multi-adv etc. 624 */ 625 #ifndef BLE_VND_INCLUDED 626 #define BLE_VND_INCLUDED FALSE 627 #endif 628 629 /* The maximum number of simultaneous applications that can register with LE 630 * L2CAP. */ 631 #ifndef BLE_MAX_L2CAP_CLIENTS 632 #define BLE_MAX_L2CAP_CLIENTS 15 633 #endif 634 635 /****************************************************************************** 636 * 637 * ATT/GATT Protocol/Profile Settings 638 * 639 *****************************************************************************/ 640 #ifndef BLE_LLT_INCLUDED 641 #define BLE_LLT_INCLUDED TRUE 642 #endif 643 644 #ifndef BLE_DELAY_REQUEST_ENC 645 /* This flag is to work around IPHONE problem, We need to wait for iPhone ready 646 before send encryption request to iPhone */ 647 #define BLE_DELAY_REQUEST_ENC FALSE 648 #endif 649 650 #ifndef GATT_MAX_SR_PROFILES 651 #define GATT_MAX_SR_PROFILES 32 /* max is 32 */ 652 #endif 653 654 #ifndef GATT_MAX_APPS 655 #define GATT_MAX_APPS 32 /* note: 2 apps used internally GATT and GAP */ 656 #endif 657 658 /* connection manager doesn't generate it's own IDs. Instead, all GATT clients 659 * use their gatt_if to identify against conection manager. When stack tries to 660 * create l2cap connection, it will use this fixed ID. */ 661 #define CONN_MGR_ID_L2CAP (GATT_MAX_APPS + 10) 662 663 #ifndef GATT_MAX_PHY_CHANNEL 664 #define GATT_MAX_PHY_CHANNEL 7 665 #endif 666 667 /* Used for conformance testing ONLY */ 668 #ifndef GATT_CONFORMANCE_TESTING 669 #define GATT_CONFORMANCE_TESTING FALSE 670 #endif 671 672 /****************************************************************************** 673 * 674 * SMP 675 * 676 *****************************************************************************/ 677 #ifndef SMP_DEBUG 678 #define SMP_DEBUG FALSE 679 #endif 680 681 #ifndef SMP_DEFAULT_AUTH_REQ 682 #define SMP_DEFAULT_AUTH_REQ SMP_AUTH_NB_ENC_ONLY 683 #endif 684 685 #ifndef SMP_MAX_ENC_KEY_SIZE 686 #define SMP_MAX_ENC_KEY_SIZE 16 687 #endif 688 689 /* minimum link timeout after SMP pairing is done, leave room for key exchange 690 and racing condition for the following service connection. 691 Prefer greater than 0 second, and no less than default inactivity link idle 692 timer(L2CAP_LINK_INACTIVITY_TOUT) in l2cap) */ 693 #ifndef SMP_LINK_TOUT_MIN 694 #if (L2CAP_LINK_INACTIVITY_TOUT > 0) 695 #define SMP_LINK_TOUT_MIN L2CAP_LINK_INACTIVITY_TOUT 696 #else 697 #define SMP_LINK_TOUT_MIN 2 698 #endif 699 #endif 700 /****************************************************************************** 701 * 702 * SDP 703 * 704 *****************************************************************************/ 705 706 /* This is set to enable SDP server functionality. */ 707 #ifndef SDP_SERVER_ENABLED 708 #define SDP_SERVER_ENABLED TRUE 709 #endif 710 711 /* The maximum number of SDP records the server can support. */ 712 #ifndef SDP_MAX_RECORDS 713 #define SDP_MAX_RECORDS 30 714 #endif 715 716 /* The maximum number of attributes in each record. */ 717 #ifndef SDP_MAX_REC_ATTR 718 #define SDP_MAX_REC_ATTR 25 719 #endif 720 721 #ifndef SDP_MAX_PAD_LEN 722 #define SDP_MAX_PAD_LEN 600 723 #endif 724 725 /* The maximum length, in bytes, of an attribute. */ 726 #ifndef SDP_MAX_ATTR_LEN 727 #define SDP_MAX_ATTR_LEN 400 728 #endif 729 730 /* The maximum number of attribute filters supported by SDP databases. */ 731 #ifndef SDP_MAX_ATTR_FILTERS 732 #define SDP_MAX_ATTR_FILTERS 15 733 #endif 734 735 /* The maximum number of UUID filters supported by SDP databases. */ 736 #ifndef SDP_MAX_UUID_FILTERS 737 #define SDP_MAX_UUID_FILTERS 3 738 #endif 739 740 /* The maximum number of record handles retrieved in a search. */ 741 #ifndef SDP_MAX_DISC_SERVER_RECS 742 #define SDP_MAX_DISC_SERVER_RECS 21 743 #endif 744 745 /* The size of a scratchpad buffer, in bytes, for storing the response to an 746 * attribute request. */ 747 #ifndef SDP_MAX_LIST_BYTE_COUNT 748 #define SDP_MAX_LIST_BYTE_COUNT 4096 749 #endif 750 751 /* The maximum number of parameters in an SDP protocol element. */ 752 #ifndef SDP_MAX_PROTOCOL_PARAMS 753 #define SDP_MAX_PROTOCOL_PARAMS 2 754 #endif 755 756 /* The maximum number of simultaneous client and server connections. */ 757 #ifndef SDP_MAX_CONNECTIONS 758 #define SDP_MAX_CONNECTIONS 4 759 #endif 760 761 /* The MTU size for the L2CAP configuration. */ 762 #ifndef SDP_MTU_SIZE 763 #define SDP_MTU_SIZE 1024 764 #endif 765 766 /* The flush timeout for the L2CAP configuration. */ 767 #ifndef SDP_FLUSH_TO 768 #define SDP_FLUSH_TO 0xFFFF 769 #endif 770 771 /* The name for security authorization. */ 772 #ifndef SDP_SERVICE_NAME 773 #define SDP_SERVICE_NAME "Service Discovery" 774 #endif 775 776 /* The security level for BTM. */ 777 #ifndef SDP_SECURITY_LEVEL 778 #define SDP_SECURITY_LEVEL BTM_SEC_NONE 779 #endif 780 781 /****************************************************************************** 782 * 783 * RFCOMM 784 * 785 *****************************************************************************/ 786 787 /* The maximum number of ports supported. */ 788 #ifndef MAX_RFC_PORTS 789 #define MAX_RFC_PORTS 30 790 #endif 791 792 /* The maximum simultaneous links to different devices. */ 793 #ifndef MAX_ACL_CONNECTIONS 794 #define MAX_BD_CONNECTIONS 7 795 #else 796 #define MAX_BD_CONNECTIONS MAX_ACL_CONNECTIONS 797 #endif 798 799 /* The port receive queue low watermark level, in bytes. */ 800 #ifndef PORT_RX_LOW_WM 801 #define PORT_RX_LOW_WM (BTA_RFC_MTU_SIZE * PORT_RX_BUF_LOW_WM) 802 #endif 803 804 /* The port receive queue high watermark level, in bytes. */ 805 #ifndef PORT_RX_HIGH_WM 806 #define PORT_RX_HIGH_WM (BTA_RFC_MTU_SIZE * PORT_RX_BUF_HIGH_WM) 807 #endif 808 809 /* The port receive queue critical watermark level, in bytes. */ 810 #ifndef PORT_RX_CRITICAL_WM 811 #define PORT_RX_CRITICAL_WM (BTA_RFC_MTU_SIZE * PORT_RX_BUF_CRITICAL_WM) 812 #endif 813 814 /* The port receive queue low watermark level, in number of buffers. */ 815 #ifndef PORT_RX_BUF_LOW_WM 816 #define PORT_RX_BUF_LOW_WM 4 817 #endif 818 819 /* The port receive queue high watermark level, in number of buffers. */ 820 #ifndef PORT_RX_BUF_HIGH_WM 821 #define PORT_RX_BUF_HIGH_WM 10 822 #endif 823 824 /* The port receive queue critical watermark level, in number of buffers. */ 825 #ifndef PORT_RX_BUF_CRITICAL_WM 826 #define PORT_RX_BUF_CRITICAL_WM 15 827 #endif 828 829 /* The port transmit queue high watermark level, in bytes. */ 830 #ifndef PORT_TX_HIGH_WM 831 #define PORT_TX_HIGH_WM (BTA_RFC_MTU_SIZE * PORT_TX_BUF_HIGH_WM) 832 #endif 833 834 /* The port transmit queue critical watermark level, in bytes. */ 835 #ifndef PORT_TX_CRITICAL_WM 836 #define PORT_TX_CRITICAL_WM (BTA_RFC_MTU_SIZE * PORT_TX_BUF_CRITICAL_WM) 837 #endif 838 839 /* The port transmit queue high watermark level, in number of buffers. */ 840 #ifndef PORT_TX_BUF_HIGH_WM 841 #define PORT_TX_BUF_HIGH_WM 10 842 #endif 843 844 /* The port transmit queue high watermark level, in number of buffers. */ 845 #ifndef PORT_TX_BUF_CRITICAL_WM 846 #define PORT_TX_BUF_CRITICAL_WM 15 847 #endif 848 849 /* The RFCOMM multiplexer preferred flow control mechanism. */ 850 #ifndef PORT_FC_DEFAULT 851 #define PORT_FC_DEFAULT PORT_FC_CREDIT 852 #endif 853 854 /****************************************************************************** 855 * 856 * OBEX 857 * 858 *****************************************************************************/ 859 860 /* 861 * Buffer size to reassemble the SDU. 862 * It will allow buffers to be used that are larger than the L2CAP_MAX_MTU. 863 */ 864 #ifndef OBX_USER_RX_BUF_SIZE 865 #define OBX_USER_RX_BUF_SIZE OBX_LRG_DATA_BUF_SIZE 866 #endif 867 868 /* 869 * Buffer size to hold the SDU. 870 * It will allow buffers to be used that are larger than the L2CAP_MAX_MTU. 871 */ 872 #ifndef OBX_USER_TX_BUF_SIZE 873 #define OBX_USER_TX_BUF_SIZE OBX_LRG_DATA_BUF_SIZE 874 #endif 875 876 /* Buffer size used to hold MPS segments during SDU reassembly. */ 877 #ifndef OBX_FCR_RX_BUF_SIZE 878 #define OBX_FCR_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 879 #endif 880 881 /* 882 * Buffer size used to hold MPS segments used in (re)transmissions. 883 * The size of each buffer must be able to hold the maximum MPS segment size 884 * passed in L2CA_SetFCROptions plus BT_HDR (8) + HCI preamble (4) + 885 * L2CAP_MIN_OFFSET (11 - as of BT 2.1 + EDR Spec). 886 */ 887 #ifndef OBX_FCR_TX_BUF_SIZE 888 #define OBX_FCR_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 889 #endif 890 891 /* 892 * Size of the transmission window when using enhanced retransmission mode. 893 * Not used in basic and streaming modes. Range: 1 - 63 894 */ 895 #ifndef OBX_FCR_OPT_TX_WINDOW_SIZE_BR_EDR 896 #define OBX_FCR_OPT_TX_WINDOW_SIZE_BR_EDR 20 897 #endif 898 899 /* 900 * Number of transmission attempts for a single I-Frame before taking 901 * Down the connection. Used In ERTM mode only. Value is Ignored in basic and 902 * Streaming modes. 903 * Range: 0, 1-0xFF 904 * 0 - infinite retransmissions 905 * 1 - single transmission 906 */ 907 #ifndef OBX_FCR_OPT_MAX_TX_B4_DISCNT 908 #define OBX_FCR_OPT_MAX_TX_B4_DISCNT 20 909 #endif 910 911 /* 912 * Retransmission Timeout 913 * Range: Minimum 2000 (2 secs) on BR/EDR when supporting PBF. 914 */ 915 #ifndef OBX_FCR_OPT_RETX_TOUT 916 #define OBX_FCR_OPT_RETX_TOUT 2000 917 #endif 918 919 /* 920 * Monitor Timeout 921 * Range: Minimum 12000 (12 secs) on BR/EDR when supporting PBF. 922 */ 923 #ifndef OBX_FCR_OPT_MONITOR_TOUT 924 #define OBX_FCR_OPT_MONITOR_TOUT 12000 925 #endif 926 927 /* 928 * Maximum PDU payload size. 929 * Suggestion: The maximum amount of data that will fit into a 3-DH5 packet. 930 * Range: 2 octets 931 */ 932 #ifndef OBX_FCR_OPT_MAX_PDU_SIZE 933 #define OBX_FCR_OPT_MAX_PDU_SIZE L2CAP_MPS_OVER_BR_EDR 934 #endif 935 936 /****************************************************************************** 937 * 938 * BNEP 939 * 940 *****************************************************************************/ 941 942 #ifndef BNEP_INCLUDED 943 #define BNEP_INCLUDED TRUE 944 #endif 945 946 /* BNEP status API call is used mainly to get the L2CAP handle */ 947 #ifndef BNEP_SUPPORTS_STATUS_API 948 #define BNEP_SUPPORTS_STATUS_API TRUE 949 #endif 950 951 /* 952 * When BNEP connection changes roles after the connection is established 953 * we will do an authentication check again on the new role 954 */ 955 #ifndef BNEP_DO_AUTH_FOR_ROLE_SWITCH 956 #define BNEP_DO_AUTH_FOR_ROLE_SWITCH TRUE 957 #endif 958 959 /* Maximum number of protocol filters supported. */ 960 #ifndef BNEP_MAX_PROT_FILTERS 961 #define BNEP_MAX_PROT_FILTERS 5 962 #endif 963 964 /* Maximum number of multicast filters supported. */ 965 #ifndef BNEP_MAX_MULTI_FILTERS 966 #define BNEP_MAX_MULTI_FILTERS 5 967 #endif 968 969 /* Minimum MTU size. */ 970 #ifndef BNEP_MIN_MTU_SIZE 971 #define BNEP_MIN_MTU_SIZE L2CAP_MTU_SIZE 972 #endif 973 974 /* Preferred MTU size. */ 975 #ifndef BNEP_MTU_SIZE 976 #define BNEP_MTU_SIZE BNEP_MIN_MTU_SIZE 977 #endif 978 979 /* Maximum number of buffers allowed in transmit data queue. */ 980 #ifndef BNEP_MAX_XMITQ_DEPTH 981 #define BNEP_MAX_XMITQ_DEPTH 20 982 #endif 983 984 /* Maximum number BNEP of connections supported. */ 985 #ifndef BNEP_MAX_CONNECTIONS 986 #define BNEP_MAX_CONNECTIONS 7 987 #endif 988 989 /****************************************************************************** 990 * 991 * AVDTP 992 * 993 *****************************************************************************/ 994 995 /* Number of simultaneous links to different peer devices. */ 996 #ifndef AVDT_NUM_LINKS 997 #define AVDT_NUM_LINKS 6 998 #endif 999 1000 /* Number of simultaneous stream endpoints. */ 1001 #ifndef AVDT_NUM_SEPS 1002 #define AVDT_NUM_SEPS 6 1003 #endif 1004 1005 /* Number of transport channels setup by AVDT for all media streams */ 1006 #ifndef AVDT_NUM_TC_TBL 1007 #define AVDT_NUM_TC_TBL (AVDT_NUM_SEPS + AVDT_NUM_LINKS) 1008 #endif 1009 1010 /* Maximum size in bytes of the content protection information element. */ 1011 #ifndef AVDT_PROTECT_SIZE 1012 #define AVDT_PROTECT_SIZE 90 1013 #endif 1014 1015 /****************************************************************************** 1016 * 1017 * PAN 1018 * 1019 *****************************************************************************/ 1020 1021 #ifndef PAN_INCLUDED 1022 #define PAN_INCLUDED TRUE 1023 #endif 1024 1025 #ifndef PAN_NAP_DISABLED 1026 #define PAN_NAP_DISABLED FALSE 1027 #endif 1028 1029 #ifndef PANU_DISABLED 1030 #define PANU_DISABLED FALSE 1031 #endif 1032 1033 /* This will enable the PANU role */ 1034 #ifndef PAN_SUPPORTS_ROLE_PANU 1035 #define PAN_SUPPORTS_ROLE_PANU TRUE 1036 #endif 1037 1038 /* This will enable the GN role */ 1039 #ifndef PAN_SUPPORTS_ROLE_GN 1040 #define PAN_SUPPORTS_ROLE_GN TRUE 1041 #endif 1042 1043 /* This will enable the NAP role */ 1044 #ifndef PAN_SUPPORTS_ROLE_NAP 1045 #define PAN_SUPPORTS_ROLE_NAP TRUE 1046 #endif 1047 1048 /* This is just for debugging purposes */ 1049 #ifndef PAN_SUPPORTS_DEBUG_DUMP 1050 #define PAN_SUPPORTS_DEBUG_DUMP TRUE 1051 #endif 1052 1053 /* Maximum number of PAN connections allowed */ 1054 #ifndef MAX_PAN_CONNS 1055 #define MAX_PAN_CONNS 7 1056 #endif 1057 1058 /* Default service name for NAP role */ 1059 #ifndef PAN_NAP_DEFAULT_SERVICE_NAME 1060 #define PAN_NAP_DEFAULT_SERVICE_NAME "Network Access Point Service" 1061 #endif 1062 1063 /* Default service name for GN role */ 1064 #ifndef PAN_GN_DEFAULT_SERVICE_NAME 1065 #define PAN_GN_DEFAULT_SERVICE_NAME "Group Network Service" 1066 #endif 1067 1068 /* Default service name for PANU role */ 1069 #ifndef PAN_PANU_DEFAULT_SERVICE_NAME 1070 #define PAN_PANU_DEFAULT_SERVICE_NAME "PAN User Service" 1071 #endif 1072 1073 /* Default description for NAP role service */ 1074 #ifndef PAN_NAP_DEFAULT_DESCRIPTION 1075 #define PAN_NAP_DEFAULT_DESCRIPTION "NAP" 1076 #endif 1077 1078 /* Default description for GN role service */ 1079 #ifndef PAN_GN_DEFAULT_DESCRIPTION 1080 #define PAN_GN_DEFAULT_DESCRIPTION "GN" 1081 #endif 1082 1083 /* Default description for PANU role service */ 1084 #ifndef PAN_PANU_DEFAULT_DESCRIPTION 1085 #define PAN_PANU_DEFAULT_DESCRIPTION "PANU" 1086 #endif 1087 1088 /* Default Security level for PANU role. */ 1089 #ifndef PAN_PANU_SECURITY_LEVEL 1090 #define PAN_PANU_SECURITY_LEVEL 0 1091 #endif 1092 1093 /* Default Security level for GN role. */ 1094 #ifndef PAN_GN_SECURITY_LEVEL 1095 #define PAN_GN_SECURITY_LEVEL 0 1096 #endif 1097 1098 /* Default Security level for NAP role. */ 1099 #ifndef PAN_NAP_SECURITY_LEVEL 1100 #define PAN_NAP_SECURITY_LEVEL 0 1101 #endif 1102 1103 /****************************************************************************** 1104 * 1105 * GAP 1106 * 1107 *****************************************************************************/ 1108 1109 #ifndef GAP_INCLUDED 1110 #define GAP_INCLUDED TRUE 1111 #endif 1112 1113 /* The maximum number of simultaneous GAP L2CAP connections. */ 1114 #ifndef GAP_MAX_CONNECTIONS 1115 #define GAP_MAX_CONNECTIONS 30 1116 #endif 1117 1118 /* keep the raw data received from SDP server in database. */ 1119 #ifndef SDP_RAW_DATA_INCLUDED 1120 #define SDP_RAW_DATA_INCLUDED TRUE 1121 #endif 1122 1123 /* Inquiry duration in 1.28 second units. */ 1124 #ifndef SDP_DEBUG 1125 #define SDP_DEBUG TRUE 1126 #endif 1127 1128 /****************************************************************************** 1129 * 1130 * HID 1131 * 1132 *****************************************************************************/ 1133 1134 /* HID Device Role Included */ 1135 #ifndef HID_DEV_INCLUDED 1136 #define HID_DEV_INCLUDED TRUE 1137 #endif 1138 1139 #ifndef HID_CONTROL_BUF_SIZE 1140 #define HID_CONTROL_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 1141 #endif 1142 1143 #ifndef HID_INTERRUPT_BUF_SIZE 1144 #define HID_INTERRUPT_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 1145 #endif 1146 1147 #ifndef HID_DEV_MTU_SIZE 1148 #define HID_DEV_MTU_SIZE 64 1149 #endif 1150 1151 #ifndef HID_DEV_FLUSH_TO 1152 #define HID_DEV_FLUSH_TO 0xffff 1153 #endif 1154 1155 /************************************************************************* 1156 * Definitions for Both HID-Host & Device 1157 */ 1158 #ifndef HID_MAX_SVC_NAME_LEN 1159 #define HID_MAX_SVC_NAME_LEN 32 1160 #endif 1161 1162 #ifndef HID_MAX_SVC_DESCR_LEN 1163 #define HID_MAX_SVC_DESCR_LEN 32 1164 #endif 1165 1166 #ifndef HID_MAX_PROV_NAME_LEN 1167 #define HID_MAX_PROV_NAME_LEN 32 1168 #endif 1169 1170 /************************************************************************* 1171 * Definitions for HID-Host 1172 */ 1173 #ifndef HID_HOST_INCLUDED 1174 #define HID_HOST_INCLUDED TRUE 1175 #endif 1176 1177 #ifndef HID_HOST_MAX_DEVICES 1178 #define HID_HOST_MAX_DEVICES 7 1179 #endif 1180 1181 #ifndef HID_HOST_MTU 1182 #define HID_HOST_MTU 640 1183 #endif 1184 1185 #ifndef HID_HOST_FLUSH_TO 1186 #define HID_HOST_FLUSH_TO 0xffff 1187 #endif 1188 1189 #ifndef HID_HOST_MAX_CONN_RETRY 1190 #define HID_HOST_MAX_CONN_RETRY 1 1191 #endif 1192 1193 #ifndef HID_HOST_REPAGE_WIN 1194 #define HID_HOST_REPAGE_WIN 2 1195 #endif 1196 1197 /****************************************************************************** 1198 * 1199 * AVCTP 1200 * 1201 *****************************************************************************/ 1202 1203 /* Number of simultaneous ACL links to different peer devices. */ 1204 #ifndef AVCT_NUM_LINKS 1205 #define AVCT_NUM_LINKS 6 1206 #endif 1207 1208 /* Number of simultaneous AVCTP connections. */ 1209 #ifndef AVCT_NUM_CONN 1210 #define AVCT_NUM_CONN 14 // 2 * MaxDevices + 2 1211 #endif 1212 1213 /****************************************************************************** 1214 * 1215 * AVRCP 1216 * 1217 *****************************************************************************/ 1218 1219 #ifndef AVRC_ADV_CTRL_INCLUDED 1220 #define AVRC_ADV_CTRL_INCLUDED TRUE 1221 #endif 1222 1223 #ifndef DUMP_PCM_DATA 1224 #define DUMP_PCM_DATA FALSE 1225 #endif 1226 1227 /****************************************************************************** 1228 * 1229 * BTA 1230 * 1231 *****************************************************************************/ 1232 /* BTA EIR canned UUID list (default is dynamic) */ 1233 #ifndef BTA_EIR_CANNED_UUID_LIST 1234 #define BTA_EIR_CANNED_UUID_LIST FALSE 1235 #endif 1236 1237 /* Number of supported customer UUID in EIR */ 1238 #ifndef BTA_EIR_SERVER_NUM_CUSTOM_UUID 1239 #define BTA_EIR_SERVER_NUM_CUSTOM_UUID 8 1240 #endif 1241 1242 /* CHLD override */ 1243 #ifndef BTA_AG_CHLD_VAL_ECC 1244 #define BTA_AG_CHLD_VAL_ECC "(0,1,1x,2,2x,3)" 1245 #endif 1246 1247 #ifndef BTA_AG_CHLD_VAL 1248 #define BTA_AG_CHLD_VAL "(0,1,2,3)" 1249 #endif 1250 1251 /* Set the CIND to match HFP 1.5 */ 1252 #ifndef BTA_AG_CIND_INFO 1253 #define BTA_AG_CIND_INFO \ 1254 "(\"call\",(0,1)),(\"callsetup\",(0-3)),(\"service\",(0-1)),(\"signal\",(0-" \ 1255 "5)),(\"roam\",(0,1)),(\"battchg\",(0-5)),(\"callheld\",(0-2))" 1256 #endif 1257 1258 #ifndef BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY 1259 #define BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY TRUE 1260 #endif 1261 1262 /****************************************************************************** 1263 * 1264 * Tracing: Include trace header file here. 1265 * 1266 *****************************************************************************/ 1267 1268 /* Enable/disable BTSnoop memory logging */ 1269 #ifndef BTSNOOP_MEM 1270 #define BTSNOOP_MEM TRUE 1271 #endif 1272 1273 #include "bt_trace.h" 1274 1275 #endif /* BT_TARGET_H */ 1276