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

Fixes DHCP Server Lease Range for any AP Server Static IP Address #6296

Merged
merged 4 commits into from
Mar 2, 2022

Conversation

SuGlider
Copy link
Collaborator

Summary

There is an issue that prevents DHCP server to start if WiFi AP Mode is used with Static IP that is too close to the end of subnet range. Lease adresses range will overflow NetMask preventing DHCP Server to start, issuing error message DHCPS Set Lease Failed! 0x5001.

This PR fixes it and continues to consider the same previously coded assumptions about netmasking and DHCP leasing range size for AP mode.

Impact

None.

Related links

Fixes #6270

@SuGlider SuGlider added the Area: BT&Wifi BT & Wifi related issues label Feb 17, 2022
@SuGlider SuGlider added this to the 2.0.3 milestone Feb 17, 2022
@SuGlider SuGlider self-assigned this Feb 17, 2022
@SuGlider SuGlider mentioned this pull request Feb 17, 2022
1 task
@SuGlider
Copy link
Collaborator Author

@me-no-dev
Maybe PR #6294 is not necessary anymore. This PR fixes it for good.

@me-no-dev
Copy link
Member

@SuGlider since it's already merged, please adjust the code and remove it here.

@me-no-dev
Copy link
Member

@SuGlider will you finish this please?

@SuGlider
Copy link
Collaborator Author

SuGlider commented Mar 2, 2022

@SuGlider will you finish this please?

@me-no-dev - PR is finished for Arduino Core 2.0.3.

I'll work on a separated PR that will allow the user to set IPV4 Range for DHCP.
At this time this PR fixes #6270 and helps on #6271

@me-no-dev me-no-dev merged commit 95b8e7e into espressif:master Mar 2, 2022
@ch-fb
Copy link

ch-fb commented Mar 7, 2022

Thanks a bunch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: BT&Wifi BT & Wifi related issues
Projects
Development

Successfully merging this pull request may close these issues.

ESP32 AP Mode Local IP
3 participants