fix(wifi): add ESP_WIFI_MAX_CONN_NUM-aligned ranges for soft-AP max STA Kconfig

This commit is contained in:
muhaidong
2026-05-12 19:22:54 +08:00
committed by BOT
parent b833559c4d
commit 636b285772
6 changed files with 43 additions and 7 deletions
@@ -22,7 +22,13 @@ menu "Example Configuration"
config EXAMPLE_MAX_STA_CONN
int "Maximum STA connections"
default 4
range 1 4 if IDF_TARGET_ESP32C2
range 1 15
help
Maximum number of the station that allowed to connect to current Wi-Fi hotspot.
Maximum number of STAs allowed to connect to the soft-AP (wifi_config_t.ap.max_connection).
Upper bound matches ESP_WIFI_MAX_CONN_NUM in esp_wifi_types_native.h:
1-4 on ESP32-C2, 1-15 on other Wi-Fi chips.
Soft-AP and ESP-NOW share encryption keys; see Wi-Fi driver documentation
if ESP-NOW is enabled.
endmenu