On 2025-11-08 1:48:34, Mike wrote:
> have a wpa_supplicant.conf that works quite well on FreeBSD and my
> WPA-Enterprise setup here.
>
> But I want to re-task the PC to use OpenBSD. Mainly because of the
> great support of the Temper temp and humidity sensors (the ugold devices).
>
> My problem is that I have searched, and searched, and searched, to find
> the syntax of the hostname.ath0 file I need to use in order to enable
> the use of WPA-Enterprise.
>
> I was quite surprised to find no mention of it at all in the Wireless
> section of the OpenBSD FAQ
> ( https://www.openbsd.org/faq/faq6.html#Wireless ).
The FAQ is mainly about the OpenBSD base system. wpa_supplicant is an
add-on from packages/ports. So it needs to be installed seperately.
I used "pkg_info -Q wpa_supplicant" to find it and "pkg_info wpa_supplicant"
to read its' description. Two versions OpenSSL and LibreSSL are available.
OpenBSD comes with and normally uses LibreSSL. To install:
pkg_add wpa_supplicant-2.9p7
> So, my question is ...
>
> what does a hostname.if file need to contain in order to enable the use
> of wpa_supplicant?
>
> And, as a followup question, do I need to put anything in rc.conf.local
> under wpa_supplicant_flags in order for this to work?
At the end of the install is the text:
The following new rcscripts were installed: /etc/rc.d/pcscd
/etc/rc.d/wpa_supplicant
See rcctl(8) for details.
New and changed readme(s):
/usr/local/share/doc/pkg-readmes/wpa_supplicant
You would use "rcctl enable wpa_supplicant" to enable it, this will put what's
needed
in rc.conf.local to start it on boot. Start now with "rcctl start
wpa_supplicant"
But first read the readme file it told you about, that should likely answer your
questions. I'd also try "man wpa_supplicant" for more information.
For the hostname.if files read "man hostname.if" and "man ifconfig". Amoung
lots of
useful knowledge it'll also tell you how to add any command to the hostname.if
file.
But start with the readme, more or less
/usr/local/share/doc/pkg-readmes/wpa_supplicant.
FYI: I'm not a developer, just another user, and never used wpa_supplicant
but figured I could help point you in where to search for information.