fix(nimble): Added

1. Option to disable automatic discovery when receiving out-of-sync
2. Fixed bugs related to robust caching
This commit is contained in:
Sumeet Singh
2024-11-07 17:06:08 +05:30
parent 253b72254e
commit 7b5a7a5401
2 changed files with 16 additions and 1 deletions

View File

@ -691,6 +691,14 @@ config BT_NIMBLE_GATT_CACHING_MAX_DSCS
help help
Set this option to set the upper limit on number of discriptors per connection to be cached. Set this option to set the upper limit on number of discriptors per connection to be cached.
config BT_NIMBLE_GATT_CACHING_DISABLE_AUTO
bool "Do not start discovery procedure automatically upon receiving Out of Sync"
depends on BT_NIMBLE_GATT_CACHING
default n
help
When client receives ATT out-of-sync error message, it will not automatically start the discovery procedure
to correct the invalid cache.
config BT_NIMBLE_WHITELIST_SIZE config BT_NIMBLE_WHITELIST_SIZE
int "BLE white list size" int "BLE white list size"
depends on BT_NIMBLE_ENABLED depends on BT_NIMBLE_ENABLED

View File

@ -130,7 +130,14 @@
#define MYNEWT_VAL_BLE_GATT_CACHING_MAX_SVCS (CONFIG_BT_NIMBLE_GATT_CACHING_MAX_SVCS) #define MYNEWT_VAL_BLE_GATT_CACHING_MAX_SVCS (CONFIG_BT_NIMBLE_GATT_CACHING_MAX_SVCS)
#define MYNEWT_VAL_BLE_GATT_CACHING_MAX_CHRS (CONFIG_BT_NIMBLE_GATT_CACHING_MAX_CHRS) #define MYNEWT_VAL_BLE_GATT_CACHING_MAX_CHRS (CONFIG_BT_NIMBLE_GATT_CACHING_MAX_CHRS)
#define MYNEWT_VAL_BLE_GATT_CACHING_MAX_DSCS (CONFIG_BT_NIMBLE_GATT_CACHING_MAX_DSCS) #define MYNEWT_VAL_BLE_GATT_CACHING_MAX_DSCS (CONFIG_BT_NIMBLE_GATT_CACHING_MAX_DSCS)
#endif
#ifdef CONFIG_BT_NIMBLE_GATT_CACHING_DISABLE_AUTO
#define MYNEWT_VAL_BLE_GATT_CACHING_DISABLE_AUTO (CONFIG_BT_NIMBLE_GATT_CACHING_DISABLE_AUTO)
#else
#define MYNEWT_VAL_BLE_GATT_CACHING_DISABLE_AUTO (0)
#endif /* CONFIG_BT_NIMBLE_GATT_CACHING_DISABLE_AUTO */
#endif /* CONFIG_BT_NIMBLE_GATT_CACHING */
#ifndef MYNEWT_VAL_BLE_GATT_CSFC_SIZE #ifndef MYNEWT_VAL_BLE_GATT_CSFC_SIZE
#define MYNEWT_VAL_BLE_GATT_CSFC_SIZE (1) #define MYNEWT_VAL_BLE_GATT_CSFC_SIZE (1)