Skip to content

Commit

Permalink
Fix restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-hh committed Mar 26, 2023
1 parent 57fbcf4 commit 36bf27d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/platform/bouffalolab/BL602/DiagnosticDataProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,23 +232,23 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiSecurityType(app::Clusters::WiFiNe
{
if (ConnectivityMgrImpl()._IsWiFiStationConnected())
{
if (wifi_mgmr_security_type_is_open())
if (wifi_mgmr_security_type_is_open())
{
securityType = app::Clusters::WiFiNetworkDiagnostics::SecurityTypeEnum::kNone;
}
else if (wifi_mgmr_security_type_is_wpa())
else if (wifi_mgmr_security_type_is_wpa())
{
securityType = app::Clusters::WiFiNetworkDiagnostics::SecurityTypeEnum::kWpa;
}
else if (wifi_mgmr_security_type_is_wpa2())
else if (wifi_mgmr_security_type_is_wpa2())
{
securityType = app::Clusters::WiFiNetworkDiagnostics::SecurityTypeEnum::kWpa2;
}
else if (wifi_mgmr_security_type_is_wpa3())
else if (wifi_mgmr_security_type_is_wpa3())
{
securityType = app::Clusters::WiFiNetworkDiagnostics::SecurityTypeEnum::kWpa3;
}
else
else
{
securityType = app::Clusters::WiFiNetworkDiagnostics::SecurityTypeEnum::kWep;
}
Expand Down
10 changes: 5 additions & 5 deletions src/platform/bouffalolab/BL602/wifi_mgmr_portable.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,19 @@ bool wifi_mgmr_security_type_is_wpa(void)

bool wifi_mgmr_security_type_is_wpa2(void)
{
if (WPA_PROTO_RSN == gWpaSm.proto)
if (WPA_PROTO_RSN == gWpaSm.proto)
{
return (gWpaSm.key_mgmt & (WPA_KEY_MGMT_IEEE8021X | WPA_KEY_MGMT_PSK |
WPA_KEY_MGMT_PSK_SHA256 | WPA_KEY_MGMT_FT_PSK | WPA_KEY_MGMT_IEEE8021X_SHA256 |
WPA_KEY_MGMT_FT_IEEE8021X)) != 0;
return (gWpaSm.key_mgmt &
(WPA_KEY_MGMT_IEEE8021X | WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_PSK_SHA256 | WPA_KEY_MGMT_FT_PSK |
WPA_KEY_MGMT_IEEE8021X_SHA256 | WPA_KEY_MGMT_FT_IEEE8021X)) != 0;
}

return false;
}

bool wifi_mgmr_security_type_is_wpa3(void)
{
if (WPA_PROTO_RSN == gWpaSm.proto)
if (WPA_PROTO_RSN == gWpaSm.proto)
{
return (gWpaSm.key_mgmt & (WPA_KEY_MGMT_SAE | WPA_KEY_MGMT_FT_SAE)) != 0;
}
Expand Down

0 comments on commit 36bf27d

Please sign in to comment.