mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'bugfix/fix_some_wifi_bugs_260312_v5.4' into 'release/v5.4'
Bugfix/fix some wifi bugs 260312 v5.4 See merge request espressif/esp-idf!46542
This commit is contained in:
@@ -768,6 +768,15 @@ menu "Wi-Fi"
|
||||
Select this configuration to free dynamic buffers during WiFi enterprise connection.
|
||||
This will enable chip to reduce heap consumption during WiFi enterprise connection.
|
||||
|
||||
config ESP_WIFI_MODEM_RF_FLAG_UPDATE_DEBUG
|
||||
bool "Enable debug assertions for modem RF flag update"
|
||||
depends on ESP_WIFI_ENHANCED_LIGHT_SLEEP
|
||||
default n
|
||||
help
|
||||
Enable debug assertions to verify modem RF flag update operations.
|
||||
This option enables assert checks to verify that modem RF power state
|
||||
is correctly cleared before pmu sleep.
|
||||
|
||||
endif # wifi enabled
|
||||
|
||||
endmenu # Wi-Fi
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -236,7 +236,10 @@ static esp_err_t wifi_deinit_internal(void)
|
||||
#if CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP
|
||||
esp_wifi_internal_modem_state_configure(false);
|
||||
esp_pm_unregister_skip_light_sleep_callback(sleep_modem_wifi_modem_state_skip_light_sleep);
|
||||
#if ESP_MODEM_RF_FLAG_UPDATE_CB_REQUIRED
|
||||
esp_unregister_mac_bb_pd_callback(esp_phy_modem_rf_flag_update);
|
||||
#endif
|
||||
#endif /* CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP */
|
||||
#ifdef CONFIG_ESP_PHY_ENABLED
|
||||
esp_phy_modem_deinit();
|
||||
#endif
|
||||
@@ -432,6 +435,12 @@ esp_err_t esp_wifi_init(const wifi_init_config_t *config)
|
||||
if (sleep_modem_wifi_modem_state_enabled()) {
|
||||
esp_pm_register_skip_light_sleep_callback(sleep_modem_wifi_modem_state_skip_light_sleep);
|
||||
esp_wifi_internal_modem_state_configure(true); /* require WiFi to enable automatically receives the beacon */
|
||||
#if ESP_MODEM_RF_FLAG_UPDATE_CB_REQUIRED
|
||||
if (esp_register_mac_bb_pd_callback(esp_phy_modem_rf_flag_update) != ESP_OK) {
|
||||
ESP_LOGE(TAG, "Failed to register modem RF flag update callback");
|
||||
goto _deinit;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
Reference in New Issue
Block a user