Repository navigation
Pico W boards: report the connected network and fix two WiFi bugs - #11646
Open
mikeysklar wants to merge 3 commits into
Open
mikeysklar wants to merge 3 commits into
mikeysklar wants to merge 3 commits into
Conversation
The raw qstr number was cast straight to an object, so Python saw the integer 0 instead of a str. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
After stop_station() the netif kept its DHCP address while the link was down. connect() to another network then saw the link come up with an address already set and returned before DHCP had run, still holding the previous network's address. Clear the address instead. DHCP keeps its lease and asks for it again when the link returns, so the same network re-acknowledges it and a different one refuses it and assigns a new one. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Return the connected network instead of raising NotImplementedError. SSID comes from the connect() call, channel, RSSI and BSSID from the CYW43. Security reflects how connect() joined: open, or WPA2 with a password. Returns None when the station link is not up. Fixes adafruit#11030, fixes adafruit#9323. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Pico W and Pico 2 W can now report which network they joined.
Why
ap_infowas missing there, and two small bugs returned wrong values.wifi.radio.ap_info(fixes #11030, fixes #9323)NotImplementedErrorwifi.Network.country0''ap_infoon home, open and WPA2 networksap_infoafter a timed-outconnect()Not tested: WPA3, enterprise, roaming.
Reconnecting to the same network can take up to 1 s longer.
Thanks to @shaxntanu, whose #11625 took the same approach.
Written and tested on my board farm with Claude Code.
I reviewed the diff and the results.
🤖 Generated with Claude Code