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
2 people authored and pull[bot] committed Apr 17, 2024
1 parent 27c3be9 commit b49547e
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 b49547e

Please sign in to comment.