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 #pragma once 21 22 #ifndef FALSE 23 #define FALSE false 24 #endif 25 26 #ifndef TRUE 27 #define TRUE true 28 #endif 29 30 // ------------------Added from bdroid_buildcfg.h--------------------- 31 #ifndef L2CAP_EXTFEA_SUPPORTED_MASK 32 #define L2CAP_EXTFEA_SUPPORTED_MASK \ 33 (L2CAP_EXTFEA_ENH_RETRANS | L2CAP_EXTFEA_STREAM_MODE | L2CAP_EXTFEA_NO_CRC | \ 34 L2CAP_EXTFEA_FIXED_CHNLS) 35 #endif 36 37 #ifndef BTUI_OPS_FORMATS 38 #define BTUI_OPS_FORMATS (BTA_OP_VCARD21_MASK | BTA_OP_ANY_MASK) 39 #endif 40 41 #ifndef BTA_PAN_INCLUDED 42 #define BTA_PAN_INCLUDED TRUE 43 #endif 44 45 #ifndef BTA_HD_INCLUDED 46 #define BTA_HD_INCLUDED TRUE 47 #endif 48 49 #ifndef BTA_HH_INCLUDED 50 #define BTA_HH_INCLUDED TRUE 51 #endif 52 53 #ifndef BTA_HH_ROLE 54 #define BTA_HH_ROLE BTA_CENTRAL_ROLE_PREF 55 #endif 56 57 #ifndef AVDT_VERSION 58 #define AVDT_VERSION 0x0103 59 #endif 60 61 #ifndef BTA_AG_AT_MAX_LEN 62 #define BTA_AG_AT_MAX_LEN 512 63 #endif 64 65 #ifndef BTA_AV_RET_TOUT 66 #define BTA_AV_RET_TOUT 15 67 #endif 68 69 #ifndef BTA_DM_SDP_DB_SIZE 70 #define BTA_DM_SDP_DB_SIZE 20000 71 #endif 72 73 #ifndef AG_VOICE_SETTINGS 74 #define AG_VOICE_SETTINGS HCI_DEFAULT_VOICE_SETTINGS 75 #endif 76 77 // How long to wait before activating sniff mode after entering the 78 // idle state for server FT/RFCOMM, OPS connections 79 #ifndef BTA_FTS_OPS_IDLE_TO_SNIFF_DELAY_MS 80 #define BTA_FTS_OPS_IDLE_TO_SNIFF_DELAY_MS 7000 81 #endif 82 83 // How long to wait before activating sniff mode after entering the 84 // idle state for client FT/RFCOMM connections 85 #ifndef BTA_FTC_IDLE_TO_SNIFF_DELAY_MS 86 #define BTA_FTC_IDLE_TO_SNIFF_DELAY_MS 5000 87 #endif 88 89 // ------------------End added from bdroid_buildcfg.h--------------------- 90 91 /****************************************************************************** 92 * 93 * Buffer sizes 94 * 95 *****************************************************************************/ 96 97 #ifndef BT_DEFAULT_BUFFER_SIZE 98 #define BT_DEFAULT_BUFFER_SIZE (4096 + 16) 99 #endif 100 101 #ifndef BT_SMALL_BUFFER_SIZE 102 #define BT_SMALL_BUFFER_SIZE 660 103 #endif 104 105 /* Receives HCI events from the lower-layer. */ 106 #ifndef HCI_CMD_BUF_SIZE 107 #define HCI_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 108 #endif 109 110 /* Sends SDP data packets. */ 111 #ifndef SDP_DATA_BUF_SIZE 112 #define SDP_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 113 #endif 114 115 /* Sends L2CAP packets to the peer and HCI messages to the controller. */ 116 #ifndef L2CAP_CMD_BUF_SIZE 117 #define L2CAP_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 118 #endif 119 120 /* Number of ACL buffers to assign to LE */ 121 /* 122 * TODO: Do we need this? 123 * It was used when the HCI buffers were shared with BR/EDR. 124 */ 125 #ifndef L2C_DEF_NUM_BLE_BUF_SHARED 126 #define L2C_DEF_NUM_BLE_BUF_SHARED 1 127 #endif 128 129 /* Used by BTM when it sends HCI commands to the controller. */ 130 #ifndef BTM_CMD_BUF_SIZE 131 #define BTM_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 132 #endif 133 134 /* BNEP data and protocol messages. */ 135 #ifndef BNEP_BUF_SIZE 136 #define BNEP_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 137 #endif 138 139 /* AVDTP buffer size for protocol messages */ 140 #ifndef AVDT_CMD_BUF_SIZE 141 #define AVDT_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 142 #endif 143 144 #ifndef PAN_BUF_SIZE 145 #define PAN_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 146 #endif 147 148 /* Maximum number of buffers to allocate for PAN */ 149 #ifndef PAN_BUF_MAX 150 #define PAN_BUF_MAX 100 151 #endif 152 153 /* AVCTP buffer size for protocol messages */ 154 #ifndef AVCT_CMD_BUF_SIZE 155 #define AVCT_CMD_BUF_SIZE 288 156 #endif 157 158 /* AVRCP buffer size for protocol messages */ 159 #ifndef AVRC_CMD_BUF_SIZE 160 #define AVRC_CMD_BUF_SIZE 288 161 #endif 162 163 /* AVRCP Metadata buffer size for protocol messages */ 164 #ifndef AVRC_META_CMD_BUF_SIZE 165 #define AVRC_META_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE 166 #endif 167 168 /* GATT Data sending buffer size */ 169 #ifndef GATT_DATA_BUF_SIZE 170 #define GATT_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 171 #endif 172 173 /****************************************************************************** 174 * 175 * BTM 176 * 177 *****************************************************************************/ 178 179 /************************** 180 * Initial SCO TX credit 181 ************************/ 182 /* The size of buffer used for TX SCO data packets. The size should be divisible 183 * by BTM_MSBC_CODE_SIZE(240) and BTM_LC3_CODE_SIZE(480). */ 184 #ifndef BTM_SCO_DATA_SIZE_MAX 185 #define BTM_SCO_DATA_SIZE_MAX 480 186 #endif 187 188 /* The size in bytes of the BTM inquiry database. */ 189 #ifndef BTM_INQ_DB_SIZE 190 #define BTM_INQ_DB_SIZE 80 191 #endif 192 193 /* Sets the Page_Scan_Window: the length of time that the device is performing 194 * a page scan. */ 195 #ifndef BTM_DEFAULT_CONN_WINDOW 196 #define BTM_DEFAULT_CONN_WINDOW 0x0012 197 #endif 198 199 /* Sets the Page_Scan_Activity: the interval between the start of two 200 * consecutive page scans. */ 201 #ifndef BTM_DEFAULT_CONN_INTERVAL 202 #define BTM_DEFAULT_CONN_INTERVAL 0x0400 203 #endif 204 205 /* When automatic inquiry scan is enabled, this sets the inquiry scan window. */ 206 #ifndef BTM_DEFAULT_DISC_WINDOW 207 #define BTM_DEFAULT_DISC_WINDOW 0x0012 208 #endif 209 210 /* When automatic inquiry scan is enabled, this sets the inquiry scan interval. 211 */ 212 #ifndef BTM_DEFAULT_DISC_INTERVAL 213 #define BTM_DEFAULT_DISC_INTERVAL 0x0800 214 #endif 215 216 /* The number of SCO links. */ 217 #ifndef BTM_MAX_SCO_LINKS 218 #define BTM_MAX_SCO_LINKS 6 219 #endif 220 221 /* The number of security records for peer devices. */ 222 #ifndef BTM_SEC_MAX_DEVICE_RECORDS 223 #define BTM_SEC_MAX_DEVICE_RECORDS 100 224 #endif 225 226 /* The number of security records for services. */ 227 #ifndef BTM_SEC_MAX_SERVICE_RECORDS 228 #define BTM_SEC_MAX_SERVICE_RECORDS 32 229 #endif 230 231 /* Maximum length of the service name. */ 232 #ifndef BT_MAX_SERVICE_NAME_LEN 233 #define BT_MAX_SERVICE_NAME_LEN 21 234 #endif 235 236 /* The maximum number of clients that can register with the power manager. */ 237 #ifndef BTM_MAX_PM_RECORDS 238 #define BTM_MAX_PM_RECORDS 2 239 #endif 240 241 /* If the user does not respond to security process requests within this many 242 * seconds, a negative response would be sent automatically. 243 * 30 is LMP response timeout value */ 244 #ifndef BTM_SEC_TIMEOUT_VALUE 245 #define BTM_SEC_TIMEOUT_VALUE 35 246 #endif 247 248 /****************************************************************************** 249 * 250 * L2CAP 251 * 252 *****************************************************************************/ 253 254 /* The maximum number of simultaneous links that L2CAP can support. */ 255 #ifndef MAX_L2CAP_LINKS 256 #define MAX_L2CAP_LINKS 16 257 #endif 258 259 /* The maximum number of simultaneous channels that L2CAP can support. */ 260 #ifndef MAX_L2CAP_CHANNELS 261 #define MAX_L2CAP_CHANNELS 64 262 #endif 263 264 /* The maximum number of simultaneous applications that can register with L2CAP. 265 */ 266 #ifndef MAX_L2CAP_CLIENTS 267 #define MAX_L2CAP_CLIENTS 15 268 #endif 269 270 /* The number of seconds of link inactivity before a link is disconnected. */ 271 #ifndef L2CAP_LINK_INACTIVITY_TOUT 272 #define L2CAP_LINK_INACTIVITY_TOUT 4 273 #endif 274 275 /* The number of seconds of link inactivity after bonding before a link is 276 * disconnected. */ 277 #ifndef L2CAP_BONDING_TIMEOUT 278 #define L2CAP_BONDING_TIMEOUT 3 279 #endif 280 281 /* The time from the HCI connection complete to disconnect if no channel is 282 * established. */ 283 #ifndef L2CAP_LINK_STARTUP_TOUT 284 #define L2CAP_LINK_STARTUP_TOUT 60 285 #endif 286 287 /* The L2CAP MTU; must be in accord with the HCI ACL buffer size. */ 288 #ifndef L2CAP_MTU_SIZE 289 #define L2CAP_MTU_SIZE 1691 290 #endif 291 292 /* Minimum number of ACL credit for high priority link */ 293 #ifndef L2CAP_HIGH_PRI_MIN_XMIT_QUOTA 294 #define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA 5 295 #endif 296 297 /* Used for features using fixed channels; set to zero if no fixed channels 298 * supported (BLE, etc.) */ 299 /* Excluding L2CAP signaling channel and UCD */ 300 #ifndef L2CAP_NUM_FIXED_CHNLS 301 #define L2CAP_NUM_FIXED_CHNLS 32 302 #endif 303 304 /* First fixed channel supported */ 305 #ifndef L2CAP_FIRST_FIXED_CHNL 306 #define L2CAP_FIRST_FIXED_CHNL 4 307 #endif 308 309 #ifndef L2CAP_LAST_FIXED_CHNL 310 #define L2CAP_LAST_FIXED_CHNL (L2CAP_FIRST_FIXED_CHNL + L2CAP_NUM_FIXED_CHNLS - 1) 311 #endif 312 313 /* Used for conformance testing ONLY: When TRUE lets scriptwrapper overwrite 314 * info response. 315 * For testcases L2CAP/FOC/BV-{04,05}-C set property bluetooth.pts.l2cap.foc.bv.test to 4 and 316 * 5 respectively 317 */ 318 #ifndef L2CAP_CONFORMANCE_TESTING 319 #define L2CAP_CONFORMANCE_TESTING FALSE 320 #endif 321 322 /* 323 * Max bytes per connection to buffer locally before dropping the 324 * connection if local client does not receive it - default is 1MB 325 */ 326 #ifndef L2CAP_MAX_RX_BUFFER 327 #define L2CAP_MAX_RX_BUFFER 0x100000 328 #endif 329 330 /****************************************************************************** 331 * 332 * BLE 333 * 334 *****************************************************************************/ 335 336 /* The maximum number of simultaneous applications that can register with LE 337 * L2CAP. */ 338 #ifndef BLE_MAX_L2CAP_CLIENTS 339 #define BLE_MAX_L2CAP_CLIENTS 15 340 #endif 341 342 /****************************************************************************** 343 * 344 * ATT/GATT Protocol/Profile Settings 345 * 346 *****************************************************************************/ 347 #ifndef GATT_MAX_SR_PROFILES 348 #define GATT_MAX_SR_PROFILES 32 /* max is 32 */ 349 #endif 350 351 #ifndef GATT_MAX_APPS 352 #define GATT_MAX_APPS 32 /* note: 2 apps used internally GATT and GAP */ 353 #endif 354 355 /* This value is used for static allocation of resources. The actual maximum at 356 * runtime is controlled by a system property. */ 357 #ifndef GATT_MAX_PHY_CHANNEL 358 #define GATT_MAX_PHY_CHANNEL 16 359 #endif 360 361 /* Devices must support at least 8 GATT channels per the CDD. */ 362 #ifndef GATT_MAX_PHY_CHANNEL_FLOOR 363 #define GATT_MAX_PHY_CHANNEL_FLOOR 8 364 #endif 365 366 /* Used for conformance testing ONLY */ 367 #ifndef GATT_CONFORMANCE_TESTING 368 #define GATT_CONFORMANCE_TESTING FALSE 369 #endif 370 371 /* Used only for GATT Multiple Variable Length Notifications PTS tests */ 372 #ifndef GATT_UPPER_TESTER_MULT_VARIABLE_LENGTH_NOTIF 373 #define GATT_UPPER_TESTER_MULT_VARIABLE_LENGTH_NOTIF FALSE 374 #endif 375 376 /* Used only for GATT Multiple Variable Length READ PTS tests */ 377 #ifndef GATT_UPPER_TESTER_MULT_VARIABLE_LENGTH_READ 378 #define GATT_UPPER_TESTER_MULT_VARIABLE_LENGTH_READ FALSE 379 #endif 380 381 /****************************************************************************** 382 * 383 * CSIP 384 * 385 *****************************************************************************/ 386 387 /* Used to trigger invalid behaviour of CSIP test case PTS */ 388 #ifndef CSIP_UPPER_TESTER_FORCE_TO_SEND_LOCK 389 #define CSIP_UPPER_TESTER_FORCE_TO_SEND_LOCK FALSE 390 #endif 391 392 /****************************************************************************** 393 * 394 * SMP 395 * 396 *****************************************************************************/ 397 #ifndef SMP_DEFAULT_AUTH_REQ 398 #define SMP_DEFAULT_AUTH_REQ SMP_AUTH_NB_ENC_ONLY 399 #endif 400 401 #ifndef SMP_MAX_ENC_KEY_SIZE 402 #define SMP_MAX_ENC_KEY_SIZE 16 403 #endif 404 405 /* minimum link timeout after SMP pairing is done, leave room for key exchange 406 and racing condition for the following service connection. 407 Prefer greater than 0 second, and no less than default inactivity link idle 408 timer(L2CAP_LINK_INACTIVITY_TOUT) in l2cap) */ 409 #ifndef SMP_LINK_TOUT_MIN 410 #define SMP_LINK_TOUT_MIN L2CAP_LINK_INACTIVITY_TOUT 411 #endif 412 /****************************************************************************** 413 * 414 * SDP 415 * 416 *****************************************************************************/ 417 418 /* The maximum number of SDP records the server can support. */ 419 #ifndef SDP_MAX_RECORDS 420 #define SDP_MAX_RECORDS 30 421 #endif 422 423 /* The maximum number of attributes in each record. */ 424 #ifndef SDP_MAX_REC_ATTR 425 #define SDP_MAX_REC_ATTR 25 426 #endif 427 428 #ifndef SDP_MAX_PAD_LEN 429 #define SDP_MAX_PAD_LEN 600 430 #endif 431 432 /* The maximum length, in bytes, of an attribute. */ 433 #ifndef SDP_MAX_ATTR_LEN 434 #define SDP_MAX_ATTR_LEN 400 435 #endif 436 437 /* The maximum number of attribute filters supported by SDP databases. */ 438 #ifndef SDP_MAX_ATTR_FILTERS 439 #define SDP_MAX_ATTR_FILTERS 15 440 #endif 441 442 /* The maximum number of UUID filters supported by SDP databases. */ 443 #ifndef SDP_MAX_UUID_FILTERS 444 #define SDP_MAX_UUID_FILTERS 3 445 #endif 446 447 /* The maximum number of record handles retrieved in a search. */ 448 #ifndef SDP_MAX_DISC_SERVER_RECS 449 #define SDP_MAX_DISC_SERVER_RECS 21 450 #endif 451 452 /* The size of a scratchpad buffer, in bytes, for storing the response to an 453 * attribute request. */ 454 #ifndef SDP_MAX_LIST_BYTE_COUNT 455 #define SDP_MAX_LIST_BYTE_COUNT 4096 456 #endif 457 458 /* The maximum number of parameters in an SDP protocol element. */ 459 #ifndef SDP_MAX_PROTOCOL_PARAMS 460 #define SDP_MAX_PROTOCOL_PARAMS 2 461 #endif 462 463 /* The maximum number of simultaneous client and server connections. */ 464 #ifndef SDP_MAX_CONNECTIONS 465 #define SDP_MAX_CONNECTIONS 16 466 #endif 467 468 /* The MTU size for the L2CAP configuration. */ 469 #ifndef SDP_MTU_SIZE 470 #define SDP_MTU_SIZE 1024 471 #endif 472 473 /****************************************************************************** 474 * 475 * BNEP 476 * 477 *****************************************************************************/ 478 479 #ifndef BNEP_INCLUDED 480 #define BNEP_INCLUDED TRUE 481 #endif 482 483 /* Maximum number of protocol filters supported. */ 484 #ifndef BNEP_MAX_PROT_FILTERS 485 #define BNEP_MAX_PROT_FILTERS 5 486 #endif 487 488 /* Maximum number of multicast filters supported. */ 489 #ifndef BNEP_MAX_MULTI_FILTERS 490 #define BNEP_MAX_MULTI_FILTERS 5 491 #endif 492 493 /* Preferred MTU size. */ 494 #ifndef BNEP_MTU_SIZE 495 #define BNEP_MTU_SIZE L2CAP_MTU_SIZE 496 #endif 497 498 /* Maximum number of buffers allowed in transmit data queue. */ 499 #ifndef BNEP_MAX_XMITQ_DEPTH 500 #define BNEP_MAX_XMITQ_DEPTH 20 501 #endif 502 503 /* Maximum number BNEP of connections supported. */ 504 #ifndef BNEP_MAX_CONNECTIONS 505 #define BNEP_MAX_CONNECTIONS 7 506 #endif 507 508 /****************************************************************************** 509 * 510 * AVDTP 511 * 512 *****************************************************************************/ 513 514 /* Number of simultaneous links to different peer devices. */ 515 #ifndef AVDT_NUM_LINKS 516 #define AVDT_NUM_LINKS 6 517 #endif 518 519 /* Number of simultaneous stream endpoints. */ 520 #ifndef AVDT_NUM_SEPS 521 #define AVDT_NUM_SEPS 12 522 #endif 523 524 /* Number of transport channels setup by AVDT for all media streams */ 525 #ifndef AVDT_NUM_TC_TBL 526 #define AVDT_NUM_TC_TBL (AVDT_NUM_SEPS + AVDT_NUM_LINKS) 527 #endif 528 529 /* Maximum size in bytes of the content protection information element. */ 530 #ifndef AVDT_PROTECT_SIZE 531 #define AVDT_PROTECT_SIZE 90 532 #endif 533 534 /* Default sink delay value in ms. */ 535 #ifndef AVDT_SINK_DELAY_MS 536 #define AVDT_SINK_DELAY_MS 300 537 #endif 538 539 /****************************************************************************** 540 * 541 * PAN 542 * 543 *****************************************************************************/ 544 545 #ifndef PAN_INCLUDED 546 #define PAN_INCLUDED TRUE 547 #endif 548 549 /* This will enable the PANU role */ 550 #ifndef PAN_SUPPORTS_ROLE_PANU 551 #define PAN_SUPPORTS_ROLE_PANU TRUE 552 #endif 553 554 /* This will enable the NAP role */ 555 #ifndef PAN_SUPPORTS_ROLE_NAP 556 #define PAN_SUPPORTS_ROLE_NAP TRUE 557 #endif 558 559 /* This is just for debugging purposes */ 560 #ifndef PAN_SUPPORTS_DEBUG_DUMP 561 #define PAN_SUPPORTS_DEBUG_DUMP TRUE 562 #endif 563 564 /* Maximum number of PAN connections allowed */ 565 #ifndef MAX_PAN_CONNS 566 #define MAX_PAN_CONNS 7 567 #endif 568 569 /* Default service name for NAP role */ 570 #ifndef PAN_NAP_DEFAULT_SERVICE_NAME 571 #define PAN_NAP_DEFAULT_SERVICE_NAME "Network Access Point Service" 572 #endif 573 574 /* Default service name for PANU role */ 575 #ifndef PAN_PANU_DEFAULT_SERVICE_NAME 576 #define PAN_PANU_DEFAULT_SERVICE_NAME "PAN User Service" 577 #endif 578 579 /* Default description for NAP role service */ 580 #ifndef PAN_NAP_DEFAULT_DESCRIPTION 581 #define PAN_NAP_DEFAULT_DESCRIPTION "NAP" 582 #endif 583 584 /* Default description for PANU role service */ 585 #ifndef PAN_PANU_DEFAULT_DESCRIPTION 586 #define PAN_PANU_DEFAULT_DESCRIPTION "PANU" 587 #endif 588 589 /****************************************************************************** 590 * 591 * GAP 592 * 593 *****************************************************************************/ 594 595 /* The maximum number of simultaneous GAP L2CAP connections. */ 596 #ifndef GAP_MAX_CONNECTIONS 597 #define GAP_MAX_CONNECTIONS 30 598 #endif 599 600 /****************************************************************************** 601 * 602 * HID 603 * 604 *****************************************************************************/ 605 606 /* HID Device Role Included */ 607 #ifndef HID_DEV_INCLUDED 608 #define HID_DEV_INCLUDED TRUE 609 #endif 610 611 #ifndef HID_CONTROL_BUF_SIZE 612 #define HID_CONTROL_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 613 #endif 614 615 #ifndef HID_INTERRUPT_BUF_SIZE 616 #define HID_INTERRUPT_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 617 #endif 618 619 #ifndef HID_DEV_MTU_SIZE 620 #define HID_DEV_MTU_SIZE 512 621 #endif 622 623 /************************************************************************* 624 * Definitions for Both HID-Host & Device 625 */ 626 #ifndef HID_MAX_SVC_NAME_LEN 627 #define HID_MAX_SVC_NAME_LEN 32 628 #endif 629 630 #ifndef HID_MAX_SVC_DESCR_LEN 631 #define HID_MAX_SVC_DESCR_LEN 32 632 #endif 633 634 #ifndef HID_MAX_PROV_NAME_LEN 635 #define HID_MAX_PROV_NAME_LEN 32 636 #endif 637 638 /************************************************************************* 639 * Definitions for HID-Host 640 */ 641 #ifndef HID_HOST_INCLUDED 642 #define HID_HOST_INCLUDED TRUE 643 #endif 644 645 #ifndef HID_HOST_MAX_DEVICES 646 #define HID_HOST_MAX_DEVICES 7 647 #endif 648 649 #ifndef HID_HOST_MTU 650 #define HID_HOST_MTU 640 651 #endif 652 653 #ifndef HID_HOST_MAX_CONN_RETRY 654 #define HID_HOST_MAX_CONN_RETRY 1 655 #endif 656 657 #ifndef HID_HOST_REPAGE_WIN 658 #define HID_HOST_REPAGE_WIN 2 659 #endif 660 661 /****************************************************************************** 662 * 663 * AVCTP 664 * 665 *****************************************************************************/ 666 667 /* Number of simultaneous ACL links to different peer devices. */ 668 #ifndef AVCT_NUM_LINKS 669 #define AVCT_NUM_LINKS 6 670 #endif 671 672 /* Number of simultaneous AVCTP connections. */ 673 #ifndef AVCT_NUM_CONN 674 #define AVCT_NUM_CONN 14 // 2 * MaxDevices + 2 675 #endif 676 677 /****************************************************************************** 678 * 679 * BTA 680 * 681 *****************************************************************************/ 682 /* Number of supported customer UUID in EIR */ 683 #ifndef BTA_EIR_SERVER_NUM_CUSTOM_UUID 684 #define BTA_EIR_SERVER_NUM_CUSTOM_UUID 8 685 #endif 686