Просмотр исходного кода

Merge branch 'bugfix/fix_csi_bug_for_esp32s2' into 'master'

esp_wifi: fix the bug that esp32s2 can't get CSI info

Closes WIFI-2837 and WIFI-1311

See merge request espressif/esp-idf!11573
Jiang Jiang Jian 5 лет назад
Родитель
Сommit
413d3ab6dd

+ 6 - 0
components/esp_wifi/include/esp_phy_init.h

@@ -211,6 +211,12 @@ esp_err_t esp_phy_update_country_info(const char *country);
 esp_err_t esp_phy_apply_phy_init_data(uint8_t *init_data);
 #endif
 
+/**
+ * @brief Get PHY lib version
+ * @return PHY lib version.
+ */
+char * get_phy_version_str(void);
+
 #ifdef __cplusplus
 }
 #endif

+ 1 - 1
components/esp_wifi/lib

@@ -1 +1 @@
-Subproject commit 5b78ff7f5ba8635666d3c68fc89fd6d728b9f606
+Subproject commit 8fa1751c0d9d082952d275e16086bacb225409a9

+ 3 - 0
components/esp_wifi/src/phy_init.c

@@ -471,6 +471,9 @@ static void __attribute((unused)) esp_phy_reduce_tx_power(esp_phy_init_data_t* i
 
 void esp_phy_load_cal_and_init(void)
 {
+    char * phy_version = get_phy_version_str();
+    ESP_LOGI(TAG, "phy_version %s", phy_version);
+
     esp_phy_calibration_data_t* cal_data =
             (esp_phy_calibration_data_t*) calloc(sizeof(esp_phy_calibration_data_t), 1);
     if (cal_data == NULL) {