Page 1 of 1

AP mode with a netmask == (255,255,0,0)

Posted: Wed Jul 01, 2020 6:06 pm
by FrancisL
Hello,
I need to set a netmask == (255,255,0,0) in AP mode. The initialization is ok, and if I read back the current netmask, it is correct (255,255,0,0). But when I connect a WiFi client, it gets (255,255,255,0) as netmask. Any idea to workaround this problem?
Thanks,
Francis

Re: AP mode with a netmask == (255,255,0,0)

Posted: Thu Jul 02, 2020 11:46 am
by FrancisL
Found out the source of the problem: there is a conditional statement
#ifdef USE_CLASS_B_NET
....
in add_offer_options (dhcpserver.c) that forces the subnet mask what ever the value defined in ip_info.

Modifying this par allows to use the specified subnet mask.