Skip to content

Commit 9ce9b24

Browse files
Thirsrinrestyled-commits
authored andcommitted
DGWIFI_2_1 Beacon Rx count for linux platform (project-chip#32963)
* added condition for beacon Rx count in DiagnosticDataProviderImpl * Restyled by clang-format --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 598d27f commit 9ce9b24

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/platform/Linux/DiagnosticDataProviderImpl.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,12 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiOverrunCount(uint64_t & overrunCou
761761

762762
CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiBeaconRxCount(uint32_t & beaconRxCount)
763763
{
764-
beaconRxCount = mBeaconRxCount;
765-
766-
return CHIP_NO_ERROR;
764+
if (DeviceLayer::ConnectivityMgrImpl().IsWiFiManagementStarted())
765+
{
766+
beaconRxCount = mBeaconRxCount;
767+
return CHIP_NO_ERROR;
768+
}
769+
return CHIP_ERROR_NOT_IMPLEMENTED;
767770
}
768771

769772
CHIP_ERROR DiagnosticDataProviderImpl::ResetWiFiNetworkDiagnosticsCounts()

0 commit comments

Comments
 (0)