From a96df34d9b8b099e7e845e72075b837f175b03dc Mon Sep 17 00:00:00 2001 From: wangmengyang Date: Tue, 14 Mar 2017 21:00:58 +0800 Subject: [PATCH] component/bt: recover the BLE buffer size macros --- components/bt/bluedroid/include/bt_target.h | 14 +++++++------- .../bt/bluedroid/stack/include/btm_ble_int.h | 2 +- components/bt/bluedroid/stack/include/gatt_api.h | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/bt/bluedroid/include/bt_target.h b/components/bt/bluedroid/include/bt_target.h index 9744686024..53a29b4543 100644 --- a/components/bt/bluedroid/include/bt_target.h +++ b/components/bt/bluedroid/include/bt_target.h @@ -502,7 +502,7 @@ /* 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*/ @@ -648,12 +648,12 @@ /* 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. */ @@ -890,15 +890,15 @@ #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 */ @@ -909,7 +909,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 4 /*MAX is 32*/ +#define GATT_MAX_BG_CONN_DEV 8 /*MAX is 32*/ #endif /****************************************************************************** diff --git a/components/bt/bluedroid/stack/include/btm_ble_int.h b/components/bt/bluedroid/stack/include/btm_ble_int.h index adedc6add5..8345777c1a 100644 --- a/components/bt/bluedroid/stack/include/btm_ble_int.h +++ b/components/bt/bluedroid/stack/include/btm_ble_int.h @@ -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; diff --git a/components/bt/bluedroid/stack/include/gatt_api.h b/components/bt/bluedroid/stack/include/gatt_api.h index f9c6b379a4..42812a5bee 100644 --- a/components/bt/bluedroid/stack/include/gatt_api.h +++ b/components/bt/bluedroid/stack/include/gatt_api.h @@ -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