diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index a43a9cf3f6..9023681b3b 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit a43a9cf3f6d9fa3589fad1d13d35d96731298f9c +Subproject commit 9023681b3bb776adf2d805cef52af895412b3c70 diff --git a/docs/en/api-guides/wifi.rst b/docs/en/api-guides/wifi.rst index bad8a1194b..68adab6830 100644 --- a/docs/en/api-guides/wifi.rst +++ b/docs/en/api-guides/wifi.rst @@ -1273,7 +1273,9 @@ API :cpp:func:`esp_wifi_set_config()` can be used to configure the station. And | channel | If the channel is 0, the station scans the channel 1 ~ N to | | | search for the target AP; otherwise, the station starts by | | | scanning the channel whose value is the same as that of the | -| | "channel" field, and then scans others to find the target AP.| +| | "channel" field, and then scans the channel 1 ~ N but skip | +| | the specific channel to find the target AP. For example, if | +| | the channel is 3, the scan order will be 3, 1, 2, 4,..., N. | | | If you do not know which channel the target AP is running on,| | | set it to 0. | +------------------+--------------------------------------------------------------+ diff --git a/docs/zh_CN/api-guides/wifi.rst b/docs/zh_CN/api-guides/wifi.rst index 5e442e1eaa..f34d18ab3a 100644 --- a/docs/zh_CN/api-guides/wifi.rst +++ b/docs/zh_CN/api-guides/wifi.rst @@ -1227,8 +1227,9 @@ API :cpp:func:`esp_wifi_set_config()` 可用于配置 station。配置的参数 | bssid | 只有当 bssid_set 为 1 时有效。见字段 "bssid_set"。 | +-------------+---------------------------------------------------------------------------+ | channel | 该字段为 0 时,station 扫描信道 1~N 寻找目标 AP;否则,station | -| | 首先扫描值与 "channel" 字段相同的信道,再扫描其他信道。如果您不知道目标 | -| | AP 在哪个信道,请将该字段设置为 0。 | +| | 首先扫描值与 "channel" 字段相同的信道,再扫描其他信道。比如,当该字段设置 | +| | 为 3 时,扫描顺序为 3,1,2,4,...,N。如果您不知道目标 AP 在哪个信道, | +| | 请将该字段设置为 0。 | +-------------+---------------------------------------------------------------------------+ | sort_method | 该字段仅用于 WIFI_ALL_CHANNEL_SCAN 模式。如果设置为 | | | WIFI_CONNECT_AP_BY_SIGNAL,所有匹配的 AP |