summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSatish kumar sugasi <ssugas@codeaurora.org>2015-08-31 19:10:46 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:22:07 -0600
commitbe2c4530bf32047ae11ccf03d11b6e892a9e58fa (patch)
tree0fc26fd4f4e82c1d42f7eeacddf7be929882c547 /include
parent4316c447d46cb1967a17225d6681491dab097700 (diff)
downloadandroid_system_bt-be2c4530bf32047ae11ccf03d11b6e892a9e58fa.tar.gz
android_system_bt-be2c4530bf32047ae11ccf03d11b6e892a9e58fa.tar.bz2
android_system_bt-be2c4530bf32047ae11ccf03d11b6e892a9e58fa.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/bt_target.h22
1 files changed, 15 insertions, 7 deletions
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