Skip to content

esp8266: fix bugs in esp8266/modnetwork.c when connecting to ap #3083

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

Closed
wants to merge 2 commits into from

Conversation

puuu
Copy link
Contributor

@puuu puuu commented May 12, 2017

This patches should fix the bugs discussed in #3061 .

@dpgeorge
Copy link
Member

Since the station_config struct is initialised to all zeros at the beginning of the function there's no need to store the empty string in the case that the password is not given. You can just put the memcpy for the password into the if (n_args > 2) block.

@puuu
Copy link
Contributor Author

puuu commented May 15, 2017

OK, I see. Changed it that way.

Tested it successfully by connecting to an unprotected and a WPA2 encrypted network.

@dpgeorge
Copy link
Member

Thanks, merged in 4b23580

@dpgeorge dpgeorge closed this May 16, 2017
@pfalcon
Copy link
Contributor

pfalcon commented May 16, 2017

@puuu : Thanks for being around and fixing it!

kamtom480 pushed a commit to kamtom480/micropython that referenced this pull request Jul 2, 2020
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.

3 participants