how it was solved for me
ifconfig
dmesg | grep -i wireless
sysctl net.wlan.devices
--> nothing
sudo vi /boot/loader.conf
add:
if_iwlwifi_load="YES"
ireset_load="YES"
legal.intel_iwlwifi.license_ack=1
sysctl net.wlan.devices
sudo vi /etc/rc.conf
add:
wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA DHCP"
sudo vi /etc/wpa_supplicant.conf
add:
network={
ssid="WifiName"
psk="WifiKey"
}
sudo service netif restart
sudo service wpa_supplicant start wlan0
--> nothing
pciconf -lv | grep -B 3 -A 1 -i wireless
pciconf -lv | grep -i intel
pciconf -lv | grep -B 3 -i network
dmesg | grep iwlwifi
--> need to load driver
sudo fwget
sudo pkg install -y wifi-firmware-iwlwifi-kmod-22000 gpu-firmware-intel-kmod-tigerlake
sudo kldunload if_iwlwifi
sudo kldload if_iwlwifi
dmesg | grep iwlwifi
now it works !