From 357687233b770daf28b3fb097a4529e7a6d6341c Mon Sep 17 00:00:00 2001 From: pankore <86098180+pankore@users.noreply.github.com> Date: Tue, 21 Feb 2023 00:26:10 +0800 Subject: [PATCH] [diagnosticdata] fix code for 8710cm (#25180) --- src/platform/Ameba/DiagnosticDataProviderImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/Ameba/DiagnosticDataProviderImpl.cpp b/src/platform/Ameba/DiagnosticDataProviderImpl.cpp index 13ac2ba0979195..5a272040fac48a 100644 --- a/src/platform/Ameba/DiagnosticDataProviderImpl.cpp +++ b/src/platform/Ameba/DiagnosticDataProviderImpl.cpp @@ -315,7 +315,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiSecurityType(app::Clusters::WiFiNe wext_get_enc_ext("wlan0", &_security, &setting.key_idx, setting.password); if (wext_get_auth_type("wlan0", &_auth_type) < 0) { - securityType = 0; + securityType = SecurityTypeEnum::kUnspecified; } else { @@ -342,7 +342,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiSecurityType(app::Clusters::WiFiNe securityType = SecurityTypeEnum::kWpa3; break; default: - securityType = SecurityTypeEnum::Unspecified; + securityType = SecurityTypeEnum::kUnspecified; break; } }