iwlwifi can't connect to WIFI on FreeBSD 13.1 beta and 14-Current

From: Simple <yklaxds_at_gmail.com>
Date: Sat, 12 Mar 2022 14:02:19 UTC
I use AX200.

  ee /etc/rc.conf:



*ifconfig_wlan1="WPA DHCP"  *
*create_args_wlan1="wlanmode sta regdomain FCC country US"*

But ifconfig cant find wlan0, I need to create it handly:

*ifconfig wlan1 create wlandev iwlwifi0*

*ifconfig wlan1 up
ifconfig wlan1 scan
ifconfig wlan1 WPA
ifconfig wlan1 DHCP
wpa_supplicant -s -B -i wlan1 -c /etc/wpa_supplicant.conf -D bsd -P

*root@MyBsd:~ # ifconfig wlan1wlanl: flags=8843<UP , BROADCAST ,
RUNNING, SIMPLEX,MULTICAST> metric 0 mtu 1500ether 34:cf:f6: f2:b9:
44groups: wl anssi d. channel 1 (2412 MHz 11b)regdomain FCC country US
authmode OPEN pr ivacy OFF txpower 30 bmissscanvalid 60 wme bintval
0parent interface: iwlwifi0media: IEEE 802.11 Wireless Ethernet autose
lect ( autose lect)status: no carr iernd6 opt ions=29<PERF ORMNUD,

But it not work:

*root@MyBsd:~ # ifconfig wlanl DHCP*

*ifconfig: DHCP: bad valueroot@MyBsd:~ # upa. supplicant -5 -B -1
wlan1 -C /etc/wpa_ supplicant .conf -D bsd -P /var/run/upa _suppl
icant/ul an1.pid Mar 12 14:19:47 MyBsd upa_ supp icant[1197]:
loctISIOCS80211, op=20, val=0, arg_len=7]: Invalid argumentI Mar 12
14:19:47 MyBsd syslogd: last message repeated 1 timesMar 12 14:19:47
MyBsd upa_ supplicant[1197]: Could not unlink existing ctr1_iface
socket' /etc/upa. supp icant . conf/ulan1: Not a directoryMar 12 14:
19:47 MyBsd wpa suppl icant1197] Failed to initialize control
interface' /etc/wpa. supplicant. conf'. You may h .ave another upa
suppl icant process already running or the file was left by an unclean
termination of wpa_ supplicant in Uhich case you will need to manually
remove this file before starting wpa .suppl icant again.root@MyBsd: #
wpa supplicant -S -B -1 wlan1 -C /etc/wpa. suppl icant.conf -D bsd -P
/var/run/ wpa_ suppl icant/wlan1. pidMar 12 14:21:44 MyBsd wpa. suppl
icant[1200]: ioctl[SIOCS80211, op=20,val=0, arg_ len=7]: Invalid
argumentroot@MyBsd:~ # Mar 12 14:21:44 MyBsd syslogd: last message
repeated 1 t imesMar 12 14:21 :44 MyBsd upa suppl icant[ 1201]:
ioctI[SIOCS80211, op=103, val=0, arg_ len=128]: Operation now in
progressMar 12 14:22:15 MyBsd syslogd: last message repeated 29 times*

Thanks a lot.