Merge branch 'bugfix/fix_some_wifi_bugs_0427_v5.4' into 'release/v5.4'

fix(phy): fix phy data partition restoring default fails issue(Backport v5.4)

See merge request espressif/esp-idf!38770
This commit is contained in:
Jiang Jiang Jian
2025-04-28 10:50:28 +08:00
3 changed files with 9 additions and 2 deletions

View File

@ -611,6 +611,13 @@ const esp_phy_init_data_t* esp_phy_get_init_data(void)
assert(memcmp(init_data_store + init_data_store_length - PHY_INIT_MAGIC_LEN,
PHY_INIT_MAGIC, PHY_INIT_MAGIC_LEN) == 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) {

View File

@ -65,7 +65,7 @@ wifi_get_macaddr = 0x40000b2c;
wifi_rf_phy_disable = 0x40000b30;
wifi_rf_phy_enable = 0x40000b34;
wifi_is_started = 0x40000b38;
sta_input = 0x40000b3c;
/*sta_input = 0x40000b3c;*/
sta_rx_eapol = 0x40000b40;
sta_reset_beacon_timeout = 0x40000b44;
sta_get_beacon_timeout = 0x40000b48;