reassign -1 wpasupplicant
thanks

On Fri, Jul 20, 2018 at 09:58:22AM +0200, Samuel Thibault wrote:

> My wlo1 configuration reads as:
> 
> iface wlo1 inet dhcp
>         wpa-conf /etc/wpa_supplicant.conf
> 
> when I ifup wlo1, ifup starts the dhcp client immediately, without
> waiting for wpa_supplicant to actually negociate the link. This is
> deemed to fail, the first DHCPDISCOVER will for sure get lost since the
> link is not up yet. As a consequence, one systematically has to wait for
> the random delay before the dhcp client sends another DHCPDISCOVER.
> 
> ifupdown could wait for the link carrier to get up before starting the
> dhcp client, which would then most probably always succeed on first try,
> and not need random retry delays.

While it might be nice to shave off a few seconds from getting the
network up and running, this is unfortunately not something that is easy
for ifupdown to do because of its architecture. Wireless configuration
is not handled by ifupdown itself; it just calls the if-pre-up plugin
from the wpasupplicant package. Even if ifupdown itself would be able to
check if this is a wireless interface and whether it has associated or
not, this would involve ifupdown doing polling, and it's just not built
to do that: its design is to just run a bunch of scripts and quit.

The solution might be for the wpasupplicant package to have the
if-pre-up.d script wait (up to some timeout) for the link to associate
to the access point before exitting. This would delay ifupdown from
starting the DHCP client. I'm therefore reassigning the package.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <g...@debian.org>

Attachment: signature.asc
Description: PGP signature

Reply via email to