prasad-alatkar opened a new pull request #790: nimble/store: Fix nimble store 
behavior when CCCDs exceed static defined limit
   Issue reference: #788 
   Description: In cases where CCCDs are exceeding 
MYNEWT_VAL(BLE_STORE_MAX_CCCDS) (overflow event), we can end up in continuous 
while loop.
   Change list:
   1. In `ble_gap_unpair_oldest_peer` changed return value from `0` to 
`BLE_HS_ENOENT` when there is no entry found.
   2. Modified `ble_store_util_status_rr` to address overflow event of CCCDs.
   Previous to this PR, if CCCDs used to exceed the MAX_CCCDs then in 
`ble_store_write` call there used to come OVERFLOW event, which used to call 
`ble_store_delete_oldest_peer`, now here as we do not have any peer to be 
deleted, we should have identified that we need to make space for CCCDs and not 
`peer_sec` or `our_sec`. The PR tries to address this issue.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to