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

FrancisL
Posts: 21
Joined: Wed Jul 25, 2018 3:34 pm

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

Postby FrancisL » Wed Jul 01, 2020 6:06 pm

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

FrancisL
Posts: 21
Joined: Wed Jul 25, 2018 3:34 pm

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

Postby FrancisL » Thu Jul 02, 2020 11:46 am

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.

Who is online

Users browsing this forum: Baidu [Spider] and 174 guests