We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d345d51 commit d975aafCopy full SHA for d975aaf
src/platform/nxp/common/NetworkCommissioningWiFiDriver.cpp
@@ -145,6 +145,9 @@ CHIP_ERROR NXPWiFiDriver::RevertConfiguration()
145
/* Reset mStagingNetwork as it may have been updated during add/update network operation */
146
mStagingNetwork = mSavedNetwork;
147
148
+ // succeed right away if we are already connected
149
+ VerifyOrReturnError(!is_sta_connected(), CHIP_NO_ERROR);
150
+
151
// succeed right away if no saved network
152
VerifyOrReturnError(mStagingNetwork.ssidLen > 0, CHIP_NO_ERROR);
153
// Connect to saved network
0 commit comments