esp_wifi: Modify wifi scan return value.

1. Modify wifi scan return value same to docs.
2. Change some logs' log level wo avoid misunderstanding.
3. Fix connect fail return wrong error code issue
This commit is contained in:
muhaidong
2022-11-08 10:59:40 +08:00
parent c8d0704f1c
commit e972161b7a
3 changed files with 39 additions and 3 deletions

View File

@@ -1132,10 +1132,11 @@ The table below shows the Wi-Fi reason-code may related to wrong password.
- Description
* - 4WAY_HANDSHAKE_TIMEOUT
- 15
- Four-way handshake times out.
- Four-way handshake times out. Setting wrong password when STA connecting to an encrpted AP.
* - NO_AP_FOUND
- 201
- This may related to wrong password in the two scenarios:
- Setting password when STA connecting to an unencrypted AP.
- Doesn't setting password when STA connecting to an encrpted AP.
* - HANDSHAKE_TIMEOUT
@@ -1143,6 +1144,23 @@ The table below shows the Wi-Fi reason-code may related to wrong password.
- Four-way handshake fails.
The table below shows the Wi-Fi reason-code may related to low RSSI.
.. list-table::
:header-rows: 1
:widths: 5 10 40
* - Reason code
- Value
- Description
* - NO_AP_FOUND
- 201
- The station fails to scan the target AP due to low RSSI
* - HANDSHAKE_TIMEOUT
- 204
- Four-way handshake fails.
{IDF_TARGET_NAME} Wi-Fi Station Connecting When Multiple APs Are Found
----------------------------------------------------------------------