From d50792dec91f3d571a9abdba7b061d1aabdd5733 Mon Sep 17 00:00:00 2001 From: wangmengyang Date: Thu, 24 Nov 2016 15:14:48 +0800 Subject: [PATCH] component/bt: enlarge GATT related data size to remove the log of error "GATT Stack failed" --- components/bt/bluedroid/bta/include/bta_gattc_int.h | 4 ++-- components/bt/bluedroid/include/bt_target.h | 8 ++++---- components/bt/bluedroid/stack/include/gatt_api.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/bt/bluedroid/bta/include/bta_gattc_int.h b/components/bt/bluedroid/bta/include/bta_gattc_int.h index 47848520d..aac408312 100755 --- a/components/bt/bluedroid/bta/include/bta_gattc_int.h +++ b/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 diff --git a/components/bt/bluedroid/include/bt_target.h b/components/bt/bluedroid/include/bt_target.h index 9d5e921f0..656af21f9 100755 --- a/components/bt/bluedroid/include/bt_target.h +++ b/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 /****************************************************************************** diff --git a/components/bt/bluedroid/stack/include/gatt_api.h b/components/bt/bluedroid/stack/include/gatt_api.h index 1fb0c3951..339700047 100755 --- a/components/bt/bluedroid/stack/include/gatt_api.h +++ b/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