mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(wifi): add ESP_WIFI_MAX_CONN_NUM-aligned ranges for soft-AP max STA Kconfig
This commit is contained in:
@@ -40,6 +40,12 @@ menu "Example AP Wifi Configuration"
|
|||||||
depends on EXAMPLE_BR_WIFI
|
depends on EXAMPLE_BR_WIFI
|
||||||
int "Maximal STA connections"
|
int "Maximal STA connections"
|
||||||
default 4
|
default 4
|
||||||
|
range 1 4 if IDF_TARGET_ESP32C2
|
||||||
|
range 1 15
|
||||||
help
|
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
|
endmenu
|
||||||
|
|||||||
@@ -22,7 +22,13 @@ menu "Example Configuration"
|
|||||||
config EXAMPLE_MAX_STA_CONN
|
config EXAMPLE_MAX_STA_CONN
|
||||||
int "Maximum STA connections"
|
int "Maximum STA connections"
|
||||||
default 4
|
default 4
|
||||||
|
range 1 4 if IDF_TARGET_ESP32C2
|
||||||
|
range 1 15
|
||||||
help
|
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
|
endmenu
|
||||||
|
|||||||
@@ -15,6 +15,12 @@ menu "Example Configuration"
|
|||||||
config ESP_MAX_STA_CONN
|
config ESP_MAX_STA_CONN
|
||||||
int "Maximal STA connections"
|
int "Maximal STA connections"
|
||||||
default 4
|
default 4
|
||||||
|
range 1 4 if IDF_TARGET_ESP32C2
|
||||||
|
range 1 15
|
||||||
help
|
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
|
endmenu
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ menu "Example Configuration"
|
|||||||
config ESP_MAX_STA_CONN
|
config ESP_MAX_STA_CONN
|
||||||
int "Maximal STA connections"
|
int "Maximal STA connections"
|
||||||
default 4
|
default 4
|
||||||
|
range 1 4 if IDF_TARGET_ESP32C2
|
||||||
|
range 1 15
|
||||||
help
|
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
|
endmenu
|
||||||
|
|||||||
@@ -25,8 +25,14 @@ menu "Example Configuration"
|
|||||||
config ESP_MAX_STA_CONN_AP
|
config ESP_MAX_STA_CONN_AP
|
||||||
int "Maximal STA connections"
|
int "Maximal STA connections"
|
||||||
default 4
|
default 4
|
||||||
|
range 1 4 if IDF_TARGET_ESP32C2
|
||||||
|
range 1 15
|
||||||
help
|
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
|
endmenu
|
||||||
|
|
||||||
menu "STA Configuration"
|
menu "STA Configuration"
|
||||||
|
|||||||
@@ -22,8 +22,14 @@ menu "Example Configuration"
|
|||||||
config EXAMPLE_MAX_STA_CONN
|
config EXAMPLE_MAX_STA_CONN
|
||||||
int "Maximal STA connections"
|
int "Maximal STA connections"
|
||||||
default 4
|
default 4
|
||||||
|
range 1 4 if IDF_TARGET_ESP32C2
|
||||||
|
range 1 15
|
||||||
help
|
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
|
choice EXAMPLE_WPS_TYPE
|
||||||
prompt "WPS mode"
|
prompt "WPS mode"
|
||||||
@@ -44,7 +50,7 @@ menu "Example Configuration"
|
|||||||
int "WPS PIN"
|
int "WPS PIN"
|
||||||
default 0
|
default 0
|
||||||
help
|
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
|
endif
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|||||||
Reference in New Issue
Block a user