diff --git a/components/esp_wifi/include/phy.h b/components/esp_wifi/include/phy.h index 37066d00f9..de05f28ebc 100644 --- a/components/esp_wifi/include/phy.h +++ b/components/esp_wifi/include/phy.h @@ -64,6 +64,11 @@ void coex_bt_high_prio(void); */ void phy_close_rf(void); +/** + * @brief Set PHY internal params. + */ +void phy_param_set(uint8_t mode); + #ifdef __cplusplus } #endif diff --git a/components/esp_wifi/lib_esp32 b/components/esp_wifi/lib_esp32 index 4c46338b90..a16955d7b7 160000 --- a/components/esp_wifi/lib_esp32 +++ b/components/esp_wifi/lib_esp32 @@ -1 +1 @@ -Subproject commit 4c46338b90a4f7aa2dc6a14736be1fe63f8a2e10 +Subproject commit a16955d7b727b5ce966193df6bc4e0004d485312 diff --git a/components/esp_wifi/src/phy_init.c b/components/esp_wifi/src/phy_init.c index 5d789c3c59..fbaf4c2680 100644 --- a/components/esp_wifi/src/phy_init.c +++ b/components/esp_wifi/src/phy_init.c @@ -700,6 +700,9 @@ void esp_phy_load_cal_and_init(phy_rf_module_t module) char * phy_version = get_phy_version_str(); ESP_LOGI(TAG, "phy_version %s", phy_version); + // PHY Side band optimizaton + phy_param_set(1); + esp_phy_calibration_data_t* cal_data = (esp_phy_calibration_data_t*) calloc(sizeof(esp_phy_calibration_data_t), 1); if (cal_data == NULL) {