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
@@ -21,6 +21,12 @@ menu "Example Configuration"
config ESP_MAX_STA_CONN
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 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
@@ -25,8 +25,14 @@ menu "Example Configuration"
config ESP_MAX_STA_CONN_AP
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 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
menu "STA Configuration"
@@ -22,8 +22,14 @@ menu "Example Configuration"
config EXAMPLE_MAX_STA_CONN
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 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.
choice EXAMPLE_WPS_TYPE
prompt "WPS mode"
@@ -44,7 +50,7 @@ menu "Example Configuration"
int "WPS PIN"
default 0
help
WPS PIN to be used for the connection, incase its not give, AP will derive a new one.
WPS PIN to be used for the connection, in case its not give, AP will derive a new one.
endif
endmenu