Skip to content

Commit

Permalink
ESP32: Fix the initial call to esp_wifi_set_config() (#24168)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrishi authored and pull[bot] committed Sep 28, 2023
1 parent ac95313 commit 1215672
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1215672

Please sign in to comment.