-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle commissioning error paths (#16882)
* Don't re-establish PASE if we have a connection. * Fix incorrect error return for pase with no pairing delegate * Add commissioning status update callback Also callback with full peer id for folks that want that. * Disarm failsafe immediately if we get 0 timeout. * Fix event handling in commissioning window manager. The current failsafe expiry doesn't actually re-start the advertising because the pase connection stops the commissioning window timer. Instead, stop the commissining window timer when we get a commissioning complete. Don't use the OnSessionEstablishmentError function for failsafe timer expiry because it sends a callback about pairing that does not apply here. * Fail re-send if the session is expired. * Disarm failsafe and kill pase connection for early failures * Clear event on BLE commissioning. * Restyled by clang-format * Restyled by autopep8 * Add ExpireAllPASEPairings function to session manager Use in CommissioningWindowManager * Restyled by clang-format * Address review comments * Boris' reliable transmission fix. * Revert back to using > 0 for breadcrumb. Most commands don't set it - the last one that did was the failsafe. * manually cancel timer. * Apply suggestions from code review Co-authored-by: Boris Zbarsky <[email protected]> * Add API documentation * Move log line down. * Restyled by clang-format * Boris' fix for darwin tests. Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Boris Zbarsky <[email protected]>
- Loading branch information
1 parent
0ba8ff3
commit c3b1810
Showing
28 changed files
with
969 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.