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

WPA2 connection fix (significant improvement to connection time) #2989

Merged
merged 2 commits into from
Jul 16, 2019
Merged

WPA2 connection fix (significant improvement to connection time) #2989

merged 2 commits into from
Jul 16, 2019

Conversation

boarchuz
Copy link
Contributor

This seems to finally fix/workaround the bug that has been plaguing WPA2 connections.
In my testing (home network, WPA2 Personal), connection time has improved from ~1200ms to ~300-350ms.

The issue seems to be that the underlying WiFi API needs esp_wifi_set_config() to be explicitly called. Perhaps some lwIP settings aren't applied. It might even be a clash with the ARP check config specifically.

This is not specific to Arduino, but it is a band-aid for now. Also tested with esp-idf (PlatformIO) , esp-idf + Arduino component (PlatformIO), Arduino (IDE and PlatformIO).
I'll create an issue on the esp-idf repo soon.

Hopefully helps with #1675, #2798, etc

@me-no-dev
Copy link
Member

Nice find! Let's merge this and see how it goes :)

@me-no-dev me-no-dev merged commit c17b212 into espressif:master Jul 16, 2019
OttoWinter added a commit to esphome/esphome that referenced this pull request Oct 18, 2019
OttoWinter added a commit to esphome/esphome that referenced this pull request Oct 18, 2019
* Enable MDNS logs comment

* Work around ESP8266 mDNS broken for AP

See also esp8266/Arduino#6114

* Enable captive_portal in AP-only mode

Fixes esphome/issues#671

* Make ESP32 connecting faster

See also espressif/arduino-esp32#2989

* Format
silverchris pushed a commit to silverchris/esphome that referenced this pull request May 23, 2020
* Enable MDNS logs comment

* Work around ESP8266 mDNS broken for AP

See also esp8266/Arduino#6114

* Enable captive_portal in AP-only mode

Fixes esphome/issues#671

* Make ESP32 connecting faster

See also espressif/arduino-esp32#2989

* Format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants