Skip to content

Commit

Permalink
[Silabs] [Wi-Fi] [SiWx917] Added fix for slow advertisement on 917 NCP (
Browse files Browse the repository at this point in the history
#31501)

* Added fix for slow advertisement

* Added changes for the BLE error issue for SOC

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
shgutte and restyled-commits authored Jan 18, 2024
1 parent 91d3288 commit 9c94fe6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/platform/silabs/rs911x/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ CHIP_ERROR BLEManagerImpl::ConfigureAdvertisingData(void)

CHIP_ERROR BLEManagerImpl::StartAdvertising(void)
{
CHIP_ERROR err;
CHIP_ERROR err = CHIP_NO_ERROR;
int32_t status = 0;

ChipLogProgress(DeviceLayer, "StartAdvertising start");
Expand All @@ -675,8 +675,11 @@ CHIP_ERROR BLEManagerImpl::StartAdvertising(void)
ChipLogDetail(DeviceLayer, "Start BLE advertissement");
}

err = ConfigureAdvertisingData();
SuccessOrExit(err);
if (!(mFlags.Has(Flags::kAdvertising)))
{
err = ConfigureAdvertisingData();
SuccessOrExit(err);
}

mFlags.Clear(Flags::kRestartAdvertising);

Expand Down

0 comments on commit 9c94fe6

Please sign in to comment.