@@ -91,8 +91,7 @@ CHIP_ERROR GetEthernetStatsCount(EthernetStatsCountType type, uint64_t & count)
91
91
// Walk through linked list, maintaining head pointer so we can free list later.
92
92
for (ifa = ifaddr; ifa != nullptr ; ifa = ifa->ifa_next )
93
93
{
94
- if (ConnectivityUtils::GetInterfaceConnectionType (ifa->ifa_name ) ==
95
- InterfaceTypeEnum::EMBER_ZCL_INTERFACE_TYPE_ENUM_ETHERNET)
94
+ if (ConnectivityUtils::GetInterfaceConnectionType (ifa->ifa_name ) == InterfaceTypeEnum::kEthernet )
96
95
{
97
96
ChipLogProgress (DeviceLayer, " Found the primary Ethernet interface:%s" , StringOrNullMarker (ifa->ifa_name ));
98
97
break ;
@@ -156,8 +155,7 @@ CHIP_ERROR GetWiFiStatsCount(WiFiStatsCountType type, uint64_t & count)
156
155
// Walk through linked list, maintaining head pointer so we can free list later.
157
156
for (ifa = ifaddr; ifa != nullptr ; ifa = ifa->ifa_next )
158
157
{
159
- if (ConnectivityUtils::GetInterfaceConnectionType (ifa->ifa_name ) ==
160
- InterfaceTypeEnum::EMBER_ZCL_INTERFACE_TYPE_ENUM_WI_FI)
158
+ if (ConnectivityUtils::GetInterfaceConnectionType (ifa->ifa_name ) == InterfaceTypeEnum::kWiFi )
161
159
{
162
160
ChipLogProgress (DeviceLayer, " Found the primary WiFi interface:%s" , StringOrNullMarker (ifa->ifa_name ));
163
161
break ;
@@ -413,10 +411,10 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetActiveRadioFaults(GeneralFaults<kMaxRa
413
411
{
414
412
#if CHIP_CONFIG_TEST
415
413
// On Linux Simulation, set following radio faults statically.
416
- ReturnErrorOnFailure (radioFaults.add (EMBER_ZCL_RADIO_FAULT_ENUM_WI_FI_FAULT ));
417
- ReturnErrorOnFailure (radioFaults.add (EMBER_ZCL_RADIO_FAULT_ENUM_CELLULAR_FAULT ));
418
- ReturnErrorOnFailure (radioFaults.add (EMBER_ZCL_RADIO_FAULT_ENUM_THREAD_FAULT ));
419
- ReturnErrorOnFailure (radioFaults.add (EMBER_ZCL_RADIO_FAULT_ENUM_NFC_FAULT ));
414
+ ReturnErrorOnFailure (radioFaults.add (to_underlying (RadioFaultEnum:: kWiFiFault ) ));
415
+ ReturnErrorOnFailure (radioFaults.add (to_underlying (RadioFaultEnum:: kCellularFault ) ));
416
+ ReturnErrorOnFailure (radioFaults.add (to_underlying (RadioFaultEnum:: kThreadFault ) ));
417
+ ReturnErrorOnFailure (radioFaults.add (to_underlying (RadioFaultEnum:: kNFCFault ) ));
420
418
#endif
421
419
422
420
return CHIP_NO_ERROR;
@@ -615,8 +613,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::ResetEthNetworkDiagnosticsCounts()
615
613
// Walk through linked list, maintaining head pointer so we can free list later.
616
614
for (ifa = ifaddr; ifa != nullptr ; ifa = ifa->ifa_next )
617
615
{
618
- if (ConnectivityUtils::GetInterfaceConnectionType (ifa->ifa_name ) ==
619
- InterfaceTypeEnum::EMBER_ZCL_INTERFACE_TYPE_ENUM_ETHERNET)
616
+ if (ConnectivityUtils::GetInterfaceConnectionType (ifa->ifa_name ) == InterfaceTypeEnum::kEthernet )
620
617
{
621
618
ChipLogProgress (DeviceLayer, " Found the primary Ethernet interface:%s" , StringOrNullMarker (ifa->ifa_name ));
622
619
break ;
@@ -781,8 +778,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::ResetWiFiNetworkDiagnosticsCounts()
781
778
// Walk through linked list, maintaining head pointer so we can free list later.
782
779
for (ifa = ifaddr; ifa != nullptr ; ifa = ifa->ifa_next )
783
780
{
784
- if (ConnectivityUtils::GetInterfaceConnectionType (ifa->ifa_name ) ==
785
- InterfaceTypeEnum::EMBER_ZCL_INTERFACE_TYPE_ENUM_WI_FI)
781
+ if (ConnectivityUtils::GetInterfaceConnectionType (ifa->ifa_name ) == InterfaceTypeEnum::kWiFi )
786
782
{
787
783
ChipLogProgress (DeviceLayer, " Found the primary WiFi interface:%s" , StringOrNullMarker (ifa->ifa_name ));
788
784
break ;
0 commit comments