Skip to content

Commit ffc1d46

Browse files
Removed canGoToDeepSleep call
1 parent f3632de commit ffc1d46

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp

-11
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,6 @@ void ApplicationSleepManager::OnFabricCommitted(const chip::FabricTable & fabric
9393
mWifiSleepManager->VerifyAndTransitionToLowPowerMode();
9494
}
9595

96-
bool ApplicationSleepManager::CanGoToDeepSleep()
97-
{
98-
bool canGoToDeepSleep = true;
99-
if (mIsCommissionningWindowOpen)
100-
{
101-
ChipLogProgress(AppServer, "Commissioning Window is Open - Cannot go to Deep sleep");
102-
canGoToDeepSleep = false;
103-
}
104-
return canGoToDeepSleep;
105-
}
106-
10796
bool ApplicationSleepManager::CanGoToLIBasedSleep()
10897
{
10998
bool canGoToLIBasedSleep = true;

examples/platform/silabs/wifi/icd/ApplicationSleepManager.h

-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ class ApplicationSleepManager : public chip::app::ReadHandler::ApplicationCallba
114114
* false if the device cannot go to LI sleep
115115
*/
116116
bool CanGoToLIBasedSleep() override;
117-
bool CanGoToDeepSleep() override;
118117

119118
// FabricTable::Delegate implementation
120119

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

-9
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,6 @@ CHIP_ERROR WifiSleepManager::VerifyAndTransitionToLowPowerMode(PowerEvent event)
165165
return CHIP_NO_ERROR;
166166
}
167167

168-
// TODO: Clean this up when the Wi-Fi interface re-work is finished
169-
wfx_wifi_provision_t wifiConfig;
170-
wfx_get_wifi_provision(&wifiConfig);
171-
172-
if ((wifiConfig.ssid[0] == 0) && (mCallback && mCallback->CanGoToDeepSleep()))
173-
{
174-
return ConfigureDeepSleep();
175-
}
176-
177168
if (mCallback && mCallback->CanGoToLIBasedSleep())
178169
{
179170
return ConfigureLIBasedSleep();

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

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class WifiSleepManager
7070
* @return false The Wi-Fi Sleep Manager cannot go to LI based sleep or an error occured in the processing.
7171
*/
7272
virtual bool CanGoToLIBasedSleep() = 0;
73-
virtual bool CanGoToDeepSleep() = 0;
7473
};
7574

7675
/**

0 commit comments

Comments
 (0)