Package: hostapd
Version: 2.7+git20190128+0c1e29f-1
Severity: normal

hostapd@.service:

 [Unit]
Description=Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP
Authenticator (%I)
-After=network.target
+After=network.target sys-subsystem-net-devices-%i.device
BindsTo=sys-subsystem-net-devices-%i.device

The change above fixes a problem whereby the service will often run
before USB wifi devices are detected and setup, resulting in failure.
Telling the service to wait until after the device in question exists
solves the problem. (The problem may not always be noticeable because
the service will restart every two seconds, so it will eventually
work, but that's hardly the best solution.)

Thanks,
Christopher Martin

Reply via email to