From 1947a8da4a5b3f14c67c9ce3e1002c7c250937d0 Mon Sep 17 00:00:00 2001 From: Hrishikesh Dhayagude Date: Thu, 13 Jan 2022 19:11:13 +0530 Subject: [PATCH] ESP32: Wi-Fi - Use the default STA configuration (#13526) --- src/platform/ESP32/NetworkCommissioningWiFiDriver.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/platform/ESP32/NetworkCommissioningWiFiDriver.cpp b/src/platform/ESP32/NetworkCommissioningWiFiDriver.cpp index 9468143aabad64..2081a9eaadc5b6 100644 --- a/src/platform/ESP32/NetworkCommissioningWiFiDriver.cpp +++ b/src/platform/ESP32/NetworkCommissioningWiFiDriver.cpp @@ -132,8 +132,6 @@ CHIP_ERROR ESPWiFiDriver::ConnectWiFiNetwork(const char * ssid, uint8_t ssidLen, memset(&wifiConfig, 0, sizeof(wifiConfig)); memcpy(wifiConfig.sta.ssid, ssid, std::min(ssidLen, static_cast(sizeof(wifiConfig.sta.ssid)))); memcpy(wifiConfig.sta.password, key, std::min(keyLen, static_cast(sizeof(wifiConfig.sta.password)))); - wifiConfig.sta.scan_method = WIFI_ALL_CHANNEL_SCAN; - wifiConfig.sta.sort_method = WIFI_CONNECT_AP_BY_SIGNAL; // Configure the ESP WiFi interface. esp_err_t err = esp_wifi_set_config(WIFI_IF_STA, &wifiConfig);