-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] esp32s3 wifi deadlock #15314
Comments
Hi @yamt. Did you have issues on S3 using WiFi due to this? |
my colleague performed some tests, which connect/disconnect wifi repeatedly and found this issue. i think it was with a proprietary board with SMP enabled. looking at the code, i don't think it's a board-specific issue. (thus reported here.) |
Interesting. |
see #15445 |
Description / Steps to reproduce the issue
net_lock() and esp_wifi_lock() are taken in an inconsistent order.
thus it can cause a deadlock.
the most straightforward fix: make esp_evt_work_cb (and other functions taking esp_wifi_lock first if any) acquire net_lock() before esp_wifi_lock(). (note that net_lock() is a recursive lock.)
On which OS does this issue occur?
[OS: Mac]
What is the version of your OS?
macOS 15.2
NuttX Version
master
Issue Architecture
[Arch: xtensa]
Issue Area
[Area: Drivers]
Verification
The text was updated successfully, but these errors were encountered: