Wi-Fi not connecting

In FreeBSD I can't connect to the Wi-Fi even though the Wi-Fi card is detected. the Wi-Fi card is an Intel(R) Wi-Fi 6E AX211 160MHz. here is the dmesg output.

This is the error:
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
iwlwifi0: Scan failed! ret -5


  • dmesg.txt
    67.9 KB · Views: 19


"iwlwifi0: RFIm is deactivated, reason = 4"

Does this computer have a wifi on/off switch that might be in the "off" position? Same question for a BIOS option.
Can this be responsible for FreeBSD? Any alternatives?

iwlwifi0: Scan failed! ret -5 iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5

It is repeated hundreds of times in the dmesg output. Probably just a symptom and not the cause:

Can you try before calling wpa_cli:
sysctl net.local.dgram.maxdgram=8192