From be2c4530bf32047ae11ccf03d11b6e892a9e58fa Mon Sep 17 00:00:00 2001 From: Satish kumar sugasi Date: Mon, 31 Aug 2015 19:10:46 -0700 Subject: Increase limit of bluetooth devices connectable simultaneously Increase limit of L2CAP links to 16.Maximum number of connectable devices was being limited to 7 due to defined limit of L2CAP links. The limit is now increased to be same as maximum number of L2CAP channels, which is currently defined as 16. Change-Id: I55e64c676a25e0a9378e54c5f0f27fbb9274b8b6 --- include/bt_target.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/bt_target.h b/include/bt_target.h index e57b045dd..effc7e598 100644 --- a/include/bt_target.h +++ b/include/bt_target.h @@ -667,18 +667,18 @@ ** ******************************************************************************/ -/* The maximum number of simultaneous links that L2CAP can support. */ -#ifndef MAX_ACL_CONNECTIONS -#define MAX_L2CAP_LINKS 7 -#else -#define MAX_L2CAP_LINKS MAX_ACL_CONNECTIONS -#endif - /* The maximum number of simultaneous channels that L2CAP can support. */ #ifndef MAX_L2CAP_CHANNELS #define MAX_L2CAP_CHANNELS 16 #endif +/* The maximum number of simultaneous links that L2CAP can support. */ +#ifndef MAX_L2CAP_CHANNELS +#define MAX_L2CAP_LINKS 7 +#else +#define MAX_L2CAP_LINKS MAX_L2CAP_CHANNELS +#endif + /* The maximum number of simultaneous applications that can register with L2CAP. */ #ifndef MAX_L2CAP_CLIENTS #define MAX_L2CAP_CLIENTS 15 @@ -948,7 +948,11 @@ #endif #ifndef GATT_MAX_PHY_CHANNEL +#ifndef MAX_L2CAP_CHANNELS #define GATT_MAX_PHY_CHANNEL 7 +#else +#define GATT_MAX_PHY_CHANNEL MAX_L2CAP_CHANNELS +#endif #endif /* Used for conformance testing ONLY */ @@ -1576,7 +1580,11 @@ Range: 2 octets #endif #ifndef HID_HOST_MAX_DEVICES +#ifndef MAX_L2CAP_CHANNELS #define HID_HOST_MAX_DEVICES 7 +#else +#define HID_HOST_MAX_DEVICES MAX_L2CAP_CHANNELS +#endif #endif #ifndef HID_HOST_MTU -- cgit v1.2.3