I want my pfSense box to be able to provide a Wireless AP, but since FreeBSD apparently sucks, when it comes to WiFi-Card support, I have to workaround the problem using a Linux VM. In this case its a Alpine Linux VM, hence the name WifiPine.
Below are some notes I wrote down during the process.
zfs create pfSense/bhyve
pkg install vm-bhyve
pkg add https://pkg.freebsd.org/FreeBSD:14:amd64/latest/All/edk2-bhyve-g202308_5.pkg
sysrc vm_enable="YES"
sysrc vm_dir="zfs:pfSense/bhyve"
vm init
pciconf -v -l
/boot/loader.conf
vmm_load="YES"
nmdm_load="YES"
if_bridge_load="YES"
if_tap_load="YES"
pptdevs="6/0/0"
Tunable: net.link.tap.up_on_open
Value: 1
Description: Open TAP on boot for vm-bhyve
reboot
vm switch create -t manual -b bridge0 wifipine
/pfSense/bhyve/.templates/wifipine.conf
loader="uefi"
cpu=1
memory=512M
passthru0="6/0/0"
network0_type="virtio-net"
network0_switch="wifipine"
disk0_type="nvme"
disk0_name="wifipine.img"
vm iso https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/x86_64/alpine-standard-3.21.2-x86_64.iso
vm create -t wifipine -s 16G wifipine
Write down mac in wifipine.conf
vm install -f wifipine alpine-standard-3.21.2-x86_64.iso
vm start wifipine
sudo sysrc vm_list="wifipine"
sudo sysrc vm_delay="5"
See Persistent VMs on pfSense with vm-bhyve
ln -s /usr/local/etc/rc.d/vm /usr/local/etc/rc.d/vm.sh