component/bt: recover the BLE buffer size macros

This commit is contained in:
wangmengyang 2017-03-14 21:00:58 +08:00
parent 6cb9985e5d
commit a96df34d9b
3 changed files with 10 additions and 10 deletions

View File

@ -502,7 +502,7 @@
/* The number of security records for peer devices. 100 AS Default*/ /* The number of security records for peer devices. 100 AS Default*/
#ifndef BTM_SEC_MAX_DEVICE_RECORDS #ifndef BTM_SEC_MAX_DEVICE_RECORDS
#define BTM_SEC_MAX_DEVICE_RECORDS 4 // 100 #define BTM_SEC_MAX_DEVICE_RECORDS 8 // 100
#endif #endif
/* The number of security records for services. 32 AS Default*/ /* 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*/ /* The maximum number of simultaneous channels that L2CAP can support. Up to 16*/
#ifndef MAX_L2CAP_CHANNELS #ifndef MAX_L2CAP_CHANNELS
#define MAX_L2CAP_CHANNELS 4 #define MAX_L2CAP_CHANNELS 8
#endif #endif
/* The maximum number of simultaneous applications that can register with L2CAP. */ /* The maximum number of simultaneous applications that can register with L2CAP. */
#ifndef MAX_L2CAP_CLIENTS #ifndef MAX_L2CAP_CLIENTS
#define MAX_L2CAP_CLIENTS 4 #define MAX_L2CAP_CLIENTS 8
#endif #endif
/* The number of seconds of link inactivity before a link is disconnected. */ /* The number of seconds of link inactivity before a link is disconnected. */
@ -890,15 +890,15 @@
#endif #endif
#ifndef GATT_MAX_SR_PROFILES #ifndef GATT_MAX_SR_PROFILES
#define GATT_MAX_SR_PROFILES 4 /* max is 32 */ #define GATT_MAX_SR_PROFILES 8 /* max is 32 */
#endif #endif
#ifndef GATT_MAX_APPS #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 #endif
#ifndef GATT_MAX_PHY_CHANNEL #ifndef GATT_MAX_PHY_CHANNEL
#define GATT_MAX_PHY_CHANNEL 4 #define GATT_MAX_PHY_CHANNEL 7
#endif #endif
/* Used for conformance testing ONLY */ /* Used for conformance testing ONLY */
@ -909,7 +909,7 @@
/* number of background connection device allowence, ideally to be the same as WL size /* number of background connection device allowence, ideally to be the same as WL size
*/ */
#ifndef GATT_MAX_BG_CONN_DEV #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 #endif
/****************************************************************************** /******************************************************************************

View File

@ -178,7 +178,7 @@ typedef struct {
TIMER_LIST_ENT raddr_timer_ent; TIMER_LIST_ENT raddr_timer_ent;
} tBTM_LE_RANDOM_CB; } tBTM_LE_RANDOM_CB;
#define BTM_BLE_MAX_BG_CONN_DEV_NUM 2 #define BTM_BLE_MAX_BG_CONN_DEV_NUM 10
typedef struct { typedef struct {
UINT16 min_conn_int; UINT16 min_conn_int;

View File

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