From 80e9f34cc747b6cf4c4944467fd19b6efd021620 Mon Sep 17 00:00:00 2001 From: Hrishikesh Dhayagude Date: Wed, 21 Dec 2022 15:32:16 +0530 Subject: [PATCH] ESP32: Fix the initial call to esp_wifi_set_config() --- src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp b/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp index 2eb2e1b3ad11e0..c068bba75cb492 100644 --- a/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp +++ b/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp @@ -104,11 +104,6 @@ void ConnectivityManagerImpl::_ClearWiFiStationProvision(void) { if (mWiFiStationMode != kWiFiStationMode_ApplicationControlled) { - wifi_config_t stationConfig; - - memset(&stationConfig, 0, sizeof(stationConfig)); - esp_wifi_set_config(WIFI_IF_STA, &stationConfig); - DeviceLayer::SystemLayer().ScheduleWork(DriveStationState, NULL); #if CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP DeviceLayer::SystemLayer().ScheduleWork(DriveAPState, NULL);