Skip to content

Commit f3d2dd2

Browse files
sylvioalvescarlescufi
authored andcommitted
soc: esp32: move phy tx power to soc config
PHY TX power configuration must be added into soc level. It was previously hardcoded in hal_espressif, which was removed. Signed-off-by: Sylvio Alves <[email protected]>
1 parent 734c345 commit f3d2dd2

File tree

4 files changed

+36
-12
lines changed

4 files changed

+36
-12
lines changed

drivers/wifi/esp32/Kconfig.esp32

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,6 @@ choice ESP32_WIFI_TASK_CORE_ID
210210
bool "Core 0"
211211
endchoice
212212

213-
config ESP32_PHY_MAX_WIFI_TX_POWER
214-
int "Max WiFi TX power (dBm)"
215-
range 10 20
216-
default 20
217-
help
218-
Set maximum transmit power for WiFi radio. Actual transmit power for high
219-
data rates may be lower than this setting.
220-
221-
config ESP32_PHY_MAX_TX_POWER
222-
int
223-
default ESP32_PHY_MAX_WIFI_TX_POWER
224-
225213
config ESP32_WIFI_SW_COEXIST_ENABLE
226214
bool
227215
help

soc/riscv/esp32c3/Kconfig.soc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,16 @@ config FLASH_BASE_ADDRESS
3030
hex
3131
default $(dt_node_reg_addr_hex,/soc/flash-controller@60002000/flash@0)
3232

33+
config ESP32_PHY_MAX_WIFI_TX_POWER
34+
int "Max WiFi TX power (dBm)"
35+
range 10 20
36+
default 20
37+
help
38+
Set maximum transmit power for WiFi radio. Actual transmit power for high
39+
data rates may be lower than this setting.
40+
41+
config ESP32_PHY_MAX_TX_POWER
42+
int
43+
default ESP32_PHY_MAX_WIFI_TX_POWER
44+
3345
endif

soc/xtensa/esp32/Kconfig.soc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,16 @@ config ESP32_UNIVERSAL_MAC_ADDRESSES
264264
default 2 if ESP32_UNIVERSAL_MAC_ADDRESSES_TWO
265265
default 4 if ESP32_UNIVERSAL_MAC_ADDRESSES_FOUR
266266

267+
config ESP32_PHY_MAX_WIFI_TX_POWER
268+
int "Max WiFi/BLE TX power (dBm)"
269+
range 10 20
270+
default 20
271+
help
272+
Set maximum transmit power for WiFi radio. Actual transmit power for high
273+
data rates may be lower than this setting.
274+
275+
config ESP32_PHY_MAX_TX_POWER
276+
int
277+
default ESP32_PHY_MAX_WIFI_TX_POWER
278+
267279
endif # SOC_ESP32

soc/xtensa/esp32s2/Kconfig.soc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,16 @@ config ESP32S2_UNIVERSAL_MAC_ADDRESSES
224224
default 1 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_ONE
225225
default 2 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
226226

227+
config ESP32_PHY_MAX_WIFI_TX_POWER
228+
int "Max WiFi TX power (dBm)"
229+
range 10 20
230+
default 20
231+
help
232+
Set maximum transmit power for WiFi radio. Actual transmit power for high
233+
data rates may be lower than this setting.
234+
235+
config ESP32_PHY_MAX_TX_POWER
236+
int
237+
default ESP32_PHY_MAX_WIFI_TX_POWER
238+
227239
endif # SOC_ESP32S2

0 commit comments

Comments
 (0)