Re: net80211: initialize link state during attach

2017-06-19 Thread Mark Kettenis
> X-Envelope-From: s...@stsp.name > X-Envelope-To: > Date: Fri, 16 Jun 2017 15:50:24 +0200 > From: Stefan Sperling > Mail-Followup-To: tech@openbsd.org > Content-Disposition: inline > List-Owner: > X-Loop: tech@openbsd.org >

net80211: initialize link state during attach

2017-06-16 Thread Stefan Sperling
Set the link state of wifi interfaces to DOWN at attach time instead of leaving it as UNKNOWN which userland cannot really make use of (e.g. dhclient interprets UNKNOWN as UP). Link state is also reset by the ieee80211_newstate() function. However, that function is usually called by the