bt: fix Bluedroid compile errors after enable CONFIG_ESP_SYSTEM_USE_EH_FRAME on RISC-V SoCs

This root cause is incorrect source code separation by conditonal MACROs for BLE L2CAP COC related functions
This commit is contained in:
wangmengyang
2023-02-10 21:51:08 +08:00
parent 648b1a41c6
commit 3279b4d41d
7 changed files with 28 additions and 12 deletions
@@ -1015,6 +1015,19 @@
#define BLE_MAX_L2CAP_CLIENTS 15
#endif
/* Support status of L2CAP connection-oriented dynamic channels over LE transport with dynamic CID */
#ifndef BLE_L2CAP_COC_INCLUDED
#define BLE_L2CAP_COC_INCLUDED FALSE // LE COC not use by default
#endif
/* Support status of L2CAP connection-oriented dynamic channels over LE or BR/EDR transport with dynamic CID */
#ifndef L2CAP_COC_INCLUDED
#if (CLASSIC_BT_INCLUDED == TRUE || BLE_L2CAP_COC_INCLUDED == TRUE)
#define L2CAP_COC_INCLUDED TRUE
#else
#define L2CAP_COC_INCLUDED FALSE
#endif
#endif
/* The maximum number of simultaneous links that L2CAP can support. Up to 7*/
#ifndef MAX_ACL_CONNECTIONS