Skip to content

Commit

Permalink
DGWIFI_2_1 Beacon Rx count for linux platform (project-chip#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 <[email protected]>
  • Loading branch information
2 people authored and kurvaSai committed May 29, 2024
1 parent 598d27f commit 9ce9b24
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 9ce9b24

Please sign in to comment.