fix(wifi): update auth mode threshold doc

This commit is contained in:
muhaidong
2025-03-11 21:38:17 +08:00
committed by BOT
parent 0475be8915
commit f0c5149e53
6 changed files with 18 additions and 14 deletions

View File

@@ -1308,12 +1308,12 @@ API :cpp:func:`esp_wifi_set_config()` can be used to configure the station. And
* - threshold
- The threshold is used to filter the found AP. If the RSSI or security mode is less than the configured threshold, the AP will be discarded.
If the RSSI is set to 0, it means the default threshold is used, and the default RSSI threshold is -127 dBm. If the authmode threshold is set to 0, it means the default threshold is used, and the default authmode threshold is open.
If the RSSI is set to 0, it means the default threshold is used, and the default RSSI threshold is -127 dBm. If the authmode threshold is set to 0, it means the default threshold is used, and the default authmode threshold is ``WIFI_AUTH_OPEN``.
.. attention::
WEP/WPA security modes are deprecated in IEEE 802.11-2016 specifications and are recommended not to be used. These modes can be rejected using authmode threshold by setting threshold as WPA2 by threshold.authmode as ``WIFI_AUTH_WPA2_PSK``.
WEP and TKIP are deprecated in IEEE 802.11-2016 and should not be used. To make the station connect only to APs with WPA2 or higher security, set ``wifi_config_t.sta.threshold.authmode`` to ``WIFI_AUTH_WPA2_PSK``. APs below this threshold, such as OPEN, WEP, and WPA-PSK, will be ignored during connection filtering.
AP Basic Configuration
+++++++++++++++++++++++++++++++++++++

View File

@@ -1161,7 +1161,7 @@ Wi-Fi 原因代码
* - NO_AP_FOUND
- 201
- 保留
- 乐鑫特有的 Wi-Fi 原因代码: 当 station 未扫描到目标 AP 时,将报告该代码。
- 乐鑫特有的 Wi-Fi 原因代码: 当 station 未扫描到目标 AP 时,将报告该代码。如果是由于安全性不匹配或 station 配置不匹配导致未扫描到目标 AP则会报告新的原因代码 NO_AP_FOUND_XXX。
* - AUTH_FAIL
- 202
- 保留
@@ -1308,12 +1308,12 @@ API :cpp:func:`esp_wifi_set_config()` 可用于配置 station。配置的参数
* - threshold
- 该字段用来筛选找到的 AP如果 AP 的 RSSI 或安全模式小于配置的阈值,则不会被连接。
如果 RSSI 设置为 0则表示默认阈值默认 RSSI 阈值为 -127 dBm。如果 authmode 阈值设置为 0则表示默认阈值默认 authmode 阈值无授权
如果 RSSI 设置为 0则表示默认阈值默认 RSSI 阈值为 -127 dBm。如果 authmode 阈值设置为 0则表示默认阈值默认 authmode 阈值``WIFI_AUTH_OPEN``
.. attention::
WEP/WPA 安全模式在 IEEE802.11-2016 协议中已弃用,建议不要使用。可使用 authmode 阈值代替,通过将 threshold.authmode 设置为 ``WIFI_AUTH_WPA2_PSK`` 使用 WPA2 模式
IEEE 802.11-2016 已废弃 WEP 和 TKIP不建议继续使用 WEP 或基于 TKIP 的 WPA 网络。若希望 station 只连接 WPA2 及以上安全级别的 AP可将 ``wifi_config_t.sta.threshold.authmode`` 设置为 ``WIFI_AUTH_WPA2_PSK``;低于该阈值的 AP如 OPEN、WEP、WPA-PSK将在连接筛选时被忽略。
AP 基本配置
+++++++++++++++++++++++++++++++++++++