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

WiFi join on RPi Pico W is Ok even if password is wrong #3723

Open
erichstuder opened this issue Jan 4, 2025 · 1 comment
Open

WiFi join on RPi Pico W is Ok even if password is wrong #3723

erichstuder opened this issue Jan 4, 2025 · 1 comment

Comments

@erichstuder
Copy link

Hello

With the latest main branch (and also older versions) joining to a Network returns Ok even if the password is wrong.
Although I haven't used this exact example, it should happen here as well:
examples/rp/src/bin/wifi_tcp_server.rs
image

I don't fully understand it.
But I think the reason could be, that some intermediate states are "lagged"?
(see next_message_pure() in embassy-sync/src/pubsub/subscriber.rs)

Is this behavior intentional?

@Dirbaio
Copy link
Member

Dirbaio commented Jan 5, 2025

it's definitely not intentional, i've already seen it before.

The reason is join waits for the wrong event I think. It's waiting for some event when "associated" which fires even with the wrong password, then there's later events that only fire after successful authentication.

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

No branches or pull requests

2 participants