Skip to content

Commit

Permalink
added condition for beacon Rx count in DiagnosticDataProviderImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirsrin committed Apr 12, 2024
1 parent bcebbc6 commit 9f09a2f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/platform/Linux/DiagnosticDataProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,11 @@ 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 9f09a2f

Please sign in to comment.