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

esp32/wifi: Fix Wi-Fi driver parameter settings #8963

Conversation

tmedicci
Copy link
Contributor

@tmedicci tmedicci commented Apr 4, 2023

Summary

This PR fixes #7857 and #7193 by saving Wi-Fi parameters and setting them at once, avoiding unknown behaviors of the Wi-Fi driver, like setting auth mode without a valid password.

Also, it enables setting the auth of the STA/softAP modes while connecting to/providing the wireless network.

Finally, it notifies the networking layer about the current state of the STA interface.

Impact

Fix known bugs of the Wi-Fi driver on ESP32 (C3 is not affected because of its driver implementation) and improve security as it sets the minimum auth method to connect to an AP.

Testing

Internal CI testing that covers erroneous behavior prior to this MR.

This commit fixes apache#7857 and apache#7193 by saving Wi-Fi parameters and
set them at once, avoiding unknown behaviors of the Wi-Fi driver.

This commit also enables setting the auth of the STA/softAP modes
while connecting to/providing the wireless network.
Copy link
Contributor

@gustavonihei gustavonihei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gustavonihei gustavonihei merged commit 89b966a into apache:master Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

ESP32 WiFi coexistence is not working
3 participants