Skip to content

Commit 2773f53

Browse files
authored
Update ports/esp32s2/common-hal/wifi/Radio.c
adding suggested changes
1 parent 6760cdf commit 2773f53

File tree

1 file changed

+2
-0
lines changed
  • ports/esp32s2/common-hal/wifi

1 file changed

+2
-0
lines changed

ports/esp32s2/common-hal/wifi/Radio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ wifi_radio_error_t common_hal_wifi_radio_connect(wifi_radio_obj_t *self, uint8_t
146146
// This will ensure that the best AP in range is chosen automatically
147147
if ((config->sta.bssid_set == 0) && (config->sta.channel == 0)) {
148148
config->sta.scan_method = WIFI_ALL_CHANNEL_SCAN;
149+
} else {
150+
config->sta.scan_method = WIFI_FAST_SCAN;
149151
}
150152
esp_wifi_set_config(ESP_IF_WIFI_STA, config);
151153
self->starting_retries = 5;

0 commit comments

Comments
 (0)