Skip to content

Commit

Permalink
DGWIFI_2_1 Beacon Rx count for linux platform (#32963)
Browse files Browse the repository at this point in the history
* added condition for beacon Rx count in DiagnosticDataProviderImpl

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
Thirsrin and restyled-commits committed Apr 12, 2024
1 parent bcebbc6 commit 4be45dd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/platform/Linux/DiagnosticDataProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,12 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiOverrunCount(uint64_t & overrunCou

CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiBeaconRxCount(uint32_t & beaconRxCount)
{
beaconRxCount = mBeaconRxCount;

return CHIP_NO_ERROR;
if (DeviceLayer::ConnectivityMgrImpl().IsWiFiManagementStarted())
{
beaconRxCount = mBeaconRxCount;
return CHIP_NO_ERROR;
}
return CHIP_ERROR_NOT_IMPLEMENTED;
}

CHIP_ERROR DiagnosticDataProviderImpl::ResetWiFiNetworkDiagnosticsCounts()
Expand Down

0 comments on commit 4be45dd

Please sign in to comment.