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

Wi-Fi PSK routine could be optimized further (IDFGH-14279) #15072

Open
3 tasks done
ivq opened this issue Dec 21, 2024 · 0 comments · May be fixed by #15073
Open
3 tasks done

Wi-Fi PSK routine could be optimized further (IDFGH-14279) #15072

ivq opened this issue Dec 21, 2024 · 0 comments · May be fixed by #15073
Assignees
Labels
Status: Opened Issue is new

Comments

@ivq
Copy link

ivq commented Dec 21, 2024

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

Wi-Fi PSK is vital for WPA/WPA2 Personal networks, and its calculation is a heavy load.
Currently, we have fast-pbkdf2, but the performance of it is far from optimal.
Optimizing PSK routine brings many benefit. For one thing, it reduces time spent to join an AP. For another, it improves
responsiveness of the Wi-Fi stack as the Wi-Fi task calls the routine.

Proposed improvement

I'm working on an optimized PSK implementation: #15073 and it is showing significant improvement. See the table below.

Chip fast-pbkdf2 My impl
ESP32 138 x
ESP32S2 158 72
ESP32S3 284 71
ESP32C2 189 143
ESP32C3 211 83
ESP32C6 244 150

The numbers are milliseconds spent to calculate a PSK. x means not supported currently.
The benchmark is run based on the wifi/iperf example with default SDK config.

@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 21, 2024
@github-actions github-actions bot changed the title Wi-Fi PSK routine could be optimized further Wi-Fi PSK routine could be optimized further (IDFGH-14279) Dec 21, 2024
@ivq ivq linked a pull request Dec 21, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants