Re: Please test iwlwifi/rtw88/rtw89 now

From: Oleg Nauman <oleg.nauman_at_gmail.com>
Date: Tue, 18 Nov 2025 20:36:44 UTC
On Wed, Nov 12, 2025 at 2:50 PM Bjoern A. Zeeb <bz@freebsd.org> wrote:
>
> On Wed, 12 Nov 2025, Oleg Nauman wrote:
>
> >> Gather dmesg for me for when it is failing to associate?
> >
> > Please check ...

 Hello Bjoern,


I have some news. It works if I am using 5Ghz AP but can not associate
if I am trying 2.4 Ghz AP
Status quo ( when it is connected to 5 Ghz AP ) is

# ifconfig -vv wlan2
wlan2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=0
        ether 80:91:33:4b:4a:d1
        inet 192.168.0.41 netmask 0xffffff00 broadcast 192.168.0.255
        groups: wlan
        ssid ....._5G channel 100 (5500 MHz 11a vht/80+) bssid a8:5e:45:47:0d:bc
        regdomain ETSI country US anywhere -ecm authmode WPA2/802.11i -wps
        -tsn privacy ON deftxkey UNDEF
        AES-CCM 2:128-bit
        AES-CCM ucast:128-bit
        powersavemode OFF powersavesleep 100 txpower 26 txpowmax 50.0 -dotd
        rtsthreshold 2346 fragthreshold 2346 bmiss 7
        11a     ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
        11b     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
        11g     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
        11na    ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
        11ng    ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
        11ac    ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
        scanvalid 60 -bgscan bgscanintvl 300 bgscanidle 250
        roam:11a     rssi    7dBm rate 12 Mb/s
        roam:11b     rssi    7dBm rate  1 Mb/s
        roam:11g     rssi    7dBm rate  5 Mb/s
        roam:11na    rssi    7dBm  MCS  1
        roam:11ng    rssi    7dBm  MCS  1
        roam:11ac    rssi    7dBm  MCS  1
        -pureg protmode CTS ht htcompat ampdu ampdulimit 64k ampdudensity 4
        -amsdutx amsdurx shortgi htprotmode RTSCTS -puren -smps -rifs
        -stbctx stbcrx -ldpc -uapsd vht vht40 vht80 -vht160 -vht80p80 wme
        -burst -dwds roaming MANUAL bintval 100
        AC_BE cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm ack
              cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm
        AC_BK cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm ack
              cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm
        AC_VI cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm ack
              cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm
        AC_VO cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm ack
              cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm
        parent interface: rtw880
        media: IEEE 802.11 Wireless Ethernet VHT mode 11ac
        status: associated
        drivername: wlan2


# sysctl -a|grep rtw88_
compat.linuxkpi.rtw88_pci_disable_aspm: 0
compat.linuxkpi.rtw88_pci_disable_msi: 0
compat.linuxkpi.rtw88_support_vht: 1
compat.linuxkpi.rtw88_support_ht: 1
compat.linuxkpi.rtw88_debug_mask: 0
compat.linuxkpi.rtw88_support_bf: 1
compat.linuxkpi.rtw88_disable_lps_deep: 0

rtw880@pci0:2:0:0:      class=0x028000 rev=0x00 hdr=0x00 vendor=0x10ec
device=0xc821 subvendor=0x1a3b subdevice=0x3040
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8821CE 802.11ac PCIe Wireless Network Adapter'
    class      = network


Thank you

>
> You are theoretically past auth (and assoc) but net80211 changed the
> iv_bss under you to connect to another node (even though it may be the
> same one).
>
> That seems to be a different problem, one which iwlwifi(4) also had but
> this should be fixed and we ignore these with the old iv_bss and return
> ENOTRECOVERABLE (95).
>
> I've tried all of my 8821, 882BE, and 8822CE in different machines,
> native and under bhyve and I cannot reproduce that currently.  They all
> just come up.   I'll keep looking at that.
>
> Thanks a lot for getting the trace to me!  Will hopefully help.
>
> /bz
>
> --
> Bjoern A. Zeeb                                                     r15:7