Skip to content

Commit b544a77

Browse files
Resolved review comments
1 parent 106ab63 commit b544a77

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/platform/silabs/wifi/WifiInterfaceAbstraction.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ typedef enum
118118

119119
typedef struct
120120
{
121-
char ssid[WFX_MAX_SSID_LENGTH + 1] = {0};
122-
size_t ssid_length;
123-
char passkey[WFX_MAX_PASSKEY_LENGTH + 1] = {0};
124-
size_t passkey_length;
125-
wfx_sec_t security;
121+
char ssid[WFX_MAX_SSID_LENGTH + 1] = { 0 };
122+
size_t ssid_length = 0;
123+
char passkey[WFX_MAX_PASSKEY_LENGTH + 1] = { 0 };
124+
size_t passkey_length = 0;
125+
wfx_sec_t security = WFX_SEC_UNSPECIFIED;
126126
} wfx_wifi_provision_t;
127127

128128
typedef enum

src/platform/silabs/wifi/icd/WifiSleepManager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ CHIP_ERROR WifiSleepManager::VerifyAndTransitionToLowPowerMode(PowerEvent event)
169169
wfx_wifi_provision_t wifiConfig;
170170
wfx_get_wifi_provision(&wifiConfig);
171171

172-
if (!(wifiConfig.ssid[0] != 0) && (mCallback && mCallback->CanGoToDeepSleep()))
172+
if ((wifiConfig.ssid[0] == 0) && (mCallback && mCallback->CanGoToDeepSleep()))
173173
{
174174
return ConfigureDeepSleep();
175175
}

0 commit comments

Comments
 (0)