Skip to content

Commit

Permalink
Workaround: Temorarily enable BLE during Enhanced Commissioning Window (
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-apple authored and pull[bot] committed Sep 2, 2021
1 parent 2e8f6cc commit 3979839
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit 3979839

Please sign in to comment.