dhcpcd-discuss

Per-SSID lease file?

Pierre-Hugues Husson

Sat Feb 07 19:00:48 2015

Hi,

I've been searching for some improvements to WiFi connection time on
Android devices, and especially dhcp.
First thing I noticed, is that the lease file used is always the same, on
all APs.
Which means it is sending a request for an IP it can't possibly have.
So I did a quick change in dhcp.c in read_lease and write_lease, to have
per-SSID lease files, and the connection is already a lot faster.

I'm seeing there is already the code to retrieve the current SSID, and
transmit it to hooks, so possibly it's possible without changing source
code, only with changing hooks ?
Also, chromium OS fixes this issue by setting the lease file with a
parameter, and restarting dhcpcd on new request.

What is your advice on that ?
Should I implement an option to dhcpcd for that ?

Regards,

Follow-Ups:
Re: Per-SSID lease file?Roy Marples
Archive administrator: postmaster@marples.name