[Bug 278306] service netif start doesn't bring up the wireless interface if /etc/wpa_supplicant.conf is missing

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 29 Aug 2024 15:24:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278306

--- Comment #11 from Chris Hutchinson <portmaster@bsdforge.com> ---
(In reply to Bjoern A. Zeeb from comment #10)
I think you're on the right track, Bjoern.
But as I examined this approach, I discovered what may be
hints to the problem here:

libexec/rc/netif
@ 152
# netif_common routine
#       Common configuration subroutine for network interfaces. This
#       routine takes all the preparatory steps needed for configuriing
#       an interface and then calls $routine.

...

@ 175
# Don't check that the interface(s) exist.  We need to run
# the down code even when the interface doesn't exist to
# kill off wpa_supplicant.
# XXXBED: is this really true or does wpa_supplicant die?
# if so, we should get rid of the devd entry

While I could fully unwind the routine(s) to confirm whether
this, or your approach is correct. I don't have time slices available ATM.
IOW I agree someone from rc@ or net@ is the best direction. Maybe a PHAB
review would be even better?

-- 
You are receiving this mail because:
You are on the CC list for the bug.