Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround: Temorarily enable BLE during Enhanced Commissioning Window #9344

Merged
merged 1 commit into from
Sep 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Workaround: Temorarily enable BLE during Enhanced Commissioning Window
  • Loading branch information
sagar-apple committed Aug 30, 2021
commit 8b5ac058b52946a63e278731b35d629b85d7cdb4
7 changes: 6 additions & 1 deletion src/app/server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,12 @@ CHIP_ERROR OpenEnhancedCommissioningWindow(uint16_t commissioningTimeoutSeconds,

ReturnErrorOnFailure(gDeviceDiscriminatorCache.UpdateDiscriminator(discriminator));

gAdvDelegate.SetBLE(false);
// TODO: Do not turn on BLE when opening the Enhanced Commissioning Window.
#if CONFIG_NETWORK_LAYER_BLE
gAdvDelegate.SetBLE(true);
params.SetAdvertisementDelegate(&gAdvDelegate);
params.SetBleLayer(DeviceLayer::ConnectivityMgr().GetBleLayer()).SetPeerAddress(Transport::PeerAddress::BLE());
#endif // CONFIG_NETWORK_LAYER_BLE
params.SetPASEVerifier(verifier).SetAdvertisementDelegate(&gAdvDelegate);

ReturnErrorOnFailure(
Expand Down