From 3fc299d30929a12ea365ed552329d54ed61cfe90 Mon Sep 17 00:00:00 2001 From: muhaidong Date: Thu, 10 Apr 2025 21:17:05 +0800 Subject: [PATCH 1/2] fix(phy): fix phy data partition restoring default fails issue Closes https://github.com/espressif/esp-idf/issues/14698 --- components/esp_phy/src/phy_init.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/esp_phy/src/phy_init.c b/components/esp_phy/src/phy_init.c index fb206b262c..70908b3e48 100644 --- a/components/esp_phy/src/phy_init.c +++ b/components/esp_phy/src/phy_init.c @@ -642,6 +642,13 @@ const esp_phy_init_data_t* esp_phy_get_init_data(void) assert(memcmp(init_data_store + init_data_store_length - sizeof(phy_init_magic_post), PHY_INIT_MAGIC, sizeof(phy_init_magic_post)) == 0); + err = esp_partition_erase_range(partition, 0, partition->size); + if (err != ESP_OK) { + ESP_LOGE(TAG, "failed to erase partition (0x%x)!", err); + free(init_data_store); + return NULL; + } + // write default data err = esp_partition_write(partition, 0, init_data_store, init_data_store_length); if (err != ESP_OK) { From ba0e7844110755f8f1a0931db6b8baf581289cf7 Mon Sep 17 00:00:00 2001 From: muhaidong Date: Mon, 17 Feb 2025 19:14:41 +0800 Subject: [PATCH 2/2] fix(wifi): fix some wifi bugs 250427 1. fix ersu compatibility issue 2. fix association timeout timer issue for wep shared auth --- components/esp_wifi/lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index ed6ab25387..bcee37ef36 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit ed6ab25387b3f1ee4c33c3a75caa377c9c40003c +Subproject commit bcee37ef3692f6de24e399091ae33d6b0488017b