Wifibox not working (AX201, Raptor Lake-S PCH CNVi WiFi)

Hi,

This is my first post in this forum. I'm not familiar with the tags and formatting so please bear with me (and my poor English) a little:)

I'm a new user to FreeBSD and I'm trying it on my laptop. uname -a gives me:

Code:
FreeBSD tx5pro 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64

I have some problems with the AX201 card. The iwlwifi(4) works (kind of), but only works in 11g mode, and the speed is under 100KB/s. I read these two threads:

Thread intel-corporation-alder-lake-p-pch-cnvi-wifi.92911
Thread iwlwifi-ax203-wifi-speed-96-slower-in-freebsd-vs-windows-11.96657

and this article, learned some basics about net/wifibox, and here's my configuration:

Related configs in /usr/local/etc/wifibox/bhyve.conf:
Code:
cpus=1
memory=128M
console=yes
passthru="0/20/3"
priority=50
stop_wait_max=30

Related configs in /usr/local/etc/wifibox/wpa_supplicant/wpa_supplicant.conf:
Code:
ctrl_interface=/var/run/wpa_supplicant
network={
    ssid="xxxxxxxx"
    psk="xxxxxxxx"
    priority=6
}

Related configs in /etc/rc.conf:
Code:
devmatch_enable="YES"
devmatch_blocklist="if_iwm if_iwlwifi"
wifibox_enable="YES"
ifconfig_wifibox0="SYNCDHCP"
background_dhclient_wifibox0="YES"
defaultroute_delay="0"

After a reboot, the pciconf -lv command gives me this:
Code:
ppt0@pci0:0:20:3:    class=0x028000 rev=0x11 hdr=0x00 vendor=0x8086 device=0x7a70 subvendor=0x8086 subdevice=0x0074
    vendor     = 'Intel Corporation'
    device     = 'Raptor Lake-S PCH CNVi WiFi'
    class      = network

and ifconfig tells me the wifibox0 is at 10.0.0.2:
Code:
wifibox0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=0
    ether 58:9c:fc:10:b5:79
    inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255
    id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
    maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
    root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
    member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 4 priority 128 path cost 2000000
    groups: bridge
    nd6 options=9<PERFORMNUD,IFDISABLED>
tap0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=80000<LINKSTATE>
    ether 58:9c:fc:10:ff:a3
    groups: tap
    media: Ethernet 1000baseT <full-duplex>
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    Opened by PID 353

but the network still seems not working.

I logged into the wifibox vm and the ifconfig command only gives me this:
Code:
wifibox:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:A0:98:8A:05:71 
          inet addr:10.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::2a0:98ff:fe8a:571/64 Scope:Link
          inet6 addr: fd00::ffff/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:62 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6468 (6.3 KiB)  TX bytes:5846 (5.7 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

and no wlan0 was found as mentioned in this article.

lspci -k in the wifibox vm shows the iwlwifi device:
Code:
00:1f.0 Class 0601: 8086:7000
00:04.2 Class 0100: 1af4:1009 virtio-pci
00:04.0 Class 0100: 1af4:1001 virtio-pci
00:00.0 Class 0600: 1275:1275
00:04.3 Class 0100: 1af4:1009 virtio-pci
00:06.0 Class 0280: 8086:7a70 iwlwifi
00:04.1 Class 0100: 1af4:1009 virtio-pci
00:05.0 Class 0200: 8086:100f e1000

dmesg in the wifibox shows some error in the end.
Code:
[   43.072164] iwlwifi 0000:00:06.0: failed to send MCC_ALLOWED_AP_TYPE_CMD (-5)
[   43.072169] iwlwifi 0000:00:06.0: LED command failed: -5
[   43.072172] iwlwifi 0000:00:06.0: Failed to send MAC_CONFIG_CMD (action:1): -5
I'm not very familiar with these messages. I'm guessing that the problem is probably the wifibox not functioning properly with my AX201 card? The whole dmesg output are provided in the attached file.

Am I doing something wrong with wifibox or missing some configurations?
 

Attachments

Back
Top