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

This commit is contained in:
muhaidong
2026-05-20 11:19:07 +08:00
parent f4fec5e8b3
commit 2c2eee578e
6 changed files with 43 additions and 7 deletions
@@ -40,6 +40,12 @@ menu "Example AP Wifi Configuration"
depends on EXAMPLE_BR_WIFI
int "Maximal STA connections"
default 4
range 1 4 if IDF_TARGET_ESP32C2
range 1 15
help
Max number of the STA connects to AP.
Maximum number of STAs allowed to connect to the bridged 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