]> granicus.if.org Git - esp-idf/commitdiff
component/bt: recover the BLE buffer size macros
authorwangmengyang <wangmengyang@espressif.com>
Tue, 14 Mar 2017 13:00:58 +0000 (21:00 +0800)
committerwangmengyang <wangmengyang@espressif.com>
Tue, 14 Mar 2017 13:00:58 +0000 (21:00 +0800)
components/bt/bluedroid/include/bt_target.h
components/bt/bluedroid/stack/include/btm_ble_int.h
components/bt/bluedroid/stack/include/gatt_api.h

index 97446860242dbda7bccc339aa1d705006bd3c02e..53a29b45435d3dbdeb56170e93334bee6e167997 100644 (file)
 
 /* The number of security records for peer devices. 100 AS Default*/
 #ifndef BTM_SEC_MAX_DEVICE_RECORDS
-#define BTM_SEC_MAX_DEVICE_RECORDS  4 // 100
+#define BTM_SEC_MAX_DEVICE_RECORDS  8 // 100
 #endif
 
 /* The number of security records for services. 32 AS Default*/
 
 /* The maximum number of simultaneous channels that L2CAP can support. Up to 16*/
 #ifndef MAX_L2CAP_CHANNELS
-#define MAX_L2CAP_CHANNELS          4
+#define MAX_L2CAP_CHANNELS          8
 #endif
 
 /* The maximum number of simultaneous applications that can register with L2CAP. */
 #ifndef MAX_L2CAP_CLIENTS
-#define MAX_L2CAP_CLIENTS           4
+#define MAX_L2CAP_CLIENTS           8
 #endif
 
 /* The number of seconds of link inactivity before a link is disconnected. */
 #endif
 
 #ifndef GATT_MAX_SR_PROFILES
-#define GATT_MAX_SR_PROFILES        4 /* max is 32 */
+#define GATT_MAX_SR_PROFILES        8 /* max is 32 */
 #endif
 
 #ifndef GATT_MAX_APPS
-#define GATT_MAX_APPS            4 /* MAX is 32 note: 2 apps used internally GATT and GAP */
+#define GATT_MAX_APPS            8 /* MAX is 32 note: 2 apps used internally GATT and GAP */
 #endif
 
 #ifndef GATT_MAX_PHY_CHANNEL
-#define GATT_MAX_PHY_CHANNEL        4
+#define GATT_MAX_PHY_CHANNEL        7
 #endif
 
 /* Used for conformance testing ONLY */
 /* number of background connection device allowence, ideally to be the same as WL size
 */
 #ifndef GATT_MAX_BG_CONN_DEV
-#define GATT_MAX_BG_CONN_DEV        4 /*MAX is 32*/
+#define GATT_MAX_BG_CONN_DEV        8 /*MAX is 32*/
 #endif
 
 /******************************************************************************
index adedc6add5065986ba16b5cdec2893f169ccf844..8345777c1a8ca5448be848846bfb9f4caa1cde77 100644 (file)
@@ -178,7 +178,7 @@ typedef struct {
     TIMER_LIST_ENT              raddr_timer_ent;
 } tBTM_LE_RANDOM_CB;
 
-#define BTM_BLE_MAX_BG_CONN_DEV_NUM    2
+#define BTM_BLE_MAX_BG_CONN_DEV_NUM    10
 
 typedef struct {
     UINT16              min_conn_int;
index f9c6b379a4de352df5356b29725794cc523e7cbd..42812a5bee4474c395b136002aab915476f06e2a 100644 (file)
@@ -139,11 +139,11 @@ typedef UINT16 tGATT_DISCONN_REASON;
 #define GATT_INVALID_CONN_ID                0xFFFF
 
 #ifndef GATT_CL_MAX_LCB
-#define GATT_CL_MAX_LCB                     4 // 22
+#define GATT_CL_MAX_LCB                     12 // 22
 #endif
 
 #ifndef GATT_MAX_SCCB
-#define GATT_MAX_SCCB                       4
+#define GATT_MAX_SCCB                       10
 #endif