Ver código fonte

Merge branch 'bugfix/fix_some_wifi_bugs_0728_v4.3' into 'release/v4.3'

bugfix fix some wifi bugs for 4.3

See merge request espressif/esp-idf!14577
Jiang Jiang Jian 4 anos atrás
pai
commit
0423027d5d

+ 1 - 1
components/esp_rom/esp32c3/ld/esp32c3.rom.ld

@@ -1606,7 +1606,7 @@ rcSetTxAmpduLimit = 0x4000176c;
 rcTxUpdatePer = 0x40001770;
 rcUpdateAckSnr = 0x40001774;
 rcUpdateRate = 0x40001778;
-rcUpdateTxDone = 0x4000177c;
+/* rcUpdateTxDone = 0x4000177c; */
 rcUpdateTxDoneAmpdu2 = 0x40001780;
 rcUpSched = 0x40001784;
 rssi_margin = 0x40001788;

+ 15 - 1
components/esp_wifi/include/esp_wifi.h

@@ -1224,7 +1224,7 @@ esp_err_t esp_wifi_config_11b_rate(wifi_interface_t ifx, bool disable);
   * @attention  1. This API should be called after esp_wifi_init() and before esp_wifi_start().
   *
   * @param      ifx  Interface to be configured.
-  * @param      rate Only support 1M, 6M and MCS0_LGI
+  * @param      rate Phy rate to be configured.
   *
   * @return
   *    - ESP_OK: succeed
@@ -1289,6 +1289,20 @@ esp_err_t esp_wifi_set_country_code(const char *country, bool ieee80211d_enabled
   */
 esp_err_t esp_wifi_get_country_code(char *country);
 
+/**
+  * @brief      Config 80211 tx rate of specified interface
+  *
+  * @attention  1. This API should be called after esp_wifi_init() and before esp_wifi_start().
+  *
+  * @param      ifx  Interface to be configured.
+  * @param      rate Phy rate to be configured.
+  *
+  * @return
+  *    - ESP_OK: succeed
+  *    - others: failed
+  */
+esp_err_t esp_wifi_config_80211_tx_rate(wifi_interface_t ifx, wifi_phy_rate_t rate);
+
 #ifdef __cplusplus
 }
 #endif

+ 1 - 1
components/esp_wifi/lib

@@ -1 +1 @@
-Subproject commit 279d472db0c4cbd73219fd88065a777bfb1499d2
+Subproject commit 0bbc969738fac352a6bce8261f0130403d0078d9