Skip to content

Commit

Permalink
[nrf noup] wifi: avoid unwanted connect request
Browse files Browse the repository at this point in the history
It's pointless to issue a connect request in case
no valid SSID has been found.

Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.no>
  • Loading branch information
markaj-nordic authored and LuDuda committed Dec 8, 2023
1 parent 495c4c1 commit 899d210
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/nrfconnect/wifi/WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ void WiFiManager::ScanDoneHandler(Platform::UniquePtr<uint8_t> data)
ChipLogProgress(DeviceLayer, "Starting connection recover: re-scanning... (next attempt in %d ms)",
currentTimeout.count());
DeviceLayer::SystemLayer().StartTimer(currentTimeout, Recover, nullptr);
return;
}

Instance().mWiFiState = WIFI_STATE_ASSOCIATING;
Expand Down

0 comments on commit 899d210

Please sign in to comment.