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

Ensure that the WiFi interrupts are only enabled once the ISR is set #390

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

MabezDev
Copy link
Member

@MabezDev MabezDev commented Dec 18, 2023

Closes #380
Closes #268

@bjoernQ
Copy link
Contributor

bjoernQ commented Dec 19, 2023

@MabezDev
Copy link
Member Author

MabezDev commented Jan 3, 2024

Alternatively, we could enable the interrupts in https://github.com/esp-rs/esp-wifi/blob/a69545dc4c053b9cc9a7398df9250d16834526b5/esp-wifi/src/wifi/os_adapter_esp32c6.rs#L53C33-L53C41

I tried that initially, however, set_intr is actually called before set_isr meaning we still run into the same race condition if the WiFi peripheral pends and interrupt through a reset :(.

@MabezDev MabezDev force-pushed the wifi-interrupt-fixes branch 2 times, most recently from 6258d06 to 18e6965 Compare January 3, 2024 13:38
@MabezDev MabezDev marked this pull request as ready for review January 3, 2024 13:59
@MabezDev MabezDev requested a review from bjoernQ January 3, 2024 13:59
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks!

@bjoernQ bjoernQ merged commit 12477b3 into main Jan 3, 2024
8 checks passed
@bjoernQ bjoernQ deleted the wifi-interrupt-fixes branch January 3, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants