Просмотр исходного кода

component/bt: enlarge GATT related data size to remove the log of error "GATT Stack failed"

wangmengyang 9 лет назад
Родитель
Сommit
d50792dec9

+ 2 - 2
components/bt/bluedroid/bta/include/bta_gattc_int.h

@@ -78,12 +78,12 @@ typedef UINT16 tBTA_GATTC_INT_EVT;
 
 /* max client application GATTC can support */
 #ifndef     BTA_GATTC_CL_MAX
-#define     BTA_GATTC_CL_MAX    2 // 32
+#define     BTA_GATTC_CL_MAX    4 // 32
 #endif
 
 /* max known devices GATTC can support */
 #ifndef     BTA_GATTC_KNOWN_SR_MAX
-#define     BTA_GATTC_KNOWN_SR_MAX    2 // 10
+#define     BTA_GATTC_KNOWN_SR_MAX    4 // 10
 #endif
 
 #define BTA_GATTC_CONN_MAX      GATT_MAX_PHY_CHANNEL

+ 4 - 4
components/bt/bluedroid/include/bt_target.h

@@ -878,15 +878,15 @@
 #endif
 
 #ifndef GATT_MAX_SR_PROFILES
-#define GATT_MAX_SR_PROFILES        2 /* max is 32 */
+#define GATT_MAX_SR_PROFILES        4 /* max is 32 */
 #endif
 
 #ifndef GATT_MAX_APPS
-#define GATT_MAX_APPS            2 /* MAX is 32 note: 2 apps used internally GATT and GAP */
+#define GATT_MAX_APPS            4 /* MAX is 32 note: 2 apps used internally GATT and GAP */
 #endif
 
 #ifndef GATT_MAX_PHY_CHANNEL
-#define GATT_MAX_PHY_CHANNEL        2
+#define GATT_MAX_PHY_CHANNEL        4
 #endif
 
 /* Used for conformance testing ONLY */
@@ -897,7 +897,7 @@
 /* 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        2 /*MAX is 32*/
+#define GATT_MAX_BG_CONN_DEV        4 /*MAX is 32*/
 #endif
 
 /******************************************************************************

+ 2 - 2
components/bt/bluedroid/stack/include/gatt_api.h

@@ -135,11 +135,11 @@ typedef UINT16 tGATT_DISCONN_REASON;
 #define GATT_INVALID_CONN_ID        0xFFFF
 
 #ifndef GATT_CL_MAX_LCB
-    #define GATT_CL_MAX_LCB     2 // 22
+    #define GATT_CL_MAX_LCB     4 // 22
 #endif
 
 #ifndef GATT_MAX_SCCB
-    #define GATT_MAX_SCCB       2
+    #define GATT_MAX_SCCB       4
 #endif