network.subr: Workaround race between wpa_supplicant and dhcpcd
authorAaron LI <aly@aaronly.me>
Wed, 12 Dec 2018 04:06:17 +0000 (12:06 +0800)
committerAaron LI <aly@aaronly.me>
Fri, 14 Dec 2018 14:18:07 +0000 (22:18 +0800)
commite9136cbfc9bca1a07ab401f4e82a641eed0a004c
treeafe9b319323d66963bcdf0c96256da804d3c0fe7
parent203bea78ba86cb8cc55309fc7412dd14a131471d
network.subr: Workaround race between wpa_supplicant and dhcpcd

Insert a 1-second delay after starting wpa_supplicant(8) to workaround
the race between it and dhcpcd(8), which can modify the interface's
state and break wpa_supplicant's ongoing SSID scan.

dhclient(8) doesn't have such an issue with wpa_supplicant.

Tested-by: me, Daniel Bilik <ddb@neosystem.org>
etc/network.subr