You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2017/10/18 19:54:42 UTC
[GitHub] ccollins476ad opened a new pull request #629: BLE Host - Delay sync callback after IRK restore
ccollins476ad opened a new pull request #629: BLE Host - Delay sync callback after IRK restore
URL: https://github.com/apache/mynewt-core/pull/629
#### Prior to commit
On startup, the host executes the following steps:
1. HCI startup sequence
2. Call sync callback
3. Restore IRKs from flash
The problem is that step 3 (IRK restoration) causes a GAP preemption if
there are any persisted IRKs. If the application initiates a GAP
procedure during the sync callback, it will be immediately preempted.
This happens in the bleprph app, for example.
#### After commit
Don't call the sync callback until after IRK restoration is complete.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services