From 92facb6884ed791aa1aa0bc7ae9d28717c8a300c Mon Sep 17 00:00:00 2001 From: Jiang Jiang Jian Date: Thu, 13 Jul 2017 21:55:24 +0800 Subject: [PATCH] Merge branch 'bugfix/btdm_modify_BTA_GATTC_KNOWN_SR_MAX_for_Multi-connection' into 'master' component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug See merge request !992 --- components/bt/bluedroid/bta/include/bta_gattc_int.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/bt/bluedroid/bta/include/bta_gattc_int.h b/components/bt/bluedroid/bta/include/bta_gattc_int.h index dec594d34..21cd42594 100644 --- a/components/bt/bluedroid/bta/include/bta_gattc_int.h +++ b/components/bt/bluedroid/bta/include/bta_gattc_int.h @@ -81,7 +81,11 @@ typedef UINT16 tBTA_GATTC_INT_EVT; /* max known devices GATTC can support */ #ifndef BTA_GATTC_KNOWN_SR_MAX -#define BTA_GATTC_KNOWN_SR_MAX 3 // 10 +#if (GATT_MAX_PHY_CHANNEL > 3) + #define BTA_GATTC_KNOWN_SR_MAX GATT_MAX_PHY_CHANNEL +#else + #define BTA_GATTC_KNOWN_SR_MAX 3 // The origin value is 10 +#endif #endif #define BTA_GATTC_CONN_MAX GATT_MAX_PHY_CHANNEL