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

Await CYW43_LINK_DOWN in stop_station #7982

Merged
merged 2 commits into from May 16, 2023
Merged

Conversation

bill88t
Copy link

@bill88t bill88t commented May 15, 2023

It exits seeminly immediately, but should fix #7906.
@anecdata Please test it in your application.

@bill88t bill88t marked this pull request as ready for review May 15, 2023 20:01
anecdata
anecdata previously approved these changes May 15, 2023
Copy link
Member

@anecdata anecdata left a comment

Choose a reason for hiding this comment

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

Before this PR:

wifi.radio.start_ap() will fail with RuntimeError: Wifi is in station mode. if it immediately follows wifi.radio.stop_station(). about 10% of the time.

(re-verified the issue using current build)

With this PR:
Adafruit CircuitPython 8.1.0-beta.2-32-g3ff7fa5d8 on 2023-05-15; Raspberry Pi Pico W with rp2040
Example code from the issue has been running successfully for >500 iterations. LGTM, thanks!

Co-authored-by: Dan Halbert <halbert@halwitz.org>
@tannewt tannewt requested a review from dhalbert May 16, 2023 16:05
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Thanks!

@dhalbert dhalbert merged commit ab83c98 into adafruit:main May 16, 2023
17 checks passed
@bill88t bill88t deleted the picow-stop-ap branch May 19, 2023 20: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
Development

Successfully merging this pull request may close these issues.

Pico W sometimes won't start AP immediately after stopping Station
3 participants