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

broken wifi_softap_set_dhcps_lease function in 3.x.x version #8471

Closed
R3D9477 opened this issue Jan 31, 2022 · 1 comment · Fixed by #8546
Closed

broken wifi_softap_set_dhcps_lease function in 3.x.x version #8471

R3D9477 opened this issue Jan 31, 2022 · 1 comment · Fixed by #8546

Comments

@R3D9477
Copy link

R3D9477 commented Jan 31, 2022

How does DHCP server set IP address of clients ?

Before I did that:

    struct ip_info info;
    wifi_set_opmode(STATIONAP_MODE);
    wifi_softap_dhcps_stop();
    IP4_ADDR(&info.ip, 10, 0, 0, 1);
    IP4_ADDR(&info.gw, 10, 0, 0, 1);
    IP4_ADDR(&info.netmask, 255, 255, 255, 0);
    wifi_set_ip_info(SOFTAP_IF, &info);
    
    struct dhcps_lease dhcp_lease;
    IP4_ADDR(&dhcp_lease.start_ip, 10, 0, 0, 100);
    IP4_ADDR(&dhcp_lease.end_ip, 10, 0, 0, 105);
    wifi_softap_set_dhcps_lease(&dhcp_lease);

But since version 3.x.x I'm getting compilation exception: undefined reference to `wifi_softap_set_dhcps_lease'

@R3D9477 R3D9477 changed the title rroken wifi_softap_set_dhcps_lease function in 3.x.x version broken wifi_softap_set_dhcps_lease function in 3.x.x version Jan 31, 2022
@mcspr
Copy link
Collaborator

mcspr commented Feb 20, 2022

Duplicate of #8307 (?)

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 a pull request may close this issue.

2 participants