From 2037788552487250f5fe29c9dfca048c0d99ebfb Mon Sep 17 00:00:00 2001 From: Hrishikesh Dhayagude Date: Wed, 4 Jan 2023 22:10:41 +0530 Subject: [PATCH] ESP32: Fix the initial call to esp_wifi_set_config() (#24168) --- 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);