Skip to content

Commit 2659669

Browse files
pankorepull[bot]
authored andcommitted
[diagnosticdata] fix code for 8710cm (#25180)
1 parent 7610ccf commit 2659669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/Ameba/DiagnosticDataProviderImpl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiSecurityType(app::Clusters::WiFiNe
315315
wext_get_enc_ext("wlan0", &_security, &setting.key_idx, setting.password);
316316
if (wext_get_auth_type("wlan0", &_auth_type) < 0)
317317
{
318-
securityType = 0;
318+
securityType = SecurityTypeEnum::kUnspecified;
319319
}
320320
else
321321
{
@@ -342,7 +342,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiSecurityType(app::Clusters::WiFiNe
342342
securityType = SecurityTypeEnum::kWpa3;
343343
break;
344344
default:
345-
securityType = SecurityTypeEnum::Unspecified;
345+
securityType = SecurityTypeEnum::kUnspecified;
346346
break;
347347
}
348348
}

0 commit comments

Comments
 (0)