Skip to content

Commit 899d210

Browse files
markaj-nordicLuDuda
authored andcommitted
[nrf noup] wifi: avoid unwanted connect request
It's pointless to issue a connect request in case no valid SSID has been found. Signed-off-by: Marcin Kajor <[email protected]>
1 parent 495c4c1 commit 899d210

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/nrfconnect/wifi/WiFiManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ void WiFiManager::ScanDoneHandler(Platform::UniquePtr<uint8_t> data)
397397
ChipLogProgress(DeviceLayer, "Starting connection recover: re-scanning... (next attempt in %d ms)",
398398
currentTimeout.count());
399399
DeviceLayer::SystemLayer().StartTimer(currentTimeout, Recover, nullptr);
400+
return;
400401
}
401402

402403
Instance().mWiFiState = WIFI_STATE_ASSOCIATING;

0 commit comments

Comments
 (0)