From: zhiweijian Date: Thu, 13 Jul 2017 03:19:54 +0000 (+0800) Subject: Component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug X-Git-Tag: v3.1-dev~468^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca3bf570cd64adbcb4ad8ac0829dec1f3ff4ef96;p=esp-idf Component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug --- diff --git a/components/bt/bluedroid/bta/include/bta_gattc_int.h b/components/bt/bluedroid/bta/include/bta_gattc_int.h index dec594d341..21cd425945 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