From b09a4e29c999072098a053e666621a32c33ec611 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 5 Jan 2023 16:29:16 +0800 Subject: [PATCH] esp_wifi: add dynamic carrier sense threshold to improve tx throughput in high interference env. esp_wifi: fix potential issue when tx fragment pkt Closes WIFI-5106 Closes WIFI-5529 --- components/esp_wifi/include/esp_wifi.h | 13 +++++++++++++ components/esp_wifi/lib | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/include/esp_wifi.h b/components/esp_wifi/include/esp_wifi.h index 863ebb7d70..4efffa6896 100644 --- a/components/esp_wifi/include/esp_wifi.h +++ b/components/esp_wifi/include/esp_wifi.h @@ -1348,6 +1348,19 @@ esp_err_t esp_wifi_sta_get_aid(uint16_t *aid); */ esp_err_t esp_wifi_sta_get_negotiated_phymode(wifi_phy_mode_t *phymode); +/** + * @brief Config dynamic carrier sense + * + * @attention This API should be called after esp_wifi_start(). + * + * @param enabled Dynamic carrier sense is enabled or not. + * + * @return + * - ESP_OK: succeed + * - others: failed + */ +esp_err_t esp_wifi_set_dynamic_cs(bool enabled); + #ifdef __cplusplus } #endif diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index a821d6aef8..bdaf43e3da 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit a821d6aef8e9ba26b1003a0fa3276774a2113433 +Subproject commit bdaf43e3da5dcd2fd599c46dd79d509aabb245fb