Add -W option for enabling workaround for buggy AP that handle broadcast flag incorrectly
Some routers/AP handle the DHCP broadcast flag incorrectly.
This means that some AP discard the DHCP packet if broadcast
flag is present and some discard it if broadcast flag is missing.
The workaround is to first send DISCOVER packet in INIT state without
broadcast flag. If there is a timeout we send the second packet with
broadcast flag set. In a case of second timeout the next DISCOVER will
not set broadcast flag etc.
In REBOOTING state the REQUEST packet will not set the broadcast flag.
If we do not get a reply, we switch to INIT state anyway which will
set the broadcast flag.
Change-Id: Ifd3adfe6693f51f0f331c6ebcdc7011e3be3a353
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>