Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provisioning Manager reporting WIFI_PROV_STA_AUTH_ERROR with valid credentitals (IDFGH-10503) #11749

Closed
3 tasks done
homedad opened this issue Jun 26, 2023 · 2 comments
Closed
3 tasks done
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally

Comments

@homedad
Copy link

homedad commented Jun 26, 2023

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Does the code below map too many error cases into "Auth Error"?

We have seen this ourselves during development, and now we have several users reporting that they have input their credentials correctly, and the provisioning library reports WIFI_PROV_STA_AUTH_ERROR, with which we tell the user, "Bad Creds". This doesn't help the user solve the problem.

Excerpt from components/wifi_provisioning/src/manager.c (IDF Version 4.4.3):

switch (disconnected->reason) {
        case WIFI_REASON_AUTH_EXPIRE:
        case WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT:
        case WIFI_REASON_AUTH_FAIL:
        case WIFI_REASON_ASSOC_EXPIRE:
        case WIFI_REASON_HANDSHAKE_TIMEOUT:
        case WIFI_REASON_MIC_FAILURE:
            ESP_LOGE(TAG, "STA Auth Error");
            prov_ctx->wifi_disconnect_reason = WIFI_PROV_STA_AUTH_ERROR;
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jun 26, 2023
@github-actions github-actions bot changed the title Provisioning Manager reporting WIFI_PROV_STA_AUTH_ERROR with valid credentitals Provisioning Manager reporting WIFI_PROV_STA_AUTH_ERROR with valid credentitals (IDFGH-10503) Jun 26, 2023
@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Jul 3, 2023
@mahavirj
Copy link
Member

mahavirj commented Jul 7, 2023

@homedad I think you had reported similar issue in #9399, and it was fixed in IDF 4.4.4 release. Can you please confirm if you have that fix available in your code-base? Alternatively, is it possible for you to share the WiFi packet capture for the part when you observe this issue?

@homedad
Copy link
Author

homedad commented Jul 7, 2023 via email

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: In Progress Work is in progress labels Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

4 participants