[wifi] Fix scan timeout loop when scan returns zero networks (#12354)
This commit is contained in:
1 parent
c5cc91f6f0
commit
ffb3e2eb0a
1 file changed
+2
-2
@@ -1264,8 +1264,8 @@ WiFiRetryPhase WiFiComponent::determine_next_phase_() {
|
||||
}
|
||||
|
||||
case WiFiRetryPhase::SCAN_CONNECTING:
|
||||
// If scan found no matching networks, skip to hidden network mode
|
||||
if (!this->scan_result_.empty() && !this->scan_result_[0].get_matches()) {
|
||||
// If scan found no networks or no matching networks, skip to hidden network mode
|
||||
if (this->scan_result_.empty() || !this->scan_result_[0].get_matches()) {
|
||||
return WiFiRetryPhase::RETRY_HIDDEN;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user