mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
Merge branch 'bugfix/btdm_set_MAX_L2CAP_CHANNELS_error' into 'master'
component/bt: Fix bug of set MAX_L2CAP_CHANNELS error See merge request !1448
This commit is contained in:
@@ -681,11 +681,15 @@
|
|||||||
/* The maximum number of simultaneous channels that L2CAP can support. Up to 16*/
|
/* The maximum number of simultaneous channels that L2CAP can support. Up to 16*/
|
||||||
#ifndef MAX_L2CAP_CHANNELS
|
#ifndef MAX_L2CAP_CHANNELS
|
||||||
#if (CLASSIC_BT_INCLUDED == TRUE)
|
#if (CLASSIC_BT_INCLUDED == TRUE)
|
||||||
#define MAX_L2CAP_CHANNELS 8
|
#define MAX_L2CAP_CHANNELS 16
|
||||||
#else
|
#else
|
||||||
|
#if (SMP_INCLUDED == FALSE)
|
||||||
#define MAX_L2CAP_CHANNELS MAX_ACL_CONNECTIONS //This is used in the BLE client when start connected with the peer device
|
#define MAX_L2CAP_CHANNELS MAX_ACL_CONNECTIONS //This is used in the BLE client when start connected with the peer device
|
||||||
|
#else
|
||||||
|
#define MAX_L2CAP_CHANNELS (MAX_ACL_CONNECTIONS * 2) //This is used in the BLE client when start connected with the peer device and in SMP
|
||||||
|
#endif ///SMP_INCLUDED == FALSE
|
||||||
#endif ///CLASSIC_BT_INCLUDED == TRUE
|
#endif ///CLASSIC_BT_INCLUDED == TRUE
|
||||||
#endif
|
#endif ///MAX_L2CAP_CHANNELS
|
||||||
|
|
||||||
/* The maximum number of simultaneous applications that can register with L2CAP. */
|
/* The maximum number of simultaneous applications that can register with L2CAP. */
|
||||||
#ifndef MAX_L2CAP_CLIENTS
|
#ifndef MAX_L2CAP_CLIENTS
|
||||||
|
Reference in New Issue
Block a user