-
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.
Make sure we don't advertise with CM=1 when we're not accepting PASE …
…connections. (#13813) * Make sure we don't advertise with CM=1 when we're not accepting PASE connections. Right now it's possible for a device to both be advertising over dns-sd with CM=1 and not be accepting PASE connections. Which makes the CM=1 not exactly true. Summary of changes: 1. Change DnssdServer to clearly differentiate between "Start with default commissioning mode behavior based on whether we have operational credentials" and "Start with commissioning mode disabled", instead of treating the two as synonyms. I audited all callsites that explicitly passed kDisabled to StartServer() instead of no args, and they all seem to want to actually disable commissioning mode. 2. Change CommissioningWindowManager to start/stop DNS-SD commissioning advertising in the same codepaths as BLE advertising. This means we stop advertising with CM=1 or CM=2 when we stop accepting PASE connections, and start doing it again when we start accepting PASE connections again (e.g. if commissioning fails). * Apply review suggestion. Co-authored-by: chrisdecenzo <[email protected]> Co-authored-by: chrisdecenzo <[email protected]>
- Loading branch information
1 parent
b7f8100
commit ed8d276
Showing
4 changed files
with
64 additions
and
26 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