]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r343249:
authoravos <avos@FreeBSD.org>
Sat, 26 Jan 2019 13:36:06 +0000 (13:36 +0000)
committeravos <avos@FreeBSD.org>
Sat, 26 Jan 2019 13:36:06 +0000 (13:36 +0000)
commit396ce8497cb2ae7eed1e297d7edf3396759eaca1
treedce7544d73b0d55d737f3dee3f766d8283b8c079
parent8f0c565aafe20f55187366cc9021bf51803ed670
MFC r343249:
Fix duplicate wpa_supplicant(8) / hostapd(8) startup with devd(8)

Do not invoke 'wlan_up' function from devd(8) on interface
creation event (an example to create such event:
'ifconfig wlan0 create wlandev rtwn0');
they're typically produced during 'service netif (re)start'
and result in duplicate interface initialization.

From the user side if WPA option is used, this result in messages like:
- /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant
or
- wpa_supplicant already running?  (pid=xxxx).
(for HOSTAP interfaces this race may result in startup failure).

As a side effect, wpa_supplicant(8) / hostapd(8) will not be
invoked when new wlan(4) interface is created manually and
corresponding configuration for it is present in rc.conf(5).

This change does not affect device attach / removal events.
etc/devd.conf