From 94bac458bfcd15a89272fe84fb54023167211065 Mon Sep 17 00:00:00 2001 From: Jessy Chen Date: Tue, 26 Apr 2022 03:20:37 -0400 Subject: [PATCH] esp_wifi: fix phy limit tx power for s2/c3 --- components/esp_wifi/esp32c3/include/phy_init_data.h | 4 ++-- components/esp_wifi/esp32s2/include/phy_init_data.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/esp_wifi/esp32c3/include/phy_init_data.h b/components/esp_wifi/esp32c3/include/phy_init_data.h index bc5d1edd2a..6e5d089f1b 100644 --- a/components/esp_wifi/esp32c3/include/phy_init_data.h +++ b/components/esp_wifi/esp32c3/include/phy_init_data.h @@ -28,8 +28,8 @@ extern "C" { // define the lowest tx power as LOWEST_PHY_TX_POWER #define PHY_TX_POWER_LOWEST LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 52) -#define PHY_TX_POWER_OFFSET 44 -#define PHY_TX_POWER_NUM 5 +#define PHY_TX_POWER_OFFSET 2 +#define PHY_TX_POWER_NUM 14 #if CONFIG_ESP32_SUPPORT_MULTIPLE_PHY_INIT_DATA_BIN #define PHY_CRC_ALGORITHM 1 diff --git a/components/esp_wifi/esp32s2/include/phy_init_data.h b/components/esp_wifi/esp32s2/include/phy_init_data.h index 2714a150aa..b4bbdd7e46 100644 --- a/components/esp_wifi/esp32s2/include/phy_init_data.h +++ b/components/esp_wifi/esp32s2/include/phy_init_data.h @@ -28,8 +28,8 @@ extern "C" { // define the lowest tx power as LOWEST_PHY_TX_POWER #define PHY_TX_POWER_LOWEST LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 52) -#define PHY_TX_POWER_OFFSET 44 -#define PHY_TX_POWER_NUM 5 +#define PHY_TX_POWER_OFFSET 2 +#define PHY_TX_POWER_NUM 14 #if CONFIG_ESP32_SUPPORT_MULTIPLE_PHY_INIT_DATA_BIN #define PHY_CRC_ALGORITHM 1